Back to list
ChanningHe

documentation

by ChanningHe

0🍴 0📅 Jan 25, 2026

SKILL.md


name: documentation description: Documentation standards. Apply when completing full feature development, introducing new architecture patterns, or adding new public APIs.

Documentation Standards

Core Principle

"Code tells you how; Comments tell you why; Docs tell you how to use." Documentation is not a dev diary; it's a user manual for future maintainers.

Trigger Conditions

  • ✅ Must create: Completed a full Feature module, introduced new architecture pattern, or added new public API
  • ❌ Forbidden: Just fixed a bug, refactored internal private method, or adjusted styles. Don't pollute /docs/ with fragmented docs

File Path & Naming

  • Path: /docs/specs/
  • Naming: {feature-name}.md (use kebab-case, e.g., user-authentication.md)

Documentation Structure Template

Documentation must be concise and powerful, strictly following:

1. Core Concept

  • One sentence explaining what this module does
  • Linus perspective: What's its core data structure?

2. Data Flow (optional)

  • Use Mermaid flowchart or text to describe data flow path
  • What's the input? What's the output? Who holds state?

3. Usage Guide

  • Show, don't tell. Less talk, more code
  • Provide 1-2 Minimal Working Examples
// ✅ Correct usage example
const user = await authService.login(credentials);

4. Edge Cases

  • When will this module crash?
  • What are known limitations? (e.g., concurrency cap, unsupported file types)

5. Maintainer Notes

  • If you're the architect, what do you want the successor to know?
  • Any non-intuitive design decision rationales

Example

File: /docs/specs/payment-flow.md

Content:

Payment Flow Module

Handles Stripe payment intent creation and callback verification. Core based on PaymentIntent state machine.

Usage

...

Edge Cases

  • ⚠️ Doesn't support transactions below 0.50 USD
  • Webhooks may be resent, must ensure idempotent handling

Score

Total Score

50/100

Based on repository quality metrics

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

Reviews

💬

Reviews coming soon