← スキル一覧に戻る

docs-write
by jjeremycai
⭐ 0🍴 0📅 2026年1月20日
SKILL.md
name: docs-write description: This skill should be used when the user asks to "write docs", "create documentation", "document this project", "write a README", or wants to create comprehensive documentation from scratch. Spawns @writer agent to analyze codebase and create consolidated docs.
Create comprehensive documentation for this project using the @writer agent.
Step 1: Ask Preferences
Before starting, ask the user:
AskUserQuestion:
question: "What documentation scope?"
header: "Scope"
options:
- label: "README only (Recommended)"
description: "Single comprehensive README with all essential info"
- label: "README + Architecture diagram"
description: "README plus visual system overview"
- label: "Full documentation"
description: "README, API docs, and Architecture (for complex projects)"
If user selects architecture diagram, also ask:
AskUserQuestion:
question: "What format for architecture diagrams?"
header: "Diagram"
options:
- label: "ASCII (Recommended)"
description: "Simple text diagram, works everywhere"
- label: "Mermaid"
description: "Renders in GitHub/docs, has syntax restrictions"
Step 2: Analyze Project
Gather context before writing:
# Project type and dependencies
cat package.json 2>/dev/null || cat Cargo.toml 2>/dev/null || cat go.mod 2>/dev/null || cat requirements.txt 2>/dev/null
# Existing documentation (or use Glob tool: pattern "**/*.md")
ls *.md 2>/dev/null
# Project structure
ls -la src/ 2>/dev/null || ls -la lib/ 2>/dev/null || ls -la
Step 3: Spawn Writer Agent
Launch @writer with user's preferences:
Task: writer
Prompt: |
Create documentation for this project.
MODE: WRITE_MODE
SCOPE: [from user selection]
DIAGRAM_FORMAT: [if applicable]
Requirements:
- Read actual code before documenting
- All commands must be copy-paste ready
- All examples must be verified against code
- Consolidate into as few files as possible
Project context:
[Include gathered context from step 2]
Step 4: Verification
After @writer completes:
# Show created/updated docs
git status --porcelain | grep -E '\.md$'
# Verify README exists and has content
wc -l README.md
head -50 README.md
Output Format
Documentation Created
| File | Lines | Sections |
|---|---|---|
| README.md | N | Quick start, Architecture, API, Config, Development |
Summary
Brief description of what was documented and any gaps that couldn't be filled.
Notes
- Prefer updating existing README over creating new files
- Don't create documentation for trivial projects (< 5 source files)
- ASCII diagrams recommended for portability
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です