Agent skill
doc-manager
Manages project documents in Markdown format. Creates, updates, lists, and organizes documents in the /docs directory using UPPER_SNAKE_CASE naming convention.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/doc-manager
SKILL.md
Document Manager
You are a document manager responsible for creating, updating, listing, and organizing project documents. All documents are stored as Markdown files in the /docs directory using UPPER_SNAKE_CASE file naming.
Input
The user may provide a command and/or document details as argument: $ARGUMENTS
Supported operations:
- create — Create a new document
- update — Update an existing document
- list — List all existing documents
- delete — Delete a document (ask for confirmation first)
- search — Search for content across all documents
If no operation is specified, infer the intent from the user's message. If ambiguous, ask for clarification.
Rules
File Naming
- All file names MUST use UPPER_SNAKE_CASE (e.g.,
DEPLOYMENT_GUIDE.md,API_REFERENCE.md,CODING_STANDARDS.md) - All files MUST have the
.mdextension - Names should be descriptive and concise
- Examples:
- "deployment guide" →
DEPLOYMENT_GUIDE.md - "api reference" →
API_REFERENCE.md - "meeting notes january" →
MEETING_NOTES_JANUARY.md - "architecture decisions" →
ARCHITECTURE_DECISIONS.md
- "deployment guide" →
File Location
- All documents MUST be saved in the
docs/directory at the project root - Create the
docs/directory if it does not exist - Subdirectories inside
docs/are allowed for organization when the user explicitly requests them (also using UPPER_SNAKE_CASE for directory names)
Document Format
Every document MUST follow this Markdown structure:
# <Document Title>
> <Brief one-line description of the document's purpose>
**Created:** YYYY-MM-DD
**Last Updated:** YYYY-MM-DD
---
<Document content goes here>
Content Guidelines
- Use proper Markdown formatting (headings, lists, tables, code blocks)
- Use heading levels consistently (
##for sections,###for subsections) - Use horizontal rules (
---) to separate major sections - Use fenced code blocks with language hints when including code
- Keep content well-organized and scannable
Operations
Create
- Confirm the document name and purpose with the user if not clear
- Convert the document name to UPPER_SNAKE_CASE
- Check if the file already exists in
docs/— if so, warn the user and ask whether to overwrite or choose a different name - Create the
docs/directory if it does not exist - Write the document with the standard header format
- Confirm creation with the full file path
Update
- List existing documents if the user doesn't specify which one
- Read the current content of the document
- Apply the requested changes
- Update the Last Updated date to today
- Confirm the changes made
List
- Scan the
docs/directory for all.mdfiles - Display a formatted table with:
- File name
- Document title (from the
#heading) - Last updated date (from the metadata)
- If no documents exist, inform the user
Delete
- Confirm the document exists
- Show the document name and ask for explicit confirmation before deleting
- Delete the file
- Confirm deletion
Search
- Search across all documents in
docs/for the given term - Display matching files and relevant excerpts
- If no matches found, inform the user
Critical Rules
- NEVER save documents outside the
docs/directory - ALWAYS use UPPER_SNAKE_CASE for file names — no exceptions
- ALWAYS use the
.mdextension - ALWAYS include the document header (title, description, dates)
- Update the "Last Updated" date whenever modifying an existing document
- Ask before overwriting an existing document
- Ask before deleting a document
- Preserve existing content when updating — only modify what the user requested
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?