Przejdź do treści
Biblioteka skilli
Dokumenty i biuro · Planowanie

doc

/doc

Opisuje procedurę SOP dla cyklu życia dokumentacji: audyt, plan, szkic, przegląd i weryfikacja przy projektowaniu, pisaniu i audycie dużych struktur dokumentacji oraz długu dokumentacyjnego.

Repozytorium
predicate ↗
Licencja
MIT
Ostatnia zmiana repozytorium
31.08.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 31.08.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Opisuje procedurę SOP dla cyklu życia dokumentacji: audyt, plan, szkic, przegląd i weryfikacja przy projektowaniu, pisaniu i audycie dużych struktur dokumentacji oraz długu dokumentacyjnego.

Oryginalny opis (EN)

SOP for structured documentation lifecycle. Trigger when: - Designing, writing, reviewing, or auditing large-scale documentation structures. - Navigating phases: Audit, Plan, Draft, Review, Verify. - Prompt contains: /doc, doc workflow, audit, draft, review, verify, documentation debt.

Jak działa

  1. Scope
  2. Grammar
  3. State Transitions
  4. Prime Directives
  5. MANDATORY HALT Points
  6. Response Format
Sekcje z nagłówków SKILL.md, w oryginale · 158 linii, 990 słów
Podgląd SKILL.md
---
name: doc
description: |
  SOP for structured documentation lifecycle.
  Trigger when:
  - Designing, writing, reviewing, or auditing large-scale documentation structures.
  - Navigating phases: Audit, Plan, Draft, Review, Verify.
  - Prompt contains: /doc, doc workflow, audit, draft, review, verify, documentation debt.
---

# DOC Protocol

**Audit → Plan → Draft → Review → Verify**

You are a Documentation Engine. Your goal is to produce or improve documentation through a structured lifecycle that ensures every document is purposeful, accurate, and maintainable.

DOC applies the documentation rule (`skills/documentation/SKILL.md`) systematically. The rule provides the principles; this workflow provides the process.

> **Routing:** DOC is the structured workflow for deliberate documentation work. The [documentation](../documentation/SKILL.md) skill is the writing-quality authority and governs all text production; DOC wraps it in a lifecycle. If the scope is ambiguous (e.g., a single inline update vs. a structural audit), set `UNCERTAINTY > 0.0` and surface the question before proceeding to PLAN.

---

## Scope

> [!IMPORTANT]
> DOC is for **deliberate documentation work** — writing new guides, restructuring docs, running documentation audits, or remedying documentation debt. It is NOT for incidental text (commit messages, code comments, chat responses) — the documentation skill's Section 1 governs those automatically.

**When to use `/doc`:**

- Writing or rewriting a README, guide, tutorial, or reference page
- Auditing a project's documentation for completeness and accuracy
- Systematically addressing documentation debt
- Restructuring documentation architecture (reorganizing, splitting, merging)

**When NOT to use `/doc`:**

- Quick inline doc updates triggered by a code change — just apply the documentation skill directly
- Writing a plan, sketch, or ADR — those have their own workflows

---

## Grammar

```yaml
# 1. STATE METADATA
STATUS: [AUDIT | PLAN | DRAFT | REVIEW | VERIFY]
UNCERTAINTY: [0.0-1.0] # Residual entropy. Must be 0.0 to proceed.

# 2. CONTEXT
CTX:
  SCOPE: "What documentation work is being done"
  AUDIENCE: "Who will read the output"
  QUADRANT: [TUTORIAL | HOW_TO | REFERENCE | EXPLANATION | MIXED]
  # MIXED only for multi-document work (e.g., audit). Single documents must declare one quadrant.

# 3. AUDIT FINDINGS (Populated in AUDIT)
AUDIT:
  EXISTING:
    - DOC: "path/to/existing/doc.md"
      QUADRANT: "What type it currently is"
      STATUS: [CURRENT | STALE | MISLEADING | ORPHANED | MISSING]
      NOTES: "What needs attention"
  DEBT:
    - ITEM: "Description of documentation debt"
      SEVERITY: [LOW | MEDIUM | HIGH]
      ACTION: "What to do about it"

# 4. DOC PLAN (Populated in PLAN)
DOC_PLAN:
  DELIVERABLES:
    - FILE: "path/to/new/or/updated/doc.md"
      QUADRANT: "TUTORIAL | HOW_TO | REFERENCE | EXPLANATION"
      AUDIENCE: "Who this is for"
      ACTION: [CREATE | REWRITE | UPDATE | DELETE]
      SUMMARY: "What this document will contain"

# 5. REVIEW CHECKLIST (Populated in REVIEW)
REVIEW:
  DOCUMENTATION_STANDARDS:
    ANSWER_FIRST: [PASS | FAIL]
    ACTIVE_VOICE: [PASS | FAIL]
    TERMINOLOGY_LOCK: [PASS | FAIL]
    SELF_CONSISTENCY: [PASS | FAIL]
    SCOPE_ECONOMY: [PASS | FAIL]
  QUADRANT_FIT: [PASS | FAIL]
  AUDIENCE_MATCH: [PASS | FAIL]
  NOTES: "Issues found during review"
```

---

## State Transitions

```
AUDIT ──→ PLAN    (once existing docs catalogued and debt identified)
      └─→ HALT    (if no documentation work is needed — a valid outcome)

PLAN ──→ DRAFT   (on human approval of doc plan)
     └─→ AUDIT   (if planning reveals undiscovered existing docs)

DRAFT ──→ REVIEW (once document text is written)
      └─→ PLAN   (if drafting reveals scope was wrong)

REVIEW ──→ VERIFY (once review checklist passes)
       └─→ DRAFT (if review finds failures requiring redraft)

VERIFY ──→ DONE  (on human approval)
       └─→ REVIEW (if verification reveals issues)
```

### State Definitions

**AUDIT:** Catalogue existing documentation. For each document, identify its Divio quadrant, currency status, and any debt. This step may be skipped if the scope is a single new document with no existing context.

**PLAN:** Define what will be written, rewritten, or deleted. Each deliverable declares its quadrant, audience, and action. Present for human approval before drafting.

**DRAFT:** Write the documentation. Apply all documentation skill principles (Section 1 + Section 2). Produce complete text, not outlines or placeholders.

**REVIEW:** Self-critique against the documentation skill's principles. Run through the review checklist honestly. If anything fails, return to DRAFT — do not rationalize a pass.

**VERIFY:** Present the finished documentation for human review. The human confirms accuracy, completeness, and fit. If verification fails, return to REVIEW with specific feedback.

---

## Prime Directives

1. **QUADRANT_FIRST:** Identify the document type before drafting. A document without a declared quadrant is a document without a purpose.

2. **AUDIENCE_LOCK:** State who the reader is. If you can't name the audience, you can't write for them.

3. **ONE_TYPE_PER_DOCUMENT:** Do not blend quadrants within a single document. A tutorial that becomes a reference page serves neither audience. If mixed content is needed, produce separate documents.

4. **DEBT_VISIBILITY:** Documentation debt discovered during AUDIT must be recorded, even if it's out of scope for the current `/doc` invocation. Flag it for future work.

5. **HONEST_REVIEW:** The REVIEW phase is self-adversarial. Apply documentation checks mechanically — if active voice fails, it fails. Do not hand-wave compliance.

6. **HUMANIZER_INTEGRATION:** After REVIEW passes, run the output through `/humanizer` if the document is reader-facing (README, guide, tutorial). Skip for internal references and specifications. The documentation skill governs structure and clarity; the humanizer governs natural voice.

### Protocol Violations (FORBIDDEN)

| Violation                                        | Why It's Wrong                                                               |
| :----------------------------------------------- | :--------------------------------------------------------------------------- |
| Drafting without declaring quadrant and audience | Purposeless writing; serves no reader well                                   |
| Blending Tutorial and Reference in one document  | Fails both audiences — tutorial readers get lost, reference users can't scan |
| REVIEW that passes everything without comment    | Self-review is adversarial; a clean pass requires justification              |
| Skipping AUDIT for multi-document work           | You'll duplicate or contradict existing docs                                 |
| Marking stale docs as "current" to avoid rework  | Documentation debt hiding; compounds over time                               |

---

## MANDATORY HALT Points

You MUST stop and await human input at:

1. **AUDIT → PLAN transition:** Human must approve the documentation plan
2. **VERIFY:** Human must confirm the final output
3. **HALT from AUDIT:** If audit reveals no work is needed, confirm with human

---

## Response Format

- **AUDIT:** YAML block with AUDIT findings
- **PLAN:** YAML block with DOC_PLAN deliverables
- **DRAFT:** YAML block + full document text
- **REVIEW:** YAML block with REVIEW checklist + notes
- **VERIFY:** Final document text for human approval

Wersje

RepozytoriumWynikLicencja
Ta strona · nrdxp/predicate100MIT
boshu2/agentops100Apache-2.0
davila7/claude-code-templates100MIT
boshu2/agentops100Apache-2.0
PracticalSwan/agent-skills100MIT
DoshaLabs/workshop96MIT
tpc-pascal/skillsmith90MIT

Migawka bazy z 13.11.2026 · wersja paczki d91240bd56ff (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 3 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100design-doc-template
    Tworzy szablon dokumentu projektowego jako część dokumentacji technicznej.
  • 90sop-video-and-doc
    Tworzy z jednej procedury film SOP z lektorem i dokument krok po kroku ze zrzutami ekranu, z tą samą numeracją.
  • 100doc-coauthoring
    Prowadzi przez współtworzenie dokumentacji, propozycji, specyfikacji technicznych i dokumentów decyzyjnych w trzech krokach: zebranie kontekstu, iteracje i weryfikacja z perspektywy czytelnika.
  • 100doc-review
    Recenzuje prozatorski plan, specyfikację, PRD, dokument wymagań, design doc lub burzę mózgów.
  • 100doc-coauthoring
    Prowadzi przez uporządkowany proces wspólnego pisania dokumentacji, propozycji i specyfikacji: przekazanie kontekstu, iteracyjne dopracowanie treści i sprawdzenie, czy dokument działa dla czytelników.
  • 100doc-coauthoring
    Prowadzi przez uporządkowany proces wspólnego pisania dokumentacji, propozycji i specyfikacji: przekazanie kontekstu, iteracyjne dopracowanie treści i sprawdzenie, czy dokument działa dla czytelników.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.