@techierathore/techieflow 1.0.3 → 1.0.4
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/.claude/commands/TechieFlow/agents/analyst.md +5 -8
- package/.claude/commands/TechieFlow/agents/architect.md +1 -10
- package/.claude/commands/TechieFlow/agents/flow-master.md +1 -0
- package/.claude/commands/TechieFlow/agents/verifier.md +1 -0
- package/.claude/commands/TechieFlow/tasks/_owner-language.md +26 -0
- package/.claude/commands/TechieFlow/tasks/_smoke-test-policy.md +1 -1
- package/.claude/commands/TechieFlow/tasks/amend-docs.md +6 -5
- package/.claude/commands/TechieFlow/tasks/build-phase.md +1 -1
- package/.claude/commands/TechieFlow/tasks/create-deep-research-prompt.md +4 -0
- package/.claude/commands/TechieFlow/tasks/create-doc.md +4 -0
- package/.claude/commands/TechieFlow/tasks/create-project-brief.md +22 -0
- package/.claude/commands/TechieFlow/tasks/day1-brownfield.md +2 -2
- package/.claude/commands/TechieFlow/tasks/day1-greenfield.md +2 -2
- package/.claude/commands/TechieFlow/tasks/facilitate-brainstorming-session.md +4 -0
- package/.claude/commands/TechieFlow/tasks/generate-html.md +5 -1
- package/.claude/commands/TechieFlow/tasks/handoff-phase.md +18 -16
- package/.claude/commands/TechieFlow/tasks/metrics-report.md +2 -0
- package/.claude/commands/TechieFlow/tasks/verify-phase.md +1 -1
- package/.opencode/plugin/techieflow.js +2 -2
- package/.tfcore/agents/analyst.md +5 -8
- package/.tfcore/agents/architect.md +1 -10
- package/.tfcore/agents/flow-master.md +1 -0
- package/.tfcore/agents/verifier.md +1 -0
- package/.tfcore/hooks/guard-metrics.sh +13 -1
- package/.tfcore/hooks/guard-verify-deps.sh +124 -0
- package/.tfcore/routing.yaml +61 -0
- package/.tfcore/tasks/_owner-language.md +26 -0
- package/.tfcore/tasks/_smoke-test-policy.md +1 -1
- package/.tfcore/tasks/amend-docs.md +6 -5
- package/.tfcore/tasks/build-phase.md +1 -1
- package/.tfcore/tasks/create-deep-research-prompt.md +4 -0
- package/.tfcore/tasks/create-doc.md +4 -0
- package/.tfcore/tasks/create-project-brief.md +22 -0
- package/.tfcore/tasks/day1-brownfield.md +2 -2
- package/.tfcore/tasks/day1-greenfield.md +2 -2
- package/.tfcore/tasks/facilitate-brainstorming-session.md +4 -0
- package/.tfcore/tasks/generate-html.md +5 -1
- package/.tfcore/tasks/handoff-phase.md +18 -16
- package/.tfcore/tasks/metrics-report.md +2 -0
- package/.tfcore/tasks/verify-phase.md +1 -1
- package/.tfcore/telemetry/SCHEMA.md +57 -1
- package/.tfcore/telemetry/tf-metrics.sh +416 -19
- package/.tfcore/templates/v4custom/app-brief-tmpl.md +65 -0
- package/.tfcore/templates/v4custom/app-decision-request-tmpl.md +85 -0
- package/.tfcore/templates/v4custom/app-library-feedback-tmpl.md +86 -31
- package/.tfcore/templates/v4custom/html-render-shell.md +1 -1
- package/.tfcore/utils/__pycache__/tf-brd-status.cpython-312.pyc +0 -0
- package/.tfcore/utils/__pycache__/tf-checklist-edit.cpython-312.pyc +0 -0
- package/.tfcore/utils/__pycache__/tf-day1-files.cpython-312.pyc +0 -0
- package/.tfcore/utils/__pycache__/tf-devguide-list.cpython-312.pyc +0 -0
- package/.tfcore/utils/__pycache__/tf-doc-check.cpython-312.pyc +0 -0
- package/.tfcore/utils/__pycache__/tf-log-miss.cpython-312.pyc +0 -0
- package/.tfcore/utils/__pycache__/tf-misses-md.cpython-312.pyc +0 -0
- package/.tfcore/utils/__pycache__/tf-mockups-locate.cpython-312.pyc +0 -0
- package/.tfcore/utils/__pycache__/tf-opencode-audit.cpython-312.pyc +0 -0
- package/.tfcore/utils/__pycache__/tf-perf-grade.cpython-312.pyc +0 -0
- package/.tfcore/utils/__pycache__/tf-render-html.cpython-312.pyc +0 -0
- package/.tfcore/utils/__pycache__/tf-split-brd.cpython-312.pyc +0 -0
- package/.tfcore/utils/__pycache__/tf-status-facts.cpython-312.pyc +0 -0
- package/.tfcore/utils/__pycache__/tf-triage.cpython-312.pyc +0 -0
- package/.tfcore/utils/__pycache__/tf-verify-list.cpython-312.pyc +0 -0
- package/.tfcore/utils/__pycache__/tf-verify-verdict.cpython-312.pyc +0 -0
- package/.tfcore/utils/tf-build-list.py +23 -3
- package/.tfcore/utils/tf-build-list.sh +3 -2
- package/.tfcore/utils/tf-doc-check.py +106 -4
- package/.tfcore/utils/tf-emit.sh +353 -16
- package/.tfcore/utils/tf-fix-close.sh +34 -2
- package/.tfcore/utils/tf-gitignore-audit.sh +50 -3
- package/.tfcore/utils/tf-goal.sh +93 -6
- package/.tfcore/utils/tf-misses-md.py +14 -17
- package/.tfcore/utils/tf-misses-md.sh +5 -4
- package/.tfcore/utils/tf-model-pick.sh +475 -0
- package/.tfcore/utils/tf-phase.sh +18 -0
- package/.tfcore/utils/tf-render-html.py +20 -0
- package/.tfcore/utils/tf-routing-bind.sh +87 -1
- package/.tfcore/utils/tf-routing.sh +7 -0
- package/.tfcore/utils/tf-selfcheck.sh +323 -0
- package/.tfcore/utils/tf-split-brd.py +6 -1
- package/.tfcore/utils/tf-status-facts.py +61 -12
- package/.tfcore/utils/tf-verify-screens.mjs +85 -13
- package/.tfcore/utils/tf-verify-screens.sh +12 -3
- package/.tfcore/utils/tf-verify-tests.sh +60 -17
- package/.tfcore/utils/tf-verify-verdict.py +11 -2
- package/README.md +15 -5
- package/opencode.jsonc +24 -0
- package/package.json +1 -1
- package/scripts/install.mjs +4 -0
- package/.tfcore/templates/architecture-tmpl.yaml +0 -650
- package/.tfcore/templates/brownfield-architecture-tmpl.yaml +0 -476
- package/.tfcore/templates/competitor-analysis-tmpl.yaml +0 -306
- package/.tfcore/templates/front-end-architecture-tmpl.yaml +0 -218
- package/.tfcore/templates/fullstack-architecture-tmpl.yaml +0 -823
- package/.tfcore/templates/market-research-tmpl.yaml +0 -252
- package/.tfcore/templates/project-brief-tmpl.yaml +0 -221
- package/.tfcore/utils/techieflow-doc-template.md +0 -325
|
@@ -41,6 +41,7 @@ persona:
|
|
|
41
41
|
identity: Strategic analyst specializing in brainstorming, market research, competitive analysis, and project briefing
|
|
42
42
|
focus: Research planning, ideation facilitation, strategic analysis, actionable insights
|
|
43
43
|
core_principles:
|
|
44
|
+
- OWNER LANGUAGE - Everything the owner reads is plain, simple English: no coined terms, no framework shorthand, no word they would have to look up. A choice only the owner can make goes in `docs/{App}-Decision-Request.md` with a recommendation and a block to paste back, and ONE line in the terminal — never argued out in the conversation. Reporting an upstream defect is never refused; it goes in the feedback file, answers "Blocks: yes|no" first, and a non-blocking entry never stops the run. `.tfcore/tasks/_owner-language.md`.
|
|
44
45
|
- Curiosity-Driven Inquiry - Ask probing "why" questions to uncover underlying truths
|
|
45
46
|
- Objective & Evidence-Based Analysis - Ground findings in verifiable data and credible sources
|
|
46
47
|
- Strategic Contextualization - Frame all work within broader strategic context
|
|
@@ -52,7 +53,7 @@ persona:
|
|
|
52
53
|
- Maintaining a Broad Perspective - Stay aware of market trends and dynamics
|
|
53
54
|
- Integrity of Information - Ensure accurate sourcing and representation
|
|
54
55
|
- Numbered Options Protocol - Always use numbered lists for selections
|
|
55
|
-
- RUN IT YOURSELF - When a task you run boots or smokes an app (devguide OBSERVE at brownfield day-1, render sweeps), the
|
|
56
|
+
- RUN IT YOURSELF - When a task you run boots or smokes an app (devguide OBSERVE at brownfield day-1, render sweeps), the project's own test harness is already set up - run it yourself; never hand the boot to the owner (_smoke-test-policy.md banned excuses).
|
|
56
57
|
- BRD Numbering Protocol - When authoring or extending a BRD, every business/functional requirement MUST receive a stable unique ID in the form 'BRD-{N}' (BRD-1, BRD-2, ...). IDs are APPEND-ONLY across revisions - never renumber existing IDs; new requirements take the next unused integer. Group requirements by phase under '## Phase {N}' headings so the verifier and UI agent can scope by phase.
|
|
57
58
|
- Interactive BRD Elicitation - BRD authoring runs with elicit=true. NEVER assume a requirement. For each section/area, surface candidate requirements as a numbered list and have the user confirm / reject / refine each one before assigning it a BRD-N. Do not batch-write multiple requirements without per-item confirmation.
|
|
58
59
|
# All commands require * prefix when used (e.g., *help)
|
|
@@ -60,14 +61,12 @@ commands:
|
|
|
60
61
|
- help: Show numbered list of the following commands to allow selection
|
|
61
62
|
- day1-brownfield {AppName}: Day-1 master task for an EXISTING project. Produces Architecture, BRD, Coding-Standards, .editorconfig, PROJECT-STATUS, CLAUDE.md + the screen-by-screen DevGuide (with per-screen screenshots) in one session; if an existing dev/phase plan is found, also migrates it into the one Checklist (inline split, statuses preserved). Runs task day1-brownfield.md.
|
|
62
63
|
- day1-greenfield {AppName}: Day-1 master task for a NEW project. Produces brief + BRD + target Architecture + UI mockups + Coding-Standards + .editorconfig + PROJECT-STATUS + CLAUDE.md + UsageGuide. Runs task day1-greenfield.md.
|
|
63
|
-
- mockups {AppName} [--update]: Produce the greenfield UI design — docs/{AppName}-UIDesign.md (per-screen component map) + rendered docs/mockups/*.html styled to look like
|
|
64
|
+
- mockups {AppName} [--update]: Produce the greenfield UI design — docs/{AppName}-UIDesign.md (per-screen component map) + rendered docs/mockups/*.html styled to look like the UI library the Architecture names (read that library's component catalog first when it ships one; replicable by construction). The visual contract the build matches + the verifier diffs against. Runs task mockups.md.
|
|
64
65
|
- split-brd {AppName}: Split docs/{AppName}-BRD.md into the one docs/{AppName}-Checklist.md (REQ-UI/FN/RAG/NFR-* in a single Requirements Status table); seeds phase tags + Done(pre-existing) statuses from any existing dev/phase plan. Runs task split-brd.md.
|
|
65
66
|
- brainstorm {topic}: Facilitate structured brainstorming session (run task facilitate-brainstorming-session.md with template brainstorming-output-tmpl.yaml)
|
|
66
67
|
- amend-docs {AppName} {change}: Fold an evolving concept / changed requirements into the EXISTING day-1 docs IN PLACE — surgically amends BRD + Architecture (append-only BRD IDs, unchanged sections preserved), ripples to PROJECT-STATUS / BRD §4 / the checklist (and points UI changes at *mockups --update), re-renders HTML. The incremental alternative to re-running *day1-* (which archives + regenerates). Runs task amend-docs.md.
|
|
67
|
-
- create-
|
|
68
|
-
- create-project-brief: use task create-doc with project-brief-tmpl.yaml
|
|
68
|
+
- create-project-brief {AppName}: Write docs/{AppName}-Brief.md, the one page day-1 reads — what it is, who for, must do, out of scope, open questions. Runs task create-project-brief.md.
|
|
69
69
|
- doc-out: Output full document in progress to current destination file
|
|
70
|
-
- perform-market-research: use task create-doc with market-research-tmpl.yaml
|
|
71
70
|
- research-prompt {topic}: execute task create-deep-research-prompt.md
|
|
72
71
|
- yolo: Toggle YOLO / goal mode — run `bash .tfcore/utils/tf-yolo.sh on|off`, then operate per .tfcore/tasks/_yolo-mode.md: no confirmations or elicitation pauses (take the sensible default, record it), deletes + read-only git allowed (git writes never), run the command to completion. Also implied by the word YOLO in any command, an active /goal, or a tf-goal.sh run.
|
|
73
72
|
- exit: Say goodbye as the Business Analyst, and then abandon inhabiting this persona
|
|
@@ -79,6 +78,7 @@ dependencies:
|
|
|
79
78
|
- amend-docs.md
|
|
80
79
|
- create-deep-research-prompt.md
|
|
81
80
|
- create-doc.md
|
|
81
|
+
- create-project-brief.md
|
|
82
82
|
- day1-brownfield.md
|
|
83
83
|
- day1-greenfield.md
|
|
84
84
|
- facilitate-brainstorming-session.md
|
|
@@ -86,7 +86,4 @@ dependencies:
|
|
|
86
86
|
- split-brd.md
|
|
87
87
|
templates:
|
|
88
88
|
- brainstorming-output-tmpl.yaml
|
|
89
|
-
- competitor-analysis-tmpl.yaml
|
|
90
|
-
- market-research-tmpl.yaml
|
|
91
|
-
- project-brief-tmpl.yaml
|
|
92
89
|
```
|
|
@@ -41,6 +41,7 @@ persona:
|
|
|
41
41
|
identity: Master of holistic application design who bridges frontend, backend, infrastructure, and everything in between
|
|
42
42
|
focus: Complete systems architecture, cross-stack optimization, pragmatic technology selection
|
|
43
43
|
core_principles:
|
|
44
|
+
- OWNER LANGUAGE - Everything the owner reads is plain, simple English: no coined terms, no framework shorthand, no word they would have to look up. A choice only the owner can make goes in `docs/{App}-Decision-Request.md` with a recommendation and a block to paste back, and ONE line in the terminal — never argued out in the conversation. Reporting an upstream defect is never refused; it goes in the feedback file, answers "Blocks: yes|no" first, and a non-blocking entry never stops the run. `.tfcore/tasks/_owner-language.md`.
|
|
44
45
|
- Holistic System Thinking - View every component as part of a larger system
|
|
45
46
|
- User Experience Drives Architecture - Start with user journeys and work backward
|
|
46
47
|
- Pragmatic Technology Selection - Choose boring technology where possible, exciting where necessary
|
|
@@ -54,10 +55,6 @@ persona:
|
|
|
54
55
|
# All commands require * prefix when used (e.g., *help)
|
|
55
56
|
commands:
|
|
56
57
|
- help: Show numbered list of the following commands to allow selection
|
|
57
|
-
- create-backend-architecture: use create-doc with architecture-tmpl.yaml
|
|
58
|
-
- create-brownfield-architecture: use create-doc with brownfield-architecture-tmpl.yaml
|
|
59
|
-
- create-front-end-architecture: use create-doc with front-end-architecture-tmpl.yaml
|
|
60
|
-
- create-full-stack-architecture: use create-doc with fullstack-architecture-tmpl.yaml
|
|
61
58
|
- doc-out: Output full document to current destination file
|
|
62
59
|
- research {topic}: execute task create-deep-research-prompt
|
|
63
60
|
- yolo: Toggle YOLO / goal mode — run `bash .tfcore/utils/tf-yolo.sh on|off`, then operate per .tfcore/tasks/_yolo-mode.md: no confirmations or elicitation pauses (take the sensible default, record it), deletes + read-only git allowed (git writes never), run the command to completion. Also implied by the word YOLO in any command, an active /goal, or a tf-goal.sh run.
|
|
@@ -69,10 +66,4 @@ dependencies:
|
|
|
69
66
|
- technical-preferences.md
|
|
70
67
|
tasks:
|
|
71
68
|
- create-deep-research-prompt.md
|
|
72
|
-
- create-doc.md
|
|
73
|
-
templates:
|
|
74
|
-
- architecture-tmpl.yaml
|
|
75
|
-
- brownfield-architecture-tmpl.yaml
|
|
76
|
-
- front-end-architecture-tmpl.yaml
|
|
77
|
-
- fullstack-architecture-tmpl.yaml
|
|
78
69
|
```
|
|
@@ -13,6 +13,7 @@ Madhav, the TechieFlow master (icon 🪈): the one persona for building, fixing,
|
|
|
13
13
|
|
|
14
14
|
Each rule lives in one place; these lines only point at it.
|
|
15
15
|
|
|
16
|
+
- Everything the owner reads is plain, simple English, a question for the owner goes in `docs/{App}-Decision-Request.md` rather than into the conversation, and an upstream defect is always filed — answering "Blocks: yes|no" first, and never stopping the run when the answer is no: `.tfcore/tasks/_owner-language.md`.
|
|
16
17
|
- Run to completion in YOLO or goal mode: `.tfcore/tasks/_yolo-mode.md`. `*build-phase` is in it by default.
|
|
17
18
|
- Run the application yourself and never ask the owner to boot or test anything: `.tfcore/tasks/_smoke-test-policy.md`, with `bash .tfcore/utils/tf-build.sh` for building on any host.
|
|
18
19
|
- A smoke is not a verify. `Verified` is written only by an executed `*verify`; the hook refuses it otherwise. Your ceiling as a builder is `Implemented`.
|
|
@@ -13,6 +13,7 @@ Vidur, the TechieFlow verifier (icon 🔍): the one persona that proves whether
|
|
|
13
13
|
|
|
14
14
|
Each rule lives in one place; these lines only point at it.
|
|
15
15
|
|
|
16
|
+
- Everything the owner reads is plain, simple English, a question for the owner goes in `docs/{App}-Decision-Request.md` rather than into the conversation, and an upstream defect is always filed — answering "Blocks: yes|no" first, and never stopping the run when the answer is no: `.tfcore/tasks/_owner-language.md`.
|
|
16
17
|
- Run to completion: `.tfcore/tasks/_yolo-mode.md`. `*verify` is in YOLO by default.
|
|
17
18
|
- Boot the application yourself, on this machine, and never ask the owner to start or test anything: `.tfcore/tasks/_smoke-test-policy.md` and `bash .tfcore/utils/tf-verify-boot.sh`.
|
|
18
19
|
- Evidence over assertion. A row is `Verified` only when every check that ran passed, and the verdict script writes it from the evidence files; a `Verified` written by hand is refused by the hook. A check that could not run is written as not measured, never as a pass.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# _owner-language — how anything addressed to the owner is written
|
|
2
|
+
|
|
3
|
+
Loaded by every persona. **The shape of a document lives in that document's template, never here.** These are the three rules that apply when no particular document is being written.
|
|
4
|
+
|
|
5
|
+
## 1. Plain, simple English
|
|
6
|
+
|
|
7
|
+
Everything the owner reads — a terminal reply, a document, a status line, the sentence on a miss — is written for a capable person who has not read one line of this framework.
|
|
8
|
+
|
|
9
|
+
- **No coined terms, no shorthand.** "the framework's own script", not "the oracle". "the number you divide by", not "the denominator". If the owner would have to look a word up, it is the wrong word.
|
|
10
|
+
- **Writing a glossary means the words are wrong.** Change the words. `tf-doc-check.sh` refuses a glossary section.
|
|
11
|
+
- First sentence carries the answer. Name the thing, not its id. Short sentences. Never dramatise.
|
|
12
|
+
|
|
13
|
+
## 2. A question for the owner goes in a file, not in the conversation
|
|
14
|
+
|
|
15
|
+
When a command hits a choice only the owner can make and the answer changes what gets built: write `docs/{App}-Decision-Request.md` from `app-decision-request-tmpl.md`, render it with `tf-render-html.sh`, check it with `tf-doc-check.sh`, then say **one line** in the terminal — which file, how many decisions. Nothing else: restating it in the terminal buries the question in the context the file exists to keep clear.
|
|
16
|
+
|
|
17
|
+
Never read a Decision Request back in. The owner's pasted block is the input. In YOLO, take a choice that has a clear recommendation, mark it, and continue; write the file only for one you genuinely cannot take alone.
|
|
18
|
+
|
|
19
|
+
## 3. Reporting a problem upstream is never refused
|
|
20
|
+
|
|
21
|
+
A gap in the framework or in a library is filed on the day you find it, whatever its size, without asking permission. The shape is in `app-library-feedback-tmpl.md`. Two things bind wherever you are:
|
|
22
|
+
|
|
23
|
+
- **Every entry answers `Blocks:` first — `yes` or `no`.** That word decides whether the run stops.
|
|
24
|
+
- **A non-blocking entry is filed and the work carries on.** No stopping, no asking, no page of analysis mid-run. One entry, then continue, and one line about it when the command ends.
|
|
25
|
+
|
|
26
|
+
A defect goes in the feedback file. A question goes in a Decision Request. Never mixed: different readers.
|
|
@@ -12,7 +12,7 @@ A screen passes only if all three hold, at a desktop width and a mobile width:
|
|
|
12
12
|
|
|
13
13
|
A failure on any of the three is a defect: write it into the row's Remarks (prefix `⚠ visual:` for 2 and 3) and do not report the row done. A smoke earns a row at most `Implemented`; only an executed verify run writes `Verified`.
|
|
14
14
|
|
|
15
|
-
The evidence of a smoke is the file `bash .tfcore/utils/tf-verify-screens.sh --screen <name>=<route> … --base <url>` writes (`tests/.artifacts/verify/screens.json`, with a screenshot per screen and width); a row is written `Implemented` only after that run, and its Remark names the file. The application is booted with `bash .tfcore/utils/tf-verify-boot.sh start`, which also drives
|
|
15
|
+
The evidence of a smoke is the file `bash .tfcore/utils/tf-verify-screens.sh --screen <name>=<route> … --base <url>` writes (`tests/.artifacts/verify/screens.json`, with a screenshot per screen and width); a row is written `Implemented` only after that run, and its Remark names the file. The application is booted with `bash .tfcore/utils/tf-verify-boot.sh start`, which also drives an embedded-browser desktop head Windows head; a head the script cannot boot leaves the row below `Implemented` with the reason.
|
|
16
16
|
|
|
17
17
|
## Run it yourself
|
|
18
18
|
|
|
@@ -14,13 +14,14 @@ First: `bash .tfcore/utils/tf-phase.sh start amend-docs {App}` prints the start
|
|
|
14
14
|
|
|
15
15
|
1. Read the BRD and note the highest `BRD-N`. On a Large project the BRD and checklist are the phase's: `appPhase` in `core-config.yaml` names it, phase 1 is `docs/{App}-BRD.md`, phase n is `docs/{App}-Pn-BRD.md`; the highest id is the highest across every phase. No BRD means no amendment: stop and point at day-1. Note whether the checklist exists.
|
|
16
16
|
2. Sort every point of the change into ADD (a new capability, actor, screen or integration), MODIFY (an existing item whose behaviour changed, mapped to its `BRD-N`), REMOVE (scope dropped, mapped to its `BRD-N`) or ARCH (a new module, flow, package or decision).
|
|
17
|
-
3. Show the change-set as a numbered table (ADD with the next ids, MODIFY as old to new, REMOVE with the reason, ARCH by decision) and wait for "go" or corrections. This is the only question. In YOLO mode apply it without waiting.
|
|
17
|
+
3. Show the change-set as a numbered table (ADD with the next ids, MODIFY as old to new, REMOVE with the reason, ARCH by decision) and wait for "go" or corrections. **A table, not an essay: no glossary, no verification chapter, no re-argued history.** This is the only question. In YOLO mode apply it without waiting. If a point of the change turns on something only the owner can decide, do not argue it here — write `docs/{App}-Decision-Request.md` per `.tfcore/tasks/_owner-language.md`, render it, and say one line naming the file and how many decisions it holds.
|
|
18
18
|
4. BRD. ADD: append a ledger item with the next id, its screen, its mockup link and its acceptance line "When <actor> <does what> on <screen>, then <observable result>"; a new screen gets a row in the Screens and flow table and a Planned row in the Development status table. MODIFY: edit the item in place, same id. REMOVE: `~~BRD-N~~ (removed {date}: reason)`, never deleted. If the additions would take a Small project past 50 requirements, raise it to Medium: `bash .tfcore/utils/tf-day1-files.sh {App} --size M` and the Size in every document header. If they would take a Medium project, or one phase, past 100 requirements or 20 screens, stop and propose a phase split: a new row in `docs/{App}-Phases.md` (written with `--size L` when absent) and a new `docs/{App}-Pn-BRD.md`, instead of growing this one.
|
|
19
19
|
5. Architecture, when in scope and ARCH items exist: edit the affected sections in place, and add a Decisions log row (date, decision, why, status `planned` naming the BRD item) for every new decision or package. A reversed decision gets a new row; the old row stays.
|
|
20
20
|
6. Mockups: when a screen was added or changed, run `.tfcore/tasks/mockups.md` with `--update`, so every screen in the BRD has a current mockup before the checklist changes.
|
|
21
21
|
7. Checklist, only if it exists. ADD: `bash .tfcore/utils/tf-split-brd.sh {App} --add-missing` appends rows for the new items; correct their class. MODIFY: set the rows derived from that item to `Needs re-verify` with a Remark saying what changed. REMOVE: set them to `N/A (removed {date})` and keep the rows. Where the mapping from an item to its rows is unclear, ask, do not guess. If the checklist does not exist yet, the next day-1 stage 2 picks everything up.
|
|
22
22
|
8. If the amendment changed code-level flows, say that `*devguide {App} --update` is due after the next build.
|
|
23
|
-
9.
|
|
24
|
-
10.
|
|
25
|
-
11.
|
|
26
|
-
12.
|
|
23
|
+
9. Close what this amendment fixed: `bash .tfcore/utils/tf-emit.sh --open-misses {App} --artifact-class doc` lists the open misses whose deficient artifact is a document. Close the ones this amendment resolves in one call: `bash .tfcore/utils/tf-fix-close.sh {App} --misses <id>,<id> --fix-cmd amend-docs --verdict Verified`. Where the mapping from a miss to this amendment is unclear, ask, do not guess. Without this a document miss can never close: `*fix-issues` and `*build-phase` close off checklist rows the verifier touched, which a BRD edit never is.
|
|
24
|
+
10. Decide whether this amendment is a miss: should the original documents plainly have said this (a behaviour that was always required, or two sections that contradicted each other)? Then run `*log-miss {App} "<one sentence>"`. A change of mind or a feature decided today is scope arriving late, not a miss.
|
|
25
|
+
11. `bash .tfcore/utils/tf-doc-check.sh --app {App}`; fix every FAIL.
|
|
26
|
+
12. Run the status gate (`.tfcore/tasks/_status-update-gate.md`) with `"cmd":"amend-docs"`.
|
|
27
|
+
13. Report: items added (ids), modified, removed, the highest id now, what changed in the Architecture, the checklist rows touched, and the next command from the gate.
|
|
@@ -10,7 +10,7 @@ First: `bash .tfcore/utils/tf-phase.sh start build-phase {App}` prints the start
|
|
|
10
10
|
|
|
11
11
|
## Steps
|
|
12
12
|
|
|
13
|
-
1. `bash .tfcore/utils/tf-build-list.sh {App} --prompts` prints the mode, the working list, the clusters and one sub-agent prompt per cluster. FIX means the verifier or a smoke failed
|
|
13
|
+
1. `bash .tfcore/utils/tf-build-list.sh {App} --prompts` prints the mode, the working list, the clusters and one sub-agent prompt per cluster. The working list is **every** open row in both FIX and FRESH; FIX only means the rows the verifier or a smoke failed come first. NOTHING means run the status gate and stop. A row without an acceptance line is refused: fix the checklist first, then re-run.
|
|
14
14
|
2. Spawn every cluster in one turn, each with its printed prompt unchanged: `[trblazeui]` clusters through `/trblazeui`, `[techierag]` through `/techierag`, `[builder]` through the harness's builder sub-agent (`tf-builder` when registered, else the general one). Wait for all of them. A cluster that returns `PARTIAL` is re-spawned with its missing rows. Context pressure is a reason to delegate more, never to stop, and a working list is never shortened: "run build-phase again for the rest" is not an ending.
|
|
15
15
|
3. A row that cannot be built as written (no mockup, two rows that contradict, a behaviour the BRD plainly needed and never named): take the sensible reading, write it in the row's Remarks, keep building, and log the gap as a `miss` (`.tfcore/tasks/_metrics-emit-gate.md`) with `miss_class` `unspecified-gap` or `spec-contradiction`, `artifact` naming the document, `found_by` `agent-review`, `found_phase` `build-phase`. A library gap goes into `docs/{App}-<Library>-Feedback.md` (from `.tfcore/templates/v4custom/app-library-feedback-tmpl.md`, one file per library) and the row becomes `Blocked`; never a workaround.
|
|
16
16
|
4. `bash .tfcore/utils/tf-build.sh`: PASS, or FAIL with the real errors (fix them, fanning out by file when there are many), or NOT-RUN naming the rungs tried, which is a host problem and never a blocker. `bash .tfcore/utils/tf-build.sh test` runs the tests.
|
|
@@ -276,3 +276,7 @@ CRITICAL: collaborate with the user to develop specific, actionable research que
|
|
|
276
276
|
- Balance comprehensiveness with focus
|
|
277
277
|
- Document assumptions and limitations clearly
|
|
278
278
|
- Plan for iterative refinement based on initial findings
|
|
279
|
+
|
|
280
|
+
## Record the run
|
|
281
|
+
|
|
282
|
+
First action of this task: `bash .tfcore/utils/tf-phase.sh start create-deep-research-prompt {App}`. Last action: one `runs.jsonl` record carrying `"cmd":"create-deep-research-prompt"`, written as `.tfcore/tasks/_metrics-emit-gate.md` shows. No status gate here — this command advances no phase. Telemetry has no veto: if the write fails, the command still succeeded.
|
|
@@ -99,3 +99,7 @@ User can type `#yolo` to toggle to YOLO mode (process all sections at once).
|
|
|
99
99
|
- Select options 2-9 from data/elicitation-methods only
|
|
100
100
|
- Provide detailed rationale explaining decisions
|
|
101
101
|
- End with "Select 1-9 or just type your question/feedback:"
|
|
102
|
+
|
|
103
|
+
## Record the run
|
|
104
|
+
|
|
105
|
+
First action of this task: `bash .tfcore/utils/tf-phase.sh start create-doc {App}`. Last action: one `runs.jsonl` record carrying `"cmd":"create-doc"`, written as `.tfcore/tasks/_metrics-emit-gate.md` shows. No status gate here — this command advances no phase. Telemetry has no veto: if the write fails, the command still succeeded.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# create-project-brief
|
|
2
|
+
|
|
3
|
+
`*create-project-brief {App}` writes `docs/{App}-Brief.md`, the one page day-1 reads. It is the cheapest place to be wrong, so it is short and the owner corrects it in two minutes.
|
|
4
|
+
|
|
5
|
+
First: `bash .tfcore/utils/tf-phase.sh start create-project-brief {App}` prints the start time and marks the command running.
|
|
6
|
+
|
|
7
|
+
## Inputs
|
|
8
|
+
|
|
9
|
+
- `{App}`, or read it from `core-config.yaml`.
|
|
10
|
+
- Whatever the owner gives: a paragraph, a brainstorm result (`docs/brainstorming-session-results.md`), a conversation, or nothing.
|
|
11
|
+
|
|
12
|
+
## Steps
|
|
13
|
+
|
|
14
|
+
1. Read `.tfcore/templates/v4custom/app-brief-tmpl.md` — its schema block is the required shape.
|
|
15
|
+
2. Fill the five sections from what the owner gave. Ask only for what you cannot infer, one round of questions, all at once. In YOLO mode take the sensible reading and mark it.
|
|
16
|
+
3. **A thing you do not know goes in "Open questions", never into a section as a guess.** Day-1 then asks rather than assumes, which is the whole point of writing this before the Architecture exists.
|
|
17
|
+
4. Every "Must do" line is an outcome a user gets, numbered, one per line. A line needing a paragraph is two lines.
|
|
18
|
+
5. Write `docs/{App}-Brief.md`. Never a `-v2`; an amended brief is edited in place.
|
|
19
|
+
6. `bash .tfcore/utils/tf-doc-check.sh docs/{App}-Brief.md`; fix every FAIL.
|
|
20
|
+
7. Render it: `bash .tfcore/utils/tf-render-html.sh docs/{App}-Brief.md`. The owner reads the HTML.
|
|
21
|
+
8. Close: one `runs.jsonl` record carrying `"cmd":"create-project-brief"`, written as `.tfcore/tasks/_metrics-emit-gate.md` shows. No status gate — the project has no checklist yet.
|
|
22
|
+
9. Report in one line: the file, and how many open questions it carries. Then say the next command is `*day1-greenfield {App}` or `*day1-brownfield {App}`.
|
|
@@ -8,7 +8,7 @@ First, before anything else: `bash .tfcore/utils/tf-phase.sh start day1-brownfie
|
|
|
8
8
|
|
|
9
9
|
1. `{App}` if missing. PascalCase, no spaces; reject anything else and ask again.
|
|
10
10
|
2. Hints, once: list the markdown files found under `docs/` and at the root (excluding `docs/OldDocs/`, `CLAUDE.md`, `PROJECT-STATUS.md`, and `README.md` unless it holds requirements), then ask: "Reply `all` (or press enter) to harvest all of them, or list the ones to use. Add extra paths or drafting instructions in the same reply. `none` harvests nothing." Parse once: file names into the harvest list, anything else into drafting instructions. Never ask merge-or-new.
|
|
11
|
-
3. The stack: "Which answer set
|
|
11
|
+
3. The stack: "Which answer set (the files under `.tfcore/templates/stack-defaults/`), or answer the questions in `.tfcore/templates/stack-questions.md`?" Then only the questions the set leaves open, and only where the code does not already answer them.
|
|
12
12
|
4. The size: count the routed pages in the code (every route counts, sign-in included; dialogs and tabs are regions of a page) and the roles, then confirm: "Size: Small (up to 10 screens, one role, 50 requirements), Medium (up to 20 screens, 100 requirements) or Large (split into phases)? I count {N} screens and {N} roles, so I propose {X}." Kind is `app`, or `library` for a component or service library.
|
|
13
13
|
|
|
14
14
|
## Steps, in this order
|
|
@@ -21,7 +21,7 @@ First, before anything else: `bash .tfcore/utils/tf-phase.sh start day1-brownfie
|
|
|
21
21
|
6. BRD, second half: the Requirements ledger, one `BRD-N` per thing the verifier will test, each naming its screen, linking its mockup and carrying one acceptance line "When <actor> <does what> on <screen>, then <observable result>". Harvested documents come first: every "the system shall" or "the user can" line becomes an item, attributed, and every table, screen inventory and workflow they hold carries in, never compressed to a one-liner. Then the code: what it already does becomes items too. Mark inferred items `<!-- inferred — please verify -->`. The Non-functional table takes a `perf-budget:` only where the owner stated a number, and the logging requirement from the answer set, recorded as met when the scan found it wired. The Development status table has one row per screen with Verified and Open counts from the strongest evidence. If the count would pass the size cap, propose a phase split instead of merging items.
|
|
22
22
|
Large: steps 4 to 6 run once per phase of the Phases table, phase 1 in `docs/{App}-BRD.md` and `docs/{App}-UIDesign.md`, phase n in `docs/{App}-Pn-BRD.md` and `docs/{App}-Pn-UIDesign.md`, each header carrying `Phase | n of m` and its own Size, ids running on across phases.
|
|
23
23
|
7. Checklist: run `.tfcore/tasks/split-brd.md` for `{App}` (Large: with `--all-phases`, one checklist per phase). If a phased plan is among the harvested documents, split-brd migrates its statuses; the plan then moves to `docs/OldDocs/`.
|
|
24
|
-
8. Coding Standards: `docs/{App}-Coding-Standards.md` from `app-coding-standards-tmpl.md`. "Standards applied" names `.tfcore/standards/coding-standards-core.md` and the stack file, plus the choices the stack file leaves open.
|
|
24
|
+
8. Coding Standards: `docs/{App}-Coding-Standards.md` from `app-coding-standards-tmpl.md`. "Standards applied" names `.tfcore/standards/coding-standards-core.md` and the stack file, plus the choices the stack file leaves open. Where the stack file leaves a naming convention open, it follows the drift scan of step 3: the dominant style if one reaches 80 percent, else the stack file's default; a drafting instruction overrides. "Project rules" holds only rules true of this project alone.
|
|
25
25
|
9. `bash .tfcore/utils/tf-day1-files.sh {App} --prefix {obj|none}` writes `.editorconfig`, `AGENTS.md` and `CLAUDE.md`.
|
|
26
26
|
10. `bash .tfcore/utils/tf-gitignore-audit.sh . --fix`. Read its output. Any untracking commands it prints go into your summary for the owner to run; agents never run git.
|
|
27
27
|
11. Build once through `.tfcore/templates/v4custom/build-invocation-ladder.md`. A real compile error becomes one line under Known blockers; a wrong-rung error never does.
|
|
@@ -11,7 +11,7 @@ Ask once each, and nothing per section:
|
|
|
11
11
|
1. `{App}` if missing. PascalCase, no spaces.
|
|
12
12
|
2. The concept: "Describe the app, any length: a sentence, paragraphs, bullets, half-baked notes, comparisons to other apps. You will edit the document afterwards." Read all of it. Never cap or summarise the owner's input.
|
|
13
13
|
3. Hints, optional: paths to notes or mockups to harvest, and drafting instructions. `none` is fine.
|
|
14
|
-
4. The stack: "Which answer set
|
|
14
|
+
4. The stack: "Which answer set (the files under `.tfcore/templates/stack-defaults/`), or answer the questions in `.tfcore/templates/stack-questions.md`?" Then ask only the questions that answer set leaves open — each set names its own.
|
|
15
15
|
5. The size: count the routed pages in the concept (every page with its own route, sign-in included; dialogs and tabs are regions of a page) and the roles, then ask: "Size: Small (up to 10 screens, one role, 50 requirements), Medium (up to 20 screens, 100 requirements) or Large (split into phases)? I count {N} screens and {N} roles, so I propose {X}." Kind is `app` unless the concept is a library.
|
|
16
16
|
|
|
17
17
|
Then, in this order:
|
|
@@ -32,7 +32,7 @@ Only with `--stage2`, and only when `docs/{App}-BRD.md` exists. Ask nothing.
|
|
|
32
32
|
|
|
33
33
|
0. If the owner gave corrections at the review, apply them to the stage-1 documents first (ids never renumbered; `bash .tfcore/utils/tf-doc-check.sh --app {App}` must pass), count them, and after this run's record append a `review` record: `{"kind":"review","phase":"day1-review","reviewed_run_id":"<stage 1 started>","correction_run_id":"<this run's started>","corrections":N,"what":"<one sentence>"}` through `tf-emit.sh misses`.
|
|
34
34
|
1. Checklist: run `.tfcore/tasks/split-brd.md` for `{App}` (Large: with `--all-phases`, one checklist per phase). The owner never types `*split-brd`.
|
|
35
|
-
2. Coding Standards: `docs/{App}-Coding-Standards.md` from `app-coding-standards-tmpl.md`. "Standards applied" names `.tfcore/standards/coding-standards-core.md` and the stack file, plus the choices the stack file leaves open
|
|
35
|
+
2. Coding Standards: `docs/{App}-Coding-Standards.md` from `app-coding-standards-tmpl.md`. "Standards applied" names `.tfcore/standards/coding-standards-core.md` and the stack file, plus the choices the stack file leaves open, taking that file's stated default for each. "Project rules" stays empty unless the concept demands a rule true of this project alone.
|
|
36
36
|
3. `bash .tfcore/utils/tf-day1-files.sh {App} --prefix {obj|none}` writes `.editorconfig`, `AGENTS.md` and `CLAUDE.md` from their templates.
|
|
37
37
|
4. UsageGuide: `docs/{App}-UsageGuide.md` from `app-usageguide-tmpl.md`. The Test users table lists the intended accounts, one per role, none created. The Execution guide is at roadmap level, marking commands that depend on projects not yet built. One "How to test" section per screen in navigation order, naming the user, the steps, the expected result and the REQ ids.
|
|
38
38
|
5. `bash .tfcore/utils/tf-gitignore-audit.sh . --fix`. Read its output. Any untracking commands it prints go into your summary for the owner to run; agents never run git.
|
|
@@ -134,3 +134,7 @@ Generate structured document with these sections:
|
|
|
134
134
|
- Always ask before switching techniques: "Ready to try a different approach?"
|
|
135
135
|
- Offer options: "Should we explore this idea deeper or generate more alternatives?"
|
|
136
136
|
- Respect their process and timing
|
|
137
|
+
|
|
138
|
+
## Record the run
|
|
139
|
+
|
|
140
|
+
First action of this task: `bash .tfcore/utils/tf-phase.sh start facilitate-brainstorming-session {App}`. Last action: one `runs.jsonl` record carrying `"cmd":"facilitate-brainstorming-session"`, written as `.tfcore/tasks/_metrics-emit-gate.md` shows. No status gate here — this command advances no phase. Telemetry has no veto: if the write fails, the command still succeeded.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Convert one or more **human-readable** markdown files to self-contained HTML using the shared shell. Use this when you need to render documents that `*render-workflow-docs` does not cover (the UsageGuide, the DevGuide, library-feedback docs, ad-hoc design notes, legacy/archived docs). Note: suffixed doc variants like `-v2` are banned by the collision policy (day1-brownfield §1.6) — superseded docs live unmodified in `docs/OldDocs/`.
|
|
4
4
|
|
|
5
|
-
**NEVER render
|
|
5
|
+
**NEVER render an agent working document to HTML.** Two are banned by name and `tf-render-html.sh` refuses both with exit 2: the **requirements checklist** `*-Checklist.md` (and its Requirements Status table), and the **miss log** `*-Misses.md`. Agents read them in markdown; an HTML mirror burns tokens and drifts from the source. If asked to render either, decline and explain it is an agent document; if a stale `*-Checklist.html` or `*-Misses.html` exists from before this rule, delete it. The test for any other file: **if the only reader is an agent, it stays markdown.**
|
|
6
6
|
|
|
7
7
|
## Why this exists
|
|
8
8
|
|
|
@@ -113,3 +113,7 @@ Print one line per rendered file: the absolute output path. End with: `Open each
|
|
|
113
113
|
- [ ] Mermaid validity pass done (shell §5.5): every non-trivial label double-quoted, no `end` node ids, bare labels fixed not emitted
|
|
114
114
|
- [ ] No agent-facing authoring note (Depth/Mermaid mandate, template how-to) rendered as visible text — leaked ones omitted and reported
|
|
115
115
|
- [ ] Copy buttons present on every `<pre>` (added by JS, no need to inject manually)
|
|
116
|
+
|
|
117
|
+
## Record the run
|
|
118
|
+
|
|
119
|
+
First action of this task: `bash .tfcore/utils/tf-phase.sh start generate-html {App}`. Last action: one `runs.jsonl` record carrying `"cmd":"generate-html"`, written as `.tfcore/tasks/_metrics-emit-gate.md` shows. No status gate here — this command advances no phase. Telemetry has no veto: if the write fails, the command still succeeded.
|
|
@@ -23,26 +23,28 @@ The Usage Guide was created at day-1 (`day1-*` §7.4) from `.tfcore/templates/v4
|
|
|
23
23
|
|
|
24
24
|
Below, "populate" means refresh these sections of the existing doc. Hard rules:
|
|
25
25
|
|
|
26
|
-
- **No narrative prose anywhere.** No "this app
|
|
26
|
+
- **No narrative prose anywhere.** No "this app is built this way because…", no caveats, no explanations. The deployment-steps section must look like a runbook — one command per line, numbered in execution order.
|
|
27
27
|
- **Skip any step that doesn't apply.** If the repo has no SQL migrations, omit the database-setup step entirely — do not leave "N/A" placeholders or "// not applicable" comments.
|
|
28
28
|
- **No optional steps in the numbered list.** The numbered deployment-steps section is the minimum sufficient set of commands to go from `git clone` to a running app. Anything optional goes in "Known limitations" or a separate doc.
|
|
29
29
|
|
|
30
30
|
Detection sources for each section:
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
**Every command below comes from the project, never from this file.** The restore, build, run and test commands are the ones the project's Architecture stack table and `docs/{App}-Coding-Standards.md` name, and `bash .tfcore/utils/tf-build.sh --print` prints the build command this repository actually uses. A toolchain assumed here would be wrong on the next project.
|
|
33
|
+
|
|
34
|
+
- **Prerequisites**: the runtime version from wherever this stack pins it (the Architecture stack table names the file). Then one line for each external runtime the build, run or test commands depend on — a package runtime only if the tests need one, a database server only if migrations exist, a platform workload only if a project targets that platform. One line each. No prose.
|
|
33
35
|
- **Deployment steps**: detect in this order and emit one numbered step per command:
|
|
34
36
|
1. `git clone <repo>` (always)
|
|
35
|
-
2.
|
|
36
|
-
3.
|
|
37
|
-
4.
|
|
38
|
-
5. Backend run — find the
|
|
39
|
-
6. Frontend run — find the
|
|
40
|
-
7. "Open http://localhost
|
|
41
|
-
-
|
|
42
|
-
- If frontend and backend are
|
|
43
|
-
- **Test**:
|
|
37
|
+
2. Restore dependencies — the stack's restore command (always)
|
|
38
|
+
3. Database migrations — scan the migration folders the Architecture names, plus the conventional ones (`database/`, `db/migrations/`, `migrations/`). List the migration files in the order they run, one per line; if the stack has a migration runner, prefer one step invoking it over listing every file.
|
|
39
|
+
4. Build — the stack's build command
|
|
40
|
+
5. Backend run — find the service or API entry point. One line, with the port it listens on.
|
|
41
|
+
6. Frontend run — find the UI entry point. One line, with its port.
|
|
42
|
+
7. "Open http://localhost:<frontend port> in a browser."
|
|
43
|
+
- A packaged desktop or mobile head replaces steps 5 and 6 with that platform's build-and-run pair.
|
|
44
|
+
- If frontend and backend are one process, collapse steps 5 and 6 into one.
|
|
45
|
+
- **Test**: the stack's test command. Add the browser-test command ONLY if such tests are checked in.
|
|
44
46
|
- **Smoke checklist**: one checkbox per top-level BRD capability (5–10 max). Each line is a user action, not a technical step ("Log in as admin and load the dashboard" — NOT "verify JWT validation").
|
|
45
|
-
- **Known limitations**: pull every `Blocked` REQ row from the checklist Status table + every entry from the per-library feedback files (`docs/{AppName}-
|
|
47
|
+
- **Known limitations**: pull every `Blocked` REQ row from the checklist Status table + every entry from the per-library feedback files (`docs/{AppName}-{Library}-Feedback.md`, one per library the project uses). One line each. Cross-reference each to its issue id.
|
|
46
48
|
|
|
47
49
|
**If you find yourself writing more than one line per numbered step, you're doing it wrong** — the user has explicitly called out that the deployment steps got polluted with "unnecessary details" in past runs. Strip aggressively.
|
|
48
50
|
|
|
@@ -50,7 +52,7 @@ Detection sources for each section:
|
|
|
50
52
|
|
|
51
53
|
- `current_phase: Handoff` (the user manually sets `Released` after UAT passes — §5)
|
|
52
54
|
- `last_updated`: today
|
|
53
|
-
- `last_verified_build: PASS` (you just verified — confirm with `
|
|
55
|
+
- `last_verified_build: PASS` (you just verified — confirm with `bash .tfcore/utils/tf-build.sh` if uncertain)
|
|
54
56
|
- `last_verified_date`: today
|
|
55
57
|
- "Where I am": one paragraph — "All REQ-* verified; awaiting UAT per usage doc."
|
|
56
58
|
- "Next command to run": `Manual UAT per docs/{AppName}-UsageGuide.md smoke checklist.`
|
|
@@ -90,7 +92,7 @@ Run `.tfcore/tasks/devguide.md` for `{AppName}` (`*devguide {AppName}`) so the s
|
|
|
90
92
|
|
|
91
93
|
### 4. Consolidate the per-library feedback files
|
|
92
94
|
|
|
93
|
-
For EACH
|
|
95
|
+
For EACH `docs/{AppName}-{Upstream}-Feedback.md` that exists — one per library the project uses, plus the framework's own — they are separate files because each goes to a different team:
|
|
94
96
|
- Deduplicate entries (same expected/actual pair = duplicate; merge them).
|
|
95
97
|
- Sort by severity: blocker → major → minor → nice-to-have.
|
|
96
98
|
- Ensure each entry has all the schema fields (Severity, Repro, Expected, Actual, Encountered in, Workaround, Suggested fix). Fill in missing ones from context if possible.
|
|
@@ -108,11 +110,11 @@ If no feedback file exists (no library issues encountered), skip this step.
|
|
|
108
110
|
|
|
109
111
|
Deliver:
|
|
110
112
|
- "✔ {AppName} is ready for UAT." OR
|
|
111
|
-
- "⚠ {AppName} has {N} `Blocked` (library-gap) items — see docs/{AppName}-
|
|
113
|
+
- "⚠ {AppName} has {N} `Blocked` (library-gap) items — see the `docs/{AppName}-{Upstream}-Feedback.md` files before UAT."
|
|
112
114
|
|
|
113
115
|
Then explicitly tell the user:
|
|
114
116
|
1. Open `docs/{AppName}-UsageGuide.md` and run the smoke checklist.
|
|
115
|
-
2. Hand each
|
|
117
|
+
2. Hand each feedback file to the team named in its file name (or file its entries as issues against that repository). Those teams use this same framework, so the file drops straight into their flow.
|
|
116
118
|
3. After UAT passes, manually update `PROJECT-STATUS.md`: `current_phase: Released`.
|
|
117
119
|
4. For end-user / external documentation, run `*productguide {AppName}` (flow-master) — it builds a screenshot-illustrated, task-oriented user manual (MD + HTML) from the DevGuide's screen map + captured screenshots. On-demand; re-run with `--update` as the UI evolves.
|
|
118
120
|
|
|
@@ -108,6 +108,8 @@ Written: docs/metrics/METRICS.md + .html
|
|
|
108
108
|
{if backfilled records present: "Backfilled data is reported in a separate column and cannot support a published first-pass rate."}
|
|
109
109
|
```
|
|
110
110
|
|
|
111
|
+
Then one `runs.jsonl` record carrying `"cmd":"metrics-report"`, written as `.tfcore/tasks/_metrics-emit-gate.md` shows; `bash .tfcore/utils/tf-phase.sh start metrics-report {App}` is the first action of this task, so the start time is measured.
|
|
112
|
+
|
|
111
113
|
Then stop. Do not run the status gate — this task reports on history, it does not advance the project, and PROJECT-STATUS is not where metrics go.
|
|
112
114
|
|
|
113
115
|
## Hard rules
|
|
@@ -28,7 +28,7 @@ The phase's checklist, UIDesign and `docs/mockups/` (`appPhase` in `core-config.
|
|
|
28
28
|
|
|
29
29
|
1. `bash .tfcore/utils/tf-verify-list.sh {App} {scope}` prints the rows to grade with their acceptance line, screen, route, mockup and perf budget, the screens to drive, and the test users; it writes `tests/.artifacts/verify/list.json`. Every row in scope is graded whatever its status; only N/A is skipped, so a `Verified` row is re-confirmed and an old `Done` claim is tested. NOTHING means run the status gate and stop. A row without an acceptance line cannot be graded: fix the checklist first. A dialog is listed under its parent screen and checked there; never give a dialog a route so it can be tested.
|
|
30
30
|
2. `bash .tfcore/utils/tf-verify-env.sh` prints READY, or the one command the owner must run once.
|
|
31
|
-
3. `bash .tfcore/utils/tf-verify-boot.sh start` boots the head it finds (`--head` or `--project` when there are several) and prints BOOTED with a URL, or a CDP URL for
|
|
31
|
+
3. `bash .tfcore/utils/tf-verify-boot.sh start` boots the head it finds (`--head` or `--project` when there are several) and prints BOOTED with a URL, or a CDP URL for an embedded-browser desktop head, which the browser tools attach to. A dependent service (database, API) is yours to start first, from its own configuration, in order. NONE `kind=build-error`: every row fails the build check; go to step 6. NONE `kind=host` or `kind=no-driver` (an Android, iOS or Mac head): go to step 6 as well; those rows are written "not verified" with the reason. Never a static-only pass, never "the owner should start it".
|
|
32
32
|
4. Tests. Every UI and functional row has one test whose title starts with its id, written from the acceptance line, black box, under `tests/verify/`; an NFR row without a screen has a unit test carrying its id in the test project, or is not observable. Reuse a test that exists. Fan out one test-writer sub-agent per screen group in one turn, each with its rows, their acceptance lines, the URL and the test user; a test writer touches no source. Sign in as a UsageGuide test user (`.tfcore/tasks/_smoke-test-policy.md`).
|
|
33
33
|
5. Run the checks, with `<url>` from step 3 and, on a signed-in app, the session cookie from the test login for the tools that take `--cookie`:
|
|
34
34
|
- `bash .tfcore/utils/tf-verify-tests.sh --base <url>`
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
// auto-approves the permission map's rm/rmdir/sudo asks and TF_YOLO=1 is
|
|
19
19
|
// exported to tool shells so block-git.sh allows read-only git. Writes to
|
|
20
20
|
// git never reach this hook — they are `deny` in the map.
|
|
21
|
-
// bash {command} -> Bash {command} -> block-git.sh + guard-artifacts.sh
|
|
21
|
+
// bash {command} -> Bash {command} -> block-git.sh + guard-artifacts.sh + guard-verify-deps.sh
|
|
22
22
|
// edit {filePath,oldString,newString} -> Edit {file_path,old_string,new_string}
|
|
23
23
|
// write {filePath,content} -> Write {file_path,content} -> guard-status.sh + guard-verify.sh
|
|
24
24
|
// session.idle (root session) -> Stop {stop_hook_active} -> guard-status-html.sh
|
|
@@ -234,7 +234,7 @@ export const TechieFlowPlugin = async ({ directory, client }) => {
|
|
|
234
234
|
let scripts = []
|
|
235
235
|
if (input.tool === "bash") {
|
|
236
236
|
payload = { tool_name: "Bash", tool_input: { command: String(args.command || ""), run_in_background: !!(args.background || args.run_in_background) } }
|
|
237
|
-
scripts = ["block-git.sh", "guard-artifacts.sh", "guard-status.sh", "guard-metrics.sh", "guard-db.sh", "guard-build.sh"]
|
|
237
|
+
scripts = ["block-git.sh", "guard-artifacts.sh", "guard-status.sh", "guard-metrics.sh", "guard-db.sh", "guard-build.sh", "guard-verify-deps.sh"]
|
|
238
238
|
} else if (input.tool === "edit") {
|
|
239
239
|
payload = {
|
|
240
240
|
tool_name: "Edit",
|
|
@@ -41,6 +41,7 @@ persona:
|
|
|
41
41
|
identity: Strategic analyst specializing in brainstorming, market research, competitive analysis, and project briefing
|
|
42
42
|
focus: Research planning, ideation facilitation, strategic analysis, actionable insights
|
|
43
43
|
core_principles:
|
|
44
|
+
- OWNER LANGUAGE - Everything the owner reads is plain, simple English: no coined terms, no framework shorthand, no word they would have to look up. A choice only the owner can make goes in `docs/{App}-Decision-Request.md` with a recommendation and a block to paste back, and ONE line in the terminal — never argued out in the conversation. Reporting an upstream defect is never refused; it goes in the feedback file, answers "Blocks: yes|no" first, and a non-blocking entry never stops the run. `.tfcore/tasks/_owner-language.md`.
|
|
44
45
|
- Curiosity-Driven Inquiry - Ask probing "why" questions to uncover underlying truths
|
|
45
46
|
- Objective & Evidence-Based Analysis - Ground findings in verifiable data and credible sources
|
|
46
47
|
- Strategic Contextualization - Frame all work within broader strategic context
|
|
@@ -52,7 +53,7 @@ persona:
|
|
|
52
53
|
- Maintaining a Broad Perspective - Stay aware of market trends and dynamics
|
|
53
54
|
- Integrity of Information - Ensure accurate sourcing and representation
|
|
54
55
|
- Numbered Options Protocol - Always use numbered lists for selections
|
|
55
|
-
- RUN IT YOURSELF - When a task you run boots or smokes an app (devguide OBSERVE at brownfield day-1, render sweeps), the
|
|
56
|
+
- RUN IT YOURSELF - When a task you run boots or smokes an app (devguide OBSERVE at brownfield day-1, render sweeps), the project's own test harness is already set up - run it yourself; never hand the boot to the owner (_smoke-test-policy.md banned excuses).
|
|
56
57
|
- BRD Numbering Protocol - When authoring or extending a BRD, every business/functional requirement MUST receive a stable unique ID in the form 'BRD-{N}' (BRD-1, BRD-2, ...). IDs are APPEND-ONLY across revisions - never renumber existing IDs; new requirements take the next unused integer. Group requirements by phase under '## Phase {N}' headings so the verifier and UI agent can scope by phase.
|
|
57
58
|
- Interactive BRD Elicitation - BRD authoring runs with elicit=true. NEVER assume a requirement. For each section/area, surface candidate requirements as a numbered list and have the user confirm / reject / refine each one before assigning it a BRD-N. Do not batch-write multiple requirements without per-item confirmation.
|
|
58
59
|
# All commands require * prefix when used (e.g., *help)
|
|
@@ -60,14 +61,12 @@ commands:
|
|
|
60
61
|
- help: Show numbered list of the following commands to allow selection
|
|
61
62
|
- day1-brownfield {AppName}: Day-1 master task for an EXISTING project. Produces Architecture, BRD, Coding-Standards, .editorconfig, PROJECT-STATUS, CLAUDE.md + the screen-by-screen DevGuide (with per-screen screenshots) in one session; if an existing dev/phase plan is found, also migrates it into the one Checklist (inline split, statuses preserved). Runs task day1-brownfield.md.
|
|
62
63
|
- day1-greenfield {AppName}: Day-1 master task for a NEW project. Produces brief + BRD + target Architecture + UI mockups + Coding-Standards + .editorconfig + PROJECT-STATUS + CLAUDE.md + UsageGuide. Runs task day1-greenfield.md.
|
|
63
|
-
- mockups {AppName} [--update]: Produce the greenfield UI design — docs/{AppName}-UIDesign.md (per-screen component map) + rendered docs/mockups/*.html styled to look like
|
|
64
|
+
- mockups {AppName} [--update]: Produce the greenfield UI design — docs/{AppName}-UIDesign.md (per-screen component map) + rendered docs/mockups/*.html styled to look like the UI library the Architecture names (read that library's component catalog first when it ships one; replicable by construction). The visual contract the build matches + the verifier diffs against. Runs task mockups.md.
|
|
64
65
|
- split-brd {AppName}: Split docs/{AppName}-BRD.md into the one docs/{AppName}-Checklist.md (REQ-UI/FN/RAG/NFR-* in a single Requirements Status table); seeds phase tags + Done(pre-existing) statuses from any existing dev/phase plan. Runs task split-brd.md.
|
|
65
66
|
- brainstorm {topic}: Facilitate structured brainstorming session (run task facilitate-brainstorming-session.md with template brainstorming-output-tmpl.yaml)
|
|
66
67
|
- amend-docs {AppName} {change}: Fold an evolving concept / changed requirements into the EXISTING day-1 docs IN PLACE — surgically amends BRD + Architecture (append-only BRD IDs, unchanged sections preserved), ripples to PROJECT-STATUS / BRD §4 / the checklist (and points UI changes at *mockups --update), re-renders HTML. The incremental alternative to re-running *day1-* (which archives + regenerates). Runs task amend-docs.md.
|
|
67
|
-
- create-
|
|
68
|
-
- create-project-brief: use task create-doc with project-brief-tmpl.yaml
|
|
68
|
+
- create-project-brief {AppName}: Write docs/{AppName}-Brief.md, the one page day-1 reads — what it is, who for, must do, out of scope, open questions. Runs task create-project-brief.md.
|
|
69
69
|
- doc-out: Output full document in progress to current destination file
|
|
70
|
-
- perform-market-research: use task create-doc with market-research-tmpl.yaml
|
|
71
70
|
- research-prompt {topic}: execute task create-deep-research-prompt.md
|
|
72
71
|
- yolo: Toggle YOLO / goal mode — run `bash .tfcore/utils/tf-yolo.sh on|off`, then operate per .tfcore/tasks/_yolo-mode.md: no confirmations or elicitation pauses (take the sensible default, record it), deletes + read-only git allowed (git writes never), run the command to completion. Also implied by the word YOLO in any command, an active /goal, or a tf-goal.sh run.
|
|
73
72
|
- exit: Say goodbye as the Business Analyst, and then abandon inhabiting this persona
|
|
@@ -79,6 +78,7 @@ dependencies:
|
|
|
79
78
|
- amend-docs.md
|
|
80
79
|
- create-deep-research-prompt.md
|
|
81
80
|
- create-doc.md
|
|
81
|
+
- create-project-brief.md
|
|
82
82
|
- day1-brownfield.md
|
|
83
83
|
- day1-greenfield.md
|
|
84
84
|
- facilitate-brainstorming-session.md
|
|
@@ -86,7 +86,4 @@ dependencies:
|
|
|
86
86
|
- split-brd.md
|
|
87
87
|
templates:
|
|
88
88
|
- brainstorming-output-tmpl.yaml
|
|
89
|
-
- competitor-analysis-tmpl.yaml
|
|
90
|
-
- market-research-tmpl.yaml
|
|
91
|
-
- project-brief-tmpl.yaml
|
|
92
89
|
```
|
|
@@ -41,6 +41,7 @@ persona:
|
|
|
41
41
|
identity: Master of holistic application design who bridges frontend, backend, infrastructure, and everything in between
|
|
42
42
|
focus: Complete systems architecture, cross-stack optimization, pragmatic technology selection
|
|
43
43
|
core_principles:
|
|
44
|
+
- OWNER LANGUAGE - Everything the owner reads is plain, simple English: no coined terms, no framework shorthand, no word they would have to look up. A choice only the owner can make goes in `docs/{App}-Decision-Request.md` with a recommendation and a block to paste back, and ONE line in the terminal — never argued out in the conversation. Reporting an upstream defect is never refused; it goes in the feedback file, answers "Blocks: yes|no" first, and a non-blocking entry never stops the run. `.tfcore/tasks/_owner-language.md`.
|
|
44
45
|
- Holistic System Thinking - View every component as part of a larger system
|
|
45
46
|
- User Experience Drives Architecture - Start with user journeys and work backward
|
|
46
47
|
- Pragmatic Technology Selection - Choose boring technology where possible, exciting where necessary
|
|
@@ -54,10 +55,6 @@ persona:
|
|
|
54
55
|
# All commands require * prefix when used (e.g., *help)
|
|
55
56
|
commands:
|
|
56
57
|
- help: Show numbered list of the following commands to allow selection
|
|
57
|
-
- create-backend-architecture: use create-doc with architecture-tmpl.yaml
|
|
58
|
-
- create-brownfield-architecture: use create-doc with brownfield-architecture-tmpl.yaml
|
|
59
|
-
- create-front-end-architecture: use create-doc with front-end-architecture-tmpl.yaml
|
|
60
|
-
- create-full-stack-architecture: use create-doc with fullstack-architecture-tmpl.yaml
|
|
61
58
|
- doc-out: Output full document to current destination file
|
|
62
59
|
- research {topic}: execute task create-deep-research-prompt
|
|
63
60
|
- yolo: Toggle YOLO / goal mode — run `bash .tfcore/utils/tf-yolo.sh on|off`, then operate per .tfcore/tasks/_yolo-mode.md: no confirmations or elicitation pauses (take the sensible default, record it), deletes + read-only git allowed (git writes never), run the command to completion. Also implied by the word YOLO in any command, an active /goal, or a tf-goal.sh run.
|
|
@@ -69,10 +66,4 @@ dependencies:
|
|
|
69
66
|
- technical-preferences.md
|
|
70
67
|
tasks:
|
|
71
68
|
- create-deep-research-prompt.md
|
|
72
|
-
- create-doc.md
|
|
73
|
-
templates:
|
|
74
|
-
- architecture-tmpl.yaml
|
|
75
|
-
- brownfield-architecture-tmpl.yaml
|
|
76
|
-
- front-end-architecture-tmpl.yaml
|
|
77
|
-
- fullstack-architecture-tmpl.yaml
|
|
78
69
|
```
|
|
@@ -13,6 +13,7 @@ Madhav, the TechieFlow master (icon 🪈): the one persona for building, fixing,
|
|
|
13
13
|
|
|
14
14
|
Each rule lives in one place; these lines only point at it.
|
|
15
15
|
|
|
16
|
+
- Everything the owner reads is plain, simple English, a question for the owner goes in `docs/{App}-Decision-Request.md` rather than into the conversation, and an upstream defect is always filed — answering "Blocks: yes|no" first, and never stopping the run when the answer is no: `.tfcore/tasks/_owner-language.md`.
|
|
16
17
|
- Run to completion in YOLO or goal mode: `.tfcore/tasks/_yolo-mode.md`. `*build-phase` is in it by default.
|
|
17
18
|
- Run the application yourself and never ask the owner to boot or test anything: `.tfcore/tasks/_smoke-test-policy.md`, with `bash .tfcore/utils/tf-build.sh` for building on any host.
|
|
18
19
|
- A smoke is not a verify. `Verified` is written only by an executed `*verify`; the hook refuses it otherwise. Your ceiling as a builder is `Implemented`.
|
|
@@ -13,6 +13,7 @@ Vidur, the TechieFlow verifier (icon 🔍): the one persona that proves whether
|
|
|
13
13
|
|
|
14
14
|
Each rule lives in one place; these lines only point at it.
|
|
15
15
|
|
|
16
|
+
- Everything the owner reads is plain, simple English, a question for the owner goes in `docs/{App}-Decision-Request.md` rather than into the conversation, and an upstream defect is always filed — answering "Blocks: yes|no" first, and never stopping the run when the answer is no: `.tfcore/tasks/_owner-language.md`.
|
|
16
17
|
- Run to completion: `.tfcore/tasks/_yolo-mode.md`. `*verify` is in YOLO by default.
|
|
17
18
|
- Boot the application yourself, on this machine, and never ask the owner to start or test anything: `.tfcore/tasks/_smoke-test-policy.md` and `bash .tfcore/utils/tf-verify-boot.sh`.
|
|
18
19
|
- Evidence over assertion. A row is `Verified` only when every check that ran passed, and the verdict script writes it from the evidence files; a `Verified` written by hand is refused by the hook. A check that could not run is written as not measured, never as a pass.
|
|
@@ -27,6 +27,12 @@ except Exception:
|
|
|
27
27
|
|
|
28
28
|
ti = data.get("tool_input") or {}
|
|
29
29
|
STREAM = r"docs/metrics/[\w.-]+\.jsonl"
|
|
30
|
+
# What makes a python/node command a WRITE rather than a read: an explicit write mode,
|
|
31
|
+
# something that emits, or a move onto the path. A read names none of these.
|
|
32
|
+
WRITEY = (r"(?:['\"][wax]b?\+?['\"]|\.write\b|\.writelines\b|json\.dump\b|"
|
|
33
|
+
r"\btruncate\b|\bos\.rename\b|\bos\.replace\b|\bshutil\.(?:copy|move)\b|"
|
|
34
|
+
r"createWriteStream|writeFileSync|appendFileSync)")
|
|
35
|
+
|
|
30
36
|
MSG = ("BLOCKED by TechieFlow policy: docs/metrics/*.jsonl are append-only telemetry "
|
|
31
37
|
"streams written only through bash .tfcore/utils/tf-emit.sh <stream> (stdin JSON). "
|
|
32
38
|
"Never Write, Edit, redirect or copy onto them. A wrong record is corrected by a "
|
|
@@ -44,7 +50,13 @@ if isinstance(cmd, str) and re.search(STREAM, cmd, re.I):
|
|
|
44
50
|
r"|(\btee\b[^|;&]*" + STREAM + r")"
|
|
45
51
|
r"|(\b(cp|mv|install)\b[^|;&]*" + STREAM + r")"
|
|
46
52
|
r"|(\b(sed|perl)\b[^|;&]*\s-[a-zA-Z]*i[a-zA-Z]*\b[^|;&]*" + STREAM + r")"
|
|
47
|
-
|
|
53
|
+
# A python/node command NAMING a stream used to be blocked outright, which also
|
|
54
|
+
# refused every READ -- and this file's own header says reading is fine. Checking
|
|
55
|
+
# a stream with a one-liner is a normal, frequent thing to do, and a guard that
|
|
56
|
+
# blocks it teaches people to route around the guard. So the clause now needs a
|
|
57
|
+
# write in the command as well as the path. MISS-TechieFlow-20260909-03.
|
|
58
|
+
r"|(\b(python3?|node)\b[^|;&]*" + STREAM + r"[^|;&]*" + WRITEY + r")"
|
|
59
|
+
r"|(\b(python3?|node)\b[^|;&]*" + WRITEY + r"[^|;&]*" + STREAM + r")"
|
|
48
60
|
r"|(\b(truncate|dd)\b[^|;&]*" + STREAM + r")",
|
|
49
61
|
cmd, re.I,
|
|
50
62
|
):
|