Claude Code workflow kit

Sample Reverse Spec Flow

A workflow that uses an AI coding agent (Claude Code or Kiro) to turn existing source code into AI-friendly specifications. Every statement cites its evidence (path:line) and is checked by a separate verifier agent. Use the specs to reimagine the app through spec-driven development, or to maintain the current system.

36 stars 1 forksWorkflow kits Source

Install

From source
git clone https://github.com/aws-samples/sample-reverse-spec-flow.git

From the README

reverse-spec-flow

A workflow that turns existing source code into "AI-friendly specifications" for AI agents to use

Version: 2.2.1 / License: MIT-0
日本語版: README_ja.md
The documents under docs/ and the rules the AI agent follows are currently written in Japanese.

What is this?

reverse-spec-flow creates specifications for AI agents to read and use from the source code of an application
that has no specifications, has outdated ones, or has become a black box. The output is Markdown that lets an agent
look up only the parts it needs, through IDs and indexes. Typical uses of the generated specifications:

- Reimagining the application — an AI agent reimagines the application on a new technology stack through spec-driven development, using the specifications as input
- Maintaining and evolving the current system — an AI agent consults the specifications to explain how the current system behaves and what a change would affect, supporting maintenance (feature additions, specification changes) and the planning of refactoring or migration work

It is intended for developers and architects who want to use AI agents to reimagine or maintain existing systems.
People can read the specifications too, but the main readers are AI agents. The specifications are also written by AI agents.
For that reason, reverse-spec-flow puts the highest priority on guaranteeing the following two things by mechanism, not by the agent's self-report.

1. Correctness — a mechanism that leaves no unsupported statements (hallucinations)

- Every statement cites its evidence — each statement carries the location in the code that supports it (path:line).
- Verified separately from the author — a verifier AI agent, isolated from the one that wrote the specification,
  checks each statement against the…
Read the full README on GitHub

Details

Language
Shell
License
MIT-0
Last updated
13 November 2026
Topics
ai-agentsclaude-codekiromodernizationreverse-enginneringspec-driven-development

FAQ

What is Sample Reverse Spec Flow?

A workflow that uses an AI coding agent (Claude Code or Kiro) to turn existing source code into AI-friendly specifications. Every statement cites its evidence (path:line) and is checked by a separate verifier agent. Use the specs to reimagine the app through spec-driven development, or to maintain the current system. It is a workflow kit for Claude Code, from aws-samples/sample-reverse-spec-flow on GitHub.

How do I install Sample Reverse Spec Flow?

Clone aws-samples/sample-reverse-spec-flow from GitHub and follow the setup steps in its README.

Is Sample Reverse Spec Flow popular?

aws-samples/sample-reverse-spec-flow has 36 GitHub stars and 1 forks. It was last updated on 13 November 2026.

More workflow kits

Browse the most popular Claude Code mods, all workflow kits, or the skills and MCP server directories.