@techierathore/techieflow 1.0.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.
Files changed (151) hide show
  1. package/.claude/commands/TechieFlow/agents/analyst.md +97 -0
  2. package/.claude/commands/TechieFlow/agents/architect.md +84 -0
  3. package/.claude/commands/TechieFlow/agents/flow-master.md +217 -0
  4. package/.claude/commands/TechieFlow/agents/verifier.md +72 -0
  5. package/.claude/commands/TechieFlow/tasks/_metrics-emit-gate.md +138 -0
  6. package/.claude/commands/TechieFlow/tasks/_smoke-test-policy.md +98 -0
  7. package/.claude/commands/TechieFlow/tasks/_status-update-gate.md +78 -0
  8. package/.claude/commands/TechieFlow/tasks/_yolo-mode.md +77 -0
  9. package/.claude/commands/TechieFlow/tasks/advanced-elicitation.md +117 -0
  10. package/.claude/commands/TechieFlow/tasks/amend-docs.md +149 -0
  11. package/.claude/commands/TechieFlow/tasks/author-brd.md +79 -0
  12. package/.claude/commands/TechieFlow/tasks/build-phase.md +231 -0
  13. package/.claude/commands/TechieFlow/tasks/create-deep-research-prompt.md +278 -0
  14. package/.claude/commands/TechieFlow/tasks/create-doc.md +101 -0
  15. package/.claude/commands/TechieFlow/tasks/day1-brownfield.md +507 -0
  16. package/.claude/commands/TechieFlow/tasks/day1-greenfield.md +224 -0
  17. package/.claude/commands/TechieFlow/tasks/devguide.md +224 -0
  18. package/.claude/commands/TechieFlow/tasks/document-project.md +343 -0
  19. package/.claude/commands/TechieFlow/tasks/execute-checklist.md +86 -0
  20. package/.claude/commands/TechieFlow/tasks/facilitate-brainstorming-session.md +136 -0
  21. package/.claude/commands/TechieFlow/tasks/fix-issues.md +134 -0
  22. package/.claude/commands/TechieFlow/tasks/generate-html.md +115 -0
  23. package/.claude/commands/TechieFlow/tasks/handoff-phase.md +126 -0
  24. package/.claude/commands/TechieFlow/tasks/index-docs.md +173 -0
  25. package/.claude/commands/TechieFlow/tasks/kb-mode-interaction.md +75 -0
  26. package/.claude/commands/TechieFlow/tasks/log-miss.md +160 -0
  27. package/.claude/commands/TechieFlow/tasks/metrics-report.md +143 -0
  28. package/.claude/commands/TechieFlow/tasks/mockups.md +122 -0
  29. package/.claude/commands/TechieFlow/tasks/productguide.md +105 -0
  30. package/.claude/commands/TechieFlow/tasks/refresh-status.md +135 -0
  31. package/.claude/commands/TechieFlow/tasks/render-workflow-docs.md +117 -0
  32. package/.claude/commands/TechieFlow/tasks/shard-doc.md +185 -0
  33. package/.claude/commands/TechieFlow/tasks/split-brd.md +131 -0
  34. package/.claude/commands/TechieFlow/tasks/triage-issues.md +157 -0
  35. package/.claude/commands/TechieFlow/tasks/verify-phase.md +579 -0
  36. package/.claude/commands/generate-html.md +124 -0
  37. package/.codex/config.toml +46 -0
  38. package/.codex/hooks.json +63 -0
  39. package/.codex/rules/techieflow.rules +8 -0
  40. package/.opencode/command/generate-html.md +129 -0
  41. package/.opencode/plugin/techieflow.js +350 -0
  42. package/.tfcore/TOKEN-GUIDE.md +59 -0
  43. package/.tfcore/agents/analyst.md +97 -0
  44. package/.tfcore/agents/architect.md +84 -0
  45. package/.tfcore/agents/flow-master.md +217 -0
  46. package/.tfcore/agents/verifier.md +72 -0
  47. package/.tfcore/checklists/architect-checklist.md +438 -0
  48. package/.tfcore/core-config.yaml +47 -0
  49. package/.tfcore/data/brainstorming-techniques.md +36 -0
  50. package/.tfcore/data/elicitation-methods.md +154 -0
  51. package/.tfcore/data/techieflow-kb.md +807 -0
  52. package/.tfcore/data/technical-preferences.md +3 -0
  53. package/.tfcore/enhanced-ide-development-workflow.md +248 -0
  54. package/.tfcore/hooks/block-git.sh +301 -0
  55. package/.tfcore/hooks/codex-adapter.py +248 -0
  56. package/.tfcore/hooks/guard-artifacts.sh +101 -0
  57. package/.tfcore/hooks/guard-status-html.sh +102 -0
  58. package/.tfcore/hooks/guard-status.sh +124 -0
  59. package/.tfcore/hooks/guard-verify.sh +108 -0
  60. package/.tfcore/hooks/metrics-session.sh +129 -0
  61. package/.tfcore/hooks/session-pointer.sh +52 -0
  62. package/.tfcore/hooks/sweep-artifacts.sh +198 -0
  63. package/.tfcore/install-manifest.yaml +231 -0
  64. package/.tfcore/routing.yaml +105 -0
  65. package/.tfcore/tasks/_metrics-emit-gate.md +138 -0
  66. package/.tfcore/tasks/_smoke-test-policy.md +98 -0
  67. package/.tfcore/tasks/_status-update-gate.md +78 -0
  68. package/.tfcore/tasks/_yolo-mode.md +77 -0
  69. package/.tfcore/tasks/advanced-elicitation.md +117 -0
  70. package/.tfcore/tasks/amend-docs.md +149 -0
  71. package/.tfcore/tasks/author-brd.md +79 -0
  72. package/.tfcore/tasks/build-phase.md +231 -0
  73. package/.tfcore/tasks/create-deep-research-prompt.md +278 -0
  74. package/.tfcore/tasks/create-doc.md +101 -0
  75. package/.tfcore/tasks/day1-brownfield.md +507 -0
  76. package/.tfcore/tasks/day1-greenfield.md +224 -0
  77. package/.tfcore/tasks/devguide.md +224 -0
  78. package/.tfcore/tasks/document-project.md +343 -0
  79. package/.tfcore/tasks/execute-checklist.md +86 -0
  80. package/.tfcore/tasks/facilitate-brainstorming-session.md +136 -0
  81. package/.tfcore/tasks/fix-issues.md +134 -0
  82. package/.tfcore/tasks/generate-html.md +115 -0
  83. package/.tfcore/tasks/handoff-phase.md +126 -0
  84. package/.tfcore/tasks/index-docs.md +173 -0
  85. package/.tfcore/tasks/kb-mode-interaction.md +75 -0
  86. package/.tfcore/tasks/log-miss.md +160 -0
  87. package/.tfcore/tasks/metrics-report.md +143 -0
  88. package/.tfcore/tasks/mockups.md +122 -0
  89. package/.tfcore/tasks/productguide.md +105 -0
  90. package/.tfcore/tasks/refresh-status.md +135 -0
  91. package/.tfcore/tasks/render-workflow-docs.md +117 -0
  92. package/.tfcore/tasks/shard-doc.md +185 -0
  93. package/.tfcore/tasks/split-brd.md +131 -0
  94. package/.tfcore/tasks/triage-issues.md +157 -0
  95. package/.tfcore/tasks/verify-phase.md +579 -0
  96. package/.tfcore/telemetry/SCHEMA.md +678 -0
  97. package/.tfcore/telemetry/install-metrics.sh +390 -0
  98. package/.tfcore/telemetry/pre-commit +94 -0
  99. package/.tfcore/telemetry/tf-metrics.sh +1415 -0
  100. package/.tfcore/templates/architecture-tmpl.yaml +650 -0
  101. package/.tfcore/templates/brainstorming-output-tmpl.yaml +156 -0
  102. package/.tfcore/templates/brownfield-architecture-tmpl.yaml +476 -0
  103. package/.tfcore/templates/competitor-analysis-tmpl.yaml +306 -0
  104. package/.tfcore/templates/front-end-architecture-tmpl.yaml +218 -0
  105. package/.tfcore/templates/fullstack-architecture-tmpl.yaml +823 -0
  106. package/.tfcore/templates/market-research-tmpl.yaml +252 -0
  107. package/.tfcore/templates/project-brief-tmpl.yaml +221 -0
  108. package/.tfcore/templates/v4custom/app-agents-md-tmpl.md +61 -0
  109. package/.tfcore/templates/v4custom/app-architecture-tmpl.md +127 -0
  110. package/.tfcore/templates/v4custom/app-brd-tmpl.md +204 -0
  111. package/.tfcore/templates/v4custom/app-checklist-tmpl.md +90 -0
  112. package/.tfcore/templates/v4custom/app-claude-md-tmpl.md +33 -0
  113. package/.tfcore/templates/v4custom/app-devguide-tmpl.md +167 -0
  114. package/.tfcore/templates/v4custom/app-editorconfig-tmpl.editorconfig +44 -0
  115. package/.tfcore/templates/v4custom/app-library-feedback-tmpl.md +31 -0
  116. package/.tfcore/templates/v4custom/app-productguide-tmpl.md +54 -0
  117. package/.tfcore/templates/v4custom/app-project-status-tmpl.md +98 -0
  118. package/.tfcore/templates/v4custom/app-uidesign-tmpl.md +48 -0
  119. package/.tfcore/templates/v4custom/app-usageguide-tmpl.md +67 -0
  120. package/.tfcore/templates/v4custom/build-invocation-ladder.md +190 -0
  121. package/.tfcore/templates/v4custom/html-render-shell.md +502 -0
  122. package/.tfcore/templates/v4custom/metrics-report-template.md +273 -0
  123. package/.tfcore/templates/v4custom/opencode-operating-contract.md +56 -0
  124. package/.tfcore/user-guide.md +633 -0
  125. package/.tfcore/utils/techieflow-doc-template.md +325 -0
  126. package/.tfcore/utils/tf-assets.sh +310 -0
  127. package/.tfcore/utils/tf-codex-bind.py +196 -0
  128. package/.tfcore/utils/tf-codex-telemetry.py +60 -0
  129. package/.tfcore/utils/tf-emit.sh +1075 -0
  130. package/.tfcore/utils/tf-gitignore-audit.sh +281 -0
  131. package/.tfcore/utils/tf-goal.sh +421 -0
  132. package/.tfcore/utils/tf-harness.sh +160 -0
  133. package/.tfcore/utils/tf-mockup-parity.mjs +555 -0
  134. package/.tfcore/utils/tf-mockup-parity.sh +65 -0
  135. package/.tfcore/utils/tf-opencode-audit.py +126 -0
  136. package/.tfcore/utils/tf-perf.sh +241 -0
  137. package/.tfcore/utils/tf-render-html.py +715 -0
  138. package/.tfcore/utils/tf-render-html.sh +28 -0
  139. package/.tfcore/utils/tf-routing-bind.sh +216 -0
  140. package/.tfcore/utils/tf-routing.sh +247 -0
  141. package/.tfcore/utils/tf-yolo.sh +119 -0
  142. package/.tfcore/working-in-the-brownfield.md +606 -0
  143. package/LICENSE +201 -0
  144. package/README.md +1212 -0
  145. package/WORKFLOW.html +1986 -0
  146. package/docs/TechieFlow-Installation.md +299 -0
  147. package/opencode.jsonc +929 -0
  148. package/package.json +60 -0
  149. package/scripts/install.mjs +992 -0
  150. package/scripts/test-install.mjs +505 -0
  151. package/scripts/validate.mjs +155 -0
@@ -0,0 +1,633 @@
1
+ # TechieFlow — User Guide
2
+
3
+ This guide will help you understand and effectively use the TechieFlow for agile AI-driven planning and development.
4
+
5
+ ## The TechieFlow Plan and Execute Workflow
6
+
7
+ First, here is the full standard Greenfield Planning + Execution Workflow. Brownfield is very similar, but it's suggested to understand this greenfield first, even if on a simple project before tackling a brownfield project. The TechieFlow needs to be installed to the root of your new project folder. For the planning phase, you can optionally perform it with powerful web agents, potentially resulting in higher quality results at a fraction of the cost it would take to complete if providing your own API key or credits in some Agentic tools. For planning, powerful thinking models and larger context - along with working as a partner with the agents will net the best results.
8
+
9
+ If you are going to use the TechieFlow with a Brownfield project (an existing project), review **[Working in the Brownfield](./working-in-the-brownfield.md)**.
10
+
11
+ If the diagrams below don't render, install Markdown All in One along with the Markdown Preview Mermaid Support plugins to VSCode (or one of the forked clones). With these plugins, if you right click on the tab when open, there should be an Open Preview option, or check the IDE documentation.
12
+
13
+ ### The Planning Workflow (Web UI or Powerful IDE Agents)
14
+
15
+ Before development begins, TechieFlow follows a structured planning workflow that's ideally done in web UI for cost efficiency:
16
+
17
+ ```mermaid
18
+ graph TD
19
+ A["Start: Project Idea"] --> B{"Optional: Analyst Research"}
20
+ B -->|Yes| C["Analyst: Brainstorming (Optional)"]
21
+ B -->|No| G{"Project Brief Available?"}
22
+ C --> C2["Analyst: Market Research (Optional)"]
23
+ C2 --> C3["Analyst: Competitor Analysis (Optional)"]
24
+ C3 --> D["Analyst: Create Project Brief"]
25
+ D --> G
26
+ G -->|Yes| E["PM: Create PRD from Brief (Fast Track)"]
27
+ G -->|No| E2["PM: Interactive PRD Creation (More Questions)"]
28
+ E --> F["PRD Created with FRs, NFRs, Epics & Stories"]
29
+ E2 --> F
30
+ F --> F2{"UX Required?"}
31
+ F2 -->|Yes| F3["UX Expert: Create Front End Spec"]
32
+ F2 -->|No| H["Architect: Create Architecture from PRD"]
33
+ F3 --> F4["UX Expert: Generate UI Prompt for Lovable/V0 (Optional)"]
34
+ F4 --> H2["Architect: Create Architecture from PRD + UX Spec"]
35
+ H --> Q{"Early Test Strategy? (Optional)"}
36
+ H2 --> Q
37
+ Q -->|Yes| R["QA: Early Test Architecture Input on High-Risk Areas"]
38
+ Q -->|No| I
39
+ R --> I["PO: Run Master Checklist"]
40
+ I --> J{"Documents Aligned?"}
41
+ J -->|Yes| K["Planning Complete"]
42
+ J -->|No| L["PO: Update Epics & Stories"]
43
+ L --> M["Update PRD/Architecture as needed"]
44
+ M --> I
45
+ K --> N["📁 Switch to IDE (If in a Web Agent Platform)"]
46
+ N --> O["PO: Shard Documents"]
47
+ O --> P["Ready for SM/Dev Cycle"]
48
+
49
+ style A fill:#f5f5f5,color:#000
50
+ style B fill:#e3f2fd,color:#000
51
+ style C fill:#e8f5e9,color:#000
52
+ style C2 fill:#e8f5e9,color:#000
53
+ style C3 fill:#e8f5e9,color:#000
54
+ style D fill:#e8f5e9,color:#000
55
+ style E fill:#fff3e0,color:#000
56
+ style E2 fill:#fff3e0,color:#000
57
+ style F fill:#fff3e0,color:#000
58
+ style F2 fill:#e3f2fd,color:#000
59
+ style F3 fill:#e1f5fe,color:#000
60
+ style F4 fill:#e1f5fe,color:#000
61
+ style G fill:#e3f2fd,color:#000
62
+ style H fill:#f3e5f5,color:#000
63
+ style H2 fill:#f3e5f5,color:#000
64
+ style Q fill:#e3f2fd,color:#000
65
+ style R fill:#ffd54f,color:#000
66
+ style I fill:#f9ab00,color:#fff
67
+ style J fill:#e3f2fd,color:#000
68
+ style K fill:#34a853,color:#fff
69
+ style L fill:#f9ab00,color:#fff
70
+ style M fill:#fff3e0,color:#000
71
+ style N fill:#1a73e8,color:#fff
72
+ style O fill:#f9ab00,color:#fff
73
+ style P fill:#34a853,color:#fff
74
+ ```
75
+
76
+ #### Web UI to IDE Transition
77
+
78
+ **Critical Transition Point**: Once the PO confirms document alignment, you must switch from web UI to IDE to begin the development workflow:
79
+
80
+ 1. **Copy Documents to Project**: Ensure `docs/prd.md` and `docs/architecture.md` are in your project's docs folder (or a custom location you can specify during installation)
81
+ 2. **Switch to IDE**: Open your project in your preferred Agentic IDE
82
+ 3. **Document Sharding**: Use the PO agent to shard the PRD and then the Architecture
83
+ 4. **Begin Development**: Start the Core Development Cycle that follows
84
+
85
+ #### Planning Artifacts (Standard Paths)
86
+
87
+ ```text
88
+ PRD → docs/prd.md
89
+ Architecture → docs/architecture.md
90
+ Sharded Epics → docs/epics/
91
+ Sharded Stories → docs/stories/
92
+ QA Assessments → docs/qa/assessments/
93
+ QA Gates → docs/qa/gates/
94
+ ```
95
+
96
+ ### The Core Development Cycle (IDE)
97
+
98
+ Once planning is complete and documents are sharded, TechieFlow follows a structured development workflow:
99
+
100
+ ```mermaid
101
+ graph TD
102
+ A["Development Phase Start"] --> B["SM: Reviews Previous Story Dev/QA Notes"]
103
+ B --> B2["SM: Drafts Next Story from Sharded Epic + Architecture"]
104
+ B2 --> S{"High-Risk Story? (Optional)"}
105
+ S -->|Yes| T["QA: *risk + *design on Draft Story"]
106
+ S -->|No| B3
107
+ T --> U["Test Strategy & Risk Profile Created"]
108
+ U --> B3{"PO: Validate Story Draft (Optional)"}
109
+ B3 -->|Validation Requested| B4["PO: Validate Story Against Artifacts"]
110
+ B3 -->|Skip Validation| C{"User Approval"}
111
+ B4 --> C
112
+ C -->|Approved| D["Dev: Sequential Task Execution"]
113
+ C -->|Needs Changes| B2
114
+ D --> E["Dev: Implement Tasks + Tests"]
115
+ E --> V{"Mid-Dev QA Check? (Optional)"}
116
+ V -->|Yes| W["QA: *trace or *nfr for Early Validation"]
117
+ V -->|No| F
118
+ W --> X["Dev: Address Coverage/NFR Gaps"]
119
+ X --> F["Dev: Run All Validations"]
120
+ F --> G["Dev: Mark Ready for Review + Add Notes"]
121
+ G --> H{"User Verification"}
122
+ H -->|Request QA Review| I["QA: Test Architect Review + Quality Gate"]
123
+ H -->|Approve Without QA| M["IMPORTANT: Verify All Regression Tests and Linting are Passing"]
124
+ I --> J["QA: Test Architecture Analysis + Active Refactoring"]
125
+ J --> L{"QA Decision"}
126
+ L -->|Needs Dev Work| D
127
+ L -->|Approved| M
128
+ H -->|Needs Fixes| D
129
+ M --> N["IMPORTANT: COMMIT YOUR CHANGES BEFORE PROCEEDING!"]
130
+ N --> Y{"Gate Update Needed?"}
131
+ Y -->|Yes| Z["QA: *gate to Update Status"]
132
+ Y -->|No| K
133
+ Z --> K["Mark Story as Done"]
134
+ K --> B
135
+
136
+ style A fill:#f5f5f5,color:#000
137
+ style B fill:#e8f5e9,color:#000
138
+ style B2 fill:#e8f5e9,color:#000
139
+ style S fill:#e3f2fd,color:#000
140
+ style T fill:#ffd54f,color:#000
141
+ style U fill:#ffd54f,color:#000
142
+ style B3 fill:#e3f2fd,color:#000
143
+ style B4 fill:#fce4ec,color:#000
144
+ style C fill:#e3f2fd,color:#000
145
+ style D fill:#e3f2fd,color:#000
146
+ style E fill:#e3f2fd,color:#000
147
+ style V fill:#e3f2fd,color:#000
148
+ style W fill:#ffd54f,color:#000
149
+ style X fill:#e3f2fd,color:#000
150
+ style F fill:#e3f2fd,color:#000
151
+ style G fill:#e3f2fd,color:#000
152
+ style H fill:#e3f2fd,color:#000
153
+ style I fill:#f9ab00,color:#fff
154
+ style J fill:#ffd54f,color:#000
155
+ style K fill:#34a853,color:#fff
156
+ style L fill:#e3f2fd,color:#000
157
+ style M fill:#ff5722,color:#fff
158
+ style N fill:#d32f2f,color:#fff
159
+ style Y fill:#e3f2fd,color:#000
160
+ style Z fill:#ffd54f,color:#000
161
+ ```
162
+
163
+ ## Prerequisites
164
+
165
+ Before installing TechieFlow, ensure you have:
166
+
167
+ - **Node.js** ≥ 18, **npm** ≥ 9
168
+ - **Git** installed and configured
169
+ - **(Optional)** VS Code with "Markdown All in One" + "Markdown Preview Mermaid Support" extensions
170
+
171
+ ## Installation
172
+
173
+ ### Optional
174
+
175
+ If you want to do the planning on the web with Claude (Sonnet 4 or Opus), Gemini Gem (2.5 Pro), or Custom GPTs:
176
+
177
+ 1. Navigate to `dist/teams/`
178
+ 2. Copy `team-fullstack.txt`
179
+ 3. Create new Gemini Gem or CustomGPT
180
+ 4. Upload file with instructions: "Your critical operating instructions are attached, do not break character as directed"
181
+ 5. Type `/help` to see available commands
182
+
183
+ ### IDE Project Setup
184
+
185
+ ```bash
186
+ # Interactive installation (recommended)
187
+ # Use ./scaffold-greenfield.sh or ./scaffold-brownfield.sh — see WORKFLOW.html
188
+ ```
189
+
190
+ ### OpenCode
191
+
192
+ TechieFlow integrates with OpenCode via a project-level `opencode.jsonc`/`opencode.json` (JSON-only, no Markdown fallback).
193
+
194
+ - Installation:
195
+ - Run # Use ./scaffold-greenfield.sh or ./scaffold-brownfield.sh — see WORKFLOW.html and choose `OpenCode` in the IDE list.
196
+ - The installer will detect an existing `opencode.jsonc`/`opencode.json` or create a minimal `opencode.jsonc` if missing.
197
+ - It will:
198
+ - Ensure `instructions` includes `.tfcore/core-config.yaml` (and each selected expansion pack’s `config.yaml`).
199
+ - Merge TechieFlow agents and commands using file references (`{file:./.tfcore/...}`), idempotently.
200
+ - Preserve other top-level fields and user-defined entries.
201
+
202
+ - Prefixes and collisions:
203
+ - You can opt-in to prefix agent keys with `techieflow-` and command keys with `techieflow:tasks:` to avoid name collisions.
204
+ - If a key already exists and is not TechieFlow-managed, the installer will skip it and suggest enabling prefixes.
205
+
206
+ - What gets added:
207
+ - `instructions`: `.tfcore/core-config.yaml` plus any selected expansion pack `config.yaml` files, plus `AGENTS.md` (the file OpenCode auto-loads; day-1 tasks emit it).
208
+ - `agent`: TechieFlow agents from core and selected packs.
209
+ - `prompt`: `{file:./.tfcore/agents/<id>.md}` (or pack path)
210
+ - `mode`: `primary` for orchestrators, otherwise `all`
211
+ - `permission`: `{ edit: allow, bash: allow }` (the deprecated `tools` key auto-normalizes to this; `permission` is the explicit form)
212
+ - `description`: extracted from the agent’s `whenToUse`
213
+ - `command`: TechieFlow tasks from core and selected packs.
214
+ - `template`: `{file:./.tfcore/tasks/<id>.md}` (or pack path)
215
+ - `description`: extracted from the task’s “Purpose” section
216
+ - Top-level `permission.bash`: denies every git/gh **write** subcommand (`git commit*`, `git push*`, `git add*`, `git reset*`, `git checkout*`, …, `gh pr create*`, `gh pr merge*`, …) in every mode; read-only git is decided by the plugin-bridged `block-git.sh` (blocked normally, allowed in YOLO — see “YOLO / Goal Mode” below). This is the mechanical gate enforcing “git is manual” (agents’ personas repeat the rule in prose, mirroring the Claude-side `block-git.sh` contract).
217
+
218
+ - Selected Packages Only:
219
+ - The installer includes agents and tasks only from the packages you selected in the earlier step (core and chosen packs).
220
+
221
+ - Refresh after changes:
222
+ - Re-run:
223
+ ```bash
224
+ # Use ./scaffold-greenfield.sh or ./scaffold-brownfield.sh — see WORKFLOW.html
225
+ ```
226
+ - The installer safely updates entries without duplication and preserves your custom fields and comments.
227
+
228
+ - Optional convenience script:
229
+ - You can add a script to your project’s `package.json` for quick refreshes:
230
+ ```json
231
+ {
232
+ "scripts": {
233
+ "techieflow:opencode": "see WORKFLOW.html"
234
+ }
235
+ }
236
+ ```
237
+
238
+ ### Codex (CLI & Web)
239
+
240
+ TechieFlow's full build/runtime workflow is supported in local Codex CLI, IDE,
241
+ and desktop sessions. The scaffold/update scripts install `.codex/` project
242
+ config, custom agents, hooks and rules plus reusable workflows under
243
+ `.agents/skills/`. Trust the repository and review `/hooks` after installation
244
+ or a hook update.
245
+
246
+ Codex loads the root `AGENTS.md`. Invoke `$techieflow-build`,
247
+ `$techieflow-verify`, `$techieflow-refresh-status`, or name the skill in plain
248
+ language. Literal Claude/OpenCode `*command` and slash names are vocabulary
249
+ aliases, not Codex command registrations.
250
+
251
+ For an unattended local run:
252
+
253
+ ```bash
254
+ bash .tfcore/utils/tf-goal.sh --harness codex . "<goal>"
255
+ ```
256
+
257
+ Codex cloud cannot automatically reach local `winrun`, Appium hosts, NuGet
258
+ credentials, or already-running services. It is static-only unless equivalent
259
+ infrastructure is explicitly provisioned.
260
+
261
+ ## Special Agents
262
+
263
+ There are two TechieFlow agents — in the future they'll be consolidated into a single Flow-Master.
264
+
265
+ ### Flow-Master
266
+
267
+ This agent can do any task or command that all other agents can do, aside from actual story implementation. Additionally, this agent can help explain the TechieFlow when on the web by accessing the knowledge base and explaining anything to you about the process.
268
+
269
+ If you don't want to bother switching between different agents aside from the dev, this is the agent for you. Just remember that as the context grows, the performance of the agent degrades, therefore it is important to instruct the agent to compact the conversation and start a new conversation with the compacted conversation as the initial message. Do this often, preferably after each story is implemented.
270
+
271
+ ### Flow-Master
272
+
273
+ This agent should NOT be used within the IDE, it is a heavyweight, special-purpose agent that utilizes a lot of context and can morph into any other agent. This exists solely to facilitate the teams within the web bundles. If you use a web bundle you will be greeted by the TechieFlow Orchestrator.
274
+
275
+ ### How Agents Work
276
+
277
+ #### Dependencies System
278
+
279
+ Each agent has a YAML section that defines its dependencies:
280
+
281
+ ```yaml
282
+ dependencies:
283
+ templates:
284
+ - prd-template.md
285
+ - user-story-template.md
286
+ tasks:
287
+ - create-doc.md
288
+ - shard-doc.md
289
+ data:
290
+ - techieflow-kb.md
291
+ ```
292
+
293
+ **Key Points:**
294
+
295
+ - Agents only load resources they need (lean context)
296
+ - Dependencies are automatically resolved during bundling
297
+ - Resources are shared across agents to maintain consistency
298
+
299
+ #### Agent Interaction
300
+
301
+ **In IDE:**
302
+
303
+ ```bash
304
+ # Some IDEs, like Cursor or Windsurf for example, utilize manual rules so interaction is done with the '@' symbol
305
+ @pm Create a PRD for a task management app
306
+ @architect Design the system architecture
307
+ @dev Implement the user authentication
308
+
309
+ # Some IDEs, like Claude Code, use slash commands instead
310
+ /pm Create user stories
311
+ /dev Fix the login bug
312
+ ```
313
+
314
+ #### Interactive Modes
315
+
316
+ - **Incremental Mode**: Step-by-step with user input
317
+ - **YOLO / Goal Mode**: `*yolo` (or YOLO in any command, an active `/goal`, a `tf-goal.sh` run) — no confirmations or elicitation pauses, deletes + read-only git allowed (git writes never), whole-checklist build passes with an automatic FIX loop, run until the goal is complete; unattended runs via `bash .tfcore/utils/tf-goal.sh <app> "<goal>"` wait out usage-limit windows and resume. Rule: `.tfcore/tasks/_yolo-mode.md`.
318
+
319
+ ## YOLO / Goal Mode (unattended runs)
320
+
321
+ Full rule: `.tfcore/tasks/_yolo-mode.md`. Background + mechanics: README §12a / DECISIONS 2026-08-21.
322
+
323
+ ### What it means
324
+
325
+ **YOLO = "I have given you all the permissions and all the access — run until the goal is complete."** Four ways to turn it on, all equivalent:
326
+
327
+ | You do | What happens |
328
+ |---|---|
329
+ | `*yolo` in any TechieFlow agent | agent runs `bash .tfcore/utils/tf-yolo.sh on` (flag at `.tfcore/.session/yolo.json`) |
330
+ | put **YOLO** anywhere in a command — `*build-phase MyApp yolo` | same, then the command |
331
+ | Claude Code `/goal <condition>` | agent runs `tf-yolo.sh on --source goal`; start the session with `--permission-mode bypassPermissions` (or `auto`) |
332
+ | `bash .tfcore/utils/tf-goal.sh <app> "<goal>"` | the supervisor sets it for you and keeps the run alive (below) |
333
+
334
+ `*yolo` again (or `tf-yolo.sh off`) turns it off; `tf-yolo.sh status` shows the state.
335
+
336
+ ### What changes
337
+
338
+ | | Normal | YOLO |
339
+ |---|---|---|
340
+ | `rm` / `rmdir` / `sudo` | prompt | allowed, no prompt (catastrophic `rm -rf /`, `~` still denied) |
341
+ | git/gh **reads** (`status`/`log`/`diff`/`blame`, `gh pr view`) | blocked | allowed |
342
+ | git/gh **writes** (`commit`/`push`/`add`/`reset`/`checkout`/`stash`/`tag`, `gh pr create\|merge`) | blocked | **still blocked — the owner commits** |
343
+ | elicitation, BRD-N confirm pause, phase-boundary pauses, "ask once" questions | pause | agent takes the sensible default, records it in the checklist Remarks, continues |
344
+ | build pass | whole checklist (build-phase §2b) | whole checklist **+ automatic FIX loop** on verifier FAIL rows (§6c, ≤5 cycles) |
345
+ | turn ending | may hand back | only when the goal is complete (`tf-yolo.sh done complete`) or every remaining REQ needs the owner (`done blocked`) |
346
+
347
+ YOLO does **not** relax the evidence rules: no self-attested `Verified`, PROJECT-STATUS (md + html) still ends every phase, smoke policy unchanged.
348
+
349
+ ### Running a goal unattended (VM recipe)
350
+
351
+ ```bash
352
+ # Claude Code (default) — logs to <app>/.tfcore/.session/goal.log
353
+ bash .tfcore/utils/tf-goal.sh /path/to/App "Take MyApp from its current PROJECT-STATUS to Handoff: build every open REQ, verify all, fix until every row is Verified, then *handoff-phase."
354
+
355
+ # OpenCode
356
+ bash .tfcore/utils/tf-goal.sh --harness opencode --model opencode-go/kimi-k3 /path/to/App @goal.md
357
+
358
+ # after a reboot / to continue where it stopped
359
+ bash .tfcore/utils/tf-goal.sh --resume /path/to/App
360
+ ```
361
+
362
+ What the supervisor does for you:
363
+
364
+ - **Usage limits (5-hour / weekly):** parses the reset time from the limit message (`resets 7pm (Asia/Kolkata)`, `resets in 2h 14m`, `usage limit reached|<epoch>`, weekly `resets Tue 3pm`), sleeps until **reset + 15 min** (`--buffer-min`), logs `RETRY AT …`, then **resumes the same session**. No parseable time → probes with a one-turn `claude -p "Reply OK"` every 15 min (`--probe-min`) until the API answers, then resumes.
365
+ - **Crashes / API errors:** backs off 2 → 30 min and resumes.
366
+ - **Agent stopped without finishing** (asked a question, summarised): re-prompts it after 30 s.
367
+ - **Stops only on the agent's sentinel:** exit `0` complete · `3` blocked — read `.tfcore/.session/goal-done.json` for what the owner must do · `4` max cycles (`--max-cycles`, default 60).
368
+
369
+ Files (never committed): `.tfcore/.session/goal.log`, `goal.json` (cycle, session id, `resume_at`), `goal-cycle-N.out`, `goal-done.json`.
370
+
371
+ ### If a YOLO run still prompts
372
+
373
+ 1. The app's `.claude/settings.json` predates 2026-08-21 and still has `Bash(rm *)` under `ask` — Claude Code prompts on a settings `ask` in *every* mode, even bypass. Run `update-framework.sh <app>`.
374
+ 2. The agent forgot `tf-yolo.sh on` — type `*yolo` again or run it yourself.
375
+ 3. It was a git **write** — that prompts for nobody; it is denied by design.
376
+
377
+ ## IDE Integration
378
+
379
+ ### IDE Best Practices
380
+
381
+ - **Context Management**: Keep relevant files only in context, keep files as lean and focused as necessary
382
+ - **Agent Selection**: Use appropriate agent for task
383
+ - **Iterative Development**: Work in small, focused tasks
384
+ - **File Organization**: Maintain clean project structure
385
+ - **Commit Regularly**: Save your work frequently
386
+
387
+ ## The Test Architect (QA Agent)
388
+
389
+ ### Overview
390
+
391
+ The QA agent in TechieFlow is not just a "senior developer reviewer" - it's a **Test Architect** with deep expertise in test strategy, quality gates, and risk-based testing. Named Quinn, this agent provides advisory authority on quality matters while actively improving code when safe to do so.
392
+
393
+ #### Quick Start (Essential Commands)
394
+
395
+ ```bash
396
+ @qa *risk {story} # Assess risks before development
397
+ @qa *design {story} # Create test strategy
398
+ @qa *trace {story} # Verify test coverage during dev
399
+ @qa *nfr {story} # Check quality attributes
400
+ @qa *review {story} # Full assessment → writes gate
401
+ ```
402
+
403
+ #### Command Aliases (Test Architect)
404
+
405
+ The documentation uses short forms for convenience. Both styles are valid:
406
+
407
+ ```text
408
+ *risk → *risk-profile
409
+ *design → *test-design
410
+ *nfr → *nfr-assess
411
+ *trace → *trace-requirements (or just *trace)
412
+ *review → *review
413
+ *gate → *gate
414
+ ```
415
+
416
+ ### Core Capabilities
417
+
418
+ #### 1. Risk Profiling (`*risk`)
419
+
420
+ **When:** After story draft, before development begins (earliest intervention point)
421
+
422
+ Identifies and assesses implementation risks:
423
+
424
+ - **Categories**: Technical, Security, Performance, Data, Business, Operational
425
+ - **Scoring**: Probability × Impact analysis (1-9 scale)
426
+ - **Mitigation**: Specific strategies for each identified risk
427
+ - **Gate Impact**: Risks ≥9 trigger FAIL, ≥6 trigger CONCERNS (see `tasks/risk-profile.md` for authoritative rules)
428
+
429
+ #### 2. Test Design (`*design`)
430
+
431
+ **When:** After story draft, before development begins (guides what tests to write)
432
+
433
+ Creates comprehensive test strategies including:
434
+
435
+ - Test scenarios for each acceptance criterion
436
+ - Appropriate test level recommendations (unit vs integration vs E2E)
437
+ - Risk-based prioritization (P0/P1/P2)
438
+ - Test data requirements and mock strategies
439
+ - Execution strategies for CI/CD integration
440
+
441
+ **Example output:**
442
+
443
+ ```yaml
444
+ test_summary:
445
+ total: 24
446
+ by_level:
447
+ unit: 15
448
+ integration: 7
449
+ e2e: 2
450
+ by_priority:
451
+ P0: 8 # Must have - linked to critical risks
452
+ P1: 10 # Should have - medium risks
453
+ P2: 6 # Nice to have - low risks
454
+ ```
455
+
456
+ #### 3. Requirements Tracing (`*trace`)
457
+
458
+ **When:** During development (mid-implementation checkpoint)
459
+
460
+ Maps requirements to test coverage:
461
+
462
+ - Documents which tests validate each acceptance criterion
463
+ - Uses Given-When-Then for clarity (documentation only, not BDD code)
464
+ - Identifies coverage gaps with severity ratings
465
+ - Creates traceability matrix for audit purposes
466
+
467
+ #### 4. NFR Assessment (`*nfr`)
468
+
469
+ **When:** During development or early review (validate quality attributes)
470
+
471
+ Validates non-functional requirements:
472
+
473
+ - **Core Four**: Security, Performance, Reliability, Maintainability
474
+ - **Evidence-Based**: Looks for actual implementation proof
475
+ - **Gate Integration**: NFR failures directly impact quality gates
476
+
477
+ #### 5. Comprehensive Test Architecture Review (`*review`)
478
+
479
+ **When:** After development complete, story marked "Ready for Review"
480
+
481
+ When you run `@qa *review {story}`, Quinn performs:
482
+
483
+ - **Requirements Traceability**: Maps every acceptance criterion to its validating tests
484
+ - **Test Level Analysis**: Ensures appropriate testing at unit, integration, and E2E levels
485
+ - **Coverage Assessment**: Identifies gaps and redundant test coverage
486
+ - **Active Refactoring**: Improves code quality directly when safe
487
+ - **Quality Gate Decision**: Issues PASS/CONCERNS/FAIL status based on findings
488
+
489
+ #### 6. Quality Gates (`*gate`)
490
+
491
+ **When:** After review fixes or when gate status needs updating
492
+
493
+ Manages quality gate decisions:
494
+
495
+ - **Deterministic Rules**: Clear criteria for PASS/CONCERNS/FAIL
496
+ - **Parallel Authority**: QA owns gate files in `docs/qa/gates/`
497
+ - **Advisory Nature**: Provides recommendations, not blocks
498
+ - **Waiver Support**: Documents accepted risks when needed
499
+
500
+ **Note:** Gates are advisory; teams choose their quality bar. WAIVED requires reason, approver, and expiry date. See `templates/qa-gate-tmpl.yaml` for schema and `tasks/review-story.md` (gate rules) and `tasks/risk-profile.md` for scoring.
501
+
502
+ ### Working with the Test Architect
503
+
504
+ #### Integration with TechieFlow Workflow
505
+
506
+ The Test Architect provides value throughout the entire development lifecycle. Here's when and how to leverage each capability:
507
+
508
+ | **Stage** | **Command** | **When to Use** | **Value** | **Output** |
509
+ | ------------------ | ----------- | ----------------------- | -------------------------- | -------------------------------------------------------------- |
510
+ | **Story Drafting** | `*risk` | After SM drafts story | Identify pitfalls early | `docs/qa/assessments/{epic}.{story}-risk-{YYYYMMDD}.md` |
511
+ | | `*design` | After risk assessment | Guide dev on test strategy | `docs/qa/assessments/{epic}.{story}-test-design-{YYYYMMDD}.md` |
512
+ | **Development** | `*trace` | Mid-implementation | Verify test coverage | `docs/qa/assessments/{epic}.{story}-trace-{YYYYMMDD}.md` |
513
+ | | `*nfr` | While building features | Catch quality issues early | `docs/qa/assessments/{epic}.{story}-nfr-{YYYYMMDD}.md` |
514
+ | **Review** | `*review` | Story marked complete | Full quality assessment | QA Results in story + gate file |
515
+ | **Post-Review** | `*gate` | After fixing issues | Update quality decision | Updated `docs/qa/gates/{epic}.{story}-{slug}.yml` |
516
+
517
+ #### Example Commands
518
+
519
+ ```bash
520
+ # Planning Stage - Run these BEFORE development starts
521
+ @qa *risk {draft-story} # What could go wrong?
522
+ @qa *design {draft-story} # What tests should we write?
523
+
524
+ # Development Stage - Run these DURING coding
525
+ @qa *trace {story} # Are we testing everything?
526
+ @qa *nfr {story} # Are we meeting quality standards?
527
+
528
+ # Review Stage - Run when development complete
529
+ @qa *review {story} # Comprehensive assessment + refactoring
530
+
531
+ # Post-Review - Run after addressing issues
532
+ @qa *gate {story} # Update gate status
533
+ ```
534
+
535
+ ### Quality Standards Enforced
536
+
537
+ Quinn enforces these test quality principles:
538
+
539
+ - **No Flaky Tests**: Ensures reliability through proper async handling
540
+ - **No Hard Waits**: Dynamic waiting strategies only
541
+ - **Stateless & Parallel-Safe**: Tests run independently
542
+ - **Self-Cleaning**: Tests manage their own test data
543
+ - **Appropriate Test Levels**: Unit for logic, integration for interactions, E2E for journeys
544
+ - **Explicit Assertions**: Keep assertions in tests, not helpers
545
+
546
+ ### Gate Status Meanings
547
+
548
+ - **PASS**: All critical requirements met, no blocking issues
549
+ - **CONCERNS**: Non-critical issues found, team should review
550
+ - **FAIL**: Critical issues that should be addressed (security risks, missing P0 tests)
551
+ - **WAIVED**: Issues acknowledged but explicitly accepted by team
552
+
553
+ ### Special Situations
554
+
555
+ **High-Risk Stories:**
556
+
557
+ - Always run `*risk` and `*design` before development starts
558
+ - Consider mid-development `*trace` and `*nfr` checkpoints
559
+
560
+ **Complex Integrations:**
561
+
562
+ - Run `*trace` during development to ensure all integration points tested
563
+ - Follow up with `*nfr` to validate performance across integrations
564
+
565
+ **Performance-Critical:**
566
+
567
+ - Run `*nfr` early and often during development
568
+ - Don't wait until review to discover performance issues
569
+
570
+ **Brownfield/Legacy Code:**
571
+
572
+ - Start with `*risk` to identify regression dangers
573
+ - Use `*review` with extra focus on backward compatibility
574
+
575
+ ### Best Practices
576
+
577
+ - **Early Engagement**: Run `*design` and `*risk` during story drafting
578
+ - **Risk-Based Focus**: Let risk scores drive test prioritization
579
+ - **Iterative Improvement**: Use QA feedback to improve future stories
580
+ - **Gate Transparency**: Share gate decisions with the team
581
+ - **Continuous Learning**: QA documents patterns for team knowledge sharing
582
+ - **Brownfield Care**: Pay extra attention to regression risks in existing systems
583
+
584
+ ### Output Paths Reference
585
+
586
+ Quick reference for where Test Architect outputs are stored:
587
+
588
+ ```text
589
+ *risk-profile → docs/qa/assessments/{epic}.{story}-risk-{YYYYMMDD}.md
590
+ *test-design → docs/qa/assessments/{epic}.{story}-test-design-{YYYYMMDD}.md
591
+ *trace → docs/qa/assessments/{epic}.{story}-trace-{YYYYMMDD}.md
592
+ *nfr-assess → docs/qa/assessments/{epic}.{story}-nfr-{YYYYMMDD}.md
593
+ *review → QA Results section in story + gate file reference
594
+ *gate → docs/qa/gates/{epic}.{story}-{slug}.yml
595
+ ```
596
+
597
+ ## Technical Preferences System
598
+
599
+ TechieFlow includes a personalization system through the `technical-preferences.md` file located in `.tfcore/data/` - this can help bias the PM and Architect to recommend your preferences for design patterns, technology selection, or anything else you would like to put in here.
600
+
601
+ ### Using with Web Bundles
602
+
603
+ When creating custom web bundles or uploading to AI platforms, include your `technical-preferences.md` content to ensure agents have your preferences from the start of any conversation.
604
+
605
+ ## Core Configuration
606
+
607
+ The `.tfcore/core-config.yaml` file is a critical config that enables TechieFlow to work seamlessly with differing project structures, more options will be made available in the future. Currently the most important is the devLoadAlwaysFiles list section in the yaml.
608
+
609
+ ### Developer Context Files
610
+
611
+ Define which files the dev agent should always load:
612
+
613
+ ```yaml
614
+ devLoadAlwaysFiles:
615
+ - docs/architecture/coding-standards.md
616
+ - docs/architecture/tech-stack.md
617
+ - docs/architecture/project-structure.md
618
+ ```
619
+
620
+ You will want to verify from sharding your architecture that these documents exist, that they are as lean as possible, and contain exactly the information you want your dev agent to ALWAYS load into its context. These are the rules the agent will follow.
621
+
622
+ As your project grows and the code starts to build consistent patterns, coding standards should be reduced to include only the standards the agent still needs enforced. The agent will look at surrounding code in files to infer the coding standards that are relevant to the current task.
623
+
624
+ ## Getting Help
625
+
626
+ - **Workflow reference**: open WORKFLOW.html in a browser, or read README.md
627
+ - **Framework context / maintenance log**: WorkFlow-Context.md
628
+ - **Templates**: .tfcore/templates/v4custom/
629
+
630
+
631
+ ## Conclusion
632
+
633
+ Remember: TechieFlow is designed to enhance your development process, not replace your expertise. Use it as a powerful tool to accelerate your projects while maintaining control over design decisions and implementation details.