qfai 2.2.0 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +60 -23
- package/assets/defaults/workflows/bump-dependency.yml +4 -1
- package/assets/defaults/workflows/decide-design.yml +5 -1
- package/assets/defaults/workflows/rename-concept.yml +30 -0
- package/assets/defaults/workflows/resolve-conflicts.yml +14 -0
- package/assets/defaults/workflows/retire-feature.yml +26 -0
- package/assets/defaults/workflows/run-release.yml +12 -0
- package/assets/init/.claude/settings.json +11 -11
- package/assets/init/.codex/hooks.json +9 -9
- package/assets/init/.qfai/assistant/agent/architecture-reviewer.md +2 -2
- package/assets/init/.qfai/assistant/agent/fullstack-engineer.md +101 -0
- package/assets/init/.qfai/assistant/agent/implementation-reviewer.md +78 -1
- package/assets/init/.qfai/assistant/agent/product-surface-reviewer.md +10 -5
- package/assets/init/.qfai/assistant/agent/requirements-reviewer.md +12 -2
- package/assets/init/.qfai/assistant/rule/agent-selection.md +22 -42
- package/assets/init/.qfai/assistant/rule/constitution.md +5 -3
- package/assets/init/.qfai/assistant/rule/drift-protocol.md +19 -1
- package/assets/init/.qfai/assistant/rule/references/asset-authoring.md +1 -1
- package/assets/init/.qfai/assistant/rule/references/codex-delegation.md +4 -4
- package/assets/init/.qfai/assistant/rule/references/gate-failure-autorepair.md +1 -1
- package/assets/init/.qfai/assistant/rule/references/reviewer-findings.md +1 -1
- package/assets/init/.qfai/assistant/rule/references/worker-edit-boundary.md +3 -3
- package/assets/init/.qfai/assistant/rule/research-first-protocol.md +7 -6
- package/assets/init/.qfai/assistant/rule/review-convergence.md +10 -4
- package/assets/init/.qfai/assistant/rule/shared-skill-delegation-baseline.md +81 -56
- package/assets/init/.qfai/assistant/rule/shared-skill-operating-baseline.md +8 -8
- package/assets/init/.qfai/assistant/rule/ui-definition-protocol.md +2 -1
- package/assets/init/.qfai/assistant/rule/workflow.md +4 -4
- package/assets/init/.qfai/assistant/skill/qfai-configure/SKILL.md +15 -46
- package/assets/init/.qfai/assistant/skill/qfai-discussion/SKILL.md +6 -15
- package/assets/init/.qfai/assistant/skill/qfai-discussion/references/discussion-completion-matrix.md +15 -2
- package/assets/init/.qfai/assistant/skill/qfai-discussion/references/ui-bearing-playbook.md +17 -0
- package/assets/init/.qfai/assistant/skill/qfai-discussion/references/ui_ux/trend_scan_playbook.md +3 -1
- package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/01_Context.md +4 -1
- package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/04_Sources.md +5 -1
- package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/uiux/00_index.md +4 -1
- package/assets/init/.qfai/assistant/skill/qfai-grill/SKILL.md +8 -7
- package/assets/init/.qfai/assistant/skill/qfai-grilling/SKILL.md +15 -15
- package/assets/init/.qfai/assistant/skill/qfai-grilling/references/delegated-session.md +18 -18
- package/assets/init/.qfai/assistant/skill/qfai-grilling/references/session-record.md +3 -3
- package/assets/init/.qfai/assistant/skill/qfai-implement/SKILL.md +2 -16
- package/assets/init/.qfai/assistant/skill/qfai-implement/references/parallelization-policy.md +54 -12
- package/assets/init/.qfai/assistant/skill/qfai-implement/references/red-admissibility.md +35 -0
- package/assets/init/.qfai/assistant/skill/qfai-implement/references/test-runner-recipes.md +445 -0
- package/assets/init/.qfai/assistant/skill/qfai-implement/references/ui-affecting.md +2 -2
- package/assets/init/.qfai/assistant/skill/qfai-maintain/SKILL.md +0 -1
- package/assets/init/.qfai/assistant/skill/qfai-migration-v1-to-v2/SKILL.md +2 -13
- package/assets/init/.qfai/assistant/skill/qfai-migration-v1-to-v2/references/migration-guide.md +8 -11
- package/assets/init/.qfai/assistant/skill/qfai-migration-v1-to-v2/references/migration-placement.md +0 -7
- package/assets/init/.qfai/assistant/skill/qfai-prototyping/SKILL.md +11 -18
- package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/generator-prompt.md +34 -3
- package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/handoff.md +77 -2
- package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/iteration-loop.md +14 -5
- package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/review-payload-schema.md +7 -5
- package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/reviewer-prompt.md +32 -6
- package/assets/init/.qfai/assistant/skill/qfai-run/SKILL.md +17 -18
- package/assets/init/.qfai/assistant/skill/qfai-run/references/extraction.md +194 -129
- package/assets/init/.qfai/assistant/skill/qfai-run/references/operator-screens.md +33 -18
- package/assets/init/.qfai/assistant/skill/qfai-run/references/plan.md +46 -22
- package/assets/init/.qfai/assistant/skill/qfai-run/references/reached-step-observations.md +2 -0
- package/assets/init/.qfai/assistant/skill/qfai-run/references/stage-points.md +7 -4
- package/assets/init/.qfai/assistant/skill/qfai-sdd/SKILL.md +0 -13
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/concrete-abstract-cycle.md +3 -2
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/contract-artifact-rules.md +13 -1
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-execution-playbook.md +2 -2
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-phase-checklists.md +1 -1
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-pre-draft-grilling.md +2 -1
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-quality-gate.md +1 -1
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-triage.md +83 -6
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/spec-traceability-rules.md +1 -1
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/ui-contract-guide.md +23 -5
- package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/change-request.md +1 -1
- package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/spec/decisions/page-NNNN.md +6 -0
- package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/spec/decisions.md +9 -0
- package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/spec/open-questions.md +13 -0
- package/assets/init/.qfai/assistant/skill/qfai-triage/SKILL.md +0 -11
- package/assets/init/.qfai/assistant/skill/qfai-verify/SKILL.md +0 -9
- package/assets/init/.qfai/assistant/skill/qfai-verify/references/verify-output-contract.md +15 -9
- package/assets/init/.qfai/assistant/skill/web-research/SKILL.md +19 -19
- package/assets/init/.qfai/assistant/step/common-design-md/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/common-gate-run/STEP.md +11 -9
- package/assets/init/.qfai/assistant/step/common-grilling-record/STEP.md +15 -3
- package/assets/init/.qfai/assistant/step/common-policy-check/STEP.md +0 -1
- package/assets/init/.qfai/assistant/step/common-review-cycle/STEP.md +48 -12
- package/assets/init/.qfai/assistant/step/discussion-interview/STEP.md +11 -5
- package/assets/init/.qfai/assistant/step/discussion-oq/STEP.md +12 -2
- package/assets/init/.qfai/assistant/step/discussion-pack/STEP.md +18 -4
- package/assets/init/.qfai/assistant/step/discussion-research/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/discussion-uiux/STEP.md +4 -2
- package/assets/init/.qfai/assistant/step/implement-acceptance/STEP.md +3 -4
- package/assets/init/.qfai/assistant/step/implement-backport/STEP.md +0 -5
- package/assets/init/.qfai/assistant/step/implement-benchmark/STEP.md +0 -4
- package/assets/init/.qfai/assistant/step/implement-bisect/STEP.md +0 -5
- package/assets/init/.qfai/assistant/step/implement-credentials/STEP.md +4 -4
- package/assets/init/.qfai/assistant/step/implement-dep-bump/STEP.md +31 -12
- package/assets/init/.qfai/assistant/step/implement-diagnose/STEP.md +12 -9
- package/assets/init/.qfai/assistant/step/implement-minimize/STEP.md +0 -5
- package/assets/init/.qfai/assistant/step/implement-oracle-parity/STEP.md +0 -6
- package/assets/init/.qfai/assistant/step/implement-procedure/STEP.md +35 -8
- package/assets/init/.qfai/assistant/step/implement-quarantine/STEP.md +0 -4
- package/assets/init/.qfai/assistant/step/implement-refactor/STEP.md +25 -9
- package/assets/init/.qfai/assistant/step/implement-regression-fix/STEP.md +0 -4
- package/assets/init/.qfai/assistant/step/implement-retire/STEP.md +26 -6
- package/assets/init/.qfai/assistant/step/implement-revert/STEP.md +0 -4
- package/assets/init/.qfai/assistant/step/implement-scaffold/STEP.md +28 -7
- package/assets/init/.qfai/assistant/step/implement-seam/STEP.md +0 -4
- package/assets/init/.qfai/assistant/step/implement-stress-harness/STEP.md +0 -5
- package/assets/init/.qfai/assistant/step/implement-sweep/STEP.md +0 -5
- package/assets/init/.qfai/assistant/step/implement-tdd/STEP.md +23 -15
- package/assets/init/.qfai/assistant/step/implement-test-fix/STEP.md +0 -5
- package/assets/init/.qfai/assistant/step/implement-tooling/STEP.md +0 -3
- package/assets/init/.qfai/assistant/step/maintain-edit/STEP.md +71 -10
- package/assets/init/.qfai/assistant/step/prototyping-grill/STEP.md +39 -8
- package/assets/init/.qfai/assistant/step/prototyping-handoff/STEP.md +12 -5
- package/assets/init/.qfai/assistant/step/prototyping-loop/STEP.md +71 -23
- package/assets/init/.qfai/assistant/step/prototyping-preflight/STEP.md +5 -2
- package/assets/init/.qfai/assistant/step/sdd-contract/STEP.md +10 -4
- package/assets/init/.qfai/assistant/step/sdd-cycle/STEP.md +9 -6
- package/assets/init/.qfai/assistant/step/sdd-flow/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/sdd-gate/STEP.md +0 -1
- package/assets/init/.qfai/assistant/step/sdd-story/STEP.md +22 -3
- package/assets/init/.qfai/assistant/step/sdd-triage/STEP.md +54 -20
- package/assets/init/.qfai/assistant/step/triage-answer/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/triage-close/STEP.md +7 -4
- package/assets/init/.qfai/assistant/step/triage-cluster/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/triage-decompose/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/triage-dedupe/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/triage-handoff/STEP.md +6 -2
- package/assets/init/.qfai/assistant/step/triage-investigate/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/triage-operate/STEP.md +76 -5
- package/assets/init/.qfai/assistant/step/triage-owned-cleanup/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/triage-request-info/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/triage-security-intake/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/verify-advisory/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/verify-change-note/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/verify-commit/STEP.md +35 -12
- package/assets/init/.qfai/assistant/step/verify-context/STEP.md +7 -26
- package/assets/init/.qfai/assistant/step/verify-external/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/verify-manual/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/verify-qfai-gate/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/verify-release-notes/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/verify-repeat-run/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/verify-repo-gate/STEP.md +65 -9
- package/assets/init/root/.agents/rules/api-budget.md +8 -3
- package/assets/init/root/.agents/rules/graph-exploration.md +18 -4
- package/assets/init/root/.agents/rules/grilling.md +9 -9
- package/assets/init/root/.agents/rules/reminders.json +20 -28
- package/assets/init/root/.agents/rules/user-questions.md +21 -11
- package/assets/init/root/.gitattributes +2 -0
- package/assets/init/root/AGENTS.md +1 -1
- package/assets/mdschema/manifest.yml +3 -0
- package/assets/mdschema/story/03_contract/tech.mdschema.yml +1 -1
- package/assets/mdschema/story/decisions/page-NNNN.mdschema.yml +32 -0
- package/assets/mdschema/story/decisions.mdschema.yml +12 -0
- package/assets/schemas/workflow/extraction.schema.json +94 -2
- package/assets/schemas/workflow/plan.schema.json +34 -1
- package/assets/scripts/check-mdschema.mjs +434 -45
- package/dist/cli/index.cjs +4991 -3148
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.mjs +4780 -2929
- package/dist/cli/index.mjs.map +1 -1
- package/dist/graph/cli.cjs +14 -2
- package/dist/graph/cli.cjs.map +1 -1
- package/dist/graph/cli.d.cts +1 -1
- package/dist/graph/cli.d.ts +1 -1
- package/dist/graph/cli.mjs +14 -2
- package/dist/graph/cli.mjs.map +1 -1
- package/dist/graph/hook.cjs.map +1 -1
- package/dist/graph/hook.mjs.map +1 -1
- package/dist/index.cjs +4359 -3843
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +60 -21
- package/dist/index.d.ts +60 -21
- package/dist/index.mjs +3594 -3080
- package/dist/index.mjs.map +1 -1
- package/dist/process-qqX2Owgq.d.cts +18 -0
- package/dist/process-qqX2Owgq.d.ts +18 -0
- package/package.json +1 -1
- package/assets/defaults/agent-routing/_contract.yml +0 -77
- package/assets/defaults/agent-routing/common.yml +0 -14
- package/assets/defaults/agent-routing/qfai-discussion.yml +0 -57
- package/assets/defaults/agent-routing/qfai-implement.yml +0 -236
- package/assets/defaults/agent-routing/qfai-maintain.yml +0 -12
- package/assets/defaults/agent-routing/qfai-prototyping.yml +0 -48
- package/assets/defaults/agent-routing/qfai-sdd.yml +0 -56
- package/assets/defaults/agent-routing/qfai-triage.yml +0 -108
- package/assets/defaults/agent-routing/qfai-verify.yml +0 -92
- package/assets/defaults/agent-routing/skills.yml +0 -59
- package/assets/defaults/review-profiles.yml +0 -25
- package/assets/init/.qfai/assistant/agent/acceptance-test-engineer.md +0 -81
- package/assets/init/.qfai/assistant/agent/backend-engineer.md +0 -90
- package/assets/init/.qfai/assistant/agent/completion-reviewer.md +0 -88
- package/assets/init/.qfai/assistant/agent/delivery-planner.md +0 -85
- package/assets/init/.qfai/assistant/agent/devops-ci-engineer.md +0 -78
- package/assets/init/.qfai/assistant/agent/discovery-analyst.md +0 -81
- package/assets/init/.qfai/assistant/agent/doc-steward.md +0 -78
- package/assets/init/.qfai/assistant/agent/frontend-engineer.md +0 -94
- package/assets/init/.qfai/assistant/agent/orchestrator.md +0 -92
- package/assets/init/.qfai/assistant/agent/product-experience-architect.md +0 -101
- package/assets/init/.qfai/assistant/agent/qa-gatekeeper.md +0 -153
- package/assets/init/.qfai/assistant/agent/qa-strategist.md +0 -82
- package/assets/init/.qfai/assistant/agent/requirements-analyst.md +0 -96
- package/assets/init/.qfai/assistant/agent/solution-architect.md +0 -89
- package/assets/init/.qfai/assistant/agent/test-design-analyst.md +0 -132
- package/dist/process-C21nTvkT.d.cts +0 -12
- package/dist/process-C21nTvkT.d.ts +0 -12
package/README.md
CHANGED
|
@@ -37,7 +37,7 @@ here: `package.json#version` in the published package is the only version source
|
|
|
37
37
|
> pnpm, and any package manager that reports no user agent, do not, so avoid it yourself.
|
|
38
38
|
> Use the npm package.
|
|
39
39
|
> Standalone CLI inspection can use `npx qfai@latest <command>`;
|
|
40
|
-
> agent skills need a local installation
|
|
40
|
+
> agent skills need a local installation, so `npx qfai` runs the version the project pins.
|
|
41
41
|
|
|
42
42
|
### The install script of `@jackchuka/mdschema`
|
|
43
43
|
|
|
@@ -59,6 +59,11 @@ pnpm approve-builds # pnpm: adds it to `onlyBuiltDependencies`
|
|
|
59
59
|
`npx qfai doctor` runs `mdschema --help` and reports an error, naming these
|
|
60
60
|
fixes, when the binary does not start.
|
|
61
61
|
|
|
62
|
+
QFAI pins this dependency to an exact version. A release that moves the pin
|
|
63
|
+
says so in its [release notes](#keeping-qfai-itself-up-to-date), so a project
|
|
64
|
+
that approves the script for each version can approve the new one before it
|
|
65
|
+
upgrades.
|
|
66
|
+
|
|
62
67
|
## Quick start
|
|
63
68
|
|
|
64
69
|
> **Windows users:** `qfai init` creates symlinks internally.
|
|
@@ -106,10 +111,12 @@ The `qfai-run` skill reads it into facts: what it asks for, its risks, and how s
|
|
|
106
111
|
and returns the route's plan, writing nothing. The session runs each step of the plan in order and
|
|
107
112
|
asks you only the decisions that are yours and each release. You type no stage name.
|
|
108
113
|
|
|
109
|
-
`npx qfai init` adds a hook that
|
|
110
|
-
to `qfai-run`. Claude Code reads it from `.claude/settings.json` and Codex from `.codex/hooks.json`.
|
|
111
|
-
|
|
112
|
-
|
|
114
|
+
`npx qfai init` adds a hook that states this on a session's first prompt and repeats it in one line
|
|
115
|
+
on every later prompt: a request that names no skill goes to `qfai-run`. Claude Code reads it from `.claude/settings.json` and Codex from `.codex/hooks.json`.
|
|
116
|
+
`qfai-run` plans every such request, the lightest included: a question that one command or one
|
|
117
|
+
file read answers gets a plan too, and a question about the project plans an answer without
|
|
118
|
+
changes. A message that is not a request, such as an automated notice, gets no plan; a notice that
|
|
119
|
+
delivers a result a step was waiting for resumes that step.
|
|
113
120
|
An existing `.codex/hooks.json` gains the hooks the way `.claude/settings.json` does.
|
|
114
121
|
Codex runs a project's hooks only after you review and trust them with `/hooks`.
|
|
115
122
|
|
|
@@ -241,11 +248,11 @@ Notes on the skills.
|
|
|
241
248
|
- Every skill replies in your language.
|
|
242
249
|
- A skill that leaves the next step to you ends with a question that lists the next actions, the recommended one first.
|
|
243
250
|
- Except `qfai-discussion`, each skill reads the project context (architecture, tech stack, test framework, repo structure) before it writes artifacts or code.
|
|
244
|
-
-
|
|
251
|
+
- The agent you talk to does the work itself: research, design, the specification, code, tests and documentation.
|
|
252
|
+
It starts a sub-agent only for an independent judgement, such as a review, or for two or more parallel units that pass the parallel-unit gate.
|
|
245
253
|
- Triage decisions and change requests live in `.qfai/spec/decisions.md`;
|
|
246
254
|
unresolved questions live in `.qfai/spec/open-questions.md`.
|
|
247
|
-
- Agent cards under `.qfai/assistant/agent/` define
|
|
248
|
-
- Project `routing` and `reviewProfiles` entries in `qfai.config.yaml` replace matching defaults as complete entries.
|
|
255
|
+
- Agent cards under `.qfai/assistant/agent/` define the four reviewers and the one `fullstack-engineer` worker a parallel unit runs on.
|
|
249
256
|
|
|
250
257
|
## Specifications and contracts (SDD)
|
|
251
258
|
|
|
@@ -323,16 +330,16 @@ flowchart LR
|
|
|
323
330
|
(`assistant/rule/`, `skill/`, `agent/` and `prompt/`), plus `qfai.config.yaml`.
|
|
324
331
|
- Options:
|
|
325
332
|
|
|
326
|
-
| Flag | Effect
|
|
327
|
-
| ----------------- |
|
|
328
|
-
| `--dir <path>` | Output directory (default: the current directory). Wins over `--root` when both are given.
|
|
329
|
-
| `--root <path>` | Every other command reads this as the target directory; `init` reads it as the output directory too, but only when `--dir` is omitted.
|
|
330
|
-
| `--force` | Overwrite the shipped skills, steps, agents and rules, the rule masters under `.agents/rules/`, their host wrappers, and generated Copilot instructions, whether or not you edited them. Project content, `qfai.config.yaml`, `DESIGN.md`, `AGENTS.md`
|
|
331
|
-
| `--dry-run` | Report what would change and write nothing.
|
|
332
|
-
| `--yes` | Reserved for a future interactive mode; no behavioural difference today.
|
|
333
|
-
| `--verbose` | Expand the run report's `skipped` list to the full path listing. Off by default, so a no-op re-run prints the skip count and a pointer to this flag instead of every shipped asset path. It does not gate the written or removed listings: those are printed whenever they have entries, with or without this flag.
|
|
334
|
-
| `--help`, `-h` | Print the CLI usage banner and exit without writing anything. Accepted by every command, `init` included, and handled before the command runs.
|
|
335
|
-
| `--version`, `-V` | Print the installed QFAI version to stdout and exit 0. Accepted by every command, `init` included, and handled before the command runs, so it works outside a project too.
|
|
333
|
+
| Flag | Effect |
|
|
334
|
+
| ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
335
|
+
| `--dir <path>` | Output directory (default: the current directory). Wins over `--root` when both are given. |
|
|
336
|
+
| `--root <path>` | Every other command reads this as the target directory; `init` reads it as the output directory too, but only when `--dir` is omitted. |
|
|
337
|
+
| `--force` | Overwrite the shipped skills, steps, agents and rules, the rule masters under `.agents/rules/`, their host wrappers, and generated Copilot instructions, whether or not you edited them. Project content, `qfai.config.yaml`, `DESIGN.md`, `AGENTS.md` are preserved. The managed `.gitignore` block and `core.symlinks` setting are repaired on every non-dry-run. |
|
|
338
|
+
| `--dry-run` | Report what would change and write nothing. |
|
|
339
|
+
| `--yes` | Reserved for a future interactive mode; no behavioural difference today. |
|
|
340
|
+
| `--verbose` | Expand the run report's `skipped` list to the full path listing. Off by default, so a no-op re-run prints the skip count and a pointer to this flag instead of every shipped asset path. It does not gate the written or removed listings: those are printed whenever they have entries, with or without this flag. |
|
|
341
|
+
| `--help`, `-h` | Print the CLI usage banner and exit without writing anything. Accepted by every command, `init` included, and handled before the command runs. |
|
|
342
|
+
| `--version`, `-V` | Print the installed QFAI version to stdout and exit 0. Accepted by every command, `init` included, and handled before the command runs, so it works outside a project too. |
|
|
336
343
|
|
|
337
344
|
- `npx qfai validate`
|
|
338
345
|
- Validates the story tree, contracts and test obligations, writes `.qfai/report/validate.json`,
|
|
@@ -578,6 +585,26 @@ cp node_modules/qfai/assets/init/root/.github/workflows/qfai-docs.yml .github/wo
|
|
|
578
585
|
Read your own edits out of the old copy before you replace it. Neither route
|
|
579
586
|
merges them.
|
|
580
587
|
|
|
588
|
+
`npx qfai doctor` warns about each installed workflow whose text differs from
|
|
589
|
+
the packaged copy. The warning gives the number of differing lines, the jobs
|
|
590
|
+
that differ, each pinned action whose version differs and the file's current
|
|
591
|
+
digest. To keep a difference on purpose, list the file with that digest and a
|
|
592
|
+
reason in `qfai.config.yaml`; doctor then reports it as `info` with that reason
|
|
593
|
+
instead of a warning:
|
|
594
|
+
|
|
595
|
+
```yaml
|
|
596
|
+
workflow:
|
|
597
|
+
acceptedDrift:
|
|
598
|
+
- file: qfai-docs.yml
|
|
599
|
+
digest: <the digest doctor printed, sha256:…>
|
|
600
|
+
reason: We run our own docs lane.
|
|
601
|
+
```
|
|
602
|
+
|
|
603
|
+
When the file changes again its digest no longer matches, and doctor warns
|
|
604
|
+
again with the new digest. An entry without a digest or a
|
|
605
|
+
reason, or a file outside the shipped set or listed twice, is a configuration
|
|
606
|
+
error and accepts nothing.
|
|
607
|
+
|
|
581
608
|
On any other CI platform, configure the job yourself and run:
|
|
582
609
|
|
|
583
610
|
```bash
|
|
@@ -864,6 +891,11 @@ Moving a project from the spec-pack layout to the story tree also requires
|
|
|
864
891
|
`/qfai-migration-v1-to-v2`. `init --force` refreshes shipped assets; the
|
|
865
892
|
migration skill moves project content and reports items that need a person.
|
|
866
893
|
|
|
894
|
+
The release notes of each version are the body of its GitHub Release, listed
|
|
895
|
+
at <https://github.com/aganesy/QFAI/releases>. Read them before you upgrade:
|
|
896
|
+
they name the files a version retires and any change to the exact version of a
|
|
897
|
+
dependency the package pins, such as `@jackchuka/mdschema`.
|
|
898
|
+
|
|
867
899
|
To upgrade by hand:
|
|
868
900
|
|
|
869
901
|
1. Install the new version with your package manager, for example
|
|
@@ -876,8 +908,12 @@ To upgrade by hand:
|
|
|
876
908
|
afterwards.
|
|
877
909
|
4. Delete the files the release notes of the new version list as retired, once
|
|
878
910
|
nothing you keep reads them.
|
|
879
|
-
5.
|
|
880
|
-
|
|
911
|
+
5. `init --force` does not touch the workflows under `.github/workflows/`. For
|
|
912
|
+
each one `npx qfai doctor` reports as differing, copy the packaged file over
|
|
913
|
+
it, or list it under `workflow.acceptedDrift` with the digest doctor prints
|
|
914
|
+
and a reason if you keep your own version.
|
|
915
|
+
6. Run `npx qfai doctor` and `npx qfai validate`, and fix what they report.
|
|
916
|
+
7. Commit the result in one change.
|
|
881
917
|
|
|
882
918
|
An agent asked to upgrade `qfai` follows these steps as a dependency update.
|
|
883
919
|
|
|
@@ -989,9 +1025,6 @@ and generates thin wrapper assets for Agents/Codex VS Code / Copilot / Claude Co
|
|
|
989
1025
|
Each card under `.qfai/assistant/agent/**` defines its role in YAML frontmatter.
|
|
990
1026
|
Claude Code and GitHub Copilot use compatible fields, while Codex consumes
|
|
991
1027
|
`.codex/agents/*.toml` profiles generated from that same card.
|
|
992
|
-
Install `qfai` in the project so the agent can load the package routing and
|
|
993
|
-
review-profile defaults. Running through `npx qfai@latest` alone does not
|
|
994
|
-
provide those defaults to the agent.
|
|
995
1028
|
The `.claude` / `.github` agent wrappers are symlinks and follow the canonical document
|
|
996
1029
|
automatically; the Codex profiles are generated files, so rerun `npx qfai init --force`
|
|
997
1030
|
to refresh them (and any other wrapper asset that has drifted).
|
|
@@ -1030,6 +1063,10 @@ file prints nothing. `qfai init` refreshes that file wherever the project has
|
|
|
1030
1063
|
not edited it, so a new release's wording reaches an existing project without
|
|
1031
1064
|
changing `.claude/settings.json`. Remove the entries from that file and from
|
|
1032
1065
|
`.codex/hooks.json` to turn the reminder off; the rule still applies.
|
|
1066
|
+
The free-text entry reminder prints in full on a session's first prompt and in one line
|
|
1067
|
+
on every later prompt. Every other rule reminder prints at most once per session. Both
|
|
1068
|
+
are counted per `session_id` in the operating system's temporary directory, and there is
|
|
1069
|
+
no setting to change that.
|
|
1033
1070
|
|
|
1034
1071
|
Codex gets the same reminders from `.codex/hooks.json` once you trust the
|
|
1035
1072
|
project's hooks with `/hooks`. Each is one command line that runs the same under
|
|
@@ -17,4 +17,8 @@ decisionPoints: [discussion-interview]
|
|
|
17
17
|
branchPoints:
|
|
18
18
|
- step: triage-close
|
|
19
19
|
outcomes:
|
|
20
|
-
- {
|
|
20
|
+
- {
|
|
21
|
+
outcome: adopted,
|
|
22
|
+
routes:
|
|
23
|
+
[add-feature, prototype-feature, change-compatibility, retire-feature, rename-concept],
|
|
24
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
route: rename-concept
|
|
2
|
+
family: change
|
|
3
|
+
stages:
|
|
4
|
+
- id: spec
|
|
5
|
+
kind: sdd
|
|
6
|
+
steps:
|
|
7
|
+
- sdd-triage
|
|
8
|
+
- { step: sdd-flow, passThrough: true }
|
|
9
|
+
- { step: sdd-story, passThrough: true }
|
|
10
|
+
- { step: sdd-contract, passThrough: true }
|
|
11
|
+
review: spec
|
|
12
|
+
- id: rename
|
|
13
|
+
kind: implement
|
|
14
|
+
steps: [implement-refactor]
|
|
15
|
+
after: [spec]
|
|
16
|
+
- id: note
|
|
17
|
+
kind: verify
|
|
18
|
+
steps:
|
|
19
|
+
- { step: verify-change-note, passThrough: true }
|
|
20
|
+
after: [rename]
|
|
21
|
+
review: code
|
|
22
|
+
- id: verify
|
|
23
|
+
kind: verify
|
|
24
|
+
steps: [verify-qfai-gate, verify-repo-gate, verify-commit]
|
|
25
|
+
after: [note]
|
|
26
|
+
decisionPoints: [sdd-triage]
|
|
27
|
+
branchPoints:
|
|
28
|
+
- step: implement-refactor
|
|
29
|
+
outcomes:
|
|
30
|
+
- { outcome: behaviour-change, routes: [add-feature, change-compatibility] }
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
route: resolve-conflicts
|
|
2
|
+
family: change
|
|
3
|
+
stages:
|
|
4
|
+
- id: edit
|
|
5
|
+
kind: maintenance
|
|
6
|
+
steps: [maintain-edit]
|
|
7
|
+
review: code
|
|
8
|
+
serves: [spec, contract]
|
|
9
|
+
- id: verify
|
|
10
|
+
kind: verify
|
|
11
|
+
steps: [verify-qfai-gate, verify-repo-gate, verify-commit]
|
|
12
|
+
after: [edit]
|
|
13
|
+
decisionPoints: []
|
|
14
|
+
branchPoints: []
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
route: retire-feature
|
|
2
|
+
family: change
|
|
3
|
+
stages:
|
|
4
|
+
- id: spec
|
|
5
|
+
kind: sdd
|
|
6
|
+
steps:
|
|
7
|
+
- sdd-triage
|
|
8
|
+
- sdd-story
|
|
9
|
+
- { step: sdd-contract, passThrough: true }
|
|
10
|
+
review: spec
|
|
11
|
+
- id: remove
|
|
12
|
+
kind: implement
|
|
13
|
+
steps: [implement-retire]
|
|
14
|
+
after: [spec]
|
|
15
|
+
- id: note
|
|
16
|
+
kind: verify
|
|
17
|
+
steps:
|
|
18
|
+
- { step: verify-change-note, passThrough: true }
|
|
19
|
+
after: [remove]
|
|
20
|
+
review: code
|
|
21
|
+
- id: verify
|
|
22
|
+
kind: verify
|
|
23
|
+
steps: [verify-qfai-gate, verify-repo-gate, verify-commit]
|
|
24
|
+
after: [note]
|
|
25
|
+
decisionPoints: [sdd-triage]
|
|
26
|
+
branchPoints: []
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
route: run-release
|
|
2
|
+
family: release
|
|
3
|
+
stages:
|
|
4
|
+
- id: release
|
|
5
|
+
kind: triage
|
|
6
|
+
steps: [triage-operate]
|
|
7
|
+
decisionPoints: []
|
|
8
|
+
releasePoint: triage-operate
|
|
9
|
+
branchPoints:
|
|
10
|
+
- step: triage-operate
|
|
11
|
+
outcomes:
|
|
12
|
+
- { outcome: needs-change, routes: decision-table }
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"command": "node",
|
|
31
31
|
"args": [
|
|
32
32
|
"-e",
|
|
33
|
-
"try{const f=require('fs');let i={};try{i=JSON.parse(f.readFileSync(0,'utf8'))||{}}catch{}const p=i.prompt;if(!(typeof p==='string'&&/^[ \\t]*(<(task-notification|wake|ci-monitor-event)[\\s>]|\\[SYSTEM NOTIFICATION)/m.test(p))){let n=1;if(typeof i.session_id==='string'){
|
|
33
|
+
"try{const f=require('fs');let i={};try{i=JSON.parse(f.readFileSync(0,'utf8'))||{}}catch{}const p=i.prompt;if(!(typeof p==='string'&&/^[ \\t]*(<(task-notification|wake|ci-monitor-event)[\\s>]|\\[SYSTEM NOTIFICATION)/m.test(p))){let n=1;if(typeof i.session_id==='string'){const t=require('path').join(require('os').tmpdir(),['qfai-reminder',i.session_id,i.agent_id||'main',process.argv[2]].join('-').replace(/[^\\w.-]/g,'_'));try{f.writeFileSync(t,'',{flag:'wx'})}catch(q){try{if(q.code==='EEXIST'&&f.statSync(t).isFile())n=2}catch{}}}const e=JSON.parse(f.readFileSync(process.argv[1],'utf8'))[process.argv[2]];if(e!==undefined){if(n===1)console.log(JSON.stringify(e))}}}catch{}",
|
|
34
34
|
"${CLAUDE_PROJECT_DIR}/.agents/rules/reminders.json",
|
|
35
35
|
"structured-question"
|
|
36
36
|
]
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"command": "node",
|
|
47
47
|
"args": [
|
|
48
48
|
"-e",
|
|
49
|
-
"try{const f=require('fs');let i={};try{i=JSON.parse(f.readFileSync(0,'utf8'))||{}}catch{}const p=i.prompt;if(!(typeof p==='string'&&/^[ \\t]*(<(task-notification|wake|ci-monitor-event)[\\s>]|\\[SYSTEM NOTIFICATION)/m.test(p))){let n=1;if(typeof i.session_id==='string'){
|
|
49
|
+
"try{const f=require('fs');let i={};try{i=JSON.parse(f.readFileSync(0,'utf8'))||{}}catch{}const p=i.prompt;if(!(typeof p==='string'&&/^[ \\t]*(<(task-notification|wake|ci-monitor-event)[\\s>]|\\[SYSTEM NOTIFICATION)/m.test(p))){let n=1;if(typeof i.session_id==='string'){const t=require('path').join(require('os').tmpdir(),['qfai-reminder',i.session_id,i.agent_id||'main',process.argv[2]].join('-').replace(/[^\\w.-]/g,'_'));try{f.writeFileSync(t,'',{flag:'wx'})}catch(q){try{if(q.code==='EEXIST'&&f.statSync(t).isFile())n=2}catch{}}}const e=JSON.parse(f.readFileSync(process.argv[1],'utf8'))[process.argv[2]];if(e!==undefined){const {briefContext,...m}=e;if(n>1&&typeof briefContext==='string')m.hookSpecificOutput.additionalContext=briefContext;console.log(JSON.stringify(m))}}}catch{}",
|
|
50
50
|
"${CLAUDE_PROJECT_DIR}/.agents/rules/reminders.json",
|
|
51
51
|
"free-text-entry"
|
|
52
52
|
]
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"command": "node",
|
|
81
81
|
"args": [
|
|
82
82
|
"-e",
|
|
83
|
-
"try{const
|
|
83
|
+
"try{const f=require('fs');let i={};try{i=JSON.parse(f.readFileSync(0,'utf8'))||{}}catch{}let n=1;if(typeof i.session_id==='string'){const t=require('path').join(require('os').tmpdir(),['qfai-reminder',i.session_id,i.agent_id||'main',process.argv[2]].join('-').replace(/[^\\w.-]/g,'_'));try{f.writeFileSync(t,'',{flag:'wx'})}catch(q){try{if(q.code==='EEXIST'&&f.statSync(t).isFile())n=2}catch{}}}const e=JSON.parse(f.readFileSync(process.argv[1],'utf8'))[process.argv[2]];if(e!==undefined){if(n===1)console.log(JSON.stringify(e))}}catch{}",
|
|
84
84
|
"${CLAUDE_PROJECT_DIR}/.agents/rules/reminders.json",
|
|
85
85
|
"documentation-clarity-before-post"
|
|
86
86
|
]
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"command": "node",
|
|
97
97
|
"args": [
|
|
98
98
|
"-e",
|
|
99
|
-
"try{const f=require('fs');let i={};try{i=JSON.parse(f.readFileSync(0,'utf8'))||{}}catch{}let n=1;if(typeof i.session_id==='string'){
|
|
99
|
+
"try{const f=require('fs');let i={};try{i=JSON.parse(f.readFileSync(0,'utf8'))||{}}catch{}let n=1;if(typeof i.session_id==='string'){const t=require('path').join(require('os').tmpdir(),['qfai-reminder',i.session_id,i.agent_id||'main',process.argv[2]].join('-').replace(/[^\\w.-]/g,'_'));try{f.writeFileSync(t,'',{flag:'wx'})}catch(q){try{if(q.code==='EEXIST'&&f.statSync(t).isFile())n=2}catch{}}}const e=JSON.parse(f.readFileSync(process.argv[1],'utf8'))[process.argv[2]];if(e!==undefined){if(n===1)console.log(JSON.stringify(e))}}catch{}",
|
|
100
100
|
"${CLAUDE_PROJECT_DIR}/.agents/rules/reminders.json",
|
|
101
101
|
"grilling-design-artifact"
|
|
102
102
|
]
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"command": "node",
|
|
113
113
|
"args": [
|
|
114
114
|
"-e",
|
|
115
|
-
"try{const f=require('fs');let i={};try{i=JSON.parse(f.readFileSync(0,'utf8'))||{}}catch{}let n=1;if(typeof i.session_id==='string'){
|
|
115
|
+
"try{const f=require('fs');let i={};try{i=JSON.parse(f.readFileSync(0,'utf8'))||{}}catch{}let n=1;if(typeof i.session_id==='string'){const t=require('path').join(require('os').tmpdir(),['qfai-reminder',i.session_id,i.agent_id||'main',process.argv[2]].join('-').replace(/[^\\w.-]/g,'_'));try{f.writeFileSync(t,'',{flag:'wx'})}catch(q){try{if(q.code==='EEXIST'&&f.statSync(t).isFile())n=2}catch{}}}const e=JSON.parse(f.readFileSync(process.argv[1],'utf8'))[process.argv[2]];if(e!==undefined){if(n===1)console.log(JSON.stringify(e))}}catch{}",
|
|
116
116
|
"${CLAUDE_PROJECT_DIR}/.agents/rules/reminders.json",
|
|
117
117
|
"grilling-delegation"
|
|
118
118
|
]
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
"command": "node",
|
|
129
129
|
"args": [
|
|
130
130
|
"-e",
|
|
131
|
-
"try{const f=require('fs');let i={};try{i=JSON.parse(f.readFileSync(0,'utf8'))||{}}catch{}let n=1;if(typeof i.session_id==='string'){
|
|
131
|
+
"try{const f=require('fs');let i={};try{i=JSON.parse(f.readFileSync(0,'utf8'))||{}}catch{}let n=1;if(typeof i.session_id==='string'){const t=require('path').join(require('os').tmpdir(),['qfai-reminder',i.session_id,i.agent_id||'main',process.argv[2]].join('-').replace(/[^\\w.-]/g,'_'));try{f.writeFileSync(t,'',{flag:'wx'})}catch(q){try{if(q.code==='EEXIST'&&f.statSync(t).isFile())n=2}catch{}}}const e=JSON.parse(f.readFileSync(process.argv[1],'utf8'))[process.argv[2]];if(e!==undefined){if(n===1)console.log(JSON.stringify(e))}}catch{}",
|
|
132
132
|
"${CLAUDE_PROJECT_DIR}/.agents/rules/reminders.json",
|
|
133
133
|
"grilling-plan"
|
|
134
134
|
]
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
]
|
|
137
137
|
},
|
|
138
138
|
{
|
|
139
|
-
"matcher": "Bash",
|
|
139
|
+
"matcher": "Bash|PowerShell",
|
|
140
140
|
"hooks": [
|
|
141
141
|
{
|
|
142
142
|
"type": "command",
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
"command": "node",
|
|
145
145
|
"args": [
|
|
146
146
|
"-e",
|
|
147
|
-
"try{const f=require('fs');let i={};try{i=JSON.parse(f.readFileSync(0,'utf8'))||{}}catch{}const c=i.tool_input&&i.tool_input.command;if(typeof c==='string'&&/(^|[^\\w.-])gh([^\\w.-]|$)|api\\.github\\.com
|
|
147
|
+
"try{const f=require('fs');let i={};try{i=JSON.parse(f.readFileSync(0,'utf8'))||{}}catch{}const c=i.tool_input&&i.tool_input.command;if(typeof c==='string'&&/(^|[^\\w.-])(gh|curl|wget|iwr|irm|invoke-webrequest|invoke-restmethod)(\\.exe)?([^\\w.-]|$)|api\\.github\\.com/i.test(c)){let n=1;if(typeof i.session_id==='string'){const t=require('path').join(require('os').tmpdir(),['qfai-reminder',i.session_id,i.agent_id||'main',process.argv[2]].join('-').replace(/[^\\w.-]/g,'_'));try{f.writeFileSync(t,'',{flag:'wx'})}catch(q){try{if(q.code==='EEXIST'&&f.statSync(t).isFile())n=2}catch{}}}const e=JSON.parse(f.readFileSync(process.argv[1],'utf8'))[process.argv[2]];if(e!==undefined){if(n===1)console.log(JSON.stringify(e))}}}catch{}",
|
|
148
148
|
"${CLAUDE_PROJECT_DIR}/.agents/rules/reminders.json",
|
|
149
149
|
"api-budget"
|
|
150
150
|
]
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
"command": "node",
|
|
164
164
|
"args": [
|
|
165
165
|
"-e",
|
|
166
|
-
"try{const f=require('fs');let i={};try{i=JSON.parse(f.readFileSync(0,'utf8'))}catch{}let n=1;if(typeof i.session_id==='string'){
|
|
166
|
+
"try{const f=require('fs');let i={};try{i=JSON.parse(f.readFileSync(0,'utf8'))}catch{}let n=1;if(typeof i.session_id==='string'){const t=require('path').join(require('os').tmpdir(),['qfai-reminder',i.session_id,i.agent_id||'main',process.argv[2]].join('-').replace(/[^\\w.-]/g,'_'));try{f.writeFileSync(t,'',{flag:'wx'})}catch(q){try{if(q.code==='EEXIST'&&f.statSync(t).isFile())n=2}catch{}}}const e=JSON.parse(f.readFileSync(process.argv[1],'utf8'))[process.argv[2]];if(e!==undefined){if(n===1)console.log(JSON.stringify(e))}}catch{}",
|
|
167
167
|
"${CLAUDE_PROJECT_DIR}/.agents/rules/reminders.json",
|
|
168
168
|
"documentation-clarity-after-write"
|
|
169
169
|
]
|
|
@@ -175,7 +175,7 @@
|
|
|
175
175
|
"command": "node",
|
|
176
176
|
"args": [
|
|
177
177
|
"-e",
|
|
178
|
-
"try{const f=require('fs');let i={};try{i=JSON.parse(f.readFileSync(0,'utf8'))}catch{}let n=1;if(typeof i.session_id==='string'){
|
|
178
|
+
"try{const f=require('fs');let i={};try{i=JSON.parse(f.readFileSync(0,'utf8'))}catch{}let n=1;if(typeof i.session_id==='string'){const t=require('path').join(require('os').tmpdir(),['qfai-reminder',i.session_id,i.agent_id||'main',process.argv[2]].join('-').replace(/[^\\w.-]/g,'_'));try{f.writeFileSync(t,'',{flag:'wx'})}catch(q){try{if(q.code==='EEXIST'&&f.statSync(t).isFile())n=2}catch{}}}const e=JSON.parse(f.readFileSync(process.argv[1],'utf8'))[process.argv[2]];if(e!==undefined){if(n===1)console.log(JSON.stringify(e))}}catch{}",
|
|
179
179
|
"${CLAUDE_PROJECT_DIR}/.agents/rules/reminders.json",
|
|
180
180
|
"documentation-clarity-after-edit"
|
|
181
181
|
]
|
|
@@ -191,7 +191,7 @@
|
|
|
191
191
|
"command": "node",
|
|
192
192
|
"args": [
|
|
193
193
|
"-e",
|
|
194
|
-
"try{const f=require('fs'),p=require('path'),R=p.dirname(p.dirname(p.dirname(process.argv[1])));let i={};try{i=JSON.parse(f.readFileSync(0,'utf8'))}catch{}const u=i.tool_input&&i.tool_input.file_path;let src=true;if(typeof u==='string'&&(x=>{const s=x.split(p.sep),b=s.pop();return p.isAbsolute(x)||s[0]==='..'||s.some(y=>['tmp','test','tests','__tests__','node_modules','.qfai','.agents'].includes(y))||b[0]==='.'||/\\.(test|spec)\\./.test(b)||['.md','.mdx','.markdown','.txt','.rst','.yml','.yaml','.json','.jsonc','.json5','.toml','.ini','.csv','.tsv','.lock','.svg','.png','.jpg','.jpeg','.gif'].includes(p.extname(b).toLowerCase())})(p.relative(R,p.resolve(R,u))))src=false;if(src){let n=1;if(typeof i.session_id==='string'){
|
|
194
|
+
"try{const f=require('fs'),p=require('path'),R=p.dirname(p.dirname(p.dirname(process.argv[1])));let i={};try{i=JSON.parse(f.readFileSync(0,'utf8'))}catch{}const u=i.tool_input&&i.tool_input.file_path;let src=true;if(typeof u==='string'&&(x=>{const s=x.split(p.sep),b=s.pop();return p.isAbsolute(x)||s[0]==='..'||s.some(y=>['tmp','test','tests','__tests__','node_modules','.qfai','.agents'].includes(y))||b[0]==='.'||/\\.(test|spec)\\./.test(b)||['.md','.mdx','.markdown','.txt','.rst','.yml','.yaml','.json','.jsonc','.json5','.toml','.ini','.csv','.tsv','.lock','.svg','.png','.jpg','.jpeg','.gif'].includes(p.extname(b).toLowerCase())})(p.relative(R,p.resolve(R,u))))src=false;if(src){let n=1;if(typeof i.session_id==='string'){const t=require('path').join(require('os').tmpdir(),['qfai-reminder',i.session_id,i.agent_id||'main',process.argv[2]].join('-').replace(/[^\\w.-]/g,'_'));try{f.writeFileSync(t,'',{flag:'wx'})}catch(q){try{if(q.code==='EEXIST'&&f.statSync(t).isFile())n=2}catch{}}}const e=JSON.parse(f.readFileSync(process.argv[1],'utf8'))[process.argv[2]];if(e!==undefined){if(n===1)console.log(JSON.stringify(e))}}}catch{}",
|
|
195
195
|
"${CLAUDE_PROJECT_DIR}/.agents/rules/reminders.json",
|
|
196
196
|
"minimal-implementation"
|
|
197
197
|
]
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
{
|
|
7
7
|
"type": "command",
|
|
8
8
|
"statusMessage": "QFAI structured-question reminder",
|
|
9
|
-
"command": "node -e \"try{const f=require('fs'),p=require('path');let d=process.cwd(),r;for(;;){const c=p.join(d,'.agents','rules','reminders.json');if(r===undefined&&f.existsSync(c))r=c;if(f.existsSync(p.join(d,'.git')))break;const u=p.dirname(d);if(u===d){r=undefined;break}d=u}if(r){let j={};try{j=JSON.parse(f.readFileSync(0,'utf8'))||{}}catch{}let n=1;if(typeof j.session_id==='string'){
|
|
9
|
+
"command": "node -e \"try{const f=require('fs'),p=require('path');let d=process.cwd(),r;for(;;){const c=p.join(d,'.agents','rules','reminders.json');if(r===undefined&&f.existsSync(c))r=c;if(f.existsSync(p.join(d,'.git')))break;const u=p.dirname(d);if(u===d){r=undefined;break}d=u}if(r){let j={};try{j=JSON.parse(f.readFileSync(0,'utf8'))||{}}catch{}let n=1;if(typeof j.session_id==='string'){const t=p.join(require('os').tmpdir(),['qfai-reminder',j.session_id,j.agent_id||'main',process.argv[1]].join('-').replace(/[^\\w.-]/g,'_'));try{f.writeFileSync(t,'',{flag:'wx'})}catch(q){try{if(q.code==='EEXIST'&&f.statSync(t).isFile())n=2}catch{}}}const e=JSON.parse(f.readFileSync(r,'utf8'))[process.argv[1]];if(e===undefined){}else{if(n===1)console.log(JSON.stringify(e))}}}catch{}\" structured-question",
|
|
10
10
|
"timeout": 10
|
|
11
11
|
}
|
|
12
12
|
]
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
{
|
|
17
17
|
"type": "command",
|
|
18
18
|
"statusMessage": "QFAI free-text entry reminder",
|
|
19
|
-
"command": "node -e \"try{const f=require('fs'),p=require('path');let d=process.cwd(),r;for(;;){const c=p.join(d,'.agents','rules','reminders.json');if(r===undefined&&f.existsSync(c))r=c;if(f.existsSync(p.join(d,'.git')))break;const u=p.dirname(d);if(u===d){r=undefined;break}d=u}if(r){let j={};try{j=JSON.parse(f.readFileSync(0,'utf8'))||{}}catch{}let n=1;if(typeof j.session_id==='string'){
|
|
19
|
+
"command": "node -e \"try{const f=require('fs'),p=require('path');let d=process.cwd(),r;for(;;){const c=p.join(d,'.agents','rules','reminders.json');if(r===undefined&&f.existsSync(c))r=c;if(f.existsSync(p.join(d,'.git')))break;const u=p.dirname(d);if(u===d){r=undefined;break}d=u}if(r){let j={};try{j=JSON.parse(f.readFileSync(0,'utf8'))||{}}catch{}let n=1;if(typeof j.session_id==='string'){const t=p.join(require('os').tmpdir(),['qfai-reminder',j.session_id,j.agent_id||'main',process.argv[1]].join('-').replace(/[^\\w.-]/g,'_'));try{f.writeFileSync(t,'',{flag:'wx'})}catch(q){try{if(q.code==='EEXIST'&&f.statSync(t).isFile())n=2}catch{}}}const e=JSON.parse(f.readFileSync(r,'utf8'))[process.argv[1]];if(e===undefined){}else{const {briefContext,...m}=e;if(n>1&&typeof briefContext==='string')m.hookSpecificOutput.additionalContext=briefContext;console.log(JSON.stringify(m))}}}catch{}\" free-text-entry",
|
|
20
20
|
"timeout": 10
|
|
21
21
|
}
|
|
22
22
|
]
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
{
|
|
40
40
|
"type": "command",
|
|
41
41
|
"statusMessage": "QFAI documentation-clarity reminder",
|
|
42
|
-
"command": "node -e \"try{const f=require('fs'),p=require('path');let d=process.cwd(),r;for(;;){const c=p.join(d,'.agents','rules','reminders.json');if(r===undefined&&f.existsSync(c))r=c;if(f.existsSync(p.join(d,'.git')))break;const u=p.dirname(d);if(u===d){r=undefined;break}d=u}if(r){const
|
|
42
|
+
"command": "node -e \"try{const f=require('fs'),p=require('path');let d=process.cwd(),r;for(;;){const c=p.join(d,'.agents','rules','reminders.json');if(r===undefined&&f.existsSync(c))r=c;if(f.existsSync(p.join(d,'.git')))break;const u=p.dirname(d);if(u===d){r=undefined;break}d=u}if(r){let j={};try{j=JSON.parse(f.readFileSync(0,'utf8'))||{}}catch{}let n=1;if(typeof j.session_id==='string'){const t=p.join(require('os').tmpdir(),['qfai-reminder',j.session_id,j.agent_id||'main',process.argv[1]].join('-').replace(/[^\\w.-]/g,'_'));try{f.writeFileSync(t,'',{flag:'wx'})}catch(q){try{if(q.code==='EEXIST'&&f.statSync(t).isFile())n=2}catch{}}}const e=JSON.parse(f.readFileSync(r,'utf8'))[process.argv[1]];if(e===undefined){}else{if(n===1)console.log(JSON.stringify(e))}}}catch{}\" documentation-clarity-before-post",
|
|
43
43
|
"timeout": 10
|
|
44
44
|
}
|
|
45
45
|
]
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
{
|
|
51
51
|
"type": "command",
|
|
52
52
|
"statusMessage": "QFAI grilling reminder: design artifact",
|
|
53
|
-
"command": "node -e \"try{const f=require('fs'),p=require('path');let d=process.cwd(),r;for(;;){const c=p.join(d,'.agents','rules','reminders.json');if(r===undefined&&f.existsSync(c))r=c;if(f.existsSync(p.join(d,'.git')))break;const u=p.dirname(d);if(u===d){r=undefined;break}d=u}if(r){let j={};try{j=JSON.parse(f.readFileSync(0,'utf8'))||{}}catch{}let n=1;if(typeof j.session_id==='string'){
|
|
53
|
+
"command": "node -e \"try{const f=require('fs'),p=require('path');let d=process.cwd(),r;for(;;){const c=p.join(d,'.agents','rules','reminders.json');if(r===undefined&&f.existsSync(c))r=c;if(f.existsSync(p.join(d,'.git')))break;const u=p.dirname(d);if(u===d){r=undefined;break}d=u}if(r){let j={};try{j=JSON.parse(f.readFileSync(0,'utf8'))||{}}catch{}let n=1;if(typeof j.session_id==='string'){const t=p.join(require('os').tmpdir(),['qfai-reminder',j.session_id,j.agent_id||'main',process.argv[1]].join('-').replace(/[^\\w.-]/g,'_'));try{f.writeFileSync(t,'',{flag:'wx'})}catch(q){try{if(q.code==='EEXIST'&&f.statSync(t).isFile())n=2}catch{}}}const e=JSON.parse(f.readFileSync(r,'utf8'))[process.argv[1]];if(e===undefined){}else{if(n===1)console.log(JSON.stringify(e))}}}catch{}\" grilling-design-artifact",
|
|
54
54
|
"timeout": 10
|
|
55
55
|
}
|
|
56
56
|
]
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
{
|
|
62
62
|
"type": "command",
|
|
63
63
|
"statusMessage": "QFAI grilling reminder: delegation",
|
|
64
|
-
"command": "node -e \"try{const f=require('fs'),p=require('path');let d=process.cwd(),r;for(;;){const c=p.join(d,'.agents','rules','reminders.json');if(r===undefined&&f.existsSync(c))r=c;if(f.existsSync(p.join(d,'.git')))break;const u=p.dirname(d);if(u===d){r=undefined;break}d=u}if(r){let j={};try{j=JSON.parse(f.readFileSync(0,'utf8'))||{}}catch{}let n=1;if(typeof j.session_id==='string'){
|
|
64
|
+
"command": "node -e \"try{const f=require('fs'),p=require('path');let d=process.cwd(),r;for(;;){const c=p.join(d,'.agents','rules','reminders.json');if(r===undefined&&f.existsSync(c))r=c;if(f.existsSync(p.join(d,'.git')))break;const u=p.dirname(d);if(u===d){r=undefined;break}d=u}if(r){let j={};try{j=JSON.parse(f.readFileSync(0,'utf8'))||{}}catch{}let n=1;if(typeof j.session_id==='string'){const t=p.join(require('os').tmpdir(),['qfai-reminder',j.session_id,j.agent_id||'main',process.argv[1]].join('-').replace(/[^\\w.-]/g,'_'));try{f.writeFileSync(t,'',{flag:'wx'})}catch(q){try{if(q.code==='EEXIST'&&f.statSync(t).isFile())n=2}catch{}}}const e=JSON.parse(f.readFileSync(r,'utf8'))[process.argv[1]];if(e===undefined){}else{if(n===1)console.log(JSON.stringify(e))}}}catch{}\" grilling-delegation",
|
|
65
65
|
"timeout": 10
|
|
66
66
|
}
|
|
67
67
|
]
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
{
|
|
73
73
|
"type": "command",
|
|
74
74
|
"statusMessage": "QFAI api-budget reminder",
|
|
75
|
-
"command": "node -e \"try{const j=JSON.parse(require('fs').readFileSync(0,'utf8')),i=j.tool_input.command;if(typeof i==='string'&&/[^\\w.-]gh[^\\w.-]|api\\.github\\.com
|
|
75
|
+
"command": "node -e \"try{const j=JSON.parse(require('fs').readFileSync(0,'utf8')),i=j.tool_input.command;if(typeof i==='string'&&/[^\\w.-](gh|curl|wget|iwr|irm|invoke-webrequest|invoke-restmethod)(\\.exe)?[^\\w.-]|api\\.github\\.com/i.test(' '+i+' ')){const f=require('fs'),p=require('path');let d=process.cwd(),r;for(;;){const c=p.join(d,'.agents','rules','reminders.json');if(r===undefined&&f.existsSync(c))r=c;if(f.existsSync(p.join(d,'.git')))break;const u=p.dirname(d);if(u===d){r=undefined;break}d=u}if(r){let n=1;if(typeof j.session_id==='string'){const t=p.join(require('os').tmpdir(),['qfai-reminder',j.session_id,j.agent_id||'main',process.argv[1]].join('-').replace(/[^\\w.-]/g,'_'));try{f.writeFileSync(t,'',{flag:'wx'})}catch(q){try{if(q.code==='EEXIST'&&f.statSync(t).isFile())n=2}catch{}}}const e=JSON.parse(f.readFileSync(r,'utf8'))[process.argv[1]];if(e===undefined){}else{if(n===1)console.log(JSON.stringify(e))}}}}catch{}\" api-budget",
|
|
76
76
|
"timeout": 10
|
|
77
77
|
}
|
|
78
78
|
]
|
|
@@ -85,13 +85,13 @@
|
|
|
85
85
|
{
|
|
86
86
|
"type": "command",
|
|
87
87
|
"statusMessage": "QFAI documentation-clarity reminder",
|
|
88
|
-
"command": "node -e \"try{const j=JSON.parse(require('fs').readFileSync(0,'utf8')),i=j.tool_input.command;if(typeof i==='string'&&/^\\*\\*\\* Add File: .*\\.md\\r?\\n/m.test(i)){const f=require('fs'),p=require('path');let d=process.cwd(),r;for(;;){const c=p.join(d,'.agents','rules','reminders.json');if(r===undefined&&f.existsSync(c))r=c;if(f.existsSync(p.join(d,'.git')))break;const u=p.dirname(d);if(u===d){r=undefined;break}d=u}if(r){let n=1;if(typeof j.session_id==='string'){
|
|
88
|
+
"command": "node -e \"try{const j=JSON.parse(require('fs').readFileSync(0,'utf8')),i=j.tool_input.command;if(typeof i==='string'&&/^\\*\\*\\* Add File: .*\\.md\\r?\\n/m.test(i)){const f=require('fs'),p=require('path');let d=process.cwd(),r;for(;;){const c=p.join(d,'.agents','rules','reminders.json');if(r===undefined&&f.existsSync(c))r=c;if(f.existsSync(p.join(d,'.git')))break;const u=p.dirname(d);if(u===d){r=undefined;break}d=u}if(r){let n=1;if(typeof j.session_id==='string'){const t=p.join(require('os').tmpdir(),['qfai-reminder',j.session_id,j.agent_id||'main',process.argv[1]].join('-').replace(/[^\\w.-]/g,'_'));try{f.writeFileSync(t,'',{flag:'wx'})}catch(q){try{if(q.code==='EEXIST'&&f.statSync(t).isFile())n=2}catch{}}}const e=JSON.parse(f.readFileSync(r,'utf8'))[process.argv[1]];if(e===undefined){}else{if(n===1)console.log(JSON.stringify(e))}}}}catch{}\" documentation-clarity-after-write",
|
|
89
89
|
"timeout": 10
|
|
90
90
|
},
|
|
91
91
|
{
|
|
92
92
|
"type": "command",
|
|
93
93
|
"statusMessage": "QFAI documentation-clarity reminder",
|
|
94
|
-
"command": "node -e \"try{const j=JSON.parse(require('fs').readFileSync(0,'utf8')),i=j.tool_input.command;if(typeof i==='string'&&/^\\*\\*\\* Update File: .*\\.md\\r?\\n/m.test(i)){const f=require('fs'),p=require('path');let d=process.cwd(),r;for(;;){const c=p.join(d,'.agents','rules','reminders.json');if(r===undefined&&f.existsSync(c))r=c;if(f.existsSync(p.join(d,'.git')))break;const u=p.dirname(d);if(u===d){r=undefined;break}d=u}if(r){let n=1;if(typeof j.session_id==='string'){
|
|
94
|
+
"command": "node -e \"try{const j=JSON.parse(require('fs').readFileSync(0,'utf8')),i=j.tool_input.command;if(typeof i==='string'&&/^\\*\\*\\* Update File: .*\\.md\\r?\\n/m.test(i)){const f=require('fs'),p=require('path');let d=process.cwd(),r;for(;;){const c=p.join(d,'.agents','rules','reminders.json');if(r===undefined&&f.existsSync(c))r=c;if(f.existsSync(p.join(d,'.git')))break;const u=p.dirname(d);if(u===d){r=undefined;break}d=u}if(r){let n=1;if(typeof j.session_id==='string'){const t=p.join(require('os').tmpdir(),['qfai-reminder',j.session_id,j.agent_id||'main',process.argv[1]].join('-').replace(/[^\\w.-]/g,'_'));try{f.writeFileSync(t,'',{flag:'wx'})}catch(q){try{if(q.code==='EEXIST'&&f.statSync(t).isFile())n=2}catch{}}}const e=JSON.parse(f.readFileSync(r,'utf8'))[process.argv[1]];if(e===undefined){}else{if(n===1)console.log(JSON.stringify(e))}}}}catch{}\" documentation-clarity-after-edit",
|
|
95
95
|
"timeout": 10
|
|
96
96
|
}
|
|
97
97
|
]
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
{
|
|
103
103
|
"type": "command",
|
|
104
104
|
"statusMessage": "QFAI minimal-implementation reminder",
|
|
105
|
-
"command": "node -e \"try{const f=require('fs'),p=require('path');let d=process.cwd(),r;for(;;){const c=p.join(d,'.agents','rules','reminders.json');if(r===undefined&&f.existsSync(c))r=c;if(f.existsSync(p.join(d,'.git')))break;const u=p.dirname(d);if(u===d){r=undefined;break}d=u}if(r){let go=true,j={};try{j=JSON.parse(f.readFileSync(0,'utf8'))}catch{}try{const R=p.dirname(p.dirname(p.dirname(r))),n=(x=>{const s=x.split(p.sep),b=s.pop();return p.isAbsolute(x)||s[0]==='..'||s.some(y=>['tmp','test','tests','__tests__','node_modules','.qfai','.agents'].includes(y))||b[0]==='.'||/\\.(test|spec)\\./.test(b)||['.md','.mdx','.markdown','.txt','.rst','.yml','.yaml','.json','.jsonc','.json5','.toml','.ini','.csv','.tsv','.lock','.svg','.png','.jpg','.jpeg','.gif'].includes(p.extname(b).toLowerCase())}),a=[...j.tool_input.command.matchAll(/^\\*\\*\\* (?:(?:Add|Update|Delete) File|Move to): (.+)/gm)].map(m=>p.relative(R,p.resolve(process.cwd(),m[1].trim())));if(a.length>0&&a.every(n))go=false}catch{}if(go){let n=1;if(typeof j.session_id==='string'){
|
|
105
|
+
"command": "node -e \"try{const f=require('fs'),p=require('path');let d=process.cwd(),r;for(;;){const c=p.join(d,'.agents','rules','reminders.json');if(r===undefined&&f.existsSync(c))r=c;if(f.existsSync(p.join(d,'.git')))break;const u=p.dirname(d);if(u===d){r=undefined;break}d=u}if(r){let go=true,j={};try{j=JSON.parse(f.readFileSync(0,'utf8'))}catch{}try{const R=p.dirname(p.dirname(p.dirname(r))),n=(x=>{const s=x.split(p.sep),b=s.pop();return p.isAbsolute(x)||s[0]==='..'||s.some(y=>['tmp','test','tests','__tests__','node_modules','.qfai','.agents'].includes(y))||b[0]==='.'||/\\.(test|spec)\\./.test(b)||['.md','.mdx','.markdown','.txt','.rst','.yml','.yaml','.json','.jsonc','.json5','.toml','.ini','.csv','.tsv','.lock','.svg','.png','.jpg','.jpeg','.gif'].includes(p.extname(b).toLowerCase())}),a=[...j.tool_input.command.matchAll(/^\\*\\*\\* (?:(?:Add|Update|Delete) File|Move to): (.+)/gm)].map(m=>p.relative(R,p.resolve(process.cwd(),m[1].trim())));if(a.length>0&&a.every(n))go=false}catch{}if(go){let n=1;if(typeof j.session_id==='string'){const t=p.join(require('os').tmpdir(),['qfai-reminder',j.session_id,j.agent_id||'main',process.argv[1]].join('-').replace(/[^\\w.-]/g,'_'));try{f.writeFileSync(t,'',{flag:'wx'})}catch(q){try{if(q.code==='EEXIST'&&f.statSync(t).isFile())n=2}catch{}}}const e=JSON.parse(f.readFileSync(r,'utf8'))[process.argv[1]];if(e===undefined){}else{if(n===1)console.log(JSON.stringify(e))}}}}catch{}\" minimal-implementation",
|
|
106
106
|
"timeout": 10
|
|
107
107
|
}
|
|
108
108
|
]
|
|
@@ -54,7 +54,7 @@ specialization_tags:
|
|
|
54
54
|
|
|
55
55
|
- .qfai/assistant/rule/** (shared operating rules)
|
|
56
56
|
- <paths.specsDir>/01_policy/** and <paths.specsDir>/03_contract/tech.md (project context)
|
|
57
|
-
- .qfai/assistant/rule/agent-selection.md (
|
|
57
|
+
- .qfai/assistant/rule/agent-selection.md (this card's frontmatter is authoritative)
|
|
58
58
|
- .qfai/assistant/rule/test-layers.md
|
|
59
59
|
- <paths.specsDir>/decisions.md and open-questions.md
|
|
60
60
|
- .github/instructions/code-review.instructions.md
|
|
@@ -83,7 +83,7 @@ specialization_tags:
|
|
|
83
83
|
|
|
84
84
|
## When to use
|
|
85
85
|
|
|
86
|
-
- Use when
|
|
86
|
+
- Use when the plan's review, or the skill being run, names this reviewer, or for a griller on a contract or architecture decision.
|
|
87
87
|
- Use when an independent specialist check is needed before completion.
|
|
88
88
|
|
|
89
89
|
## When not to use
|