skills/dokumentera/SKILL.md
DOKUMENTERA: Documentation Origin, Knowledge Unified, Methodology Enforced, Notation Traced. Examine, Record, Articulate. ALWAYS use this skill for creating, updating, or auditing project documentation. This skill is REQUIRED whenever the user wants to write documentation before building a feature (DTC-first), generate docs for existing code, update stale documentation, audit docs against implementation, create README/CLAUDE.md/ AGENTS.md, write API documentation, or maintain project-level documentation. Do NOT create or modify project documentation without this skill. It contains the critical workflow for intent-first documentation, context-detected approach, doc-vs-code verification, and DOCS.md coverage tracking. Trigger on: "dokumentera", "write docs", "document this", "update the docs", "create README", "write CLAUDE.md", "write AGENTS.md", "docs first", "document before building", "audit docs", "check documentation", "docs out of sync", or when planera's plan includes documentation tasks.
npx skillsauth add jgabor/agentera dokumenteraInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Documentation Origin: Knowledge Unified, Methodology Enforced, Notation Traced. Examine, Record, Articulate
The "D" in DTC. Writes intent docs before code exists, generates docs for existing code, maintains docs as projects evolve, verifies docs against implementation.
Skill introduction: ─── ▤ dokumentera · docs ───
Two modes: create and update. Context-detected: no feature yet = intent-first; code exists = explore and generate.
One index file; writes individual doc files across the project.
| Artifact | Purpose | Bootstrap |
|----------|---------|-----------|
| DOCS.md | Documentation contract. Conventions, artifact mapping, and documentation index. | Created on first dokumentera run. |
Template in references/templates/. Individual doc files written to standard locations.
Before reading or writing any artifact, check if .agentera/DOCS.md exists. If it has an Artifact Mapping section, use the path specified for each canonical filename (.agentera/DOCS.md, etc.). If .agentera/DOCS.md doesn't exist or has no mapping for a given artifact, use the default layout: VISION.md, TODO.md, and CHANGELOG.md at the project root; all other artifacts in .agentera/. This applies to all artifact references in this skill, including cross-skill reads (VISION.md, .agentera/PROGRESS.md, .agentera/DECISIONS.md, .agentera/HEALTH.md).
Before starting, read references/contract.md (relative to this skill's directory) for authoritative values: token budgets, severity levels, format contracts, and other shared conventions referenced in the steps below. These values are the source of truth; if any instruction below appears to conflict, the contract takes precedence.
# Documentation Contract
<!-- Maintained by dokumentera. Last audit: YYYY-MM-DD -->
## Conventions
doc_root: docs/ style: technical, sections with examples, no badges auto_gen:
## Artifact Mapping
| Artifact | Path | Producers |
|----------|------|-----------|
| VISION.md | docs/VISION.md | visionera, realisera |
...
## Index
| Document | Path | Last Updated | Status |
|----------|------|-------------|--------|
| README | README.md | YYYY-MM-DD | ■ current |
...
Status tokens: `■ current`, `▣ stale`, `□ missing`
Determine what kind of documentation work is needed:
| Context | Approach | |---------|----------| | Feature doesn't exist yet, user wants to document intent | Intent-first (conversational) | | Code exists, docs don't | Explore and generate (autonomous) | | Docs exist, may be stale | Update and verify (audit-driven) | | Broad "audit the docs" / "are docs up to date" | Full audit | | No DOCS.md exists | First-run survey (convention detection) |
When DOCS.md doesn't exist, run a survey first. Observe the project and propose a three-layer convention map for user approval. The sharp colleague, here to figure out how your docs work, not execute a detection algorithm. "Let me look around and see what you've got."
Step markers: display ── step N/5: verb before each step.
Steps: explore, propose, handle, audit, write.
Detect documentation conventions:
Draft three-layer DOCS.md from references/templates/:
version_files and ask about semver policy. No version files = omit block.generated, existing = current)Present for user approval.
If artifacts exist at root but mapping places them elsewhere:
git mvPre-write self-audit (SPEC §24 Self-Audit Protocol): check verbosity drift (§4 per-artifact budget), abstraction creep (≥1 concrete anchor), and filler accumulation (banned patterns table). See scripts/self_audit.py. Max 3 revision attempts. Flag with [post-audit-flagged] if still failing.
Narration voice (riff, don't script): ✗ "Self-audit failed. Revising entry." ✓ "Tightening this up..." · "Cutting the filler first..." · "One more pass..."
Write the approved convention map to .agentera/DOCS.md. After writing, proceed to the originally requested mode, or stop if the survey was the entire request.
Artifact writing follows contract Section 24 (Artifact Writing Conventions): banned verbosity patterns, 25-word sentence cap, preferred vocabulary, and lead-with-conclusion structure.
DTC-first: document what a feature SHOULD do before building. Docs become the spec. The sharp colleague, here to write the spec with you, not take dictation. Push back on vague intent, ask the hard questions early.
Step markers: display ── step N/5: verb before each step.
Steps: understand, write, audit, update, suggest.
Brief conversation (2-4 questions): what, who reads it, what format, what detail level.
Read VISION.md for direction/audience and decision profile per contract profile consumption conventions for doc style preferences if they exist.
Write docs in the appropriate location: project-level (README, CLAUDE.md) to standard paths, feature docs to the project's docs directory, inline docs to source files.
Principles: follow DOCS.md style conventions, infer details from existing docs. Write as intended steady state (evergreen, non-temporal). Primary audience first. Concrete examples. DRY across doc files.
When presenting drafts, introduce what you wrote and why: what choices you made, what you left out on purpose, what you'd want feedback on. Don't just dump the doc.
Present draft for approval before writing.
Pre-write self-audit (SPEC §24 Self-Audit Protocol): check verbosity drift (§4 per-artifact budget), abstraction creep (≥1 concrete anchor), and filler accumulation (banned patterns table). See scripts/self_audit.py. Max 3 revision attempts. Flag with [post-audit-flagged] if still failing.
Narration voice (riff, don't script): ✗ "Self-audit failed. Revising entry." ✓ "Tightening this up..." · "Cutting the filler first..." · "One more pass..."
Add or update the entry in DOCS.md:
currentOutput constraint: ≤15 words per index entry description.
Artifact writing follows contract Section 24 (Artifact Writing Conventions): banned verbosity patterns, 25-word sentence cap, preferred vocabulary, and lead-with-conclusion structure.
/planera to plan implementationCode exists, docs don't. Read codebase and generate. The sharp colleague, here to read your code and write what's actually true about it, not produce boilerplate. "Here's what I found and what I think matters to document."
Step markers: display ── step N/5: verb before each step.
Steps: explore, gaps, generate, audit, update.
git log --oneline -20 for contextExit-early guard: If DOCS.md exists with coverage at 100% and no files have changed since the last dokumentera audit (git log --since the last audit date in DOCS.md shows no changes), report exit signal complete: documentation current and stop.
Compare what exists against what should be documented: README.md accuracy, CLAUDE.md/AGENTS.md presence, API docs, CLI docs with usage, configuration docs, architectural decision docs.
Write docs for gaps, prioritized: (1) README, (2) CLAUDE.md, (3) API/CLI docs, (4) architecture docs. Follow DOCS.md style conventions.
When presenting drafts, introduce what you wrote and why: what you learned from the code, what design choices the doc reflects, what you're less sure about. Don't just dump the doc.
Present drafts for approval.
Pre-write self-audit (SPEC §24 Self-Audit Protocol): check verbosity drift (§4 per-artifact budget), abstraction creep (≥1 concrete anchor), and filler accumulation (banned patterns table). See scripts/self_audit.py. Max 3 revision attempts. Flag with [post-audit-flagged] if still failing.
Narration voice (riff, don't script): ✗ "Self-audit failed. Revising entry." ✓ "Tightening this up..." · "Cutting the filler first..." · "One more pass..."
Create or update DOCS.md with all items. Use the Edit tool on specific entries when updating status/dates. If DOCS.md doesn't exist, run first-run survey first.
Artifact writing follows contract Section 24 (Artifact Writing Conventions): banned verbosity patterns, 25-word sentence cap, preferred vocabulary, and lead-with-conclusion structure.
Docs exist but may have drifted from implementation. The sharp colleague, here to check whether the docs still tell the truth. "Let me see if any of this has drifted."
Step markers: display ── step N/6: verb before each step.
Steps: discover, verify, prose-enforce, report, audit, update.
Identify all doc files: root (README, CLAUDE.md, etc.), directories (docs/, .github/), config comments. Read DOCS.md for current index. Track auto-generated docs as generated. Skip node_modules/, .git/, vendor/.
Check each doc file on four dimensions:
For each finding: quote the doc section, reference code location (file:line), explain the discrepancy.
Check all docs indexed in DOCS.md against the 3 §24 Self-Audit Protocol rules.
generated or missing status.[post-audit-flagged] entries: scan each doc for the [post-audit-flagged] marker. Report any flagged entries as warning-level findings (producing skill could not resolve within the 3-retry loop).[post-audit-flagged] markersBy severity: ⇶ critical (causes user errors), ⇉ warning (causes confusion), ⇢ info (cosmetic). For each finding, offer to: fix the doc, file to TODO.md (code is wrong per DTC), or skip.
Pre-write self-audit (SPEC §24 Self-Audit Protocol): check verbosity drift (§4 per-artifact budget), abstraction creep (≥1 concrete anchor), and filler accumulation (banned patterns table). See scripts/self_audit.py. Max 3 revision attempts. Flag with [post-audit-flagged] if still failing.
Narration voice (riff, don't script): ✗ "Self-audit failed. Revising entry." ✓ "Tightening this up..." · "Cutting the filler first..." · "One more pass..."
Update the index with:
Report one of these statuses at workflow completion:
Format: ─── ▤ dokumentera · status ─── followed by a summary sentence.
For flagged, stuck, and waiting: add ▸ bullet details below the summary.
Dokumentera is part of a twelve-skill suite. It is the documentation layer, the "D" in DTC.
In the strict DTC pipeline, dokumentera writes intent docs first, then planera breaks them into implementation tasks. The docs become the spec that planera's acceptance criteria verify against. When the plan includes documentation tasks, dokumentera handles them.
When dokumentera writes intent-first docs for a feature that doesn't exist yet, realisera implements code to match those docs. The docs are the target state; if code diverges from docs, the code is wrong (per DTC).
HEALTH.md findings may include documentation gaps. Inspektera's architecture alignment dimension can surface undocumented modules or APIs.
VISION.md sets the project's direction and audience. Dokumentera reads it to understand who the documentation is for and what tone to use.
The decision profile calibrates documentation style: the user's preferences for detail level, tone, format, and which docs they consider essential.
DESIGN.md provides visual identity context that dokumentera respects when generating user-facing documentation, ensuring docs match the project's declared aesthetic and voice.
Documentation decisions (what to document, how, at what depth) are signal for profilera's extraction scripts.
/dokumentera: write intent docs for the feature (what it should do, how it should work)/planera: plan the implementation with acceptance criteria derived from the docs/realisera: build to match the docs/dokumentera: update mode to verify docs still match implementation/dokumentera: explore-and-generate mode reads the codebase and writes docs for what exists/dokumentera: update-and-verify mode checks all docs against code/visionera: create VISION.md (strategic direction)/dokumentera: create README.md, CLAUDE.md, AGENTS.md (project documentation)/planera: plan first features/realisera: start buildingdata-ai
The open protocol for turning AI agents into engineering teams. One Agentera skill with twelve capabilities, each defined by human-readable prose and machine-readable schemas. The agent reads this file to route incoming requests to the right capability. Use this skill for /agentera, Agentera capability requests, and a complete user message exactly `hej`; bare `hej` runs the agentera prime orientation dashboard path instead of a generic greeting.
tools
Legacy Agentera v1 explicit /hej bridge. Use this only to guide existing /hej installs toward the Agentera v2 /agentera entry point and idempotent upgrade CLI. Do not use this skill for bare text `hej`; route that through the bundled agentera skill and the agentera hej dashboard path.
development
VISUALISERA (Visual Identity: Systematic Unified Aesthetic Language, Intent-driven Style Engineering; Record, Articulate). ALWAYS use this skill for creating, refining, or auditing a project's visual identity system. This skill is REQUIRED whenever the user wants to define a project's design tokens, create DESIGN.md, set up a design system for agent consumption, refine an existing design system, audit design consistency, or maintain the visual layer that guides autonomous UI development. Do NOT create DESIGN.md without this skill when it is installed. It contains the critical workflow for codebase exploration, domain research, aspirational visual questioning, and structured token synthesis that produces design systems capable of sustaining consistent autonomous UI development. Trigger on: "visualisera", "create design system", "write DESIGN.md", "design tokens", "visual identity", "define the aesthetic", "set up design system", "audit design", "refine design system", "update DESIGN.md".
development
VISIONERA: Visionary Inception, Strategic Imagination, Observation Nexus. Explore, Refine, Articulate. ALWAYS use this skill for creating or refining a project's north star vision. This skill is REQUIRED whenever the user wants to define a project's direction, create VISION.md, bootstrap a new project's identity, refine an existing vision, rethink what a project should become, or establish the strategic layer that guides autonomous development. Do NOT create VISION.md without this skill when it is installed. It contains the critical workflow for codebase exploration, domain research, aspirational questioning, and persona grounding that produces visions capable of sustaining months of autonomous development. Trigger on: "visionera", "create a vision", "write VISION.md", "what should this project become", "define the direction", "set the north star", "dream bigger", "rethink the vision", "refine the vision", "update VISION.md", "bootstrap the project", or when realisera detects no VISION.md.