docs-as-code

Create ADR decision records with Context, Decision, Alternatives, and Consequences sections.

2|Updated Apr 10, 2026
One-click install
npx skills add https://github.com/t0lab/harness-kit --skill docs-as-code-t0lab
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docs-as-code
Source: https://github.com/t0lab/harness-kit/tree/main/.agents/skills/docs-as-code
Command: npx skills add https://github.com/t0lab/harness-kit --skill docs-as-code-t0lab

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Repository-as-system-of-record protocol for multi-step or decision-heavy work. Invoke when a task spans >=3 tracked tasks, changes architecture/module boundaries, introduces or reverses important technical decisions, affects release/governance docs, audits AGENTS.md/CLAUDE.md, sets up docs/, or asks where durable project context should live. Do not invoke for small single-task edits unless the user asks for doc hygiene.

Core Features & Use Cases

  • Provides Architecture/ADR-style decision records to preserve rationale beyond chat transcripts.
  • Enables cross-linking between major docs (ARCHITECTURE.md, ROADMAP.md, docs/exec-plans) for traceability and governance.
  • Supports multi-task collaboration by tying decisions to active Work plans and product specs.

Quick Start

Create an ADR for the current major decision and link it to the active exec plan.

Frequently Asked Questions about docs-as-code

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I preserve architecture decisions and rationale across multiple modules?

To preserve architecture decisions, codify them into ADRs that include Context, Decision, Alternatives, Consequences, and Must now be true sections. This ensures durable context is maintained across teams beyond chat transcripts and active exec plans.

What should be included in an ADR for governance and compliance tracking?

An ADR for governance tracking must include Context, Decision, Alternatives, Consequences, and Must now be true sections. Clear cross-links to related exec plans and product specs are also required to ensure traceability across the repository.

When should I treat documentation as executable code for my project?

Treat documentation as executable code when a task spans three or more tracked tasks, changes module boundaries, or affects release and governance docs. It is not required for small single-task edits unless the user explicitly asks for document hygiene.

How do I audit AGENTS.md and CLAUDE.md for traceability in a repository?

Audit AGENTS.md and CLAUDE.md by applying a repository-as-system-of-record protocol that cross-links major documents like ARCHITECTURE.md and ROADMAP.md. This verifies that system-wide decisions are centered and tied to active work plans.

What is the best way to manage cross-linking between architecture docs and exec plans?

The best way to manage cross-linking is enforcing a repository-as-system-of-record protocol that connects ADRs directly to active exec plans and product specs. This preserves durable context and ensures governance across multi-task collaboration.

Do I need to create an ADR for small single-task code edits?

No, you do not need to create an ADR for small single-task code edits unless the user explicitly asks for document hygiene. ADRs are invoked for multi-task work, architecture changes, or important technical decision reversals.