reverse-document

Parse existing code implementations to generate CDD or ADR markdown documents.

3|Updated Jun 3, 2026
One-click install
npx skills add https://github.com/Negentropy-Laby/Constitution-Driven-Development --skill reverse-document-negentropy-laby
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: reverse-document
Source: https://github.com/Negentropy-Laby/Constitution-Driven-Development/tree/main/.agents/skills/reverse-document
Command: npx skills add https://github.com/Negentropy-Laby/Constitution-Driven-Development --skill reverse-document-negentropy-laby

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generate complete design or architecture documents from existing code implementations, turning code into planning artifacts that can be reviewed and version-controlled.

Core Features & Use Cases

  • Reverse engineering: Convert codebases, prototypes, or artifacts into design documents (CDD/ADR) to establish architecture and decisions.
  • Documentation workflow: Produces a coherent narrative from implementation to formal planning documentation, aiding hand-offs and audits.
  • Use Case: When inheriting a project with sparse docs, run this to derive a design doc that captures intent, constraints, and interfaces.

Quick Start

Use a single clear command to generate a design or architecture document from existing implementation, for example by running /reverse-document design src/gameplay/magic-system

Frequently Asked Questions about reverse-document

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

FAQPage Schema
How do I generate design docs from an existing codebase?

Generate design docs from an existing codebase by parsing implementation files to automatically derive formal structured markdown outputs like CDDs and ADRs. This reverse engineering process turns code into planning artifacts that capture architecture and decisions for review.

What is reverse engineering code into ADRs and CDDs?

Reverse engineering code into ADRs and CDDs is the process of deriving formal architecture and design documentation from existing implementations. It produces structured markdown outputs that capture intent, constraints, and interfaces for projects with sparse documentation.

Can I create architecture documentation for different types of projects?

Yes, you can create architecture documentation for diverse project types including games, APIs, CLIs, web apps, SDKs, and data pipelines. The process parses codebases, prototypes, and artifacts across these formats to produce coherent design documents.

How do I document a project I inherited with no existing design documents?

Document an inherited project with no existing design documents by running a command to derive a design doc from the source code. This captures the original implementation intent, constraints, and interfaces into a formal planning artifact for hand-offs and audits.

What is the best way to turn code into version-controlled planning artifacts?

The best way to turn code into version-controlled planning artifacts is to automatically parse implementations and generate structured markdown design documents. This establishes a coherent narrative from implementation to formal documentation that can be reviewed and tracked.

Do I need any dependencies to reverse document my source code?

No dependencies are required to reverse document your source code. The process works directly on your codebases, prototypes, and artifacts to produce structured markdown outputs without needing external libraries or environment setup.