본문으로 건너뛰기
cccskills
무료GitHub에 공개

documentation

Writing quality guidelines, formatting conventions, and styling constraints for documentation. Trigger when: - Writing, editing, or auditing documentation files, READMEs, markdown files, or guides. - Modifying files with suffixes like: *.md, *.qmd, *.txt, *.rst. - Prompt contains keywords: doc, documentation, spelling, grammar, headers, links, table alignment, Divio, tone, voice, clarity.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md7.7 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Documentation

This skill governs how you write. Section 1 applies to all text you produce — code comments, chat responses, documentation. (Commit messages are governed by commit-hygiene, which owns that jurisdiction in the §5 routing table.) Section 2 applies when you are producing or editing a standalone document (README, guide, reference page, explanation, specification).


Section 1: Core Writing Principles

These rules are always active. They are non-negotiable.

1. Answer First

Lead with the conclusion, not the context. The reader's question should be answered in the first sentence or heading — background, caveats, and methodology come after. If someone stops reading after one paragraph, they should still have the answer.

2. Active Voice

Default to active voice. Use passive only when the actor is genuinely irrelevant or unknown. "The function returns an error" — not "An error is returned by the function."

3. Sentence Economy

One idea per sentence. Delete words that don't earn their place. If a sentence works without a word, remove that word. Prefer concrete language over abstract hedging.

4. Terminology Lock

Once you name a concept, use that name everywhere. Do not swap synonyms for variety — consistency beats prose elegance. If the codebase calls it a "store," never call it a "repository" or "database" in documentation. Terminological inconsistency is a documentation bug.

5. Scannable Structure

Readers scan before they read. Support this:

  • Use meaningful headings (not "Overview" or "Introduction" — say what the section contains)
  • Use bullet points for lists of 3+
  • Bold key terms on first use
  • Front-load important words in headings and list items

6. No Filler

Do not pad text with words that add no information.

[!CAUTION] Anti-Patterns (FORBIDDEN):

  • ❌ Preamble walls: "In this section, we will discuss the various aspects of..."
  • ❌ Restating the question: "You asked about X. X is an important topic. Let me explain X."
  • ❌ Hedge-word padding: "It's worth noting that perhaps it might be considered..."
  • ❌ Empty transitions: "Now let's move on to the next topic."
  • ❌ Compliment-before-content: "Great question! That's a really interesting point."
  • ❌ Metatext about your own process: "I'll analyze this step by step."

✅ Correct behavior: Start with the substance. If a paragraph's first sentence could be deleted without losing information, delete it.


Section 2: Documentation Production

Activation scope: Apply this section when producing or editing a standalone document — any file whose primary purpose is to communicate information to a reader (README, guide, reference, spec, tutorial, explanation). Code comments are governed by Section 1. Commit messages defer to commit-hygiene.

7. Document Classification (Divio Model)

Before drafting, identify which type of document you are writing. Each type has a distinct purpose, tone, and structure — mixing them produces documents that serve no audience well.

TypePurposeToneStructure
TutorialLearning by doingGuiding, encouragingStep-by-step, linear, no forks
How-ToSolve a problemPractical, directNumbered steps to a result
ReferenceDescribe the machineAustere, preciseTables, lists, type signatures
ExplanationBuild understandingDiscursive, honestProse, diagrams, "why" chains

A document should be one type. If you need to explain and provide reference, write two documents (or two clearly separated sections). A tutorial that drifts into reference material fails at both.

8. Audience Declaration

State who the reader is, either explicitly ("This guide is for developers integrating the X API") or implicitly through level of assumed knowledge. Do not write for everyone — writing for everyone serves no one. Key dimensions:

  • Domain familiarity — do they know the problem space?
  • Tool familiarity — have they used this software before?
  • Goal — learning, reference-checking, or troubleshooting?

9. Self-Consistency

A document must not contradict itself. Before finalizing:

  • Verify terminology is consistent throughout (see Terminology Lock, §4)
  • Check that claims in the introduction match the body
  • Confirm cross-references point to content that exists and says what you claim it says

10. Scope Economy

Write the minimum documentation that eliminates the maximum confusion. Every sentence must address the reader's information need, not the general topic. Ask: "If I remove this paragraph, does the reader lose something they need?" If not, remove it.

[!IMPORTANT] Over-documentation is itself a maintenance burden. Stale, verbose docs are worse than concise, current ones. Prefer a short document you will maintain over a comprehensive one you won't.

11. Progressive Disclosure

Present the simple, common path first. Link to edge cases, advanced configuration, and error recovery rather than interleaving them with the main flow. The reader who needs exceptions will follow the link; the reader who doesn't will thank you for not burying them.

12. Documentation Debt

Documentation debt is a first-class concept, parallel to technical debt:

  • Missing docs — a feature exists but has no documentation
  • Stale docs — documentation describes a previous version of the code
  • Misleading docs — documentation is factually wrong or implies incorrect usage
  • Orphaned docs — documentation references concepts, files, or APIs that no longer exist

When you encounter documentation debt, flag it explicitly. Do not silently work around it.

13. Markdown Audit: Links, Headers, and Linting

When editing or auditing markdown files, enforce the following structural rules. They keep documents portable across host environments and consistent in formatting.

Link integrity and portability — all markdown file cross-references must resolve from any host environment or mounting context:

  • Use standard Markdown link format: All links must follow [text](url).
  • Use relative paths: Link between files using relative markdown paths (e.g. [constitution](../constitution/SKILL.md)).
  • Forbid machine-specific absolute paths: Never use absolute file URIs (e.g., file:///var/home/... or file:///absolute/path/...) in any documentation, comments, or plans. They are host-specific and fail to resolve when skills or projects are copied, symlinked, or cloned.
  • Verify: Proactively audit link targets to confirm that the relative references resolve correctly from the directory of the file containing the link.

Header hierarchy — use a single <h1> (one #) per page, then nest header levels sequentially (##, ###, ...) without skipping a level.

Linting standards:

  • Align table columns.
  • Use a consistent list symbol (-).
  • Leave no trailing spaces.

To check link integrity automatically, run the script at doc-audit/scripts/check_docs.py: it scans markdown files for broken local and external links.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

ai-audit

무료

SOP for auditing AI-generated code. Trigger when: - Reviewing, refactoring, or cleaning up AI-generated code to prevent regressions or hallucinated APIs. - Prompt contains: /ai-audit, code audit, AI cleanup, common flaws.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

nrdxp/predicate102026년 9월 1일 업데이트

api-audit

무료

Protocol for auditing API surface coherence and type safety. Trigger when: - Evaluating API designs, interface type safety, or design elegance. - Prompt contains: /api-audit, API surface, API coherence, type safety.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

nrdxp/predicate102026년 9월 1일 업데이트

boundary

무료

Normative sufficiency conditions for Initial Boundary Conditions (IBCs) and the SOP for the cheap-tier boundary refinement loop (/boundary). Trigger when: - Crafting, auditing, or refining a prompt/IBC destined for an expensive (architect-class) model or an autonomous worker dispatch. - Evaluating whether a task frame is sufficient to bound an agent walk. - Prompt contains: /boundary, IBC, initial boundary condition, boundary contract, sufficiency conditions, worker prompt, prompt refinement.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

nrdxp/predicate102026년 9월 1일 업데이트

campaign

무료

SOP for the architect-tier campaign workflow (/campaign): exhaustive survey, mitigation planning, tiered orchestration, and reconciliation. Trigger when: - Running a multi-workstream initiative where an expensive architect-tier council surveys, plans, emits worker prompts, and judges landed work. - Conducting production-readiness assessments that fan out into autonomous mitigation dispatches across model tiers. - Prompt contains: /campaign, campaign workflow, survey, orchestrate, reconcile, premise freshness, tier routing, worker IBC, scratch.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

nrdxp/predicate102026년 9월 1일 업데이트

chronicle

무료

Maintain and update the persistent project chronicle (docs/chronicle.md). Trigger when: - The human requests a history summary or chronicle update. - Starting work on a new codebase and needing context on its evolution. - Prompt contains keywords: /chronicle, chronicle, project history, git log summary, history summary.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

nrdxp/predicate102026년 9월 1일 업데이트

Rules, conventions, and constraints for formatting git commit messages and committing at logical boundaries. Trigger when: - Drafting, revising, or validating git commit messages. - Pausing at commit boundaries under the CORE or CONTINUE workflows. - Evaluating whether a changeset should be split into multiple commits. - Prompt contains keywords: commit message, git commit, conventional commits, commit hygiene, commit guidelines, logical boundary, spaghetti diff, atomic commit, commit boundary.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

nrdxp/predicate102026년 9월 1일 업데이트

nrdxp의 스킬 모두 보기

이 스킬의 문제 신고