acc-documentation-knowledge
1
总安装量
1
周安装量
#43128
全站排名
安装命令
npx skills add https://github.com/dykyi-roman/awesome-claude-code --skill acc-documentation-knowledge
Agent 安装分布
opencode
1
claude-code
1
Skill 文档
Documentation Knowledge Base
Quick reference for technical documentation types, audiences, and best practices.
Documentation Types
By Purpose
| Type | Audience | Goal | Examples |
|---|---|---|---|
| README | New users | Quick start | badges, install, basic usage |
| Architecture | Developers | System understanding | layers, components, decisions |
| API | Integrators | Integration | endpoints, params, responses |
| ADR | Team | Decision history | context, decision, consequences |
| Getting Started | Beginners | First success | step-by-step tutorial |
| Reference | All | Quick lookup | methods, options, configs |
| Troubleshooting | Users | Problem solving | FAQ, error messages, solutions |
| CHANGELOG | All | Version history | features, fixes, breaking |
Documentation Pyramid
/\
/ \
/ ADR \ â Why (decisions)
/________\
/ Arch \ â How (structure)
/______________\
/ API Ref \ â What (details)
/____________________\
/ README \â Quick start
Audience Analysis
Developer Personas
| Persona | Needs | Tone |
|---|---|---|
| Evaluator | Quick value assessment | Benefits, features |
| Beginner | Step-by-step guidance | Simple, encouraging |
| Intermediate | Best practices, patterns | Technical, practical |
| Expert | Advanced configs, internals | Concise, complete |
| Contributor | Setup, conventions | Technical, detailed |
Content Mapping
Evaluator â README (badges, features, comparison)
Beginner â Getting Started, Examples
Intermediate â API Reference, Guides
Expert â Architecture, Internals
Contributor â CONTRIBUTING, ADRs
Structure Principles
README Structure (Recommended)
# Project Name
Brief description (1-2 sentences)
## Badges
[Build][Coverage][Version][License]
## Features
- Feature 1
- Feature 2
## Installation
```bash
composer require ...
Quick Start
// minimal working example
Documentation
Links to detailed docs
Contributing
Link to CONTRIBUTING.md
License
MIT / Apache / etc.
### Architecture Doc Structure
```markdown
# Architecture
## Overview
High-level description
## System Context
C4 Context diagram
## Components
C4 Component diagram
## Data Flow
Sequence diagrams
## Technology Stack
| Layer | Technology |
|-------|------------|
## Decisions
Link to ADRs
## Deployment
Infrastructure diagram
Best Practices
Writing Principles
| Principle | Description | Example |
|---|---|---|
| Scannable | Headers, bullets, tables | Use ## for sections |
| Task-oriented | Focus on goals, not features | “How to X” not “X feature” |
| Example-driven | Code before explanation | php example then text |
| Layered | Quick start â details | README â Guide â Reference |
| Up-to-date | Doc near code | Update together |
Code Examples Principles
â
Good:
- Minimal complete example
- Copy-paste ready
- Shows expected output
- Uses realistic data
â Bad:
- Snippets that don't run
- Foo/Bar/Baz naming
- Missing imports
- Outdated syntax
Example Quality Checklist
// â
Good example
use App\Service\PaymentService;
$payment = new PaymentService($gateway);
$result = $payment->charge(
amount: 99.99,
currency: 'USD',
customerId: 'cus_123'
);
echo $result->transactionId; // "txn_abc123"
// â Bad example
$foo = new Foo();
$bar = $foo->doSomething($baz);
// returns something
Common Antipatterns
Documentation Smell Checklist
| Smell | Detection | Fix |
|---|---|---|
| Stale | Code changed, docs not | Review on PR |
| Wall of text | No headers, no examples | Structure + code |
| Jargon soup | Undefined terms | Glossary, links |
| Dead links | 404 errors | Link checker CI |
| No examples | Pure prose | Add code blocks |
| Copy-paste broken | Missing imports | Run examples |
| Version mismatch | Wrong versions | Automate sync |
README Antipatterns
â No installation instructions
â No usage examples
â Badges only (no content)
â Generated API docs only
â Outdated screenshots
â Broken links
â No clear project description
Architecture Doc Antipatterns
â Box-and-arrow without explanation
â Outdated diagrams
â Missing "why" context
â No technology justification
â Inconsistent terminology
â Too much detail (implementation in arch doc)
Documentation as Code
Principles
- Version control â docs in git with code
- Review â PRs include doc updates
- Test â validate links, examples
- Automate â generate where possible
- CI/CD â build and deploy docs
File Organization
project/
âââ README.md # Quick start
âââ docs/
â âââ architecture/
â â âââ README.md
â â âââ diagrams/
â â âââ decisions/ (ADRs)
â âââ api/
â â âââ README.md
â âââ guides/
â â âââ getting-started.md
â â âââ deployment.md
â âââ reference/
â âââ configuration.md
âââ CHANGELOG.md
âââ CONTRIBUTING.md
âââ LICENSE
Markdown Best Practices
Formatting Guidelines
| Element | Usage |
|---|---|
# H1 |
Document title only |
## H2 |
Main sections |
### H3 |
Subsections |
- |
Unordered lists |
1. |
Ordered steps |
> |
Warnings, notes |
\“` |
Code blocks |
| |
Data tables |
Code Block Languages
```php # PHP code
```bash # Shell commands
```yaml # Configuration
```json # API responses
```mermaid # Diagrams
```sql # Database
References
For detailed information, load these reference files:
references/readme-patterns.mdâ README structure and examplesreferences/api-documentation.mdâ API documentation guidelinesreferences/architecture-docs.mdâ Architecture documentation patternsreferences/adr-format.mdâ ADR structure and examplesreferences/diagramming.mdâ Diagram types and tools