super-dev
CLAUDE.md274 starsChanged 8 months agoMITView on GitHub
Super Dev is a Python CLI tool (v2.4.0) that orchestrates AI-driven development pipelines inside host environments (e.g., Claude Code). It provides governance, quality gates, and audit artifacts for commercial-grade software delivery. It is NOT an independent AI agent — it's a governance layer that runs inside a host's coding environment. The CLI entry point is super_dev/cli.py (~6k lines), built as a large class composed via mixins: - cli_parser_mixin.py — argparse command definitions - cli_analysis_mixin.py — analysis subcommands - cli_governance_mixin.py —…
- Installs packages
In this repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .codex/AGENTS.mdAGENTS.md
- .junie/AGENTS.mdAGENTS.md
- .super-dev/AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/super-dev.mdcCursor rule
- super-dev-seeaiSkill
- super-devSkill
- super-devSkill
- super-dev-coreSkill
The file
Show its rules and text
We split this CLAUDE.md into the rules it gives an agent
39 rules. About 0 are common, 17 are distinctive, and 22 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈17
Distinctive · estimate
This author's own choices. Worth a look.
22
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 45
All imports must be sorted (ruff I rule)
- Very specific: line 129
When the user triggers /super-dev, super-dev:, or super-dev:, enter the Super Dev pipeline mode.
- Very specific: line 142
Check package.json / framework versions before writing code
- Distinctive: line 144
No purple/pink gradient themes
- Very specific: line 146
Run super-dev enforce validate after UI code, super-dev quality after features
- Very specific: line 164
Treat Super Dev as the local Python workflow tool plus Claude Code CLAUDE.md + Skills integration.
- Very specific: line 168
When the user triggers /super-dev, super-dev:, or super-dev:, enter the Super Dev pipeline immediately rather than handling it like casual …
- Distinctive: line 169
Use Claude Code browse/search for research and Claude Code terminal/editing for implementation.
- Very specific: line 170
Use local super-dev commands whenever you need to generate/update docs, spec artifacts, quality reports, and delivery outputs.
- Very specific: line 174
If the repository already contains super-dev.yaml, .super-dev/WORKFLOW.md, output/*, .super-dev/review-state/*, or an unfinished run state, …
- Very specific: line 175
Before the first reply, read .super-dev/WORKFLOW.md and output/*-bootstrap.md when present, and treat them as the explicit bootstrap …
- Very specific: line 182
Read relevant files under knowledge/ before drafting PRD, architecture, and UIUX.
- Very specific: line 183
If output/knowledge-cache/*-knowledge-bundle.json exists, read it first and inherit its local knowledge hits into later stages.
- Distinctive: line 184
Treat matched local standards, scenario packs, and checklists as hard constraints, not optional hints.
- Very specific: line 187
If .super-dev/SESSION_BRIEF.md exists, read it before responding and treat it as the active workflow state.
- Very specific: line 188
If the workflow is waiting for docs confirmation, preview confirmation, UI revision, architecture revision, or quality revision, then user …
- Distinctive: line 189
After each requested revision inside a gate, stay in the same stage, update the required artifacts, summarize what changed, and wait again …
- Distinctive: line 190
Do not silently exit Super Dev mode because the user asked for several edits, follow-up questions, or extra constraints.
- Distinctive: line 191
Only leave the current Super Dev workflow if the user explicitly says to cancel the workflow, restart from scratch, or switch back to …
- Distinctive: line 194
If Claude Code browse/search is available, research similar products first and write output/*-research.md as a real repository file
- Very specific: line 201
Follow .super-dev/changes/*/tasks.md after confirmation, with frontend-first implementation and runtime verification
- Very specific: line 203
If the user requests a UI redesign or says the UI is unsatisfactory, first update output/*-uiux.md, then redo the frontend, and rerun …
- Distinctive: line 206
Keep security/performance constraints from red-team report.
- Distinctive: line 207
Ensure quality gate threshold is met before merge.
- Distinctive: line 209
Before any UI implementation, lock the icon library, typography, design token system, component ecosystem, and page skeleton from …
- Distinctive: line 210
Do not use emoji as functional icons or placeholders.
- Very specific: line 220
Before writing ANY code, run cat package.json (or equivalent) to check framework versions.
- Distinctive: line 221
If unsure about an API for the installed version, use WebFetch to read official docs first.
- Distinctive: line 222
Never guess API signatures.
- Distinctive: line 226
No purple/pink gradient themes.
- Distinctive: line 227
Before showing any UI code, self-check: no emoji characters in the source.
- Distinctive: line 234
Before writing each file: correct imports, no emoji, colors from tokens only.
- Distinctive: line 235
After completing a feature, run build + lint.
- Very specific: line 238
Run super-dev enforce validate after writing UI code.
- Very specific: line 239
Run super-dev quality after completing a feature.
- Very specific: line 240
Run super-dev review --state ui after frontend is done.
- Very specific: line 241
Run super-dev release proof-pack before final delivery.
- Very specific: line 258
Run super-dev enforce validate / super-dev quality for deeper checks.
- Very specific: line 260
If Claude Code surfaces repo plugins, .claude-plugin/marketplace.json + plugins/super-dev-claude/.claude-plugin/plugin.json should enhance …
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Project Overview
Super Dev is a Python CLI tool (v2.4.0) that orchestrates AI-driven development pipelines inside host environments (e.g., Claude Code). It provides governance, quality gates, and audit artifacts for commercial-grade software delivery. It is NOT an independent AI agent — it's a governance layer that runs inside a host's coding environment.
Build & Development Commands
# Install in development mode (requires Python 3.10+)
pip install -e ".[dev]"
# Run the CLI
super-dev
# Linting & formatting
ruff check super_dev/ # lint
ruff check --fix super_dev/ # auto-fix lint issues
black super_dev/ --check # check formatting
black super_dev/ # apply formatting
# Type checking
mypy super_dev/
# Run all tests
pytest
# Run a single test file
pytest tests/unit/test_workflow.py
# Run a specific test
pytest tests/unit/test_workflow.py::test_function_name -v
# Run with coverage
pytest --cov=super_devCode Style
- Line length: 100 (configured in both ruff and black)
- Target Python: 3.10+
- Ruff rules: E, F, I, N, W, UP (E501 ignored)
- All imports must be sorted (ruff
Irule)
Architecture
Core Pipeline (super_dev/)
The CLI entry point is super_dev/cli.py (~6k lines), built as a large class composed via mixins:
cli_parser_mixin.py— argparse command definitionscli_analysis_mixin.py— analysis subcommandscli_governance_mixin.py— governance/enforcement subcommandscli_host_ops_mixin.py— host tool operationscli_experience_mixin.py— UX enhancementscli_deploy_runtime_mixin.py— deployment/runtime commandscli_release_quality_mixin.py— release & quality commandscli_spec_mixin.py— spec management commands
Pipeline Orchestration (super_dev/orchestrator/)
engine.py— main pipeline engine driving phase transitionsgovernance.py— governance policy enforcement during pipelineknowledge.py/knowledge_pusher.py— knowledge injection into pipeline stagesquality.py— quality gate evaluationcontracts.py— pipeline contract definitions
Document & Artifact Generation (super_dev/creators/)
document_generator.py— PRD, architecture, UIUX document generationprompt_generator.py/prompt_templates.py— LLM prompt constructionfrontend_builder.py— frontend implementation playbooksimplementation_builder.py— backend implementation referencesspec_builder.py— spec generation from documentsadr_generator.py— Architecture Decision Record generation
Quality & Review (super_dev/reviewers/)
quality_gate.py— quality threshold enforcement (default threshold: 90)redteam.py— security red-team analysiscode_review.py— automated code reviewui_review.py— UI compliance reviewvalidation_rules.py— configurable validation rules engine
Enforcement (super_dev/enforcement/)
validation.py— file-level validation (no emoji icons, color tokens, etc.)pre_code_gate.py— pre-coding checkshost_hooks.py— hook integration with host tools
Deployment (super_dev/deployers/)
delivery.py— delivery packagingcicd.py— CI/CD pipeline generationrehearsal.py/rehearsal_runner.py— deployment rehearsals
Knowledge System (knowledge/)
Large curated knowledge base organized by domain (frontend, backend, security, database, architecture, etc.). Used by the pipeline to inject domain-specific constraints into each stage.
super_dev/knowledge_tracker.py— tracks knowledge referencessuper_dev/knowledge_evolution.py— knowledge base evolution
Web API (super_dev/web/)
api.py— FastAPI-based web interface for the pipeline
Host Integration
super_dev/hooks/— hook system for host tool integrationsuper_dev/integrations/— integration manager for external toolssuper_dev/skills/— skill definitions for host environments
Configuration
super-dev.yaml— project-level configuration (domain, tech stack, quality gate, phases, experts)super_dev/config/— configuration management
Test Structure
tests/unit/— unit tests for individual modulestests/integration/— integration tests (CLI, web API)tests/e2e/— end-to-end smoke teststests/benchmark.py— performance benchmarks
Key Concepts
- Pipeline phases: discovery → intelligence → drafting → redteam → qa → delivery → deployment
- Super Dev flow contract: research → docs → docs_confirm → spec → frontend → preview_confirm → backend → quality → delivery
- Quality gate: configurable threshold (default 90/100), enforced before merge
- Experts: PM, ARCHITECT, UI, UX, SECURITY, CODE (configurable in super-dev.yaml)
- Output directory:
output/— all generated artifacts (PRD, architecture, UIUX, research, specs) - Session state:
.super-dev/— workflow state, session briefs, review state, decisions (ADRs)
Super Dev Pipeline Governance
When the user triggers /super-dev, super-dev:, or super-dev:, enter the Super Dev pipeline mode. The pipeline follows a strict phase chain with confirmation gates:
- Research — read
knowledge/and research similar products, writeoutput/*-research.md - Core Documents — generate PRD, architecture, UIUX documents in
output/ - Docs Confirmation Gate — stop and wait for user approval before proceeding
- Spec & Tasks — generate execution plan and task breakdown
- Frontend — implement frontend first with runtime verification
- Preview Confirmation Gate — stop and wait for user approval
- Backend — implement backend, tests
- Quality — run quality gates, red-team review
- Delivery — proof pack, release readiness
Coding Constraints (enforced during all coding phases)
- Check
package.json/ framework versions before writing code - Icons from declared library only (Lucide/Heroicons/Tabler), never emoji
- No purple/pink gradient themes
- Frontend fetch URLs must match backend route definitions exactly
- Run
super-dev enforce validateafter UI code,super-dev qualityafter features
Session Continuity
.super-dev/SESSION_BRIEF.md— active workflow state, read before responding.super-dev/workflow-state.json— machine-readable workflow state- User replies like
确认,通过,继续,修改stay within the current Super Dev stage
<!-- BEGIN SUPER DEV CLAUDE -->Super Dev Claude Code Integration
This project uses a pipeline-driven development model.
Positioning
- Super Dev does not own a model endpoint.
- Claude Code remains the execution host for coding capability.
- Super Dev provides governance: protocol, gates, and audit artifacts.
Runtime Contract
- Treat Super Dev as the local Python workflow tool plus Claude Code
CLAUDE.md + Skillsintegration. - Primary surfaces are project-root
CLAUDE.md, compatibility mirror.claude/CLAUDE.md, project-level.claude/skills/super-dev/, and user-level~/.claude/skills/super-dev/. - Compatibility surface
.claude/commands/super-dev.mdremains installed so older Claude Code builds still converge onto the same Super Dev workflow. - Optional repo enhancement surfaces
.claude-plugin/marketplace.jsonandplugins/super-dev-claude/.claude-plugin/plugin.jsoncan expose a richer Claude-native plugin layer without replacing the baseCLAUDE.md + Skillscontract. - When the user triggers
/super-dev,super-dev:, orsuper-dev:, enter the Super Dev pipeline immediately rather than handling it like casual chat. - Use Claude Code browse/search for research and Claude Code terminal/editing for implementation.
- Use local
super-devcommands whenever you need to generate/update docs, spec artifacts, quality reports, and delivery outputs.
First-Response Contract
- On the first reply after a host-supported Super Dev entry (for example
/super-dev ...,$super-dev,super-dev: ...,super-dev:...,/super-dev-seeai ...,$super-dev-seeai,super-dev-seeai: ..., orsuper-dev-seeai:...), explicitly state that the matching Super Dev mode is now active rather than normal chat mode. - If the repository already contains
super-dev.yaml,.super-dev/WORKFLOW.md,output/*,.super-dev/review-state/*, or an unfinished run state, the first natural-language requirement in a new host session must also default to continuing Super Dev rather than plain chat. - Before the first reply, read
.super-dev/WORKFLOW.mdandoutput/*-bootstrap.mdwhen present, and treat them as the explicit bootstrap contract for this repository. - The first reply must explicitly state that the current phase is
research, and that you will readknowledge/plusoutput/knowledge-cache/*-knowledge-bundle.jsonfirst when available before similar-product research. - In standard mode, the next sequence is research -> three core documents -> wait for user confirmation -> Spec / tasks -> frontend first with runtime verification -> backend / tests / delivery.
- In SEEAI mode, the next sequence is research -> compact competition docs -> wait for user confirmation -> compact Spec -> full-stack sprint -> polish / handoff.
- Both modes must explicitly promise that they will stop after the three core documents and wait for approval before creating Spec or writing code.
Local Knowledge Contract
- Read relevant files under
knowledge/before drafting PRD, architecture, and UIUX. - If
output/knowledge-cache/*-knowledge-bundle.jsonexists, read it first and inherit its local knowledge hits into later stages. - Treat matched local standards, scenario packs, and checklists as hard constraints, not optional hints.
Conversation Continuity Contract
- If
.super-dev/SESSION_BRIEF.mdexists, read it before responding and treat it as the active workflow state. - If the workflow is waiting for docs confirmation, preview confirmation, UI revision, architecture revision, or quality revision, then user replies like
修改,补充,继续改,确认,通过,继续, or detailed feedback remain inside the current Super Dev stage. - After each requested revision inside a gate, stay in the same stage, update the required artifacts, summarize what changed, and wait again for explicit confirmation.
- Do not silently exit Super Dev mode because the user asked for several edits, follow-up questions, or extra constraints.
- Only leave the current Super Dev workflow if the user explicitly says to cancel the workflow, restart from scratch, or switch back to normal chat.
Before coding
- If Claude Code browse/search is available, research similar products first and write output/*-research.md as a real repository file
- Read output/*-prd.md
- Read output/*-architecture.md
- Read output/*-uiux.md
- Summarize the three core documents to the user and wait for explicit confirmation before creating Spec or coding
- Chat-only summaries do not count as completion; the required artifacts must exist in the workspace
- Read output/*-execution-plan.md
- Follow .super-dev/changes/*/tasks.md after confirmation, with frontend-first implementation and runtime verification
- If the user requests a UI redesign or says the UI is unsatisfactory, first update
output/*-uiux.md, then redo the frontend, and rerun frontend runtime + UI review before continuing.
Output Quality
- Keep security/performance constraints from red-team report.
- Ensure quality gate threshold is met before merge.
- UI must follow output/*-uiux.md and avoid AI-looking templates (purple gradient, emoji icons, default-font-only).
- Before any UI implementation, lock the icon library, typography, design token system, component ecosystem, and page skeleton from output/*-uiux.md.
- Do not use emoji as functional icons or placeholders.
- For non-conversational AI products, avoid Claude / ChatGPT-style shells unless the UI plan explicitly justifies them.
- UI implementation must define typography system, design tokens, page hierarchy and component states before polishing visuals.
- Prioritize real screenshots, trust modules, proof points and task flows over decorative hero sections.
Coding Constraints (active during ALL coding phases)
These rules apply every time you write or edit a file. They are NOT suggestions:
Tech Stack Pre-Research
- Before writing ANY code, run
cat package.json(or equivalent) to check framework versions. - If unsure about an API for the installed version, use WebFetch to read official docs first.
- Never guess API signatures. Check docs.
Icon & Visual Rules
- Icons MUST come from a declared icon library (Lucide/Heroicons/Tabler). No emoji as icons.
- No purple/pink gradient themes. No default system font only.
- Before showing any UI code, self-check: no emoji characters in the source.
Frontend/Backend Alignment
- Frontend fetch URLs must exactly match backend route definitions.
- Define API paths as shared constants when possible.
Per-File Self-Check
- Before writing each file: correct imports, no emoji, colors from tokens only.
- After completing a feature, run build + lint. Fix errors before moving on.
CLI Commands During Coding
- Run
super-dev enforce validateafter writing UI code. - Run
super-dev qualityafter completing a feature. - Run
super-dev review --state uiafter frontend is done. - Run
super-dev release proof-packbefore final delivery.
Four-Layer Governance Model
Super Dev governance operates at four layers:
Layer 1 — CLAUDE.md (Persistent Rules)
Project-root CLAUDE.md is the canonical persistent memory surface. .claude/CLAUDE.md is kept as a compatibility mirror for builds that still read nested memory files.
Layer 2 — Skills (Primary Execution Contract)
Project-level .claude/skills/super-dev/ and user-level ~/.claude/skills/super-dev/ carry the primary Super Dev execution contract. Claude Code only uses super-dev as the single skill name — no legacy core alias remains.
Layer 3 — Hooks (Runtime Enforcement) PreToolUse hooks validate every file write. PostToolUse hooks audit results. Hooks are auto-registered when /super-dev is invoked.
Layer 4 — CLI Commands & Optional Plugin Enhancement (On-Demand Checks)
Run super-dev enforce validate / super-dev quality for deeper checks.
These are triggered at key milestones, not every turn.
If Claude Code surfaces repo plugins, .claude-plugin/marketplace.json + plugins/super-dev-claude/.claude-plugin/plugin.json should enhance the same Super Dev flow rather than fork it.
Super Dev System Flow Contract
- SUPER_DEV_FLOW_CONTRACT_V1
- PHASE_CHAIN: research>docs>docs_confirm>spec>frontend>preview_confirm>backend>quality>delivery
- DOC_CONFIRM_GATE: required
- PREVIEW_CONFIRM_GATE: required
- HOST_PARITY: required
<!-- END SUPER DEV CLAUDE -->Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

