Agent skill
update-doc
Update an existing doc file in .chalk/docs/ when the user asks to update, edit, or revise documentation
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/update-doc-generaljerel-chalk-skills
SKILL.md
Update an existing documentation file in .chalk/docs/.
Workflow
- Find the doc — Search
.chalk/docs/for the file matching$ARGUMENTS. Match by filename, path, or content. If ambiguous, list candidates and ask the user to clarify. - Read current content — Load the file to understand what exists.
- Apply changes — Update the content per the user's request. Preserve existing structure and sections where possible. Don't remove content unless explicitly asked.
- Update the "Last updated" line — Set to today's date with a brief change note describing what changed.
- Write the file — Save back to the same path.
- Confirm — Tell the user what was changed and the file path.
Rules
- Preserve structure — Keep existing
#and##headings intact unless the user asks to reorganize. - Update, don't rewrite — Modify the specific sections relevant to the change. Don't rewrite unrelated content.
- Last updated is required — Always update the date line. Format:
Last updated: YYYY-MM-DD (<brief change note>). - No frontmatter — Docs are plain markdown. Don't add YAML frontmatter.
- Respect the vertical's tone — Product docs are business-facing, AI docs are agent-facing reference-style, Engineering docs are technical and comprehensive.
Finding Docs
Search strategies in order of preference:
- Exact path — If the user provides a path like "ai/0_AI_PROFILE.md", use it directly.
- Filename match — Glob for
**/[slug]*.mdin.chalk/docs/. - Content search — Grep for keywords in
.chalk/docs/**/*.md. - Vertical + topic — If the user says "the engineering architecture doc", search
engineering/for architecture-related filenames.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?