Keep Agents And README Fresh
Archived. Use ft-rightsize-agents-md instead.
Install the canonical Documentation Freshness policy into existing agent instruction files. This is an additive, one-time setup task.
Canonical Section
## Documentation Freshness
Repo reality is the source of truth. If `AGENTS.md` or `README.md` becomes false, update it in the same change when the fix is objective.
Objective facts include repo structure, tracked paths, setup commands, validation commands, runtime/tooling, skill/resource/prompt inventory, and workflow constraints proven by the repo.
- Update `AGENTS.md` when it is stale about agent-facing repo reality.
- Update `README.md` when it is stale about human-facing purpose, entry points, install, or use.
- Ask before changing policy, philosophy, positioning, or workflow intent.
- If both docs are stale, update both. Do not make them mirror each other unless the same fact belongs in both.
- Ignore temporary, generated, local-only, and unrelated untracked files.
- If unrelated user changes make docs look stale, ask before broadening scope.
- After repo-reality changes, check `AGENTS.md` and `README.md` before finishing.
- In the final response, mention any freshness updates.
Workflow
- Find existing
AGENTS.md and CLAUDE.md files in the repo.
- If none exist, stop. Tell the user this skill is additive and recommend creating an agent instruction file first with
https://skills.sh/github/awesome-copilot/create-agentsmd.
- Prefer
AGENTS.md over sibling CLAUDE.md in the same directory.
- If both sibling files exist and are not symlinked, update
AGENTS.md only and recommend symlinking them if they are meant to stay identical.
- Update every active existing agent instruction file, including nested files, because the closest instruction file can take precedence.
- If more than 5 target files are found, list them and ask before bulk editing.
- Do not create new
AGENTS.md or CLAUDE.md files.
- Do not create backup files.
- Do not commit changes.
Placement
- If a file already has the exact canonical section, leave it unchanged.
- If a file has a partial or older
Documentation Freshness section with the same policy intent, replace that section with the canonical section.
- If a
Documentation Freshness section has different or broader meaning, ask before replacing it.
- Otherwise insert the canonical section after workflow or overview material, before validation, testing, style, or contribution sections.
- Keep the canonical wording exact. Only adapt surrounding placement or heading context if required by the file.
Final Report
Report only:
- Files updated.
- Files that already had the section.
- Any symlink recommendation for duplicate sibling
AGENTS.md and CLAUDE.md files.
1---2name: ft-once-keep-agents-and-readme-fresh3description: Archived. Use ft-rightsize-agents-md instead.4---56# Keep Agents And README Fresh78Archived. Use `ft-rightsize-agents-md` instead.910Install the canonical Documentation Freshness policy into existing agent instruction files. This is an additive, one-time setup task.1112## Canonical Section1314```md15## Documentation Freshness1617Repo reality is the source of truth. If `AGENTS.md` or `README.md` becomes false, update it in the same change when the fix is objective.1819Objective facts include repo structure, tracked paths, setup commands, validation commands, runtime/tooling, skill/resource/prompt inventory, and workflow constraints proven by the repo.2021- Update `AGENTS.md` when it is stale about agent-facing repo reality.22- Update `README.md` when it is stale about human-facing purpose, entry points, install, or use.23- Ask before changing policy, philosophy, positioning, or workflow intent.24- If both docs are stale, update both. Do not make them mirror each other unless the same fact belongs in both.25- Ignore temporary, generated, local-only, and unrelated untracked files.26- If unrelated user changes make docs look stale, ask before broadening scope.27- After repo-reality changes, check `AGENTS.md` and `README.md` before finishing.28- In the final response, mention any freshness updates.29```3031## Workflow32331. Find existing `AGENTS.md` and `CLAUDE.md` files in the repo.342. If none exist, stop. Tell the user this skill is additive and recommend creating an agent instruction file first with `https://skills.sh/github/awesome-copilot/create-agentsmd`.353. Prefer `AGENTS.md` over sibling `CLAUDE.md` in the same directory.364. If both sibling files exist and are not symlinked, update `AGENTS.md` only and recommend symlinking them if they are meant to stay identical.375. Update every active existing agent instruction file, including nested files, because the closest instruction file can take precedence.386. If more than 5 target files are found, list them and ask before bulk editing.397. Do not create new `AGENTS.md` or `CLAUDE.md` files.408. Do not create backup files.419. Do not commit changes.4243## Placement4445- If a file already has the exact canonical section, leave it unchanged.46- If a file has a partial or older `Documentation Freshness` section with the same policy intent, replace that section with the canonical section.47- If a `Documentation Freshness` section has different or broader meaning, ask before replacing it.48- Otherwise insert the canonical section after workflow or overview material, before validation, testing, style, or contribution sections.49- Keep the canonical wording exact. Only adapt surrounding placement or heading context if required by the file.5051## Final Report5253Report only:5455- Files updated.56- Files that already had the section.57- Any symlink recommendation for duplicate sibling `AGENTS.md` and `CLAUDE.md` files.