docs
Skill1 starsChanged 3 months agoMITView on GitHub
Phase 4 - Generate admin-facing documentation for implemented features before merging.
- Reads credentials
165 other projects use a version of this.
Adopted by
Most recently taken up by
- Adelie-Squad/solosquadtheir own version, first seen Nov 8, 2026
- hhtower/price-comparisontheir own version, first seen Nov 8, 2026
- vladtrc/iw4Ltheir own version, first seen Nov 8, 2026
- igorkasyanchuk/diffnotestheir own version, first seen Nov 8, 2026
- tiankonglan/TomeWikitheir own version, first seen Nov 8, 2026
- Canonry/aeo-audittheir own version, first seen Nov 8, 2026
Used with
Projects with it also use import-memory, perf and 9 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
amirbironSkillimport-memory
Import a memory export from another AI assistant into Claude's memory — conversationally, additively, and with the content treated as data.
Also in 3 projects that use this
MicrosoftSkillperf
Speed and memory performance rules for Rust crates, the Node addon, webui-framework, and webui-delivery.
Also in 4 projects that use this
diego-tobalinaSkillbuild-fix
Fix build and compilation errors systematically. Run when build fails.
Also in 3 projects that use this
JkudjoSkillincident
Production incident response — structured triage, hypothesis tree, safe remediation, incident record
Also in 4 projects that use this
vbrevikSkillwork
Use when the user says 'plan', 'todo', 'copy plan', 'append plan', 'resume plan', 'priorities', or 'what's next'.
Also in 7 projects that use this
mbwsimsSkillimpact
This skill should be used when the user asks to "check the impact", "what will break if I change this", "blast radius", "impact analysis", "what depends on this", "who imports this", "is it safe to change this", mentions "/impact", or wants to understand the consequences of modifying a specific file or function before making changes.
Also in 3 projects that use this
Other versions165 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 165
- remotion-dev/remotion★ 72ksame name
- PrefectHQ/fastmcp★ 28ksame name
- jlowin/fastmcp★ 28ksame name
- ccusage/ccusage★ 19ksame name
- ryoppippi/ccusage★ 19ksame name
- micronaut-projects/micronaut-core★ 6.4ksame name
- latitude-dev/latitude-llm★ 4.7ksame name
- samuelgursky/davinci-resolve-mcp★ 4ksame name
- TanStack/ai★ 3.3ksame name
- patrykandpatrick/vico★ 3.2ksame name
155 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. 0 are common, 7 are distinctive, and 8 are very specific to this project.
0
Common
Most of the 129 edited versions we read keep these.
7
Distinctive
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 30
When invoked as /docs, your job is to:
- Very specific: line 34
Create documentation in the appropriate folder (docs/admin/ or docs/features/).
- Very specific: line 42
Treat 123 as the GitHub issue number.
- Distinctive: line 48
Step 1: Read the GitHub issue and comments for feature context:
- Distinctive: line 53
Step 2: Check for existing PR:
- Very specific: line 87
When only documentation files (.md, .mdx, or files in docs/) were modified, skip template generation and post a confirmation comment …
- Very specific: line 91
All changed files match: *.md, *.mdx, or docs/*
- Distinctive: line 116
Skip to end of workflow: - do not proceed to Section 2 (Auto-Detect Documentation Type) or beyond.
- Distinctive: line 166
Use this template for admin pages and UI features:
- Distinctive: line 221
Use this template for CLI commands, MCP tools, scripts, and developer-facing features.
- Distinctive: line 305
Use lowercase with hyphens
- Very specific: line 320
Write to docs/admin/[feature-name].md or docs/features/[feature-name].md
- Very specific: line 321
Ensure directory exists (create with .gitkeep if needed)
- Very specific: line 373
Run /docs <issue> to generate feature documentation
- Distinctive: line 375
Add screenshots if helpful
“Common” is measured: kept by at least 6 in 10 of the 129 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
<!-- sequant:local-override -->Local overrides (read this first). Before following any instruction below, check whether
.claude/.local/skills/docs/overrides.mdexists. If it does, read it and treat its contents as authoritative: its instructions take precedence over anything in this skill they conflict with. This is the supported way to tailor/docswithout forking it —overrides.mdlives under.claude/.local/, whichsequant updateandsyncnever overwrite.
Documentation Generator
You are the Phase 4 "Documentation Agent" for the current repository.
Purpose
When invoked as /docs, your job is to:
- Analyze the implemented feature (from PR diff or git diff).
- Generate operational documentation (how to use, not how it works).
- Create documentation in the appropriate folder (
docs/admin/ordocs/features/). - Post a summary comment to the GitHub issue.
Behavior
Invocation:
/docs 123:- Treat
123as the GitHub issue number. - Analyze the implementation to understand what was built.
- Generate admin-facing or user-facing documentation.
- Treat
1. Gather Context
Step 1: Read the GitHub issue and comments for feature context:
gh issue view <issue-number> --json title,body,labels Step 2: Check for existing PR:
gh pr list --search "head:feature/<issue-number>" --json number,headRefName Step 3: Analyze the implementation diff:
# If PR exists:
gh pr diff <pr-number>
# If no PR, use git diff from feature branch:
git diff origin/main...HEAD --name-only
git diff origin/main...HEADStep 4: Detect documentation-only changes:
# Count non-documentation files changed
non_doc_files=$(git diff origin/main...HEAD --name-only | grep -vE '\.(md|mdx)$|^docs/' | wc -l | xargs || true)Decision Logic:
IF non_doc_files == 0 THEN
# Documentation-only issue detected
# Skip template generation, post confirmation comment instead
# See Section 2a: Documentation-Only Early Exit
ELSE
# Continue with normal documentation generation
END IF2a. Documentation-Only Early Exit
When only documentation files (.md, .mdx, or files in docs/) were modified, skip template generation and post a confirmation comment instead.
Detection criteria - ALL of these must be true:
git diff origin/main...HEAD --name-onlyreturns files- All changed files match:
*.md,*.mdx, ordocs/*
Early exit action:
- Post confirmation comment to GitHub issue:
gh issue comment <issue-number> --body "$(cat <<'EOF' ## Documentation Review Complete This issue contains **documentation-only changes**. No additional documentation generation required. ### Files Modified: [List of changed .md/.mdx/docs/ files] ### Status: ✅ Documentation changes are ready for review and merge. --- Ready to merge! EOF )" - Exit without generating template documentation.
Skip to end of workflow - do not proceed to Section 2 (Auto-Detect Documentation Type) or beyond.
2. Auto-Detect Documentation Type
Determine documentation type based on changed files:
Admin Documentation (docs/admin/):
- Files in
app/admin/ - Files in
components/admin/ - Files in
lib/admin/ - Admin-related API routes
Developer Tool Documentation (docs/features/):
- Files in
src/commands/,bin/,src/mcp/ - CLI commands, MCP tools, scripts
- Configuration options, SDK integrations
Infra / Scaffold Documentation (docs/features/):
- Root config files (
package.json,*.config.{ts,js,mjs,cts,cjs,mts}) - TypeScript / JavaScript project config (
tsconfig.json,jsconfig.json) - Environment templates (
.env.example) - Next.js layout/page files (
src/app/**/layout.tsx,src/app/**/page.tsx) - Middleware (
src/middleware.ts) - Framework config (
payload.config.*,drizzle.config.*,next.config.*,vite.config.*,vitest.config.*)
Everything else (user-facing pages, non-admin components, public-facing features) falls through to the default developer-tool template.
Decision Logic:
IF any file path contains "/admin/" THEN
type = "admin"
output_dir = "docs/admin/"
template = "admin" (Section 3a)
ELSE IF any file path matches "src/commands/|bin/|src/mcp/|scripts/" THEN
type = "developer-tool"
output_dir = "docs/features/"
template = "developer-tool" (Section 3b)
ELSE IF any file path matches "package\.json$|.*\.config\.(ts|js|mjs|cts|cjs|mts)$|(ts|js)config\.json$|\.env\.example$|^src/app/.*(layout|page)\.tsx$|^src/middleware\.ts$|^(payload|drizzle|next|vite|vitest)\.config\." THEN
type = "developer-tool"
output_dir = "docs/features/"
template = "developer-tool" (Section 3b)
ELSE
type = "developer-tool"
output_dir = "docs/features/"
template = "developer-tool" (Section 3b)
END IF3a. Admin/UI Documentation Template
Use this template for admin pages and UI features:
# [Feature Name]
**Quick Start:** [1-2 sentence summary of what this feature does and why to use it]
## Access
- **URL:** `/admin/[route]` or `/[route]`
- **Menu:** Admin → [Section] → [Feature]
- **Permissions:** [Required role or access level]
## Usage
### [Primary Action]
1. Navigate to [location]
2. [Step 2...]
3. [Step 3...]
### [Secondary Action] (if applicable)
1. [Steps...]
## Options & Settings
| Option | Description | Default |
|--------|-------------|---------|
| [Option 1] | [What it does] | [Default value] |
| [Option 2] | [What it does] | [Default value] |
## Common Workflows
### [Workflow 1: e.g., "Review and Approve Items"]
1. [Step 1]
2. [Step 2]
3. [Step 3]
## Troubleshooting
### [Common Issue 1]
**Symptoms:** [What the user sees]
**Solution:** [How to fix it]
---
*Generated for Issue #[number] on [date]*3b. Developer Tool Documentation Template
Use this template for CLI commands, MCP tools, scripts, and developer-facing features. Structure around the user's journey, not the API surface.
# [Feature Name]
[1-2 sentence summary: what it does and why you'd use it.]
## Prerequisites
[Everything needed before this works. Be exhaustive — list tools, auth, config. Include verification commands.]
1. **[Requirement 1]** — `verification command`
2. **[Requirement 2]** — `verification command`
## Setup
[Step-by-step to go from zero to working. If setup differs per environment/client/platform, show each separately with clear labels.]
## What You Can Do
[Real examples of usage in natural language or command form. Show the most common actions first.]
## What to Expect
[Set expectations: how long things take, what output looks like, where results go. Address "it looks like nothing is happening" if applicable.]
## [Command/Tool] Reference
[Parameter tables, flags, options. Put this AFTER the narrative sections — users need context before reference.]
| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
## Troubleshooting
[Real failure scenarios users will hit. Lead with what they see, then the fix.]
### [Problem user sees]
[Cause and solution]
---
*Generated for Issue #[number] on [date]*Key differences from admin template:
- No "Access / URL / Menu / Permissions" section (not applicable to CLI tools)
- Prerequisites section is mandatory (CLI tools have more dependencies)
- "What to Expect" section addresses timing, output location, async behavior
- Setup may vary per environment — show each variant
- Reference tables come after narrative, not before
4. Content Guidelines
For admin/UI features — focus on operational usage:
- "Click the 'Approve' button to publish the item"
- NOT: "The
approveItemfunction updates the database" - "Wait for the green success message"
- NOT: "The API returns a 200 status code"
For developer tools — focus on the user's journey:
- "Run
sequant serveto start the MCP server" - NOT: "The
serveCommandfunction creates an MCP server instance" - "This takes 10–20 minutes. Your editor will appear idle — that's normal."
- NOT: "The tool uses
spawnSyncwith a 30-minute timeout"
Be specific and actionable:
- "Navigate to Admin → Items → Review Queue"
- NOT: "Go to the review page"
Document common workflows end-to-end:
- "To approve an item: 1. Open Review Queue, 2. Click item name, 3. Review details, 4. Click Approve"
- NOT: "Use the approve button"
5. File Naming Convention
Generate filename from feature name:
- Use lowercase with hyphens
- Be descriptive but concise
- Match the primary feature purpose
Examples:
review-queue.md- For review admin pagebulk-edit-operations.md- For bulk editing featuresettings-configuration.md- For settings adminfeature-gallery.md- For gallery feature
6. Output and Summary
After generating documentation:
- Create the documentation file:
- Write to
docs/admin/[feature-name].mdordocs/features/[feature-name].md - Ensure directory exists (create with
.gitkeepif needed)
- Write to
- Post summary comment to GitHub issue:
gh issue comment <issue-number> --body "$(cat <<'EOF' ## Documentation Generated **File:** `docs/[admin|features]/[filename].md` ### Sections Included: - Quick Start - Access (URL, menu, permissions) - Usage (step-by-step workflows) - Options & Settings - Common Workflows - Troubleshooting ### Next Steps: 1. Review generated documentation for accuracy 2. Add screenshots if helpful (optional) 3. Merge PR to deploy documentation --- Ready to merge! EOF )"
7. Quality Checklist
Before completing, verify:
- Documentation is operational (how to use, not how it works)
- All user-facing actions are documented
- Steps are numbered and specific
- Options/settings are in table format
- At least 1-2 troubleshooting items included
- Filename follows naming convention
- Correct folder (
docs/admin/vsdocs/features/) - Summary comment posted to issue
Note: For documentation-only issues (detected in Step 4), skip this checklist and use the simplified confirmation comment from Section 2a instead.
Workflow Integration
The /docs command is the final step before merging:
/spec → /exec → /test (optional) → /qa → /docsAfter /qa passes:
- Run
/docs <issue>to generate feature documentation - Review generated docs for accuracy
- Add screenshots if helpful
- Merge PR
Example Output
For Issue #180 (City Configuration UI):
File: docs/admin/city-configuration.md
# City Configuration
**Quick Start:** Add and manage cities through the Admin CMS. Use this to expand coverage to new cities or update existing city settings.
## Access
- **URL:** `/admin/cities`
- **Menu:** Admin → Cities
- **Permissions:** Admin access required
## Usage
### Adding a New Item
1. Navigate to Admin → Items
2. Click the "Add Item" button (top right)
3. Complete the form:
- **Basic Info:** Enter name, description, and select status
- **Settings:** Configure item-specific options
- **Review:** Confirm all settings
4. Click "Create" to save
### Editing an Existing Item
1. Navigate to Admin → Items
2. Click on the item to open details
3. Click "Edit" in the details panel
4. Update settings as needed
5. Click "Save Changes"
## Options & Settings
| Option | Description | Default |
|--------|-------------|---------|
| Status | Item visibility (active, draft, archived) | draft |
| Category | Item categorization | None |
| Priority | Display order priority | Normal |
## Common Workflows
### Publish an Item
1. Add item via form (status: draft)
2. Review and approve in Review Queue
3. Change status to "active"
4. Item appears on public pages
## Troubleshooting
### Item doesn't appear on page
**Symptoms:** Item was added but doesn't show
**Solution:** Check item status is set to "active" in Admin → Items → [Item] → Settings
---
*Generated for Issue #180 on 2025-11-25*Output Verification
Before responding, verify your output includes ALL of these:
- Documentation File - Created in correct directory (docs/admin/ or docs/features/)
- Quick Start Section - 1-2 sentence summary
- Access Section - URL, menu path, permissions
- Usage Section - Step-by-step workflows
- Options Table - Settings with descriptions and defaults
- Troubleshooting - At least 1-2 common issues
- GitHub Comment - Summary posted to issue
DO NOT respond until all items are verified.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

