tyrex-framework 0.1.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -96,16 +96,16 @@ For **new/empty projects**, Tyrex creates a minimal structure and suggests `/tyr
96
96
  | `/tyrex-init` | Map codebase, configure project, generate TYREX.md |
97
97
  | `/tyrex-discuss` | Explore project interactively, brainstorm architecture |
98
98
  | `/tyrex-new` | Start a new feature (requirements, docs, skills, branch) |
99
- | `/tyrex-plan` | Plan tasks with dependencies, parallelism, and SPEC per task |
100
- | `/tyrex-do` | Execute tasks (TDD, skill-aware, parallel sub-agents) |
101
- | `/tyrex-review` | Review implementation, finalize docs, evolve TYREX.md |
99
+ | `/tyrex-plan` | Security-first planning with dependencies, parallelism, and SPEC per task |
100
+ | `/tyrex-do` | Execute tasks (TDD, skill-aware, parallel sub-agents). Supports `--auto-approve` |
101
+ | `/tyrex-review` | 4-lens senior code review. Supports `--do-all`, `--do-critical`, `full` |
102
102
 
103
103
  ### Shortcuts
104
104
 
105
105
  | Command | Purpose |
106
106
  |---------|---------|
107
- | `/tyrex-quick` | Fast task without full ceremony (bug fixes, tweaks) |
108
- | `/tyrex-handoff` | Autopilot: chains new -> plan -> do -> review |
107
+ | `/tyrex-quick` | Fast-track unified `new plan do` from a single prompt |
108
+ | `/tyrex-quick --auto-approve` | Full autopilot (replaces deprecated `/tyrex-handoff`) |
109
109
 
110
110
  ### Management
111
111
 
@@ -140,9 +140,10 @@ For **new/empty projects**, Tyrex creates a minimal structure and suggests `/tyr
140
140
  /tyrex-init --> /tyrex-discuss (brainstorm) --> /tyrex-new --> ...
141
141
  ```
142
142
 
143
- **Quick fix:**
143
+ **Quick fix or small feature:**
144
144
  ```
145
- /tyrex-quick (skip spec/plan, just fix and commit)
145
+ /tyrex-quick (unified new → plan do, single prompt)
146
+ /tyrex-quick --auto-approve (full autopilot, no checkpoints)
146
147
  ```
147
148
 
148
149
  ## Key Concepts
@@ -173,6 +174,37 @@ REST APIs, database design, authentication, performance optimization.
173
174
 
174
175
  Skills are auto-suggested during `/tyrex-new` and loaded during `/tyrex-do` for specialized implementation quality.
175
176
 
177
+ ### Security-First Planning
178
+
179
+ `/tyrex-plan` performs a security assessment before proposing tasks. Security-sensitive tasks automatically get the `devsec` skill assigned and `quality: required`. Features with security implications get a dedicated hardening task.
180
+
181
+ ### 4-Lens Senior Code Review
182
+
183
+ `/tyrex-review` evaluates through 4 critical lenses:
184
+ 1. **Pattern Compliance** — does the code follow project patterns from TYREX.md?
185
+ 2. **Code Quality & DRY** — duplication, complexity, maintainability
186
+ 3. **Business & Technical Compliance** — does it meet the SPEC and acceptance criteria?
187
+ 4. **Security First** — OWASP top 10, input validation, secrets management
188
+
189
+ Use `--do-all` or `--do-critical` to auto-create fix tasks from review findings.
190
+
191
+ ### Interactive Quiz UX
192
+
193
+ All user decisions across all commands use interactive quiz format (multiple-choice selection). This ensures consistent UX and reduces cognitive load — no open-ended questions when a quiz can be used.
194
+
195
+ ### Built-in DevSec Skill
196
+
197
+ A security engineering skill (`devsec`) ships with the framework. It's auto-suggested when security-sensitive areas are detected during `/tyrex-new` and `/tyrex-plan`, providing OWASP/SANS coverage out of the box.
198
+
199
+ ### Command Flags
200
+
201
+ | Flag | Commands | Effect |
202
+ |------|----------|--------|
203
+ | `--auto-approve` | `/tyrex-do`, `/tyrex-quick` | Skip all human checkpoints |
204
+ | `--do-all` | `/tyrex-review` | Auto-create fix tasks for all findings |
205
+ | `--do-critical` | `/tyrex-review` | Auto-create fix tasks for critical findings only |
206
+ | `full` | `/tyrex-review` | Codebase-wide re-scan (default is PR scope) |
207
+
176
208
  ### Roadmap — Forward Visibility
177
209
 
178
210
  `.tyrex/roadmap.yml` tracks planned, in-progress, and completed features. The `/tyrex-status` command shows what's done, what's active, and what's next. `/tyrex-new` checks the roadmap before asking for a new demand.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tyrex-framework",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "description": "Human-driven, AI-accelerated pair programming framework. Orchestrates AI agents with guardrails, parallelization, and shared memory.",
5
5
  "bin": {
6
6
  "tyrex": "./bin/tyrex.js"
@@ -9,27 +9,29 @@ This project uses the Tyrex Framework for human-driven, AI-accelerated pair prog
9
9
  3. **Check mode:** Read `agent_mode` from `cursor.yml`. In `plan` mode, NEVER write source code — only `.tyrex/`, `docs/`, and config files. In `build` mode, follow TDD and commit rules.
10
10
  4. **Use commands:** The `/tyrex-*` slash commands orchestrate the development workflow.
11
11
  5. **Update state:** After every task, update the cursor and task state files.
12
+ 6. **Interactive quiz:** ALL user decisions use interactive quiz format (multiple-choice). Never ask open-ended questions when a quiz can be used.
13
+ 7. **Security first:** Always consider security implications during planning and review. The DevSec skill (`templates/skills/devsec.md`) is auto-suggested for security-sensitive work.
12
14
 
13
15
  ## Commands Available
14
16
 
15
- | Command | Purpose |
16
- |---------|---------|
17
- | `/tyrex-init` | Initialize Tyrex in a project (map codebase, configure) |
18
- | `/tyrex-settings` | View/modify Tyrex configuration |
19
- | `/tyrex-new` | Start a new feature/demand (with docs config per demand) |
20
- | `/tyrex-plan` | Plan implementation tasks with dependencies and parallelism |
21
- | `/tyrex-do` | Execute tasks (sequential or parallel, with TDD) |
22
- | `/tyrex-review` | Review implementation, finalize docs, refactor |
23
- | `/tyrex-status` | Show current project and feature status |
24
- | `/tyrex-resume` | Resume from last session (fast recovery via cursor) |
25
- | `/tyrex-quick` | Quick task without full ceremony (bug fixes, tweaks) |
26
- | `/tyrex-evolve` | Update TYREX.md with new patterns/knowledge |
27
- | `/tyrex-handoff` | Deterministic autopilot (chains new→plan→do→review) |
28
- | `/tyrex-skills` | Manage and apply reusable skills |
29
- | `/tyrex-readme` | Generate or update project README.md |
30
- | `/tyrex-openapi` | Generate or update OpenAPI documentation |
31
- | `/tyrex-wiki` | Generate or update project wiki pages |
32
- | `/tyrex-help` | Show commands, workflow guide, and contextual suggestions |
17
+ | Command | Flags | Purpose |
18
+ |---------|-------|---------|
19
+ | `/tyrex-init` | | Initialize Tyrex in a project (map codebase, configure) |
20
+ | `/tyrex-settings` | | View/modify Tyrex configuration |
21
+ | `/tyrex-new` | | Start a new feature/demand (interactive quiz workflow) |
22
+ | `/tyrex-plan` | | Plan tasks with security-first analysis |
23
+ | `/tyrex-do` | `--auto-approve` | Execute tasks (sequential or parallel, with TDD) |
24
+ | `/tyrex-review` | `--do-all` `--do-critical` `full` | Senior code review with 4 lenses + auto-fix loop |
25
+ | `/tyrex-status` | | Show current project and feature status |
26
+ | `/tyrex-resume` | | Resume from last session (fast recovery via cursor) |
27
+ | `/tyrex-quick` | `--auto-approve` | Fast-track: unified new→plan→do from single prompt |
28
+ | `/tyrex-evolve` | | Update TYREX.md with new patterns/knowledge |
29
+ | `/tyrex-skills` | `create` `sync` | Manage and apply reusable skills |
30
+ | `/tyrex-readme` | | Generate or update project README.md |
31
+ | `/tyrex-openapi` | | Generate or update OpenAPI documentation |
32
+ | `/tyrex-wiki` | | Generate or update project wiki pages |
33
+ | `/tyrex-help` | `<command>` | Show commands, workflow guide, and contextual suggestions |
34
+ | `/tyrex-handoff` | | **DEPRECATED** use `/tyrex-quick --auto-approve` |
33
35
 
34
36
  ## Core Rules
35
37
 
@@ -38,11 +40,13 @@ This project uses the Tyrex Framework for human-driven, AI-accelerated pair prog
38
40
  3. **Every commit passes CI.** No broken commits, ever.
39
41
  4. **CHANGELOG is mandatory.** Update `docs/CHANGELOG.md` on every change.
40
42
  5. **Small commits.** One task = one atomic, revertible commit.
41
- 6. **Ask, don't assume.** When in doubt, ask the human.
43
+ 6. **Interactive quiz for all decisions.** Use multiple-choice, not open-ended questions.
42
44
  7. **Simplicity wins.** Propose the simplest solution first.
43
45
  8. **Documentation first.** When configured, generate docs before code.
44
- 9. **Update state.** Always update cursor.yml after completing tasks.
45
- 10. **Respect parallelism rules.** Sub-agents only modify their own files and state.
46
+ 9. **Security first.** Evaluate security implications during planning and review.
47
+ 10. **Update state.** Always update cursor.yml after completing tasks.
48
+ 11. **Respect parallelism rules.** Sub-agents only modify their own files and state.
49
+ 12. **TYREX.md is the living index.** Auto-update when macro docs (ADR, PRD, SRS) are generated.
46
50
 
47
51
  ## File Structure
48
52
 
@@ -58,6 +62,9 @@ This project uses the Tyrex Framework for human-driven, AI-accelerated pair prog
58
62
  ├── templates/ # Document templates
59
63
  ├── skills/ # Reusable skills (synced across agents)
60
64
  └── map/ # Project mapping (generated on init)
65
+ templates/
66
+ ├── skills/
67
+ │ └── devsec.md # Built-in DevSec skill template
61
68
  docs/
62
69
  ├── CHANGELOG.md # Mandatory changelog
63
70
  ├── adrs/ # Architecture Decision Records
@@ -66,9 +73,27 @@ docs/
66
73
  └── diagrams/ # Flow diagrams
67
74
  ```
68
75
 
76
+ ## Workflow
77
+
78
+ ```
79
+ Full workflow:
80
+ /tyrex-init → /tyrex-new → /tyrex-plan → /tyrex-do → /tyrex-review
81
+ (quiz) (security) [--auto] (4 lenses)
82
+ ↑ │
83
+ └── fix tasks ─┘
84
+
85
+ Fast track:
86
+ /tyrex-quick [--auto-approve]
87
+ = new + plan + do in one command
88
+
89
+ Review with auto-fix:
90
+ /tyrex-review --do-all (fix everything)
91
+ /tyrex-review --do-critical (fix HIGH/CRITICAL only)
92
+ ```
93
+
69
94
  ## On Parallelization
70
95
 
71
- When tasks can run in parallel, ask the human before spawning sub-agents.
96
+ When tasks can run in parallel, ask the human before spawning sub-agents (or auto-decide with `--auto-approve`).
72
97
  Each sub-agent receives: task description + TYREX.md + constitution.md.
73
98
  Each sub-agent writes ONLY to its own task state file.
74
99
  The orchestrator (main agent) handles commits, CHANGELOG, and cursor updates.
@@ -11,6 +11,15 @@ You are the Tyrex Framework orchestrator. Execute tasks from the active feature'
11
11
  This command runs in **build** mode. Set `agent_mode: "build"` in `cursor.yml` as the FIRST action.
12
12
  You may create, edit, and delete source code files following TDD, small commits, and all constitution rules.
13
13
 
14
+ ## Parameters
15
+
16
+ - **`/tyrex-do`** (default) — Execute tasks with human approval at each checkpoint
17
+ - **`/tyrex-do --auto-approve`** — Execute ALL tasks automatically: commits, parallelism decisions, and all checkpoints are auto-approved. Only stops on failures after 3 retries.
18
+
19
+ ## Interactive Quiz Rule
20
+
21
+ **ALL decisions in this command MUST use the interactive quiz format** (multiple-choice selection). Never ask open-ended questions when a quiz can be used. This applies to: parallelization choices, failure handling, commit approval, and any other decision point.
22
+
14
23
  ## Behavior
15
24
 
16
25
  ### Step 1: Load state
@@ -35,17 +44,17 @@ These are the "ready" tasks.
35
44
  ### Step 3: Parallelization decision
36
45
  If there are MULTIPLE ready tasks that are marked as `parallel: true`:
37
46
 
38
- **Ask the user:**
47
+ **If `--auto-approve`:** automatically choose parallel execution for all eligible tasks.
48
+
49
+ **Otherwise, present interactive quiz:**
39
50
  ```
40
51
  Tasks [2, 3, 4] are ready and can run in parallel.
41
52
 
42
- [1] Execute all in parallel (3 agents)
43
- [2] Execute sequentially (one at a time)
44
- [3] Choose which to parallelize
53
+ [ ] Execute all in parallel (3 agents)
54
+ [ ] Execute sequentially (one at a time)
55
+ [ ] Choose which to parallelize
45
56
  ```
46
57
 
47
- If the user chose parallel in previous interaction for this feature AND `auto_suggest: true`, you can suggest the same choice again.
48
-
49
58
  ### Step 4: Execute tasks
50
59
 
51
60
  **For SEQUENTIAL execution:**
@@ -68,36 +77,47 @@ For each ready task, one at a time:
68
77
  - If the skill's `## Expertise` doesn't match the current task's domain, log a note but still apply (the human selected it)
69
78
  - Before marking the task complete, use `## Review Criteria` from the skill as a self-check
70
79
  3. Update task state to `in_progress`
71
- 3. Update cursor.yml with current task
72
- 4. **Implement following quality strategy:**
80
+ 4. Update cursor.yml with current task
81
+ 5. **Implement following quality strategy:**
73
82
  - Check the task's `quality` attribute (required | recommended | optional)
74
83
  - `required`: TDD mandatory — write tests first, implement, tests MUST pass
75
84
  - `recommended`: write tests alongside code, warn if skipped
76
- - `optional`: ask user "Write tests for this task? [y/N]"
85
+ - `optional`: present quiz: `[ ] Write tests for this task` / `[ ] Skip tests`
86
+ - **If `--auto-approve`:** for `optional` quality, default to writing tests
77
87
  - Run lint if configured — it MUST pass
78
88
  - Run security scan if configured
79
- 4. **On success:**
89
+ 6. **On success:**
80
90
  - If the implementation deviated from the SPEC's draft, update the SPEC file to reflect the actual approach taken
81
91
  - Update task state to `completed` with files_changed and output
82
92
  - Prepare commit message (conventional format)
83
93
  - Update `docs/CHANGELOG.md` with what changed
84
- - **If commit mode is `approve`:**
94
+ - **If `--auto-approve`:**
95
+ - Make the commit automatically (overrides `approve` mode from tyrex.yml)
96
+ - **Else if commit mode is `approve`:**
85
97
  - Show: diff summary, commit message, changelog entry
86
- - Ask: "Approve this commit? [Y/n/edit]"
87
- - If edit: let user modify commit message
88
- - If approved: make the commit
89
- - **If commit mode is `auto`:**
98
+ - Present quiz: `[ ] Approve commit` / `[ ] Edit commit message` / `[ ] Reject and redo`
99
+ - **Else if commit mode is `auto`:**
90
100
  - Make the commit automatically
91
101
  - Update cursor.yml: last_task_completed, tasks_summary, next_tasks
92
- 5. **On failure:**
102
+ - **Auto-update TYREX.md:** If this task generated or updated any ADR, PRD, SRS, or other macro documentation, automatically update TYREX.md:
103
+ - Add a summary entry in the appropriate section (Architecture Decisions for ADR, Business Rules for PRD, Requirements for SRS)
104
+ - Add any new patterns discovered to the Patterns section
105
+ - This keeps TYREX.md as the living index of all project knowledge
106
+ 7. **On failure:**
93
107
  - Update task state to `failed` with error details
94
108
  - Show the error to the user
95
- - Ask: "Want me to fix it and retry? Or skip this task?"
109
+ - **If `--auto-approve`:** automatically retry up to 3 times, then mark as `failed` and continue to next task
110
+ - **Otherwise, present quiz:**
111
+ ```
112
+ [ ] Fix and retry
113
+ [ ] Skip this task
114
+ [ ] Stop execution
115
+ ```
96
116
  - If retry: fix and go back to step 3 of the task
97
117
  - If skip: mark as `failed`, check if any tasks are now `blocked`
98
118
 
99
- 6. After task completion, check for newly unlocked tasks
100
- 7. If new parallel tasks are available, go back to Step 3 (ask about parallelization)
119
+ 8. After task completion, check for newly unlocked tasks
120
+ 9. If new parallel tasks are available, go back to Step 3 (ask about parallelization)
101
121
 
102
122
  **For PARALLEL execution:**
103
123
  1. For each parallel task, spawn a sub-agent (Task tool) with:
@@ -112,7 +132,7 @@ For each ready task, one at a time:
112
132
  3. Collect results from task state files
113
133
  4. For each completed sub-task:
114
134
  - Validate the implementation (tests pass, lint clean)
115
- - Handle commits (based on mode: approve or auto)
135
+ - Handle commits (based on mode: approve, auto, or `--auto-approve`)
116
136
  - Update CHANGELOG.md (sequentially, after all parallel tasks finish)
117
137
  5. Update cursor.yml with all completed tasks
118
138
  6. Check for newly unlocked tasks → go to Step 3
@@ -127,7 +147,10 @@ When ALL tasks are `completed`:
127
147
  - NEVER make a commit that breaks CI
128
148
  - ALWAYS update cursor.yml after each task — this enables session recovery
129
149
  - ALWAYS update CHANGELOG.md — it's mandatory
150
+ - ALWAYS use interactive quiz for decisions — never open-ended questions
130
151
  - Sub-agents for parallel tasks should ONLY modify files listed in their task
131
152
  - If two parallel tasks need to modify the same file, they CANNOT be parallel — execute sequentially
132
153
  - The orchestrator (you) handles commits and state updates, NOT sub-agents
133
154
  - If the user interrupts ("stop", "wait", "pause"), immediately save state and stop
155
+ - `--auto-approve` is a trust accelerator — it skips ALL human checkpoints but still runs all quality checks (tests, lint, security)
156
+ - When macro docs (ADR, PRD, SRS) are created/updated, ALWAYS update TYREX.md with a summary
@@ -1,215 +1,27 @@
1
1
  ---
2
- description: "Deterministic autopilot - Tyrex takes full control of the development flow"
2
+ description: "[DEPRECATED] Use /tyrex-quick --auto-approve instead"
3
3
  ---
4
4
 
5
- # /tyrex-handoff - Deterministic Autopilot Mode
5
+ # /tyrex-handoff - DEPRECATED
6
6
 
7
- You are now operating under **Tyrex Handoff Protocol**. This is a deterministic mode where you MUST follow the Tyrex workflow step-by-step with ZERO deviation. Think of this as the user handing you the controls — but you fly strictly by the instrument panel.
7
+ > **This command has been deprecated.** Use `/tyrex-quick --auto-approve` instead.
8
8
 
9
- ## Agent Mode
9
+ The handoff command was replaced by the redesigned `/tyrex-quick` which now provides a unified `new → plan → do` pipeline with the `--auto-approve` flag for full autopilot mode.
10
10
 
11
- This command transitions between modes as it progresses through phases:
12
- - **PHASE 0-3** (Context, Demand, Config, Planning): set `agent_mode: "plan"` — no source code writing
13
- - **PHASE 4** (Execution): set `agent_mode: "build"` — source code writing allowed
14
- - **PHASE 5-6** (Documentation, Review): set `agent_mode: "plan"` — no source code writing
15
- Update `agent_mode` in `cursor.yml` at each phase transition.
11
+ ## Migration Guide
16
12
 
17
- ## CRITICAL RULES (NON-NEGOTIABLE)
13
+ | Old command | New equivalent |
14
+ |-------------|----------------|
15
+ | `/tyrex-handoff` | `/tyrex-quick --auto-approve` |
16
+ | `/tyrex-handoff` (with checkpoints) | `/tyrex-quick` (interactive mode) |
18
17
 
19
- 1. You MUST read and obey `.tyrex/constitution.md` before ANY action. If it doesn't exist, STOP and tell the user to run `/tyrex-init` first.
20
- 2. You MUST read `.tyrex/tyrex.yml` for all configuration. Do NOT ask the user things already configured.
21
- 3. You MUST read `.tyrex/state/cursor.yml` to know current state. Do NOT start from scratch if there is state.
22
- 4. You MUST follow the phase sequence below. Do NOT skip phases. Do NOT reorder.
23
- 5. You MUST update state files after EVERY action. If you crash, the next session resumes from the last recorded state.
24
- 6. You MUST NOT implement anything without an approved plan.
25
- 7. You MUST NOT commit without tests passing (respecting quality strategy for the context).
26
- 8. You MUST update `docs/CHANGELOG.md` on every change. No exceptions.
27
- 9. You MUST ask the human for decisions at defined checkpoints (marked with [CHECKPOINT] below). Between checkpoints, operate autonomously.
28
- 10. When a task specifies a skill, you MUST load that skill before executing.
18
+ ## Why deprecated?
29
19
 
30
- ## PHASE SEQUENCE
20
+ - `/tyrex-quick` now covers the entire `new → plan → do` pipeline
21
+ - `--auto-approve` flag provides the same autopilot behavior
22
+ - `/tyrex-review` now has its own `--do-all` and `--do-critical` flags for the review→fix loop
23
+ - Having two commands that do the same thing adds confusion without value
31
24
 
32
- Execute these phases IN ORDER. Do not proceed to the next phase until the current one is complete.
25
+ ## If you're here by accident
33
26
 
34
- ### PHASE 0: Context Load
35
- ```
36
- READ .tyrex/state/cursor.yml
37
- IF active_feature exists AND status != "done":
38
- → Resume from last recorded state (skip to appropriate phase)
39
- IF no .tyrex/ directory:
40
- → STOP. Tell user: "Run /tyrex-init first."
41
- READ .tyrex/TYREX.md
42
- READ .tyrex/constitution.md
43
- READ .tyrex/tyrex.yml
44
- REPORT current state to user
45
- ```
46
-
47
- ### PHASE 1: Demand Capture
48
- ```
49
- ASK user: "What do you want to implement?"
50
- LISTEN to description
51
- ANALYZE description for:
52
- - Ambiguities (ask max 5 clarification questions)
53
- - Scope boundaries (what's NOT included)
54
- - Affected project areas (API? Mobile? Web? Workers?)
55
-
56
- [CHECKPOINT] Present understanding back to user. Wait for confirmation.
57
- ```
58
-
59
- ### PHASE 2: Configuration
60
- ```
61
- READ defaults from tyrex.yml
62
- DETECT project context for quality strategy:
63
- - Check for test frameworks (jest, rspec, pytest, etc.)
64
- - Check for existing coverage config
65
- - Identify area type (api/mobile/web/worker/infra)
66
-
67
- PRESENT configuration:
68
- - Documentation: CHANGELOG (mandatory) + suggest ADR/RFC/Wiki/Diagrams based on complexity
69
- - Documentation generation: suggest /tyrex-readme, /tyrex-openapi, /tyrex-wiki as final tasks if relevant
70
- - Branch name suggestion
71
- - Commit mode (from tyrex.yml or ask)
72
- - Quality strategy for this context
73
- - Skills: identify required skills, check if installed
74
-
75
- [CHECKPOINT] User approves or modifies configuration.
76
-
77
- CREATE feature spec in .tyrex/features/NNN-feature-name.md
78
- CREATE branch (if mode = auto) or suggest (if mode = approve)
79
- UPDATE cursor.yml
80
- GENERATE documentation artifacts FIRST (ADR, RFC if configured)
81
-
82
- [CHECKPOINT] If docs were generated, user reviews before proceeding.
83
- ```
84
-
85
- ### PHASE 3: Planning
86
- ```
87
- READ feature spec
88
- READ TYREX.md for project patterns
89
- SCAN for available skills in:
90
- - .tyrex/skills/
91
- - .claude/skills/
92
- - .opencode/skills/
93
- - .agents/skills/
94
- - .cursor/rules/ (skill-like files)
95
-
96
- GENERATE task list with:
97
- - Dependencies (depends_on, unlocks)
98
- - Parallelism markers (parallel: true/false)
99
- - Skill assignment per task
100
- - Quality strategy per task
101
- - File targets per task
102
- - IF relevant: add documentation tasks at the end (/tyrex-readme, /tyrex-openapi, /tyrex-wiki)
103
-
104
- DISPLAY execution graph (waves)
105
-
106
- [CHECKPOINT] User approves plan. Can add/remove/reorder tasks.
107
-
108
- CREATE .tyrex/state/tasks/*.state files
109
- UPDATE cursor.yml
110
- UPDATE feature spec with tasks
111
- ```
112
-
113
- ### PHASE 4: Execution
114
- ```
115
- LOOP until all tasks complete:
116
-
117
- IDENTIFY next executable tasks (dependencies satisfied)
118
-
119
- IF multiple parallel tasks available:
120
- [CHECKPOINT] "Tasks [N, M, P] can run in parallel. Execute in parallel or sequential?"
121
-
122
- FOR each task to execute:
123
- IF task has skill assigned:
124
- LOAD skill content
125
- IF skill not found:
126
- [CHECKPOINT] "Skill 'X' not installed. Create now, skip, or install?"
127
-
128
- UPDATE task state → in_progress
129
- UPDATE cursor.yml
130
-
131
- IMPLEMENT following quality strategy:
132
- IF strategy = "required": TDD mandatory, tests MUST pass
133
- IF strategy = "recommended": write tests, warn if skipped
134
- IF strategy = "optional": ask "Write tests? [y/N]"
135
-
136
- RUN tests (if applicable)
137
- RUN lint (if configured)
138
- RUN security scan (if configured)
139
-
140
- IF all checks pass:
141
- UPDATE CHANGELOG.md
142
- IF commit mode = "approve":
143
- [CHECKPOINT] Show diff + commit message. Wait for approval.
144
- IF commit mode = "auto":
145
- COMMIT automatically
146
- UPDATE task state → completed
147
- UPDATE cursor.yml
148
-
149
- IF checks fail:
150
- SHOW error to user
151
- FIX and retry (max 3 attempts)
152
- IF still failing:
153
- [CHECKPOINT] "Task failed after 3 attempts. Skip or debug?"
154
-
155
- CHECK for newly unlocked tasks → continue loop
156
- ```
157
-
158
- ### PHASE 5: Documentation (if configured)
159
- ```
160
- IF /tyrex-readme was added as task: EXECUTE it
161
- IF /tyrex-openapi was added as task: EXECUTE it
162
- IF /tyrex-wiki was added as task: EXECUTE it
163
-
164
- Each generates docs WITHOUT touching source code.
165
- COMMIT documentation updates.
166
- ```
167
-
168
- ### PHASE 6: Review
169
- ```
170
- READ review checklist from .tyrex/templates/review-checklist.md
171
- CHECK all acceptance criteria
172
- CHECK code quality
173
- CHECK test coverage
174
- CHECK security
175
- CHECK documentation completeness
176
-
177
- PRESENT review summary
178
-
179
- [CHECKPOINT] User approves or requests changes.
180
- IF changes requested: go back to PHASE 4 with fix tasks.
181
-
182
- UPDATE TYREX.md if new patterns emerged
183
- UPDATE feature status → done
184
- UPDATE cursor.yml → clear active feature
185
- FINAL COMMIT with any review updates
186
- ```
187
-
188
- ### PHASE 7: Handoff Complete
189
- ```
190
- REPORT:
191
- - Feature summary
192
- - Files changed
193
- - Tests added
194
- - Documentation generated
195
- - Commits made
196
- - Next suggested action
197
-
198
- "Handoff complete. The controls are yours again."
199
- ```
200
-
201
- ## FAILURE RECOVERY
202
-
203
- If at ANY point the session is interrupted:
204
- 1. cursor.yml has the last known state
205
- 2. Task state files have individual task progress
206
- 3. Next session: read cursor.yml → resume from exact point
207
- 4. Tasks marked `in_progress` when session dropped → reset to `pending`
208
-
209
- ## WHAT THIS IS NOT
210
-
211
- - This is NOT autonomous "go build everything". The human is still in control at every [CHECKPOINT].
212
- - This is NOT vibe coding. Every step has verification.
213
- - This is NOT a suggestion engine. Between checkpoints, the agent EXECUTES, not suggests.
214
-
215
- The difference from normal Tyrex commands: handoff mode chains ALL phases automatically. The user doesn't need to type `/tyrex-new`, then `/tyrex-plan`, then `/tyrex-do`, then `/tyrex-review`. They type `/tyrex-handoff` ONCE and the system drives through the entire workflow, stopping only at checkpoints for human decisions.
27
+ Run `/tyrex-quick` for the fast-track workflow, or `/tyrex-help` to see all available commands.