Reverse

Generate spec and architecture markdown files from backend and frontend code.

1|Updated Jan 30, 2026
One-click install
npx skills add https://github.com/samdae/archflow --skill reverse
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Reverse
Source: https://github.com/samdae/archflow/tree/main/skills/reverse
Command: npx skills add https://github.com/samdae/archflow --skill reverse

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Reverse engineers a codebase to produce initial legacy documentation, filling gaps where docs are missing and establishing traceable links between code and design artifacts.

Core Features & Use Cases

  • Generate stub spec.md and arch-*.md from backend and frontend code
  • Identify API endpoints, data models, and component structures to bootstrap requirements and design
  • Provide a first-pass documentation scaffold for traceability and reinforcement

Quick Start

  • Invoke the reverse skill on a repository path to generate docs/{serviceName}/spec.md and docs/{serviceName}/arch-be.md or arch-fe.md
  • Review generated docs and use reinforce to fill gaps and polish the outputs

Frequently Asked Questions about Reverse

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

FAQPage Schema
How do I generate documentation from an existing codebase?

You can generate legacy documentation from an existing codebase by reverse engineering the source code to produce initial spec.md and architecture artifacts. This process extracts API endpoints, data models, and component structures to bootstrap requirements.

What is code-to-doc reverse engineering for legacy software?

Code-to-doc reverse engineering is the process of analyzing a codebase to produce initial legacy documentation where docs are missing. It converts code into spec and architecture artifacts, establishing traceable links between the implementation and design outputs.

How do I extract API endpoints and data models for design specs?

You extract API endpoints and data models for design specs by analyzing both backend and frontend code to scaffold requirements. This generates initial design artifacts like spec.md and arch-be.md or arch-fe.md to document the identified structures.

Can I generate both frontend and backend architecture docs from code?

Yes, you can generate both frontend and backend architecture docs from code. The reverse engineering process targets both codebases to scaffold design artifacts, outputting arch-be.md for backend and arch-fe.md for frontend component structures.

What should I do when generated code documentation has incomplete sections?

When generated code documentation has incomplete sections, you should use reinforcement to fill the gaps and polish the outputs. The initial scaffolding provides a first-pass structure that requires review to complete missing details and establish full traceability.