AgentSkillsCN

readme-maintenance

确保README.md与docs/内容与当前仓库行为、开发者工作流程以及部署路径保持一致。当用户请求审阅、更新或修正项目文档时,尤其是当命令、工具、端点、环境变量或架构发生变更后,可优先使用此技能。

SKILL.md
--- frontmatter
name: readme-maintenance
description: Keep README.md and docs/ content aligned with current repository behavior, developer workflows, and deployment paths. Use when users ask to review, refresh, or correct project documentation, especially after command, tooling, endpoint, environment-variable, or architecture changes.

README Maintenance Workflow

  1. Inspect current sources of truth before editing README content:
  • Makefile
  • api/package.json
  • web/package.json
  • docker-compose.yml
  • API routes/controllers for documented endpoints
  1. Detect and fix documentation drift:
  • Keep README.md concise and navigation-focused
  • Move feature-specific and API-specific details to docs/*.md
  • Add and maintain cross-links between docs files
  • Add missing setup and run paths (Docker and local)
  • Align command examples with current make targets
  • Align quality checks with current lint, typecheck, and test commands
  • Confirm endpoint paths and service URLs
  • Confirm environment variables and defaults
  1. Preserve readability:
  • Keep README concise and task-oriented
  • Prefer short sections with copy-pasteable commands
  • Avoid repeating details that are already obvious from code
  1. Validate after edits:
  • Re-read README.md and verify every command/path exists
  • Re-read docs/*.md and verify links and references are coherent
  • If README includes command workflows, run representative checks when practical
  • Summarize exactly what was changed and why

Output Expectations

  • Keep language concrete and current-state focused.
  • Include both local and Docker instructions when both are supported.
  • Document primary quality gates: lint, typecheck, and tests.
  • Prefer splitting dense documentation into linked files under docs/.