-
Notifications
You must be signed in to change notification settings - Fork 1.9k
feat(skills): sync AGENTS.md to AI-specific formats #9751
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- setup.sh now copies AGENTS.md to CLAUDE.md, GEMINI.md, and .github/copilot-instructions.md for each AI assistant - Added Auto-invoke Skills section to AGENTS.md to trigger skills automatically when performing specific actions - Updated .gitignore to ignore generated instruction files AGENTS.md remains the source of truth. Edit it and re-run the script to sync all AI assistants.
|
Please add an entry to the corresponding |
|
✅ Conflict Markers Resolved All conflict markers have been successfully resolved in this pull request. |
🔒 Container Security ScanImage: 📊 Vulnerability Summary
3 package(s) affected
|
- Add interactive menu to select AI assistants (Claude, Gemini, Codex, Copilot) - Add CLI flags for non-interactive usage (--claude, --gemini, --codex, --copilot, --all) - Refactor setup logic into reusable functions - Add 19 unit tests covering flags, symlinks, AGENTS.md copying, and idempotency
70d4246 to
1eac7d9
Compare
- Create skill-sync skill with sync.sh script and 22 unit tests - Add metadata.scope and metadata.auto_invoke to 17 skills - Auto-generate Auto-invoke sections in ui/, api/, prowler/, root AGENTS.md - Update skills/README.md with Auto-invoke documentation The Auto-invoke sections solve a known issue where AI assistants ignore skills even when Trigger: descriptions match. Explicit commands force the AI to load skills before performing actions. Usage: ./skills/skill-sync/assets/sync.sh [--dry-run] [--scope <scope>]
🔒 Container Security ScanImage: ✅ No Vulnerabilities DetectedThe container image passed all security checks. No known CVEs were found.📋 Resources:
|
🔒 Container Security ScanImage: 📊 Vulnerability Summary
10 package(s) affected
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #9751 +/- ##
===========================================
+ Coverage 58.94% 92.51% +33.57%
===========================================
Files 8 163 +155
Lines 397 23285 +22888
===========================================
+ Hits 234 21543 +21309
- Misses 163 1742 +1579
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Add new Agent Skill for reviewing PRs that add or modify compliance frameworks. This skill provides: - Review checklist with pass/fail criteria - Validation script to verify check existence and JSON validity - Decision tree for review recommendations - Dashboard file pattern reference The skill complements prowler-compliance (creates frameworks) by focusing on the review/validation process.
- Rename "Validation Commands" to "Commands" - Replace "Agent Integration" with "Testing the Compliance Framework"
- Fix awk multi-line string handling in sync.sh by using temp file - Add scope and auto_invoke metadata to prowler-compliance-review skill - Regenerate AGENTS.md Auto-invoke sections
Add prowler-compliance-review, prowler-ci, and skill-sync to the AI Skills architecture diagram and Skills Included table.
Add skills/** and **/AGENTS.md to files_ignore in SDK workflows to skip unnecessary CI runs for documentation-only changes.
Add AGENTS.md to files_ignore in API and UI workflows to skip unnecessary CI runs for agent documentation changes.
Context
AI coding assistants (Claude, Gemini, Copilot) don't reliably auto-invoke skills even when the
Trigger:in SKILL.md descriptions matches the user's request. This is a known issue - AI treats skill suggestions as "background noise" and proceeds with its default approach.Solution: Explicit commands in
AGENTS.mdfiles force the AI to use skills. The Auto-invoke Skills section tells the AI: "When performing X action, ALWAYS invoke Y skill FIRST."Description
This PR standardizes AI assistant configuration and automates skill invocation:
1. AGENTS.md as source of truth
AGENTS.mdonce, sync to format-specific copies (CLAUDE.md, GEMINI.md, copilot-instructions.md)2. Auto-invoke Skills sections
3. skill-sync automation (NEW)
skill-syncskill withsync.shscriptmetadata.scopeandmetadata.auto_invokefrom each SKILL.md4. Skill metadata fields (NEW)
metadata.scope(ui, api, sdk, root) to 17 skillsmetadata.auto_invoke(action description) to 17 skillsUsage
Files Changed
skills/setup.sh,skills/skill-sync/assets/sync.shskills/setup_test.sh,skills/skill-sync/assets/sync_test.shskills/README.mdWhy This Matters
Without this:
prowler-sdk-checkskill and does it wrongWith this:
prowler-sdk-check"Test Plan
./skills/setup_test.sh- 19 tests pass./skills/skill-sync/assets/sync_test.sh- 22 tests pass./skills/setup.sh --alland verify files created./skills/skill-sync/assets/sync.sh --dry-runand verify outputReferences