Skill in 《Harness Step 2 — Fill docs/ with Real Content》

Skill Description

Deep-reads your codebase and fills every docs/ file with specific, accurate content grounded in what the code actually does — module rules with examples, naming patterns with real instances, tech decisions with inferred rationale.

Skill.md

Harness Step 2 — Fill docs/ with Real Content

After Step 1 creates the docs/ skeleton, the most common outcome is a set of files with placeholder text. An agent reading "naming conventions: see code" gets nothing useful. This skill fixes the gap — it reads the actual codebase deeply and writes specific, accurate documentation backed by real code examples.

What Gets Filled In

FileContent written
docs/ARCHITECTURE.mdModule responsibilities, dependency direction rules (with reasons), main data flows
docs/CONVENTIONS.mdFile naming patterns (with real examples), variable/function naming rules
docs/TECH_DECISIONS.mdRationale for each major framework/library (inferred where possible; flagged where not)
docs/QUALITY.mdProject-specific Definition of Done, code review checklist
docs/exec-plans/tech-debt-tracker.mdDuplicate code, naming inconsistencies, TODO comments found during scan

Core Principle

Inferred content is labeled as inferred. Unknown content is marked "TODO: confirm." Nothing is fabricated to fill space.

After the scan, the skill produces a "TODO: confirm" list — typically 3–5 items per project, concentrated around historical tech decisions (the code shows the choice, not why it was made) and runtime metrics (which can't be read from files).

Supported Use Cases

  • Immediately after Step 1, to fill skeleton with real content
  • After a major refactor, to resync docs with current code
  • Taking over an unfamiliar codebase and generating architecture docs for it

How to Use

  1. Confirm the project has AGENTS.md and docs/ directory (from Step 1)
  2. Say "fill in the docs" or "write ARCHITECTURE.md" or "analyze codebase and write docs"
  3. The skill reads entry files, module boundaries, dependency declarations, naming patterns
  4. All docs/ files are written; "TODO: confirm" list is surfaced
  5. You confirm or fill in only what the skill couldn't infer

Limitations

The skill reads files — it doesn't access git history or team communication. Historical decision rationale ("why did we choose X?") typically needs human input. Runtime behavior (actual query performance, API response shapes) can't be inferred from source files.

Install & Use

Install command

npx skills add simbajigege/book2skills/skills/harness-step2-fill-docs
OR

Direct download

Related Skills

Tool Permission System AI Skill

Design a configurable, layered permission/safety system for agent tools: one permission pipeline decides allow / ask / deny across enterprise/user/project scopes.

Harness Step 1 — Create AGENTS.md & Knowledge Base AI Skill

Scans your codebase and generates AGENTS.md (the agent's orientation file) plus a complete docs/ knowledge base skele...

Harness Step 3 — Session State Management AI Skill

Creates init.sh (environment health check), tasks.json (structured task queue), and progress.md (append-only session ...

Session Dream AI Skill

On-demand session memory distillation — extracts key decisions, eliminated approaches, new discoveries, and current b...

Agent Memory Implementation Guide AI Skill

Restructures a bloated or chaotic MEMORY.md into the 2-layer architecture Claude Code's autoDream service uses intern...

Compact with Memory AI Skill

Executes /compact correctly — generates a high-quality conversation summary that preserves reasoning, decisions, and ...

LangChain Tool Builder AI Skill

Build LangChain (Python) tools using Claude Code's fail-closed design pattern — unified name, schema, security, and e...

Compact Memory Implementation Guide AI Skill

A developer implementation guide for adding compact memory to an Agent built with the Anthropic API or Claude Agent S...

Query Loop Implementation AI Skill

Implement a production-ready LLM query loop for AI applications: tool calling, structured tool_result feedback, ReAct...

Contagious: STEPPS Viral Content Framework AI Skill

Apply Jonah Berger's STEPPS framework from Contagious to diagnose why ideas spread, redesign campaigns, and build sha...

Poor Charlie's Almanack AI Skill

Transform Charlie Munger's latticework of mental models and worldly wisdom into an AI analysis tool for investments, ...