| name | sop |
| description | Explains the Master SOP and guides the user to the correct framework phase. Use when a new user needs orientation or when you need to re-anchor to the correct workflow phase. |
| trigger | /hyper-sop |
/hyper-sop — Master Standard Operating Procedure Guide
This skill guides the user through the Master Standard Operating Procedure (SOP) of the Hypergraph Coding Agent Framework.
The framework relies on a strict sequential model — Spec-First, Deterministic Memory, and Automated Auditing — to prevent context collapse and hallucinated requirements.
Step 1: Introduction
Briefly introduce the Hypergraph framework's core paradigm:
- The workflow is strictly sequential.
- Specialized agents handle distinct phases (Architect, Red Team, Resolution, Auditor).
- Deterministic Python scripts manage state so LLMs never traverse the graph probabilistically.
- New context windows (new conversations) prevent cross-contamination between adversarial agents.
Step 2: Determine User State
Use AskUserQuestion to determine the user's current state:
Which phase of the framework are you in?
- Option A: Phase -1: Legacy Onboarding — Integrating the framework into an existing project
- Option B: Phase 0: Initialization — Starting a brand new greenfield project
- Option C: Phase 1: Specification — Planning and designing a new feature
- Option D: Phase 2: Execution — Writing code against a compiled MiniPRD
Step 3: Provide Phase-Specific Guidance
Wait for the user's response, then provide the exact steps:
Phase -1 (Legacy Onboarding):
- Run
/hyper-discover — scans the codebase and populates spec/compiled/architecture.yml.
- Review the generated YAML for accuracy.
- Run
/hyper-baseline — generates the initial SuperPRD.md.
- Once verified, proceed to Phase 1.
Phase 0 (System Initialization):
- Ensure the template is cloned with
.agents/ and spec/ directories intact.
- Install the dependency:
pip install pyyaml
- Give execution permissions:
chmod +x .agents/scripts/*.py
- The workspace is ready. Proceed to Phase 1.
Phase 1 (Specification):
- Run
/hyper-architect — begins the requirements extraction interview (creates Draft_PRD.md in spec/active/).
- Start a new conversation and run
/hyper-redteam — adversarial analysis (creates RedTeam_Report.md in spec/active/).
- Start a new conversation and run
/hyper-resolve — resolves trade-offs and compiles SuperPRD.md and MiniPRD files into spec/compiled/.
- The resolve agent will automatically run
python .agents/scripts/archive_specs.py [Feature_Name] to flush active drafts.
Phase 2 (Execution):
- Start a new conversation and instruct the Builder to implement a specific MiniPRD from
spec/compiled/.
- The Builder MUST run
python .agents/scripts/hypergraph_updater.py spec/compiled/architecture.yml [modified_node_ids] after code is written.
- Start a new conversation and run
/hyper-audit spec/compiled/MiniPRD_[Target].md to verify code against the contract.
Step 4: Remind About Testing and Iteration
- Novel Tests: Subjective/AI-generated outputs go to
tests/candidate_outputs/ for human review. Once approved, move to tests/fixtures/ and update the MiniPRD test definition to deterministic.
- Iterative Updates: Future features follow the identical Phase 1 → Phase 2 loop. Agents detect the existing
architecture.yml and perform Delta Extractions automatically.
Step 5: Next Actions
Use AskUserQuestion:
Ready to begin, or do you have questions?
- Option A: Let's begin — start the selected phase now
- Option B: I have questions — clarify something before starting