Update an existing AGENTS.md to reflect current project state. Use when the user says their AGENTS.md is outdated, stale, or needs refreshing. Also triggers on 'update AGENTS.md', 'refresh AGENTS.md', 'AGENTS.md is out of date', 'sync AGENTS.md with project'.
From agentic-docnpx claudepluginhub christophe1997/agent-extentions --plugin agentic-docThis skill is limited to using the following tools:
Update an existing AGENTS.md file to reflect current project state. Default to keeping the file compact; ask about references folder only if content becomes too verbose.
Load the agents-md skill for format guidance:
Use Skill tool with skill="agd:agents-md"
Provides: sections, structure, validation checklist, best practices
Trigger updates when:
Read existing AGENTS.md:
cat AGENTS.md
Analyze project for changes:
Identify update scope:
Update sections incrementally:
./docs/agents/testing.md, ../api/AGENTS.md)Check line count before writing:
If projected content exceeds 100 lines — ask and then act: Use AskUserQuestion:
questions: [
{
"question": "The AGENTS.md will exceed 100 lines. Would you like me to split detailed content into a references folder?",
"header": "References",
"options": [
{
"label": "No, keep it compact",
"description": "Try harder to condense. Keep AGENTS.md as a single file."
},
{
"label": "Yes, create docs/agents/",
"description": "Create docs/agents/ and move detailed sections there, leaving brief summaries with links in AGENTS.md."
},
{
"label": "Yes, use custom path",
"description": "Specify a custom path for the references folder."
}
]
}
]
If user chooses to split:
docs/agents/<section-name>.md (or user-specified path)See docs/agents/<section-name>.md for details.Write updated AGENTS.md:
Validate the updated file:
Report changes: Summarize what was updated:
Updated AGENTS.md:
- Added: New testing commands (vitest)
- Updated: Build process (now uses turbo)
- Removed: Obsolete npm scripts
- Line count: 65 (was 58)
After update, verify:
Show changes in unified diff format for clarity:
## Setup commands
- Install: `npm install`
+ Install: `pnpm install`
- Dev server: `npm run dev`
+ Dev server: `pnpm dev`