AS

ahmedemad3/super-ai-agency-framework

Developer tools
60ย stars ๅ“่ณช 40 ใƒˆใƒฌใƒณใƒ‰ 40

๐Ÿš€ A persona-driven AI development framework that merges with and to deliver a structured, gated, spec-driven development workflow from strategy to production with a full post-ship learning loop.

ๆฆ‚่ฆ

๐Ÿš€ A persona-driven AI development framework that merges with and to deliver a structured, gated, spec-driven development workflow from strategy to production with a full post-ship learning loop. The Super AI Agency Framework is a that follows a strict, gated, 9-phase workflow. Instead of vibe-coding, every feature goes through mandatory phases โ€” from strategy to production and post-ship learning โ€” with specialized AI personas responsible for each phase. Addressing all gaps identified in the Agency + Spec-Kit integration analysis. : ๐Ÿ›๏ธ Agency Persona | ๐Ÿ”ง Spec-Kit Tool | ๐Ÿ” Bridge Auto-Sync | โœ‹ Human Gate | ๐Ÿ”ง๐Ÿ”ต spec-kit-learn 1. Open your AI coding agent in the project directory 2. Say: or 3. The Orchestrator detects no artifacts โ†’ begins Phase 0 4. Follow the prompts through each phase 5. The bridge sync runs โ€” you do not need to trigger it manually The complete step-by-step playbook for running any project through the 9-phase framework.

README

Super AI Agency Framework

๐Ÿš€ A persona-driven AI development framework that merges 13 expert AI agents with GitHub Spec-Kit v0.4.4 and spec-kit-learn v1.1.0 to deliver a structured, gated, spec-driven development workflow from strategy to production with a full post-ship learning loop.


Table of Contents


๐Ÿค” What is This?

The Super AI Agency Framework is a complete AI-powered software development team that follows a strict, gated, 9-phase workflow. Instead of vibe-coding, every feature goes through mandatory phases โ€” from strategy to production and post-ship learning โ€” with specialized AI personas responsible for each phase.

Why Not Just Use Spec-Kit or Copilot Alone?

Feature Spec-Kit Alone Copilot/Agent Alone Super AI Agency v2
Structured spec-driven workflow โœ… โŒ โœ…
Specialized AI personas โŒ โŒ โœ… 13 experts
Gated phase transitions โŒ โŒ โœ… User approval
7-Lens + 5-pass code review โŒ โŒ โœ… Dual review
Test-first development (mandatory) Partial โŒ โœ… Constitutionally enforced
Production deployment pipeline โŒ โŒ โœ… DevOps
Cross-artifact consistency (5 artifacts) Partial โŒ โœ… Dual-track
Constitution enforcement โœ… โŒ โœ… XML per-protocol
Automatic bridge sync โŒ โŒ โœ… Every approval
Educational learning guides โŒ โŒ โœ… spec-kit-learn
Visual architecture diagrams โŒ โŒ โœ… Auto-generated
Post-ship retrospective loop โŒ โŒ โœ… Mandatory Phase 8
Git sprint branching โŒ โŒ โœ… Per sprint
Constitution self-improvement โŒ โŒ โœ… Retro-driven

๐Ÿ†• Whatโ€™s New in v2.0

Addressing all gaps identified in the Agency + Spec-Kit integration analysis.

๐Ÿ”ด Critical Gaps Fixed

# Gap Fixed How
G-01 Bridge sync after STRATEGY.md Now automatic in Orchestrator `` tag
G-02 Bridge sync after BRD.md Now automatic in Orchestrator `` tag
G-03 Bridge sync after SAD.md Now automatic in Orchestrator `` tag
G-04 Bridge sync after SCHEMA.sql Now automatic in Orchestrator `` tag
G-05 Bridge sync after API.yaml Now automatic in Orchestrator `` tag
G-06 speckit-tasks never called Now mandatory in Phase 3 โ€” generates tasks.md before backlog
G-07 speckit-analyze not run post-tasks Now runs automatically after tasks.md is generated
G-08 speckit-implement bypassed Now mandatory โ€” all dev personas execute through it
G-09 speckit-ship-run not called Now auto-triggered after production confirmed
G-10 speckit-reconcile-run missing Now mandatory Phase 8 Step 17
G-11 Retro tools not called Now mandatory Phase 8 Steps 18 + 19

โš ๏ธ Partial Alignments Resolved

# Enhancement Change
P-01 speckit-verify-run optional โ†’ mandatory extensions.yml + Orchestrator SOP updated
P-02 speckit-staff-review-run optional โ†’ mandatory extensions.yml + Orchestrator SOP updated
P-03 speckit-analyze dual-track Now runs both Agency (5 artifacts) + Spec-Kit (3 artifacts)
P-04 Checklist gate inconsistent Now enforced before EVERY phase transition

๐Ÿ†• New Features

Feature Description
spec-kit-learn v1.1.0 Auto-installed at Phase 0. /speckit.learn.diagrams after every plan. /speckit.learn.review after every implementation. /speckit.learn.clarify enhanced Q&A.
Phase 8 (Mandatory Post-Ship) Reconcile โ†’ Retro โ†’ Retrospective-Analyze โ†’ Constitution update offer. Cannot be skipped.
Git Sprint Branching sprint-[X]-[name] branch auto-created at Step 7 (Sprint Planning). PR auto-created at Phase 7 (Ship).
Automatic Bridge Sync spec-kit-bridge.ps1 now runs AUTOMATICALLY after every approval via `` XML tag. Not manual.
Frontend Design Gate Formalized in XML: choose Scratch vs Template before any frontend code. Auto-injects design tokens.
Post-Sprint Deploy Verify After every staging and production deploy, you are explicitly asked to verify manually.
Constitution v2.0 7 new laws added to ยง5: automatic bridge, XML-only instructions, mandatory speckit-implement, mandatory verify, mandatory Phase 8, mandatory spec-kit-learn, git sprint branching.
SIMULATION_GUIDE.md New complete step-by-step playbook for running any project through the framework.

๐ŸŒŸ The 9-Phase Workflow

Phase 0: Init        โ†’ /speckit.init        โ†’ Scaffold workspace + install spec-kit-learn
Phase 1: Specify     โ†’ /speckit.specify     โ†’ PM strategy + BA BRD + Enhanced Clarify
Phase 2: Plan        โ†’ /speckit.plan        โ†’ SAD + DB + API + Diagrams + Consistency Check
Phase 3: Tasks       โ†’ /speckit.tasks       โ†’ Git branch + backlog + tasks.md + pre-impl analyze
Phase 4: Implement   โ†’ /speckit.implement   โ†’ TDD: QA tests first โ†’ FE/BE โ†’ learn.md โ†’ verify
Phase 5: Review      โ†’ /speckit-commit      โ†’ staff-review (5-pass) + 7-Lens audit + QA exec
Phase 6: Deploy      โ†’ /speckit-deploy      โ†’ Docker + CI/CD + Trivy + staging + manual verify
Phase 7: Ship        โ†’ /speckit-ship        โ†’ Regression + handover + production + PR auto-created
Phase 8: Post-Ship   โ†’ /speckit.reconcile   โ†’ Reconcile + Retro + Retrospective + Constitution update

Every phase requires your explicit approval before proceeding. No phase can be skipped.
Bridge sync runs AUTOMATICALLY after every approval โ€” not a manual step.


๐Ÿ—บ๏ธ Workflow Diagram

flowchart TD
    classDef agency fill:#1e3a5f,stroke:#4a90d9,color:#e8f4ff,font-weight:bold
    classDef speckit fill:#1a3d2b,stroke:#4caf50,color:#e8f5e9,font-weight:bold
    classDef bridge fill:#3d2a00,stroke:#ff9800,color:#fff3e0,font-weight:bold
    classDef gate fill:#4a1942,stroke:#e040fb,color:#fce4ec,font-weight:bold
    classDef human fill:#1a1a2e,stroke:#e91e63,color:#fce4ec,font-weight:bold
    classDef learn fill:#1a2a3d,stroke:#00bcd4,color:#e0f7fa,font-weight:bold

    START([๐Ÿš€ Project Start]) --> PH0

    subgraph PH0["โš™๏ธ PHASE 0 โ€” Init"]
        P0_AG["๐Ÿ›๏ธ ORCHESTRATOR\n/speckit.init\nScaffold Artifacts/\nInstall spec-kit-learn"]:::agency
        P0_SK["๐Ÿ”ง speckit-init +\nspeckit-checklist gate"]:::speckit
        P0_AG --> P0_SK
    end
    PH0 --> PH1

    subgraph PH1["๐Ÿ“‹ PHASE 1 โ€” Specify & Clarify"]
        P1a["๐Ÿ›๏ธ @product-manager\nSTRATEGY.md"]:::agency
        P1b["๐Ÿ›๏ธ @business-analyst\nBRD.md (Gherkin, BPMN, NFRs)"]:::agency
        P1br["๐Ÿ” BRIDGE AUTO-SYNC\nArtifacts/ โ†’ .specify/"]:::bridge
        P1c["๐Ÿ”ง /speckit.learn.clarify\nEnhanced Q&A + context"]:::learn
        P1d["๐Ÿ”ง speckit-checklist gate"]:::speckit
        P1a --> P1b --> P1br --> P1c --> P1d
    end
    P1d --> G1{{"โœ‹ GATE: Specs Approved?"}}:::gate
    G1 -- REVISION --> P1b
    G1 -- PASS --> PH2

    subgraph PH2["๐Ÿ—๏ธ PHASE 2 โ€” Plan & Design"]
        P2a["๐Ÿ›๏ธ @principal-architect\nSAD.md + research.md"]:::agency
        P2b["๐Ÿ›๏ธ @senior-dba\nSCHEMA.sql + SEED_DATA"]:::agency
        P2c["๐Ÿ›๏ธ @backend-dev\nPHASE_X_API.yaml"]:::agency
        P2br["๐Ÿ” BRIDGE AUTO-SYNC"]:::bridge
        P2learn["๐Ÿ”ง /speckit.learn.diagrams\nComponent + System + Architecture"]:::learn
        P2e["๐Ÿ”ง speckit-analyze\nDual-track: 5 artifacts"]:::speckit
        P2a --> P2b --> P2c --> P2br --> P2learn --> P2e
    end
    P2e --> G2{{"โœ‹ GATE: Consistency OK?"}}:::gate
    G2 -- CRITICAL --> P2a
    G2 -- PASS --> PH3

    subgraph PH3["๐Ÿ“… PHASE 3 โ€” Sprint Planning"]
        P3git["๐Ÿ›๏ธ GIT BRANCH\nsprint-X-name created"]:::agency
        P3a["๐Ÿ›๏ธ @agile-lead\nMASTER_PLAN.md"]:::agency
        P3b["๐Ÿ”ง speckit-tasks\ntasks.md with TDD order"]:::speckit
        P3br["๐Ÿ” BRIDGE AUTO-SYNC"]:::bridge
        P3d["๐Ÿ”ง speckit-analyze\npre-impl consistency"]:::speckit
        P3git --> P3a --> P3b --> P3br --> P3d
    end
    P3d --> G3{{"โœ‹ GATE: Sprint Approved?"}}:::gate
    G3 -- PASS --> PH4

    subgraph PH4["๐Ÿ’ป PHASE 4 โ€” Implement (TDD Loop)"]
        P4a["๐Ÿ›๏ธ @qa-engineer FIRST\nTEST_CASES written"]:::agency
        P4b["๐Ÿ›๏ธ DESIGN GATE\nScratch OR Upload design"]:::agency
        P4c["๐Ÿ”ง speckit-implement\n@frontend tasks.md"]:::speckit
        P4d["๐Ÿ”ง speckit-implement\n@backend tasks.md + MermaidJS"]:::speckit
        P4learn["๐Ÿ”ง /speckit.learn.review\nlearn.md auto-generated"]:::learn
        P4e["๐Ÿ”ง speckit-verify-run\nMANDATORY โ€” Constitution ยง2"]:::speckit
        P4a --> P4b --> P4c & P4d --> P4learn --> P4e
    end
    P4e --> G4{{"โœ‹ GATE: Verify CRITICAL?"}}:::gate
    G4 -- CRITICAL --> P4c
    G4 -- PASS --> PH5

    subgraph PH5["๐Ÿ” PHASE 5 โ€” Review & Commit"]
        P5a["๐Ÿ”ง speckit-staff-review-run\nMANDATORY 5-pass"]:::speckit
        P5b["๐Ÿ›๏ธ @tech-lead\n7-Lens Audit"]:::agency
        P5c["๐Ÿ›๏ธ @qa-engineer\nTest Execution >85%"]:::agency
        P5a --> P5b --> P5c
    end
    P5c --> G5{{"โœ‹ GATE: APPROVED?"}}:::gate
    G5 -- REQUEST_CHANGES --> P4c
    G5 -- APPROVED --> COMMIT["๐Ÿ“ฆ git commit + push sprint branch"]
    COMMIT --> LOOP{{"More tickets?"}}
    LOOP -- YES --> P4a
    LOOP -- NO --> PH6

    subgraph PH6["๐Ÿš€ PHASE 6 โ€” Deploy to Staging"]
        P6a["๐Ÿ›๏ธ @devops + speckit-deploy\nDockerfile + CI/CD + Trivy"]:::agency
        P6b["โœ‹ YOU: Manual Verify\nRun app + check browser"]:::human
        P6a --> P6b
    end
    P6b --> G6{{"โœ‹ GATE: Staging OK?"}}:::gate
    G6 -- FAIL --> P6a
    G6 -- PASS --> PH7

    subgraph PH7["๐Ÿ PHASE 7 โ€” Ship"]
        P7a["๐Ÿ›๏ธ Full Regression ALL sprints\nBLOCKER if any fails"]:::agency
        P7b["๐Ÿ›๏ธ @tech-lead\nHANDOVER + WALKTHROUGH"]:::agency
        P7c["โœ‹ YOU: Approve Production"]:::human
        P7d["๐Ÿ›๏ธ @devops Blue/Green"]:::agency
        P7e["๐Ÿ”ง speckit-ship-run\nPR โ†’ main (auto)"]:::speckit
        P7f["โœ‹ YOU: Verify Production"]:::human
        P7a --> P7b --> P7c --> P7d --> P7e --> P7f
    end
    P7f --> PH8

    subgraph PH8["๐Ÿ”„ PHASE 8 โ€” Post-Ship MANDATORY"]
        P8a["๐Ÿ”ง speckit-reconcile-run\nDrift detection + fix"]:::speckit
        P8br["๐Ÿ” BRIDGE AUTO-SYNC"]:::bridge
        P8b["๐Ÿ”ง speckit-retro-run\nMetrics dashboard"]:::speckit
        P8c["๐Ÿ”ง speckit-retrospective-analyze\nSpec adherence score"]:::speckit
        P8d["๐Ÿ”ง speckit-constitution\nOffer update โ€” YOUR approval"]:::speckit
        P8a --> P8br --> P8b --> P8c --> P8d
    end

    P8d --> MORE{{"More Sprints?"}}
    MORE -- YES --> PH3
    MORE -- NO --> DONE(["โœ… Project Complete"])

Legend: ๐Ÿ›๏ธ Agency Persona | ๐Ÿ”ง Spec-Kit Tool | ๐Ÿ” Bridge Auto-Sync | โœ‹ Human Gate | ๐Ÿ”ง๐Ÿ”ต spec-kit-learn


โšก Get Started

Prerequisites

Installation

# Clone the repository
git clone https://github.com/ahmedemad3/super-ai-agency-framework.git
cd super-ai-agency-framework

# Install Spec-Kit CLI (if not already installed)
uv tool install specify-cli --from git+https://github.com/github/[email protected]

# Initialize Spec-Kit in the project (already done, but verify)
specify check

Option 2: Start from Scratch

# Create a new project directory
mkdir my-project && cd my-project

# Install Spec-Kit CLI
uv tool install specify-cli --from git+https://github.com/github/[email protected]

# Initialize with Spec-Kit + Agency skills
specify init . --ai agy --ai-skills --force

# Download the Agency skills (from this repo)
# Copy the .agent/ folder from this repo into your project

Option 3: Add to Existing Project

cd your-existing-project

# Initialize Spec-Kit (merge mode)
specify init . --ai agy --ai-skills --force

# Copy the Agency skills from this repo
cp -r /path/to/super-ai-agency-framework/.agent/skills/BA-skill .agent/skills/
cp -r /path/to/super-ai-agency-framework/.agent/skills/DBA-skill .agent/skills/
cp -r /path/to/super-ai-agency-framework/.agent/skills/Orchestrator-skill .agent/skills/
# ... (copy all 13 Agency skills)

# Copy governance files
cp -r /path/to/super-ai-agency-framework/Artifacts/00_Governance ./Artifacts/00_Governance/

# Copy workflows
cp -r /path/to/super-ai-agency-framework/.agent/workflows .agent/workflows/

First Run

  1. Open your AI coding agent in the project directory
  2. Say: โ€œStart projectโ€ or /speckit-init
  3. The Orchestrator detects no artifacts โ†’ begins Phase 0
  4. Follow the prompts through each phase
  5. The bridge sync runs automatically โ€” you do not need to trigger it manually

๐Ÿ“˜ Simulation Guide

The complete step-by-step playbook for running any project through the 9-phase framework.

๐Ÿ“„ SIMULATION_GUIDE.md โ€” Read this before starting any project. It covers:

  • Every phase with your exact review checklist
  • What each step produces and how to validate it
  • Pass/Fail gates and when to block
  • Emergency recovery commands
  • Complete artifact checklist by phase
  • Quick reference for all commands

๐Ÿ“‹ Complete Step-by-Step Workflow

Treat this framework as a managed engineering organization โ€” you are the CEO, the AI is the Agency.

Phase 0: Initialize

Step Command Output Gate
0.1 /speckit-init Folder structure + Constitution loaded โ€œWorkspace ready. What is your project idea?โ€

Phase 1: Specify (Strategy + Requirements)

Step Command Persona Output Gate
1.1 /speckit.specify Product Manager Artifacts/01_Strategy/STRATEGY.md โ›” Review Vision, MVP Scope, Success Metrics
1.2 (auto-chains) Business Analyst Artifacts/02_Specs/BRD.md โ›” Review User Stories + Gherkin scenarios

Before approving: Does every story have Given/When/Then? Are NFRs specific numbers?

Phase 1b: Clarify

Step Command Persona Output Gate
1.3 /speckit-clarify Business Analyst ## Clarifications appended to BRD.md โ›” Answer ALL questions with specific values

Always run this โ€” even if the BRD looks complete. It catches hidden assumptions.

๐Ÿ”— Bridge Sync: .\.agent\scripts\spec-kit-bridge.ps1 -FeatureName "001-my-feature"

Phase 2: Plan (Architecture + Database + API)

Step Command Persona Output Gate
2.1 /speckit.plan Solution Architect SAD.md + research.md โ›” Review C4 diagrams, tech stack
2.2 (auto) Database Architect SCHEMA.sql + SEED_DATA.sql + data-model.md โ›” Review normalization, indexes
2.3 (auto) Java/Node Developer PHASE_[X]_API.yaml โ›” Review endpoint design, DTOs

โš ๏ธ Step 2.3 is often missed โ€” The API design is a separate step from architecture. The developer persona designs the OpenAPI contract โ€” no implementation code yet.

๐Ÿ” Bridge Sync: Runs automatically after each approval in Phase 2.

NEW in v2.0: After architecture approval, /speckit.learn.diagrams --all auto-generates visual architecture docs (component, system, software architecture diagrams).

Phase 2b: Analyze (Cross-Artifact Consistency)

Step Command Persona Output Gate
2.4 /speckit-analyze Tech Lead CROSS_ARTIFACT_CONSISTENCY.md โ›” BLOCKER if critical inconsistencies

Checks: BRD โ†” API mapping, Schema โ†” DTOs, SAD feasibility, naming consistency.

Phase 3: Tasks (Sprint Planning)

Step Command Persona Output Gate
3.0 "Plan Sprint X" Orchestrator sprint-X-name git branch created Auto
3.1 /speckit.tasks Project Manager MASTER_PLAN.md (multi-sprint overview) โ›” Verify MVP = Sprint 1
3.2 (auto) Project Manager SPRINT_[X]_BACKLOG.md + tasks.md via speckit-tasks โ›” Review deps, [P] markers
3.3 (auto) speckit-analyze CROSS_ARTIFACT_CONSISTENCY.md (pre-impl) โ›” BLOCKER if CRITICAL

NEW in v2.0: speckit-tasks is now invoked to generate tasks.md โ€” speckit-implement reads it for TDD order enforcement. Git branch auto-created at sprint start.

Phase 4: Implement (TDD Loop โ€” Per Ticket)

Repeat for EACH ticket in Sprint Backlog:

Step Command Persona Output
4.1 /speckit.implement [TicketID] QA Engineer TEST_CASES_[TicketID].md (tests written FIRST โ€” mandatory)
4.2 (FE tickets only) Frontend Dev โ›” โ€œScratch OR upload design referenceโ€
4.3 (auto via speckit-implement) Frontend Dev Source code โ€” reads tasks.md, marks [X]
4.4 (auto via speckit-implement) Backend Dev Source code + MermaidJS flowchart + sequence diagram
4.5 (auto โ€” after_implement hook) spec-kit-learn learn.md โ€” educational guide auto-generated
4.6 (auto โ€” mandatory) speckit-verify-run Verification report โ€” CRITICAL blocks Phase 5

NEW in v2.0: speckit-implement is now mandatory โ€” agents execute through it, not free-form. speckit-verify-run is now mandatory (not optional). learn.md is auto-generated after every ticket.

Phase 5: Review (Code Quality Gate โ€” Per Ticket)

Step Command Persona Output Decision
5.1 (auto โ€” mandatory) speckit-staff-review-run reviews/review-[timestamp].md (5-pass) Blocker findings โ†’ back to Phase 4
5.2 /speckit-commit Tech Lead REVIEW_[TicketID].md (7-Lens audit) APPROVED โ†’ Commit / REQUEST_CHANGES โ†’ Phase 4
5.3 (auto) QA Engineer Test execution > 85% goal PASS โ†’ Continue / FAIL โ†’ Phase 4

Review: 5-pass staff review FIRST, then 7-Lens: Architecture ยท Security ยท Resilience ยท Observability ยท Performance ยท Test Quality ยท Maintainability

NEW in v2.0: speckit-staff-review-run is now mandatory (was optional). Must run before Tech Lead 7-Lens.

Phase 6: Deploy (Staging)

Step Command Persona Output
6.1 /speckit-deploy DevOps Engineer Dockerfile, docker-compose.yml, CI/CD pipeline
6.2 (auto) DevOps Engineer Trivy scan โ€” โ›” BLOCKER: 0 Critical/High CVEs
6.3 (auto) DevOps Engineer DEPLOYMENT_LOG.md
6.4 YOU (manual) โ€” Run app + verify features work in browser

NEW in v2.0: You are explicitly asked to verify staging manually before proceeding to Phase 7.

Phase 7: Ship (Production)

Step Command Persona Output Gate
7.1 /speckit-ship QA Engineer REGRESSION_SPRINT_[X].md โ›” BLOCKER: ANY test fails โ†’ back to Phase 4
7.2 (auto) Tech Lead SPRINT_[X]_HANDOVER.md + WALKTHROUGH.md + QUALITY_POLISH_VERIFICATION.md + CHANGELOG โ›” Review handover doc
7.3 YOU โ€” โ€” โ›” โ€œApprove production deployment?โ€
7.4 (auto) DevOps Engineer Production deploy (Blue/Green or Canary) Monitor error rates 15 min
7.5 (auto) speckit-ship-run PR created โ†’ main + changelog auto-generated
7.6 YOU (manual) โ€” โ€” โ›” Verify production features work

NEW in v2.0: speckit-ship-run is now mandatory (was optional) โ€” auto-creates PR with full artifact traceability.

Phase 8: Post-Ship (NEW โ€” MANDATORY)

Step Tool Output
8.1 speckit-reconcile-run Drift detection + surgical spec/plan/tasks fixes
8.2 speckit-retro-run Metrics retrospective โ€” accuracy scores, QA rate, improvement suggestions
8.3 speckit-retrospective-analyze Quantitative spec adherence scoring
8.4 speckit-constitution Constitution update (requires YOUR explicit approval)

NEW in v2.0: Phase 8 is now mandatory โ€” itโ€™s the learning loop that improves every future sprint.

Multi-Sprint Loop

After Ship, if MASTER_PLAN.md has more sprints:

โ†’ Go back to Phase 3: "Plan Sprint [X+1]"
โ†’ Repeat Phase 4 โ†’ 5 โ†’ 6 โ†’ 7
โ†’ Continue until all sprints shipped

๐Ÿ”„ Multi-Sprint Edge Cases

  • API evolution: If a later sprint introduces new endpoints, update PHASE_[X]_API.yaml during that sprintโ€™s Phase 4.
  • Architectural changes: If a later sprint adds a major component (e.g., Elasticsearch), re-run /speckit.plan and /speckit-analyze before Phase 4.
  • Test Suite Growth: By Sprint 10, regression tests may exceed context limits. Use โ€œcritical path regressionโ€ for later sprints.
  • Bridge Sync Scheduled: Always run spec-kit-bridge.ps1 after Phase 1b, Phase 2, Phase 3, AND at the end of Phase 7 to sync test cases and deliverables.

๐Ÿค– AI Agent Roster

13 Specialized Persona Skills

# Agent Role Key Output
1 Product Manager Strategy & MVP Definition STRATEGY.md
2 Technical Proposal Architect Client-Facing Proposals TECHNICAL_PROPOSAL.md
3 Business Analyst Requirements & Gherkin Specs BRD.md
4 Solution Architect System Design (C4, 3-Pass) SAD.md, research.md
5 Database Architect Schema, Seeding, Performance SCHEMA.sql, data-model.md
6 Java Developer Spring Boot 3, Java 21+ API implementation
7 Node.js Developer NestJS/Express, TypeScript API implementation
8 Frontend Developer React/Vue/Angular UI components
9 QA Engineer TDD, Playwright, Regression TEST_CASES_[ID].md
10 Tech Lead 7-Lens Code Review REVIEW_[ID].md
11 Project Manager Sprint Planning, DAG Tasks MASTER_PLAN.md
12 DevOps Engineer Docker, CI/CD, Trivy Dockerfile, pipelines
13 Orchestrator (CEO) Phase Management XML Protocol Enforcement

12 Spec-Kit Skills (Auto-installed + spec-kit-learn)

Skill Command Purpose Status
speckit-constitution /speckit.constitution Create project governing principles Core
speckit-specify /speckit.specify Generate feature specification Core
speckit-clarify /speckit.clarify Structured ambiguity resolution Core
speckit-plan /speckit.plan Technical implementation plan Core
speckit-analyze /speckit.analyze Cross-artifact consistency check (5 artifacts) Core
speckit-tasks /speckit.tasks Task breakdown with TDD ordering Mandatory
speckit-implement /speckit.implement Execute implementation (all dev personas use this) Mandatory
speckit-checklist /speckit.checklist Quality validation checklist Core
speckit-taskstoissues /speckit.taskstoissues Convert tasks to GitHub Issues Optional
speckit-learn-review /speckit.learn.review Educational learn.md after implementation Auto
speckit-learn-diagrams /speckit.learn.diagrams Visual architecture diagrams after plan Auto
speckit-learn-clarify /speckit.learn.clarify Enhanced clarification with context Auto

๐Ÿ”ง Slash Commands

Core Workflow Commands

Command Phase What Happens
/speckit-init 0 Scaffold workspace, load Constitution
/speckit.specify 1 PM โ†’ BA chain: Strategy then BRD
/speckit-clarify 1b BA asks 5-10 targeted questions
/speckit.plan 2 Architect โ†’ DBA โ†’ API Design
/speckit-analyze 2b Tech Lead cross-artifact audit
/speckit.tasks 3 PM creates sprint backlog with [P] markers
/speckit.implement 4 QA โ†’ FE/BE TDD implementation loop
/speckit-commit 5 Tech Lead 7-Lens review + Git commit
/speckit-deploy 6 DevOps: Docker โ†’ CI/CD โ†’ Staging
/speckit-ship 7 Regression โ†’ Handover โ†’ Production

spec-kit-learn Commands (Auto-triggered)

| Command | Trigger | Purpose | |---------|---------|---------|----------| | /speckit.learn.diagrams | After /speckit.plan | Visual architecture diagrams (Component, System, Software) | | /speckit.learn.review | After /speckit.implement | Educational learn.md โ€” Key Decisions, Concepts, Glossary | | /speckit.learn.clarify | During /speckit-clarify | Enhanced Q&A with Why + Pros/Cons + Recommended option |

Enhancement Commands

Command Purpose
/speckit.checklist Generate quality validation checklist
/speckit.taskstoissues Push tasks to GitHub Issues
/speckit.reconcile.run Post-ship drift reconciliation (Phase 8)
/speckit.retro.run Sprint retrospective with metrics (Phase 8)
/speckit.retrospective.analyze Spec adherence scoring (Phase 8)

๐Ÿ“ Project Structure

super-ai-agency-framework/
โ”œโ”€โ”€ .agent/
โ”‚   โ”œโ”€โ”€ skills/                        โ† 22 Skills (13 Agency + 9 Spec-Kit)
โ”‚   โ”‚   โ”œโ”€โ”€ Orchestrator-skill/        โ† ๐ŸŽฏ CEO: 8-phase decision engine
โ”‚   โ”‚   โ”œโ”€โ”€ Product-manager-skill/     โ† ๐Ÿ“Š Strategy & MVP
โ”‚   โ”‚   โ”œโ”€โ”€ BA-skill/                  โ† ๐Ÿ“‹ Requirements (Gherkin)
โ”‚   โ”‚   โ”œโ”€โ”€ Solution-architect-skill/  โ† ๐Ÿ—๏ธ System Design (C4)
โ”‚   โ”‚   โ”œโ”€โ”€ DBA-skill/                 โ† ๐Ÿ—„๏ธ Database Design
โ”‚   โ”‚   โ”œโ”€โ”€ Sr.Java-skill/             โ† โ˜• Java 21+ Backend
โ”‚   โ”‚   โ”œโ”€โ”€ Sr.Node-skill/             โ† ๐ŸŸข Node.js Backend
โ”‚   โ”‚   โ”œโ”€โ”€ Sr.Front-skill/            โ† ๐ŸŽจ Frontend (React/Vue/Angular)
โ”‚   โ”‚   โ”œโ”€โ”€ Sr.QA-skill/               โ† ๐Ÿงช Testing (TDD + Regression)
โ”‚   โ”‚   โ”œโ”€โ”€ TL-skill/                  โ† ๐Ÿ” 7-Lens Code Review
โ”‚   โ”‚   โ”œโ”€โ”€ PM-skill/                  โ† ๐Ÿ“… Sprint Planning (DAG)
โ”‚   โ”‚   โ”œโ”€โ”€ Sr.Devops-skill/           โ† ๐Ÿš€ Docker + CI/CD
โ”‚   โ”‚   โ”œโ”€โ”€ tech_proposal-skill/       โ† ๐Ÿ“„ Technical Proposals
โ”‚   โ”‚   โ””โ”€โ”€ speckit-*/                 โ† ๐Ÿงฉ 9 Spec-Kit skills
โ”‚   โ”œโ”€โ”€ scripts/
โ”‚   โ”‚   โ””โ”€โ”€ spec-kit-bridge.ps1        โ† ๐Ÿ”— Artifact sync script
โ”‚   โ””โ”€โ”€ workflows/                     โ† โšก 6 workflow definitions
โ”‚       โ”œโ”€โ”€ speckit-init.md
โ”‚       โ”œโ”€โ”€ speckit-clarify.md
โ”‚       โ”œโ”€โ”€ speckit-analyze.md
โ”‚       โ”œโ”€โ”€ speckit-commit.md
โ”‚       โ”œโ”€โ”€ speckit-deploy.md
โ”‚       โ””โ”€โ”€ speckit-ship.md
โ”œโ”€โ”€ .specify/                          โ† ๐Ÿงฉ Spec-Kit scaffold
โ”‚   โ”œโ”€โ”€ memory/constitution.md
โ”‚   โ”œโ”€โ”€ extensions/                    โ† Installed extensions
โ”‚   โ”œโ”€โ”€ presets/agency-enterprise/     โ† Custom Agency preset
โ”‚   โ”œโ”€โ”€ scripts/
โ”‚   โ””โ”€โ”€ templates/
โ”œโ”€โ”€ Artifacts/                         โ† ๐Ÿ“‚ Source of Truth
โ”‚   โ”œโ”€โ”€ 00_Governance/                 โ† Constitution & Artifact Map
โ”‚   โ”œโ”€โ”€ 01_Strategy/                   โ† PM output
โ”‚   โ”œโ”€โ”€ 02_Specs/                      โ† BA output
โ”‚   โ”œโ”€โ”€ 03_Architecture/               โ† Architect output
โ”‚   โ”œโ”€โ”€ 04_Database/                   โ† DBA output
โ”‚   โ”œโ”€โ”€ 05_Planning/                   โ† Sprint backlogs
โ”‚   โ”œโ”€โ”€ 06_Quality_Reports/            โ† Tests, reviews, regression
โ”‚   โ”œโ”€โ”€ 07_API_Specs/                  โ† OpenAPI contracts
โ”‚   โ””โ”€โ”€ 08_Releases/                   โ† Handover docs, deploy logs
โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ LICENSE
โ”œโ”€โ”€ CONTRIBUTING.md
โ”œโ”€โ”€ CHANGELOG.md
โ””โ”€โ”€ .gitignore

๐Ÿ›ก๏ธ Constitution & Governance

Every AI agent is bound by the Constitution (Artifacts/00_Governance/CONSTITUTION.md). It defines:

Section What It Governs
1. Quality Standards >85% test coverage, no any types, cyclomatic complexity โ‰ค10
2. Testing Policy Shift-Left TDD, Happy/Negative/Security paths per ticket
3. Security Baselines OWASP Top 10, non-root Docker, no PII in logs
4. Tech Stack Rules Java 21+/Node 20+, PostgreSQL 16+, React 19/Next.js 15
5. Phase Gate Rules User approval required, no phase skipping
6. Architecture Standards 3-Pass Refinement, C4 diagrams, API-First, DTOs only
7. DevOps Standards Multi-stage Docker, Trivy scan, Blue/Green deploy
8. Documentation Standards MermaidJS diagrams, ADRs, README per service

The Orchestrator injects a `` into every XML protocol to enforce compliance.


๐Ÿงฉ Spec-Kit Extensions

7 extensions โ€” all mandatory (no longer optional):

# Extension Purpose Command Phase Status
1 learn Visual diagrams + educational guides + enhanced clarify /speckit.learn.* 1,2,4 Mandatory + Auto
2 staff-review 5-pass staff-engineer code review against spec /speckit.staff-review.run 5 Mandatory
3 verify Post-implementation quality gate /speckit.verify.run 4 Mandatory
4 ship Release pipeline: pre-flight, changelog, PR creation /speckit.ship.run 7 Mandatory
5 reconcile Detect & surgically fix spec drift /speckit.reconcile.run 8 Mandatory
6 retrospective Quantitative spec adherence scoring /speckit.retrospective.analyze 8 Mandatory
7 retro Sprint retro with metrics dashboard /speckit.retro.run 8 Mandatory

v2.0 Change: All extensions changed from optional: true โ†’ optional: false in extensions.yml. They are now enforced by the Orchestrator XML protocol.

Install additional extensions:

# Browse the catalog
specify extension search

# Install from GitHub
specify extension add  --from 

# List installed
specify extension list

๐Ÿ“ก Extension Integration Guide

v2.0 Change: Extensions are now auto-triggered by the Orchestrator at specific phase gates โ€” not manual.

Extension Trigger Phase Mandatory
/speckit.learn.diagrams Auto after /speckit.plan approved 2 โœ… Yes
/speckit.learn.clarify Auto during /speckit-clarify 1b โœ… Yes
/speckit.learn.review Auto after every /speckit.implement 4 โœ… Yes
/speckit.verify.run Auto after implementation, before Phase 5 4 end โœ… Yes
/speckit.staff-review.run Auto first step of /speckit-commit 5 โœ… Yes
/speckit.ship.run Auto after production deployment confirmed 7 end โœ… Yes
/speckit.reconcile.run Auto start of Phase 8 8 โœ… Yes
/speckit.retro.run Auto Phase 8 Step 2 8 โœ… Yes
/speckit.retrospective.analyze Auto Phase 8 Step 3 8 โœ… Yes
/speckit.constitution Offered by Orchestrator โ€” YOUR approval required 8 end Approval only

๐Ÿ”— Bridge Script

The spec-kit-bridge.ps1 script syncs Artifacts/ (Agency source of truth) โ†’ .specify/specs/ (Spec-Kit CLI compatibility).

v2.0 Change: The bridge now runs AUTOMATICALLY after every approval via the `` XML tag in the Orchestrator SOP. You do NOT need to run it manually.

Automatic sync points (all now automatic):

  • After STRATEGY.md approved โ†’ spec.md (overwrite)
  • After BRD.md approved โ†’ spec.md (append)
  • After Clarifications recorded โ†’ spec.md (append)
  • After SAD.md approved โ†’ plan.md
  • After SCHEMA.sql approved โ†’ schema.sql + data-model.md
  • After API.yaml approved โ†’ contracts/
  • After SPRINT_BACKLOG approved โ†’ tasks.md
  • After Phase 8 reconcile โ†’ Artifacts/ (reverse sync)

Manual use (if needed for debugging):

# Dry run (preview what would be synced)
.agent\scripts\spec-kit-bridge.ps1 -FeatureName "001-my-feature" -DryRun

# Live sync
.agent\scripts\spec-kit-bridge.ps1 -FeatureName "001-my-feature"

If bridge_sync_status shows STALE in the status block, say: โ€œRun bridge sync for feature [name]โ€.


๐Ÿšจ Emergency Recovery

When the AI drifts off-workflow, use these rescue commands:

Problem Fix
AI jumps phases "STOP. Check ARTIFACT_MAP.md. We are missing [artifact]. Run [command]."
Workflow loops Run /speckit-init to reset state detection
Persona identity crisis "You are [Persona]. Load Phase [X] protocol from your SKILL.md."
Context window overflow Start new conversation โ†’ paste last `` block โ†’ run /speckit-init
Artifact exists but low quality Run /speckit.checklist to validate, then ask persona to regenerate
Need full state report "@team-orchestrator, full state check. Read Artifacts/, compare to ARTIFACT_MAP.md. Report only, no action."
AI says LGTM without details "PROTOCOL VIOLATION. Constitution requires 7-Lens tabular report. Re-run the review."
Tests written after code "PROTOCOL VIOLATION. QA writes tests first. Run Step 4.1 for [TicketID]."

๐Ÿ”Œ Extending the Framework

The framework is designed for easy growth. Two extension paths are available:

Option 1: Add a New Agency Skill (AI Persona)

Best for: Adding a new expert role (e.g., Security Auditor, Data Engineer, Mobile Developer) Effort: ~15 minutes โ€” just 1 file

Create a new folder in .agent/skills/ with a SKILL.md:

.agent/skills/My-New-skill/SKILL.md

SKILL.md Template:

---
name: persona-my-new-role
description: Act as a [Role] (X+ years exp) specializing in [Specialty].
---

# Role: [Title]

## Context & Experience
You have **X years of experience**. You specialize in...

## Technical Skills & Competencies
- Skill 1
- Skill 2

## ๐Ÿง  Context Loading Protocol
1. **Load Artifacts**: Read `[relevant artifacts]`

## Workflow Interaction Protocol
1. **Incoming**: You receive [trigger]
2. **Action**: [What you do]
3. **Outgoing**: Save to `Artifacts/[folder]/[FILE].md`
   - End with: *"@team-orchestrator, [deliverable] is ready."*

## Deliverables
- **`FILE_NAME.md`**: Description

Then add one XML protocol block to the Orchestrator (Orchestrator-skill/SKILL.md) to wire it into a phase โ€” done.

Option 2: Add a Spec-Kit Extension

Best for: Adding workflow commands, integrations (Jira, Linear), or quality gates Effort: 2 minutes (install) or ~30 minutes (build your own)

Install from Community

# Search available extensions
specify extension search

# Install from GitHub
specify extension add  --from 

This auto-registers a new skill in .agent/skills/ and adds a slash command. Zero code needed.

Build Your Own Extension

Create this structure:

.specify/extensions/my-extension/
โ”œโ”€โ”€ extension.yml              โ† Extension metadata
โ”œโ”€โ”€ commands/
โ”‚   โ””โ”€โ”€ speckit.my-ext.run.md  โ† The command prompt (AI instructions)
โ””โ”€โ”€ templates/                 โ† Optional template overrides

extension.yml:

name: my-extension
version: 1.0.0
description: What this extension does
author: Your Name
commands:
  - name: speckit.my-ext.run
    description: What the command does
    type: agent-skill

commands/speckit.my-ext.run.md:

You are a [role]. When invoked:
1. Read [artifacts]
2. Perform [task]
3. Output results to [path]

Then install it:

specify extension add my-extension --from ./path/to/extension.zip

Quick Comparison

New Agency Skill Spec-Kit Extension
When to use New AI persona / expert role New workflow command / integration
Files to create 1 (SKILL.md) 2-3 (extension.yml + command)
Wired into Orchestrator Yes (add XML block) Optional
Gets a slash command No (triggered by Orchestrator) Yes (/speckit.name.run)
Publishable to community No (Agency-specific) Yes (Spec-Kit catalog)
Example use cases Security Auditor, Data Engineer, ML Engineer Jira sync, Slack notifications, custom linters

๐Ÿค– Compatibility

This framework works with any AI coding agent that supports Spec-Kit:

Agent Status Notes
Antigravity (agy) โœ… Primary Full skills support
GitHub Copilot โœ… Supported Via /speckit.* commands
Claude Code โœ… Supported Via /speckit.* commands
Gemini CLI โœ… Supported Via /speckit.* commands
Cursor โœ… Supported Via slash commands
Codex CLI โœ… Supported Via $speckit-* skills
Windsurf โœ… Supported Via slash commands

Contributing

See CONTRIBUTING.md for guidelines.

Changelog

See CHANGELOG.md for version history.

v2.0 (2026-04-10): Automatic bridge sync, mandatory spec-kit-learn, mandatory Phase 8 post-ship, mandatory speckit-implement and speckit-verify-run, git sprint branching, Constitution v2.0, 9-phase workflow, SIMULATION_GUIDE.md.

License

This project is licensed under the MIT License โ€” see LICENSE for details.

Acknowledgements

View this README on GitHub

ๆŽจๅฅจใƒ„ใƒผใƒซ

ๅˆฅใฎใ‚ญใƒผใƒฏใƒผใƒ‰ใ‚’่ฉฆใ™ใ‹ใ€ใƒ•ใ‚ฃใƒซใ‚ฟใ‚’ๅค–ใ—ใฆใใ ใ•ใ„ใ€‚

ใ‚คใƒณใ‚นใƒˆใƒผใƒซ

npx skillfish add ahmedemad3/super-ai-agency-framework