πΊπΈ English | π·πΊ Π ΡΡΡΠΊΠΈΠΉ
Note
This is the primary version. Translations may lag behind.
This framework orchestrates a multi-agent system for structured software development. It transforms vague requirements into high-quality code through a strict pipeline of specialized agents (Analyst, Architect, Planner, Developer, Reviewer, Security Auditor).
The methodology combines two key approaches (see Comparison):
- TDD (Test-Driven Development): The "Stub-First" strategy ensures that tests are written and verified against stubs before actual implementation begins. Read more.
- VDD (Verification-Driven Development): A high-integrity mode where an adversarial agent proactively challenges the plan and code to eliminate hallucinations and logic errors before they are committed. Read more.
- Installation & Setup
- System Overview
- Workspace Workflows
- How to Start Development
- Artifact Management
- What to do with .AGENTS.md files?
- How to prepare for future iterations?
- Reverse Engineering
- Starter Prompts
- Migration Guide
- Integration with Cursor IDE
Copy these folders to your project root:
| Folder | Required | Description |
|---|---|---|
System/ |
β Yes | Agent Personas, Docs, and Tool Dispatcher |
.agent/ |
β Yes | Skills, Workflows, and Tool definitions |
# Installation
cp -r /path/to/framework/System ./
cp -r /path/to/framework/.agent ./
cp /path/to/framework/GEMINI.md ./ # (For Antigravity)Note
The Tool Execution Subsystem is included in System/scripts/:
System/scripts/tool_runner.pyβ Dispatcher (entry point).agent/tools/β Tool logic and schemas
To configure Cursor for this workflow:
- Context Rules: Copy
AGENTS.mdto your project root. - Skills: Create a symbolic link to enable native skill detection:
ln -s .agent/skills .cursor/skills
- Note: This allows Cursor to index the skills while keeping
.agent/skillsas the single source of truth.
- Note: This allows Cursor to index the skills while keeping
Antigravity supports this architecture out-of-the-box:
- Configuration: Copy
GEMINI.mdto your project root (this is the system prompt). - Skills: Ensure
.agent/skills/directory exists. Antigravity automatically loads skills from here. - Workflows: (Optional) Use
.agent/workflows/for automated sequences. - Auto-Run Permissions: To enable autonomous command execution, add the following to Allow List Terminal Commands in IDE Settings:
ls,cat,head,tail,find,grep,tree,wc,stat,file,du,df,git status,git log,git diff,git show,git branch,git remote,git tag,mv docs/TASK.md,mv docs/PLAN.md,mkdir -p docs,mkdir -p .agent,mkdir -p tests,python -m pytest,python3 -m pytest,npm test,npx jest,cargo test
If you plan to use the Tool Execution Subsystem (native tools), you need Python 3.9+ installed.
Important
Do not install dependencies globally. Always use a virtual environment to prevent conflicts with your system Python.
Setup Instructions:
-
Create and install dependencies in a virtual environment:
# Create .venv python3 -m venv .venv # Install packages (using absolute path ensures it goes into .venv) ./.venv/bin/pip install pytest # Required: For run_tests tool ./.venv/bin/pip install openai # Optional: For AI orchestration ./.venv/bin/pip install python-dotenv # Optional: For environment variables
-
Activate the environment (optional, but recommended for development):
source .venv/bin/activate
Minimal Setup (read-only tools work without dependencies):
# No installation needed for basic tools like:
# - generate_task_archive_filename
# - list_directory
# - read_file
# These use Python's standard library only.project-root/
βββ AGENTS.md # [Cursor] Context & Rules
βββ GEMINI.md # [Antigravity] System Config
βββ .agent/
β β βββ ...
β β βββ skill-product-* # [Product] Strategy, Vision, Handoff
β βββ workflows/ # [Common] Workflow Library
β βββ tools/ # [Common] Tool Logic & Schemas
βββ System/
β βββ Agents/ # [Common] Agent Personas (00-10, p00-p04)
β βββ Docs/ # [Common] Framework Documentation
β βββ scripts/ # [Common] Tool Dispatcher
β βββ tool_runner.py
βββ src/ # Your Source Code
The file 00_agent_development.md serves as the Meta-System Prompt for Cursor.
It defines global principles (Skill Tiers, Task Boundaries) and SHOULD be included in the context for manual agent calls.
For Antigravity, this logic is handled natively via GEMINI.md.
| Role | File | Responsibility |
|---|---|---|
| Orchestrator | 01_orchestrator.md |
Project Manager. Dispatches tasks, manages the pipeline. |
| Analyst | 02_analyst_prompt.md |
Requirements elicitation, TASK creation. |
| TASK Reviewer | 03_task_reviewer_prompt.md |
Quality control for Technical Specifications. |
| Architect | 04_architect_prompt.md |
System design, database schema, API definition. |
| Arch Reviewer | 05_architecture_reviewer_prompt.md |
Validates verification of architectural decisions. |
| Planner | 06_agent_planner.md |
Breaks down implementation into atomic steps (Stub-First). |
| Plan Reviewer | 07_agent_plan_reviewer.md |
Ensures the plan is logical and testable. |
| Developer | 08_agent_developer.md |
Writes code (Stubs -> Tests -> Implementation). |
| Code Reviewer | 09_agent_code_reviewer.md |
Final code quality check. |
| Security Auditor | 10_security_auditor.md |
Security vulnerability assessment and reporting. |
| Role | File | Responsibility |
|---|---|---|
| Product Orch | p00_product_orchestrator.md |
Dispatches product tasks to Strategy/Vision/Director. |
| Strategic Analyst | p01_strategic_analyst_prompt.md |
Market Research, TAM/SAM/SOM, Competitive Analysis. |
| Product Analyst | p02_product_analyst_prompt.md |
Product Vision, User Stories, Backlog Prioritization (WSJF). |
| Director | p03_product_director_prompt.md |
Quality Gate. Approves BRD with cryptographic hash. |
| Solution Arch | p04_solution_architect_prompt.md |
Feasibility Check, ROI, Solution Blueprint. |
| Tool | System Prompt | Loading Method |
|---|---|---|
| Cursor IDE | 00 + role (01-10) |
Manually or via AGENTS.md |
| Antigravity | GEMINI.md (includes global principles) |
Automatically (Native). Manual concatenation of 00 is not required. |
Version 3.0 introduces a modular Skills System that separates "Who" (Agent) from "What" (Capabilities).
- Reduces Prompt Size: Agents only load what they need.
- Shared Logic: Improvements in a skill benefit all agents.
Structure:
.agent/skills/β Markdown instructions and templates..agent/tools/β Native tool definitions and schemas.System/scripts/β Execution engine for tools.
Capabilities: Run tests, Git operations, File I/O, Archiving.
>> View Full Skills Catalog << >> Orchestrator & Tools Guide <<
By default, the system uses English prompts. To use Russian context:
- Copy content from
Translations/RU/AgentstoSystem/Agents. - Copy content from
Translations/RU/Skillsto.agent/skills.
To simplify launching different development modes, the project provides special Workflows. Detailed description of all workflows: WORKFLOWS.
You can run a workflow simply by asking the agent:
-
Product Discovery (New):
- "Start Product Discovery" -> runs
/product-full-discovery(Full pipeline) - "Just the vision" -> runs
/product-quick-vision(Fast track) - "Analyze market" -> runs
/product-market-only(Strategy only)
- "Start Product Discovery" -> runs
-
Standard Mode (Stub-First):
- "Start feature X" -> runs
01-start-feature.md - "Plan implementation" -> runs
02-plan-implementation.md - "Develop task" -> runs
03-develop-single-task.md(for single) or05-run-full-task.md(for loop)
- "Start feature X" -> runs
-
VDD Mode (Verification-Driven Development):
- "Start feature X in VDD mode" -> runs
vdd-01-start-feature.md - "Develop task in VDD mode" -> runs
vdd-03-develop.md(Adversarial Loop)
- "Start feature X in VDD mode" -> runs
- Standard: Basic mode, focused on speed and structure (Stub-First).
- VDD (Verification-Driven): High-reliability mode using an "Adversarial Agent" (Sarcasmotron) that harshly criticizes code.
- Nested & Advanced:
- VDD Enhanced (
/vdd-enhanced): Runs Stub-First then VDD Refinement. - VDD Multi-Adversarial (
/vdd-multi): Sequential 3-critic verification (Logic β Security β Performance). - Full Robust (
/full-robust): Runs VDD Enhanced then Security Audit.
- VDD Enhanced (
This process will take you from an idea to finished code in the repository.
Agents p00-p04 ensure you are building the right product before you build it right.
- Orchestrator (p00): Decides if you need "Market Research" or just a "Quick Vision".
- Strategy (p01): Calculates TAM/SAM/SOM and checks competitors.
- Vision (p02): Defines the "Soul" of the product and User Stories.
- Director (p03): Adversarial Gatekeeper. Rejects fluff. Signs off with a cryptographic hash.
- Solution (p04): Converts Vision to
SOLUTION_BLUEPRINT.md(ROI, UX Flows). - Handoff: Compiles
BRD.mdand triggers the Technical Phase.
>> Read the full Product Development Playbook <<
- Initialization: Ensure you are in the project root.
- Reconnaissance: If the project already exists, ensure
.AGENTS.mdfiles exist in root folders. If not, create empty or basic ones so agents have somewhere to write.
- Analyst (02_analyst_prompt.md):
- Provide the agent with the idea/task.
- The agent studies the project structure (Reconnaissance).
- Result: Technical Specification (TASK).
- TASK Review (03_task_reviewer_prompt.md):
- Check the TASK for completeness and consistency.
- Architect (04_architect_prompt.md):
- Based on the TASK, the agent designs the architecture.
- Result: Architecture Document (
docs/ARCHITECTURE.md) - (classes, databases, APIs).
- Architecture Review (05_architecture_reviewer_prompt.md):
- Approve the architecture before planning.
- Planner (06_agent_planner.md):
- The agent creates a work plan.
- IMPORTANT: The plan must follow the Stub-First strategy:
- Task X.1 [STUB]: Create structure and stubs + E2E test on hardcode.
- Task X.2 [IMPL]: Implement logic + update tests.
- Plan Review (07_agent_plan_reviewer.md):
- Check that Stub-First principle is observed. If not, send for revision.
For each pair of tasks in the plan (Stub -> Impl):
- Developer (08_agent_developer.md) β STUB Phase:
- Creates files, classes, and methods.
- Methods return
Noneor hardcode (e.g.,return True). - Writes an E2E test that passes on this hardcode.
- Documentation First: Creates/updates
.AGENTS.mdin affected folders.
- Code Review (09_agent_code_reviewer.md) β STUB Phase:
- Checks: "Are these really stubs? Does the test pass?".
- Developer (08_agent_developer.md) β IMPLEMENTATION Phase:
- Replaces hardcode with real logic.
- Updates tests (removes hardcode asserts, adds real checks).
- Anti-Loop: If tests fail 2 times in a row with the same error β stop and analyze.
- Code Review (09_agent_code_reviewer.md) β IMPLEMENTATION Phase:
- Checks: "No stubs left? Is code clean? Do tests pass?".
- Final Check: Run the full test suite (Regression Testing).
- Git Commit:
- If all tests are green, make a commit.
- Recommended format:
feat(scope): description.
- Artifacts:
- Ensure all created artifacts (TASK, Architecture, Plan) are saved in the project documentation.
- Archive TASK: Copy the final Technical Specification to the archive:
cp docs/TASK.md docs/tasks/task-ID-name.md.
During the development process, agents create various artifacts. Here is how to handle them:
| Artifact | Path | Status | Recommendation |
|---|---|---|---|
| Product Strategy | docs/product/MARKET_STRATEGY.md |
Strategic | TAM/SAM/SOM & Competitive Analysis. Update quarterly. |
| Product Vision | docs/product/PRODUCT_VISION.md |
Strategic | "North Star". Defines User Stories and Values. |
| Solution Blueprint | docs/product/SOLUTION_BLUEPRINT.md |
Tactical | ROI, Risk Register, UX Flows. |
| BRD | docs/product/BRD.md |
Quality Gate | Business Requirements. Signed with hash. Triggers dev. |
| Technical Specification | docs/TASK.md |
Single Source of Truth (Technical) | STRICTLY for current active task. Derived from BRD. |
| Architecture | docs/ARCHITECTURE.md |
Source of Truth (System) | NEVER DELETE. Keep updated. This is the map of your system. |
| Known Issues | docs/KNOWN_ISSUES.md |
Living Document | Keep. Document bugs, workarounds, and complex logic explanation. |
| Task Archive | docs/tasks/task-ID-name.md |
History / Immutable | Mandatory Archive. All completed TASKs move here. Never edit after archiving. |
| Subtask Description | docs/tasks/task-ID-SubID-slug.md |
Granular Plan | Created by Planner. detailed steps for Developer. |
| Implementation Plan | docs/PLAN.md (or implementation_plan.md) |
Transient | Can be kept for history or deleted after task completion. |
| Test Report | tests/tests-{TaskID}/... |
Proof of Quality | Created by Developer. Contains verification results. |
| Walkthrough | walkthrough.md |
Proof of Work | Created after verification. Demonstrates changes and validation results. |
| Task Checklist | task.md |
Transient | Task tracking. Reset/overwrite for new tasks. |
| Agent Memory | .AGENTS.md |
Long-term Memory | NEVER DELETE. Commit to Git. |
| Open Questions | docs/open_questions.md |
Unresolved Issues | Track unresolved architectural questions here. |
Strict Artefact Rules (New v2.1):
- One Task = One TASK:
docs/TASK.mdalways reflects only what is being built right now. - Archive Strategy:
- Before starting a fundamentally new task: Archive
docs/TASK.md->docs/tasks/task-00N-name.md. - During the task: Only overwrite
docs/TASK.md. Never append.
- Before starting a fundamentally new task: Archive
- Cleanup:
- Keep: All
docs/*files that describe the current state of the system. - Cleanup: Intermediate scratchpads if you used them outside of
docs/.
- Keep: All
DO NOT DELETE THEM!
The .AGENTS.md files are the project's "long-term memory" for agents (and humans).
- When development is complete: Leave them in the repository. They should be committed along with the code.
- Why they are needed: When you return to the project in a month (or another agent comes), this file explains: "This folder is responsible for auth, main files here are X and Y".
- Maintenance: If you refactor code manually, do not forget to update
.AGENTS.md.
To make the next iteration go smoothly:
- Green Tests: Leave the project with passing tests. A broken test at the start of the next task will confuse agents.
- Actual Map: Check that
.AGENTS.mdmatches reality. - Open Questions: If unresolved architectural questions remain, record them in
docs/open_questions.mdso the Architect of the next iteration sees them.
If the user made "free-form" fixes during development completion, the documentation (e.g., docs/TASK.md, docs/ARCHITECTURE.md) might have desynchronized with the actual code.
To prevent AI from breaking what you fixed when adding a feature next time, you need to update the documentation.
Tip
Use skill-reverse-engineering for structured recovery of architecture docs from code.
Use skill-update-memory for automatic .AGENTS.md updates based on git diff.
Example prompt (Reverse Engineering):
@docs/ARCHITECTURE.md
You are an Architect and Technical Writer.
Apply skill-reverse-engineering.
SITUATION:
We completed active development. Many manual fixes were made.
Current documentation is outdated and does not reflect the actual code structure.
TASK:
1. Use the iterative analysis strategy from skill-reverse-engineering.
2. Update docs/ARCHITECTURE.md with the real technical solution.
3. Record hidden knowledge in docs/KNOWN_ISSUES.md (TODOs, HACKs, complex spots).
4. Generate missing .AGENTS.md files using skill-update-memory format.
IMPORTANT: To launch the process, use Composer (Cmd+I) or chat.
Copy this text to activate the Orchestrator via AGENTS.md.
You are an Orchestrator.
Context: Our project - [PROJECT_NAME/DESCRIPTION].
TASK: Develop "[FEATURE_NAME]" module.
INPUT:
- [REQUIREMENT_1]
- [REQUIREMENT_2]
ACTION:
- Execute workflow `/base-stub-first` (Standard Pipeline).
You are an Orchestrator.
TASK: Refactor "[MODULE_NAME]" module.
CONTEXT:
- Current code: `[PATH/TO/CODE]`.
- Problem: [DESCRIPTION_OF_PROBLEM].
- Goal: [DESCRIPTION_OF_GOAL].
ACTION:
- Execute workflow `/base-stub-first` (Analysis -> Arch -> Plan -> Refactor).
You are an Orchestrator.
TASK: Fix the "[ERROR_DESCRIPTION]" bug.
INPUT:
- Log file: [PATH_TO_LOGS].
ACTION:
- Execute workflow `/vdd-adversarial` to reproduce and fix.
You are an Orchestrator.
TASK: Restore outdated documentation.
CONTEXT:
- Active development finished, but `docs/` are stale.
ACTION:
- Execute workflow `/04-update-docs` to reverse-engineer architecture and update memory.
You are an Orchestrator.
TASK: Audit the "[MODULE_OR_SERVICE_NAME]" for vulnerabilities.
ACTION:
- Execute workflow `/security-audit`.
Goal: Transition from "TZ" (Π’Π΅Ρ Π½ΠΈΡΠ΅ΡΠΊΠΎΠ΅ ΠΠ°Π΄Π°Π½ΠΈΠ΅) to "TASK" to align with the new standard.
- Rename Artifact:
mv docs/TZ.md docs/TASK.md
- Update Prompts:
- Overwrite
System/Agents/with the latest version from v3.1.0 release. - Key shift:
03_tz_reviewer_prompt.mdis now03_task_reviewer_prompt.md.
- Overwrite
- Update Skills:
- Overwrite
.agent/skills/with the latest version.
- Overwrite
Goal: Enable modular agents.
- Delete Legacy: Remove
System/Agents(if it contains monolithic prompts). - Install New: Copy
System/Agents(v3.0+) and.agent/folder to root. - Config: Ensure
GEMINI.mdorAGENTS.mdare updated.
For maximum automation, you can use a mode where the Orchestrator independently calls sub-agents via CLI.
You will need the cursor-agent utility (or equivalent) allowing LLM requests from the terminal.
# Example installation (hypothetical)
npm install -g cursor-agentUse this prompt in Cursor chat to run the full development chain on a task.
Using the multi-agent development orchestration approach (System/Agents/01_orchestrator.md),
perform the modification: {LINK_TO_TASK_FILE_OR_DESCRIPTION}.
PROJECT DESCRIPTION:
{BRIEF DESCRIPTION OR LINK TO README}
AGENT LAUNCH INSTRUCTION:
Agent prompts are located in System/Agents (02*.md .. 09.md).
You must call agents by executing shell commands like:
`cursor-agent -f --model {MODEL} -p "{PROMPT_TEXT}"`
CALL FORMAT:
The prompt text must consist of:
1. Content of the role's system prompt (e.g., System/Agents/02_analyst_prompt.md).
2. Input data for this role (according to description in 01_orchestrator.md).
RECOMMENDED MODELS:
- Analyst, Architect, Planner β opus-4.5 (or high-accuracy equivalent)
- Reviewers, Developer β composer-1 (or claude-3.5-sonnet for code)
IMPORTANT:
- Wait for the command execution result before the next step.
- Follow the pipeline: Analysis -> Architecture -> Plan -> (Stub -> Test -> Impl).
