基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/mikailustuner/OmniRule --skill documentation-patterns命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
Bun runtime: HTTP server, file I/O, SQLite, test runner, package manager, bundler — all-in-one JS toolchain.
Clerk: Drop-in auth UI, Organizations, User management, JWT templates, webhooks, Next.js middleware integration.
Gelişmiş masaüstü, tarayıcı ve işletim sistemi kontrol yeteneği. Görsel (koordinat tabanlı) fare/klavye otomasyonu, DOM manipülasyonu, pencere yönetimi, gelişmiş dosya, ağ ve süreç yönetimini kapsar.
| name | documentation-patterns |
| description | Documentation Patterns: What to document, README structure, API docs, keeping docs fresh. |
| triggers | {"extensions":[".md"],"keywords":["docs","README","documentation","JSDoc","comment","changelog","ADR"]} |
| auto_load_when | Writing or reviewing documentation |
| agent | docs-agent |
| tools | ["Read","Write","Bash"] |
Focus: Essential docs, maintainability, discoverability
Must have:
├── Getting started guide
├── Architecture overview
├── API reference (if applicable)
├── Deployment steps
└── Troubleshooting
Should have:
├── Coding standards
├── Environment setup
├── Runbook for ops
└── Security considerations
Avoid:
├── Outdated docs
├── Obvious code comments
├── Duplicate information
└── Internal team quirks
Standard README:
├── One-liner description
├── Quick start (3-5 steps)
├── Features overview
├── Prerequisites
├── Installation
├── Configuration
├── Usage examples
├── Testing
├── Deployment
├── Contributing
├── License
Keep under 100 lines, link details
Include:
├── Endpoint list (method, path)
├── Request format
├── Response format
├── Error codes
├── Authentication
├── Example requests/responses
Tools: OpenAPI/Swagger, Postman
Architecture decision:
├── System diagram
├── Component descriptions
├── Data flow
├── Technology choices
├── Rationale for decisions
Template: ADRs (Architecture Decision Records)
Write docs when:
├── New project starts
├── Onboarding new member
├── Complex logic added
├── New developer joins
└── Before you forget
Update docs when:
├── Requirements change
├── Breaking changes
└── Bugs found (add to troubleshooting)
Keep docs fresh:
├── Treat docs like code (review)
├── Link from code where possible
├── Docs in same repo
├── Automate where possible
└── Remove stale content
If docs rot, remove them
What to document:
├── If question asked twice → doc it
├── If setup takes > 5 steps → doc it
├── If error is non-obvious → doc it
└── If it's a rule → doc it
What not to document:
├── Obvious code behavior
├── Code comments are enough
├── Outdated content
└── Duplicate sources
(End of file - 73 lines)
❌ Docs that describe WHAT the code does (code already shows that)
✅ Docs explain WHY decisions were made and non-obvious constraints
❌ Markdown docs that drift from the actual code
✅ Generate API docs from code (JSDoc, OpenAPI) — single source of truth
❌ README with installation but no usage examples
✅ README: install → quick start → common tasks → link to full docs
❌ Architecture diagrams stored as binary in git
✅ Diagrams as code (Mermaid, PlantUML) — diffable, versionable
❌ "Update docs later" — never happens
✅ Docs update in the same PR as the code change
| Doc type | Format | Tool |
|---|---|---|
| API reference | OpenAPI 3.1 | swagger-ui / redoc |
| Architecture | Mermaid diagram in MD | In-repo |
| Runbook | Numbered steps + checks | Confluence / Notion |
| ADR | Markdown with status | docs/decisions/ |
| README | Install → usage → contribute | Repo root |
| Inline | JSDoc with @param @returns | TypeDoc |