nitm-ai-dev-toolkit 5.2.0 → 5.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/CHANGELOG.md +18 -1
- package/README.md +24 -0
- package/bin/cli.js +1 -1
- package/package.json +1 -1
- package/src/monorepo/.agents/skills/dispatching-parallel-agents/SKILL.md +1 -1
- package/src/monorepo/.agents/skills/factory/SKILL.md +36 -13
- package/src/monorepo/.agents/skills/factory/roles/approve.md +3 -2
- package/src/monorepo/.agents/skills/factory/roles/review-code.md +2 -1
- package/src/monorepo/.agents/skills/factory/roles/spec.md +3 -1
- package/src/monorepo/.claude/agents-snippets/implementer.md +5 -1
- package/src/monorepo/.claude/commands/bootstrap-patch.md +2 -2
- package/src/monorepo/.claude/commands/constitution.md +1 -1
- package/src/monorepo/.claude/commands/create-skill.md +1 -1
- package/src/monorepo/.claude/commands/implement-feature.md +2 -2
- package/src/monorepo/.claude/commands/implement-fixes.md +1 -1
- package/src/monorepo/.claude/commands/implement.md +1 -1
- package/src/monorepo/.claude/commands/plan.md +1 -1
- package/src/monorepo/.claude/prompt-snippets/assign-tasks.md +3 -2
- package/src/monorepo/.claude/prompt-snippets/bootstrap-patch.md +15 -10
- package/src/monorepo/.claude/prompt-snippets/constitution.md +7 -1
- package/src/monorepo/.claude/prompt-snippets/create-skill.md +10 -0
- package/src/monorepo/.claude/prompt-snippets/implement-feature.md +39 -57
- package/src/monorepo/.claude/prompt-snippets/implement-fixes.md +31 -40
- package/src/monorepo/.claude/prompt-snippets/implement.md +101 -35
- package/src/monorepo/.claude/prompt-snippets/plan.md +19 -1
- package/src/monorepo/.claude/prompt-snippets/specify.md +9 -2
- package/src/monorepo/.claude/prompt-snippets/tasks.md +5 -5
- package/src/monorepo/.claude/rules-snippets/documentation.md +9 -1
- package/src/monorepo/.claude/rules-snippets/fit-review.md +62 -0
- package/src/monorepo/.claude/rules-snippets/subagent-workflow.md +71 -27
- package/src/monorepo/.cursor/commands/bootstrap-patch.md +1 -1
- package/src/monorepo/.cursor/commands/implement-feature.md +1 -1
- package/src/monorepo/.github/prompts/bootstrap-patch.prompt.md +1 -1
- package/src/monorepo/.github/prompts/constitution.prompt.md +1 -0
- package/src/monorepo/.github/prompts/create-skill.prompt.md +1 -0
- package/src/monorepo/.github/prompts/implement-feature.prompt.md +1 -1
- package/src/monorepo/.github/prompts/plan.prompt.md +1 -0
- package/src/monorepo/.opencode/commands/bootstrap-patch.md +1 -1
- package/src/monorepo/.opencode/commands/implement-feature.md +1 -1
- package/src/monorepo/AGENTS.md +12 -5
- package/src/monorepo/factory/README.md +3 -1
- package/src/repo/.agents/skills/dispatching-parallel-agents/SKILL.md +1 -1
- package/src/repo/.agents/skills/factory/SKILL.md +36 -13
- package/src/repo/.agents/skills/factory/roles/approve.md +3 -2
- package/src/repo/.agents/skills/factory/roles/review-code.md +2 -1
- package/src/repo/.agents/skills/factory/roles/spec.md +3 -1
- package/src/repo/.claude/agents-snippets/implementer.md +5 -1
- package/src/repo/.claude/commands/bootstrap-patch.md +2 -2
- package/src/repo/.claude/commands/constitution.md +1 -1
- package/src/repo/.claude/commands/create-skill.md +1 -1
- package/src/repo/.claude/commands/implement-feature.md +2 -2
- package/src/repo/.claude/commands/implement-fixes.md +1 -1
- package/src/repo/.claude/commands/implement.md +1 -1
- package/src/repo/.claude/commands/plan.md +1 -1
- package/src/repo/.claude/prompt-snippets/assign-tasks.md +3 -2
- package/src/repo/.claude/prompt-snippets/bootstrap-patch.md +15 -10
- package/src/repo/.claude/prompt-snippets/constitution.md +7 -1
- package/src/repo/.claude/prompt-snippets/create-skill.md +10 -0
- package/src/repo/.claude/prompt-snippets/implement-feature.md +38 -58
- package/src/repo/.claude/prompt-snippets/implement-fixes.md +33 -34
- package/src/repo/.claude/prompt-snippets/implement.md +101 -35
- package/src/repo/.claude/prompt-snippets/plan.md +19 -3
- package/src/repo/.claude/prompt-snippets/specify.md +9 -2
- package/src/repo/.claude/prompt-snippets/tasks.md +6 -6
- package/src/repo/.claude/rules-snippets/documentation.md +11 -1
- package/src/repo/.claude/rules-snippets/fit-review.md +62 -0
- package/src/repo/.claude/rules-snippets/subagent-workflow.md +71 -27
- package/src/repo/.cursor/commands/bootstrap-patch.md +1 -1
- package/src/repo/.cursor/commands/implement-feature.md +1 -1
- package/src/repo/.github/prompts/bootstrap-patch.prompt.md +2 -2
- package/src/repo/.github/prompts/constitution.prompt.md +1 -1
- package/src/repo/.github/prompts/create-skill.prompt.md +1 -1
- package/src/repo/.github/prompts/implement-feature.prompt.md +2 -2
- package/src/repo/.github/prompts/implement-fixes.prompt.md +1 -1
- package/src/repo/.github/prompts/implement.prompt.md +1 -1
- package/src/repo/.github/prompts/plan.prompt.md +1 -1
- package/src/repo/.opencode/commands/bootstrap-patch.md +1 -1
- package/src/repo/.opencode/commands/implement-feature.md +1 -1
- package/src/repo/AGENTS.md +17 -6
- package/src/repo/factory/README.md +3 -1
|
@@ -9,7 +9,7 @@ description: "Patch AI instructions by fetching updates from the toolkit repo an
|
|
|
9
9
|
| Agent | When to use |
|
|
10
10
|
|-------|-------------|
|
|
11
11
|
| `fixer` | Standard patch — incremental changes to existing config |
|
|
12
|
-
| `
|
|
12
|
+
| `reviewer` | Independent read-only review before approval and after apply |
|
|
13
13
|
|
|
14
14
|
## Arguments
|
|
15
15
|
|
|
@@ -9,7 +9,7 @@ description: "Implement a feature by completing tasks sequentially"
|
|
|
9
9
|
| Agent | When to use |
|
|
10
10
|
|-------|-------------|
|
|
11
11
|
| `fixer` | Bounded feature work — spec is clear, files are known |
|
|
12
|
-
| `feature-builder` | Complex feature —
|
|
12
|
+
| `feature-builder` | Complex feature build — builder only; the orchestrator still runs the review |
|
|
13
13
|
|
|
14
14
|
## Arguments
|
|
15
15
|
|
package/src/repo/AGENTS.md
CHANGED
|
@@ -58,7 +58,7 @@ For CLI command reference, see the matching skill: `.agents/skills/{acli,gh-cli,
|
|
|
58
58
|
|
|
59
59
|
#### 1. Proactive Clarification
|
|
60
60
|
|
|
61
|
-
- **Identify Ambiguity**:
|
|
61
|
+
- **Identify Ambiguity**: Ask a targeted question if a task lacks clear acceptance criteria, inputs, or expected outputs. It blocks only that task and its dependents; independent work with clear requirements continues (see Autonomy with blockers, item 8).
|
|
62
62
|
- **Resolve Conflicts**: Flag conflicting instructions between the user prompt, existing code, and documentation before writing code.
|
|
63
63
|
- **Expose Assumptions**: State your assumptions clearly and ask for validation before proceeding with high-impact changes.
|
|
64
64
|
|
|
@@ -240,7 +240,8 @@ Use custom agents when you want explicit coordinator and worker roles. Use workf
|
|
|
240
240
|
- Do not make an implementation subagent read the plan file on its own; pass the relevant task directly.
|
|
241
241
|
- In `subagent-driven-development`, keep the review order strict: spec compliance first, then code quality.
|
|
242
242
|
- If a reviewer finds issues, fix them and re-run the same review before moving on.
|
|
243
|
-
-
|
|
243
|
+
- Parallel implementation subagents need exclusive writable scopes. If scopes could overlap (shared packages, shared docs, or the same app surface), or one task reads another's output, run them sequentially. See `.claude/rules-snippets/subagent-workflow.md` for the dependency graph and batch rules.
|
|
244
|
+
- Delegate substantial, separable work by default; the coordinator stays responsible for the outcome and reconciles each result before dispatching dependents.
|
|
244
245
|
|
|
245
246
|
#### Recommended Flow
|
|
246
247
|
|
|
@@ -308,6 +309,12 @@ Use the appropriate sub-agents when the task benefits from specialized expertise
|
|
|
308
309
|
2. **Provide context** — Reference the relevant rules-snippets or prompt-snippets
|
|
309
310
|
3. **Set constraints** — Use tool restrictions for read-only agents (researcher, reviewer)
|
|
310
311
|
4. **Chain when needed** — Planner → Developer → Reviewer for complex changes
|
|
312
|
+
5. **Delegate by default** — Delegate substantial, safely separable discovery, implementation, test, and review work. The coordinator keeps outcome responsibility; trivial or context-heavy work stays direct.
|
|
313
|
+
6. **Batch by dependency** — Build the dependency graph. Dispatch ready tasks with exclusive writable scopes as one parallel batch; dependent or shared-write tasks run sequentially. Reconcile each result before dispatching its dependents. `[P]` markers are optional.
|
|
314
|
+
7. **Never end silently** — During active multi-step execution, end each turn as DONE, WAITING (pending task handle and resume trigger), or BLOCKED / NEEDS-DECISION (what completed, what remains, exact next user action). Dispatch or partial progress is not completion. Spec and plan confirmations remain mandatory human steps; final approval, escalation, and merge behavior follow the job's `APPROVAL_MODE` and `MERGE_MODE`. Delegation or autonomy alone never satisfies a gate.
|
|
315
|
+
8. **Autonomy with blockers** — Work autonomously within the approved goal, scope, and permissions. A blocker pauses only its task and dependents: record it, defer non-global questions, and continue independent authorized work. Stop for the user only when no authorized work remains or a mandatory gate applies, and ask through the harness's native question tool when one exists.
|
|
316
|
+
|
|
317
|
+
Full workflow, including resume and checkpoint rules: `.claude/rules-snippets/subagent-workflow.md`.
|
|
311
318
|
|
|
312
319
|
## Custom Agents (Subagents)
|
|
313
320
|
|
|
@@ -364,8 +371,8 @@ Workers are dispatched by coordinators and are not directly user-invocable.
|
|
|
364
371
|
- Admin dashboards, RBAC, reporting, monitoring → Admin Portal
|
|
365
372
|
- General implementation → Implementer
|
|
366
373
|
|
|
367
|
-
**Sequential**:
|
|
368
|
-
**Parallel**:
|
|
374
|
+
**Sequential**: Dependent tasks, and tasks that share a writable file, run one at a time in dependency order.
|
|
375
|
+
**Parallel**: Ready tasks with exclusive writable scopes run together as one batch. Reconcile each batch's results before dispatching the next.
|
|
369
376
|
|
|
370
377
|
### Invoking Subagents
|
|
371
378
|
|
|
@@ -381,7 +388,7 @@ Subagents are typically **agent-initiated** — the coordinator decides when to
|
|
|
381
388
|
|
|
382
389
|
### Factory (opt-in)
|
|
383
390
|
|
|
384
|
-
An optional file-driven pipeline for feature-sized work, alongside Feature Builder and TDD. Start it with `/factory <request>` in Claude Code, Copilot, Cursor, or OpenCode. The orchestrator reads the project and asks only the glaring questions before it creates anything, then asks you to continue or change the answers. Resume a feature with `/factory start <KEY | slug | job-id>`. Codex runs the orchestrator skill directly. Each job belongs to a feature folder in `docs/features/`, stops at a spec gate and a plan gate for your confirmation before any ticket or build, builds in its own git worktree unless you ask for `--in-place`, and moves its tickets when the project tracks them. The orchestrator is [.agents/skills/factory/SKILL.md](.agents/skills/factory/SKILL.md). It runs on the native `planner` (spec and plan), `implementer` (build, repair, and rework), and `reviewer` (the code, security, ux, and ui lenses, and approval) agents. Each role's Factory rules are in its brief in `.agents/skills/factory/roles/`. Setup, placeholders, and approval modes are in [factory/README.md](factory/README.md).
|
|
391
|
+
An optional file-driven pipeline for feature-sized work, alongside Feature Builder and TDD. Start it with `/factory <request>` in Claude Code, Copilot, Cursor, or OpenCode. The orchestrator reads the project and asks only the glaring questions before it creates anything, then asks you to continue or change the answers. Resume a feature with `/factory start <KEY | slug | job-id>`. Codex runs the orchestrator skill directly. Each job belongs to a feature folder in `docs/features/`, stops at a spec gate and a plan gate for your confirmation before any ticket or build, builds in its own git worktree unless you ask for `--in-place`, and moves its tickets when the project tracks them. The orchestrator is [.agents/skills/factory/SKILL.md](.agents/skills/factory/SKILL.md). It runs on the native `planner` (spec and plan), `implementer` (build, repair, and rework), and `reviewer` (the code, security, ux, and ui lenses, and approval) agents. Each role's Factory rules are in its brief in `.agents/skills/factory/roles/`. Spec and plan goal-fit must be confirmed by an independent Oracle or read-only reviewer, not the spec or plan author. Single-session role switching, including the Codex fallback, does not satisfy that and blocks these gates. Spec and plan confirmations stay mandatory human steps in every approval mode. Setup, placeholders, and approval modes are in [factory/README.md](factory/README.md).
|
|
385
392
|
|
|
386
393
|
## Documentation Requirements
|
|
387
394
|
|
|
@@ -395,10 +402,14 @@ Documentation updates are **mandatory before committing** any feature or fix. Se
|
|
|
395
402
|
- Reference `docs/constitution.md` for project principles and governance
|
|
396
403
|
- Include all doc changes in the same commit/PR as the code
|
|
397
404
|
|
|
405
|
+
**Supplied-task exception (`implement`, `implement-feature`, `implement-fixes` only):** the task supplied to these commands replaces the spec and plan prerequisites. Do not create or require `spec.md` or `plan.md` for the feature or fix unless the user asks for them. Every other applicable item in the [documentation checklist](.claude/rules-snippets/documentation.md) still applies, including the fix log, `CHANGELOG.md`, `docs/api/`, and `README.md`.
|
|
406
|
+
|
|
407
|
+
**Requirement-only planning exception:** For `/plan` without an existing specification, preserve the original supplied requirements and acceptance criteria in `plan.md` under **Requirements Source** and **Acceptance Criteria**; do not require or create `spec.md`. `/tasks` and `/assign-tasks` consume that plan source when no specification exists; keep acceptance criteria out of the slim task checklist. This exception overrides the spec prerequisite and mandatory spec-first sequence above and in the documentation checklist only for these planning artifacts. It does not authorize implementation, replace artifact review, waive required human approvals, or change any other documentation duties. The separate implementation-command supplied-task exception remains unchanged.
|
|
408
|
+
|
|
398
409
|
## Contributing
|
|
399
410
|
|
|
400
411
|
**Standards:** Follow {{FRAMEWORK}} and {{LANGUAGE}} best practices
|
|
401
|
-
**Process:** Feature branch → spec/plan docs → tests → implementation → update docs → lint → build → PR
|
|
412
|
+
**Process:** Feature branch → spec/plan docs (subject to the requirement-only planning and supplied-task exceptions above) → tests → implementation → update docs → lint → build → PR
|
|
402
413
|
|
|
403
414
|
## Related Documentation
|
|
404
415
|
|
|
@@ -55,7 +55,7 @@ The orchestrator and agents are the same in every harness. Each harness has its
|
|
|
55
55
|
| GitHub Copilot | `/factory` prompt (`.github/prompts/factory.prompt.md`) | `.github/agents/` |
|
|
56
56
|
| Cursor | `/factory` (`.cursor/commands/factory.md`) | `.cursor/agents/` |
|
|
57
57
|
| OpenCode | `/factory` (`.opencode/commands/factory.md`) | `.opencode/agents/` |
|
|
58
|
-
| Codex | The factory skill (`.agents/skills/factory/SKILL.md`) |
|
|
58
|
+
| Codex | The factory skill (`.agents/skills/factory/SKILL.md`) | No native agent definitions. Role briefs run directly; spec and plan acceptance requires an independent review session. Single-session role switching cannot satisfy that gate (see Harness notes in SKILL.md). |
|
|
59
59
|
|
|
60
60
|
In OpenCode with the Slim plugin, `oracle` and `designer` are optional alternatives to `reviewer`, if you configure them as edit-denied. The default is the native agents.
|
|
61
61
|
|
|
@@ -77,6 +77,8 @@ Sizing is decided in `plan.md`:
|
|
|
77
77
|
|
|
78
78
|
Every job stops twice, in every approval mode, before anything is ticketed or built:
|
|
79
79
|
|
|
80
|
+
Before either confirmation, an independent read-only Oracle, or reviewer when Oracle is unavailable, checks goal fit. Revisions and resumed gates are reviewed again. Missing independent review blocks acceptance, including single-session Codex use; it does not block discussing unresolved decisions. If the original requirements cannot be recovered, the operator must confirm the recovered baseline rather than treating an agent-written summary as the original request.
|
|
81
|
+
|
|
80
82
|
1. **Spec gate** (`awaiting-spec`). You read the spec summary, the acceptance criteria count, each open `[PRODUCT DECISION]` item, and open questions. Answer every open decision before you confirm: answers go in your change request, are saved as `spec-<k>.md`, and the spec writer records each one as `[DECIDED]`.
|
|
81
83
|
2. **Plan gate** (`awaiting-plan`). You read the plan, the tasks, the size, the tracking proposal, and the build mode. Confirm, request changes (saved as `plan-<k>.md`), or change size, tracking, or build mode. Requests that touch the spec go back through the spec gate.
|
|
82
84
|
|