@fredericboyer/dev-team 0.6.0 → 0.7.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 +12 -11
- package/dist/bin/dev-team.js +12 -12
- package/dist/bin/dev-team.js.map +1 -1
- package/dist/create-agent.js +6 -6
- package/dist/create-agent.js.map +1 -1
- package/dist/doctor.js +15 -16
- package/dist/doctor.js.map +1 -1
- package/dist/files.js +2 -0
- package/dist/files.js.map +1 -1
- package/dist/init.js +36 -44
- package/dist/init.js.map +1 -1
- package/dist/scan.js +9 -9
- package/dist/scan.js.map +1 -1
- package/dist/status.js +11 -11
- package/dist/status.js.map +1 -1
- package/dist/update.d.ts +1 -4
- package/dist/update.js +178 -59
- package/dist/update.js.map +1 -1
- package/package.json +3 -3
- package/templates/CLAUDE.md +7 -6
- package/templates/agents/dev-team-beck.md +7 -0
- package/templates/agents/dev-team-borges.md +4 -4
- package/templates/agents/dev-team-conway.md +7 -0
- package/templates/agents/dev-team-deming.md +15 -2
- package/templates/agents/dev-team-drucker.md +12 -2
- package/templates/agents/dev-team-hamilton.md +10 -2
- package/templates/agents/dev-team-mori.md +10 -2
- package/templates/agents/dev-team-tufte.md +7 -0
- package/templates/agents/dev-team-voss.md +10 -2
- package/templates/hooks/dev-team-post-change-review.js +1 -25
- package/templates/hooks/dev-team-pre-commit-gate.js +38 -46
- package/templates/hooks/dev-team-watch-list.js +3 -3
- package/templates/settings.json +6 -20
- package/templates/skills/dev-team-assess/SKILL.md +167 -0
- package/templates/skills/dev-team-audit/SKILL.md +8 -3
- package/templates/skills/dev-team-merge/SKILL.md +95 -0
- package/templates/skills/dev-team-review/SKILL.md +9 -4
- package/templates/skills/dev-team-task/SKILL.md +28 -41
- package/dist/parallel.d.ts +0 -127
- package/dist/parallel.js +0 -323
- package/dist/parallel.js.map +0 -1
- package/templates/hooks/dev-team-parallel-loop.js +0 -188
- package/templates/hooks/dev-team-task-loop.js +0 -73
package/dist/update.js.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OAAO,CAAC,GAAG,CAAC,sBAAsB,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACvE,CAAC;IACD,IAAI,OAAO,CAAC,QAAQ,KAAK,WAAW,EAAE,CAAC;QACrC,OAAO,CAAC,GAAG,CAAC,sBAAsB,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC;IACxD,CAAC;IAED,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IAC5B,OAAO,CAAC,GAAG,CAAC,wCAAwC,CAAC,CAAC;IACtD,OAAO,CAAC,GAAG,CAAC,2CAA2C,CAAC,CAAC;IACzD,OAAO,CAAC,GAAG,CAAC,8CAA8C,CAAC,CAAC;IAC5D,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;AAClB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fredericboyer/dev-team",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Adversarial AI agent team for any project — installs Claude Code agents, hooks, and skills that enforce quality through productive friction",
|
|
5
5
|
"main": "dist/init.js",
|
|
6
6
|
"types": "dist/init.d.ts",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"scripts": {
|
|
16
16
|
"build": "tsc",
|
|
17
17
|
"pretest": "npm run build",
|
|
18
|
-
"test": "node --test tests/unit/files.test.js tests/unit/hooks.test.js tests/unit/scan.test.js tests/unit/create-agent.test.js tests/unit/cli.test.js tests/
|
|
18
|
+
"test": "node --test tests/unit/files.test.js tests/unit/hooks.test.js tests/unit/scan.test.js tests/unit/create-agent.test.js tests/unit/cli.test.js tests/integration/fresh-project.test.js tests/integration/idempotency.test.js tests/integration/update.test.js tests/scenarios/node-project.test.js tests/scenarios/python-project.test.js tests/scenarios/upgrade-path.test.js",
|
|
19
19
|
"test:unit": "node --test tests/unit/files.test.js tests/unit/hooks.test.js",
|
|
20
20
|
"test:integration": "node --test tests/integration/fresh-project.test.js tests/integration/idempotency.test.js",
|
|
21
21
|
"test:scenarios": "node --test tests/scenarios/node-project.test.js tests/scenarios/python-project.test.js tests/scenarios/upgrade-path.test.js",
|
|
@@ -51,6 +51,6 @@
|
|
|
51
51
|
"@types/node": "^25.5.0",
|
|
52
52
|
"oxfmt": "^0.41.0",
|
|
53
53
|
"oxlint": "^1.56.0",
|
|
54
|
-
"typescript": "^
|
|
54
|
+
"typescript": "^6.0.2"
|
|
55
55
|
}
|
|
56
56
|
}
|
package/templates/CLAUDE.md
CHANGED
|
@@ -39,7 +39,7 @@ For non-trivial work: explore the area first, then implement, then review.
|
|
|
39
39
|
- **Conway** — auto-flagged when release artifacts change (package.json, changelog, version files, release/publish/deploy workflows, etc.)
|
|
40
40
|
|
|
41
41
|
**End-of-workflow agents:**
|
|
42
|
-
- **Borges** — mandatory at end of every `/dev-team:task`, `/dev-team:review`, and `/dev-team:
|
|
42
|
+
- **Borges** — mandatory at end of every `/dev-team:task`, `/dev-team:review`, `/dev-team:audit`, and `/dev-team:assess`. Reviews memory freshness, cross-agent coherence, and system improvement opportunities.
|
|
43
43
|
|
|
44
44
|
**Orchestration:**
|
|
45
45
|
- **Drucker** — delegates tasks to the right implementing agent and spawns reviewers. Szabo, Knuth, and Brooks review all code changes. Brooks covers both structural review and quality attribute assessment (performance, maintainability, scalability).
|
|
@@ -56,11 +56,10 @@ When working on multiple independent issues, use parallel agents on separate bra
|
|
|
56
56
|
|
|
57
57
|
When a dev-team hook outputs `ACTION REQUIRED — spawn these agents`, you MUST:
|
|
58
58
|
1. Spawn each listed agent as a **background** subagent using the Agent tool with `subagent_type: "general-purpose"`
|
|
59
|
-
2. Include the agent's full definition by reading from `.
|
|
59
|
+
2. Include the agent's full definition by reading from `.dev-team/agents/<agent>.md`
|
|
60
60
|
3. Include the changed file path and instruction to produce classified findings
|
|
61
|
-
4. After all reviews complete, delete `.claude/dev-team-review-pending.json`
|
|
62
61
|
|
|
63
|
-
Do NOT skip this. Do NOT treat hook output as optional.
|
|
62
|
+
Do NOT skip this. Do NOT treat hook output as optional. If you believe a review is unnecessary for trivial changes, explain why to the user.
|
|
64
63
|
|
|
65
64
|
### Skills
|
|
66
65
|
|
|
@@ -68,6 +67,8 @@ Do NOT skip this. Do NOT treat hook output as optional. The pre-commit gate will
|
|
|
68
67
|
- `/dev-team:task` — start an iterative task loop with adversarial review gates
|
|
69
68
|
- `/dev-team:review` — orchestrated multi-agent parallel review of changes
|
|
70
69
|
- `/dev-team:audit` — full codebase security + quality + tooling audit
|
|
70
|
+
- `/dev-team:merge` — merge a PR with Copilot review handling, auto-merge, CI monitoring, and post-merge actions
|
|
71
|
+
- `/dev-team:assess` — audit knowledge base health (learnings, agent memory, CLAUDE.md)
|
|
71
72
|
|
|
72
73
|
### Learnings — where to write what
|
|
73
74
|
|
|
@@ -75,8 +76,8 @@ All project and process learnings MUST go to in-repo files, NOT to machine-local
|
|
|
75
76
|
|
|
76
77
|
| What | Where | Examples |
|
|
77
78
|
|------|-------|---------|
|
|
78
|
-
| Project patterns, process rules, tech debt, overruled challenges | `.
|
|
79
|
-
| Agent-specific calibration | `.
|
|
79
|
+
| Project patterns, process rules, tech debt, overruled challenges | `.dev-team/learnings.md` | "We use PostgreSQL", "Hooks over guidelines", "Knuth's finding X was overruled because Y" |
|
|
80
|
+
| Agent-specific calibration | `.dev-team/agent-memory/<agent>/MEMORY.md` | Szabo: "Auth uses JWT not sessions", Knuth: "Coverage weak in parsers" |
|
|
80
81
|
| Formal architecture decisions | `docs/adr/` | ADR format, not learnings |
|
|
81
82
|
| User-specific preferences only | Machine-local memory | Personal style, name, role — things that vary per person, not per project |
|
|
82
83
|
|
|
@@ -66,3 +66,10 @@ After completing work, write key learnings to your MEMORY.md:
|
|
|
66
66
|
- Flaky test patterns identified and avoided
|
|
67
67
|
- Over-mocking patterns identified and refactored
|
|
68
68
|
- Challenges you raised that were accepted (reinforce) or overruled (calibrate)
|
|
69
|
+
|
|
70
|
+
## Learnings Output (mandatory)
|
|
71
|
+
|
|
72
|
+
After completing work, you MUST output a "Learnings" section in your response:
|
|
73
|
+
- What was surprising or non-obvious about this task?
|
|
74
|
+
- What should be calibrated for next time? (e.g., assumptions that were wrong, patterns that worked well)
|
|
75
|
+
- Where should this be recorded? (`agent memory` for agent-specific calibration / `team learnings` for shared process rules / `ADR` for architectural decisions)
|
|
@@ -16,15 +16,15 @@ Your philosophy: "A library that is not maintained becomes a labyrinth."
|
|
|
16
16
|
|
|
17
17
|
You are spawned **at the end of every task** — after implementation and review are complete, before the final summary is presented to the human.
|
|
18
18
|
|
|
19
|
-
You **write directly** to `.
|
|
19
|
+
You **write directly** to `.dev-team/learnings.md` — shared team facts (benchmarks, conventions, tech debt) that require no domain expertise.
|
|
20
20
|
|
|
21
|
-
For individual agent memories (`.
|
|
21
|
+
For individual agent memories (`.dev-team/agent-memory/*/MEMORY.md`), you **audit and direct** but do not write. Flag stale entries, contradictions, and gaps — then instruct the domain agent to update its own memory. Only the domain expert should write to its own calibration file. This prevents cross-domain miscalibration.
|
|
22
22
|
|
|
23
23
|
You do **not** modify code, agent definitions, hooks, or configuration.
|
|
24
24
|
|
|
25
25
|
### 1. Update shared learnings (you write this)
|
|
26
26
|
|
|
27
|
-
Read and update `.
|
|
27
|
+
Read and update `.dev-team/learnings.md`:
|
|
28
28
|
1. Are quality benchmarks current (test count, agent count, hook count)? Update them.
|
|
29
29
|
2. Are coding conventions still accurate? Fix or add as needed.
|
|
30
30
|
3. Are known tech debt items still open or were they resolved? Update status.
|
|
@@ -33,7 +33,7 @@ Read and update `.claude/dev-team-learnings.md`:
|
|
|
33
33
|
### 2. Audit agent memories (you direct, agents write)
|
|
34
34
|
|
|
35
35
|
For each agent that participated in the task:
|
|
36
|
-
1. Read their `MEMORY.md` in `.
|
|
36
|
+
1. Read their `MEMORY.md` in `.dev-team/agent-memory/<agent>/`
|
|
37
37
|
2. Check: are learnings from this task captured? Are old entries still accurate?
|
|
38
38
|
3. Flag stale entries (patterns that changed, challenges that were overruled, outdated benchmarks)
|
|
39
39
|
4. Flag if approaching the 200-line cap — recommend compression
|
|
@@ -65,3 +65,10 @@ After completing work, write key learnings to your MEMORY.md:
|
|
|
65
65
|
- Common release blockers encountered
|
|
66
66
|
- Changelog formatting preferences
|
|
67
67
|
- Challenges you raised that were accepted (reinforce) or overruled (calibrate)
|
|
68
|
+
|
|
69
|
+
## Learnings Output (mandatory)
|
|
70
|
+
|
|
71
|
+
After completing work, you MUST output a "Learnings" section in your response:
|
|
72
|
+
- What was surprising or non-obvious about this task?
|
|
73
|
+
- What should be calibrated for next time? (e.g., assumptions that were wrong, patterns that worked well)
|
|
74
|
+
- Where should this be recorded? (`agent memory` for agent-specific calibration / `team learnings` for shared process rules / `ADR` for architectural decisions)
|
|
@@ -16,8 +16,14 @@ Your philosophy: "If a human or an AI is manually doing something a tool could e
|
|
|
16
16
|
|
|
17
17
|
Before making changes:
|
|
18
18
|
1. Spawn Explore subagents in parallel to inventory the project's current tooling — linters, formatters, CI/CD, hooks, SAST, dependency management.
|
|
19
|
-
2. Read `.
|
|
20
|
-
3.
|
|
19
|
+
2. Read `.dev-team/config.json` to understand the team's workflow preferences and work within those constraints.
|
|
20
|
+
3. **Research current practices** before configuring any tooling, dependencies, or build settings:
|
|
21
|
+
- Look up the current documentation for the specific tools and versions in use (e.g., ESLint 9 flat config vs legacy `.eslintrc`, Node.js LTS recommendations, current TypeScript compiler options).
|
|
22
|
+
- Check for deprecated options, removed flags, or migrated APIs — tooling ecosystems move fast and cached knowledge goes stale.
|
|
23
|
+
- When multiple approaches exist (e.g., formatter choice, test runner, bundler), identify the current ecosystem recommendation and compare it against what the project already uses.
|
|
24
|
+
- **Balance research against codebase consistency**: if the project has an established convention that differs from the latest recommendation, prefer consistency. Flag the newer approach as a `[SUGGESTION]` with a migration path — do not silently adopt it.
|
|
25
|
+
- Use web search, official documentation, and Context7 when available. Do not rely solely on training data for tool configuration — verify against current sources.
|
|
26
|
+
4. Return concise recommendations to the main thread, not raw findings.
|
|
21
27
|
|
|
22
28
|
After making changes:
|
|
23
29
|
1. Verify the tooling works (run linter, check CI config syntax, test hooks).
|
|
@@ -80,3 +86,10 @@ After completing work, write key learnings to your MEMORY.md:
|
|
|
80
86
|
- CI/CD optimizations applied
|
|
81
87
|
- Onboarding friction points identified
|
|
82
88
|
- Challenges you raised that were accepted (reinforce) or overruled (calibrate)
|
|
89
|
+
|
|
90
|
+
## Learnings Output (mandatory)
|
|
91
|
+
|
|
92
|
+
After completing work, you MUST output a "Learnings" section in your response:
|
|
93
|
+
- What was surprising or non-obvious about this task?
|
|
94
|
+
- What should be calibrated for next time? (e.g., assumptions that were wrong, patterns that worked well)
|
|
95
|
+
- Where should this be recorded? (`agent memory` for agent-specific calibration / `team learnings` for shared process rules / `ADR` for architectural decisions)
|
|
@@ -74,7 +74,7 @@ If Architect determines no ADR is needed, proceed directly to delegation.
|
|
|
74
74
|
|
|
75
75
|
1. Spawn the implementing agent with the full task description (including ADR if flagged).
|
|
76
76
|
2. After implementation completes, spawn review agents **in parallel as background subagents**.
|
|
77
|
-
3. Each reviewer uses their agent definition from `.
|
|
77
|
+
3. Each reviewer uses their agent definition from `.dev-team/agents/`.
|
|
78
78
|
|
|
79
79
|
### 5. Manage the review loop
|
|
80
80
|
|
|
@@ -102,7 +102,7 @@ When working on multiple issues simultaneously (see ADR-019):
|
|
|
102
102
|
|
|
103
103
|
1. **Analyze for file independence**: Spawn @dev-team-brooks with the full batch of issues. Brooks identifies conflict groups — issues that touch overlapping files and must execute sequentially. Independent issues can proceed in parallel.
|
|
104
104
|
|
|
105
|
-
2. **Spawn implementation agents in parallel**: For each independent issue, spawn one implementing agent on its own branch (`feat/<issue>-<description>`). Each agent works without awareness of other parallel agents.
|
|
105
|
+
2. **Spawn implementation agents in parallel**: For each independent issue, spawn one implementing agent on its own branch (`feat/<issue>-<description>`). Each agent works without awareness of other parallel agents.
|
|
106
106
|
|
|
107
107
|
3. **Wait for all implementations to complete**: Do not start reviews until every implementation agent has finished. This is the synchronization barrier.
|
|
108
108
|
|
|
@@ -114,6 +114,16 @@ When working on multiple issues simultaneously (see ADR-019):
|
|
|
114
114
|
|
|
115
115
|
Conflict groups (issues with file overlaps) execute sequentially within the group but in parallel with other groups and independent issues.
|
|
116
116
|
|
|
117
|
+
### PR merge workflow
|
|
118
|
+
|
|
119
|
+
When managing PRs through to merge, use `/dev-team:merge` for the merge step. This skill handles:
|
|
120
|
+
- Checking and addressing Copilot review comments
|
|
121
|
+
- Setting auto-merge with squash strategy
|
|
122
|
+
- Monitoring CI status and reporting when merged
|
|
123
|
+
- Post-merge actions (pull latest main, report merge SHA, suggest next work)
|
|
124
|
+
|
|
125
|
+
Do not manually run `gh pr merge` or poll CI status -- delegate to the merge skill.
|
|
126
|
+
|
|
117
127
|
## Focus areas
|
|
118
128
|
|
|
119
129
|
You always check for:
|
|
@@ -16,8 +16,9 @@ Your philosophy: "Operational resilience is not a feature you add. It is how you
|
|
|
16
16
|
|
|
17
17
|
Before writing any code:
|
|
18
18
|
1. Spawn Explore subagents in parallel to understand the infrastructure landscape, find existing patterns, and map dependencies.
|
|
19
|
-
2.
|
|
20
|
-
3.
|
|
19
|
+
2. **Research current practices** when configuring containers, CI/CD pipelines, IaC, or deployment strategies. Check current documentation for the specific platforms and tool versions in use — base image tags, GitHub Actions runner defaults, Terraform provider versions, and cloud platform APIs all change frequently. Prefer codebase consistency over newer approaches; flag newer alternatives as `[SUGGESTION]` when they do not fit the existing conventions.
|
|
20
|
+
3. Look ahead — trace what services, ports, volumes, and networks will be affected and spawn parallel subagents to analyze each dependency before you start.
|
|
21
|
+
4. Return concise summaries to the main thread, not raw exploration output.
|
|
21
22
|
|
|
22
23
|
After completing implementation:
|
|
23
24
|
1. Report cross-domain impacts: flag changes for @dev-team-voss (application config affected), @dev-team-szabo (security surface changed), @dev-team-knuth (coverage gaps to audit).
|
|
@@ -67,3 +68,10 @@ After completing work, write key learnings to your MEMORY.md:
|
|
|
67
68
|
- Infrastructure patterns discovered in this codebase
|
|
68
69
|
- Conventions the team has established for deployment and operations
|
|
69
70
|
- Challenges you raised that were accepted (reinforce) or overruled (calibrate)
|
|
71
|
+
|
|
72
|
+
## Learnings Output (mandatory)
|
|
73
|
+
|
|
74
|
+
After completing work, you MUST output a "Learnings" section in your response:
|
|
75
|
+
- What was surprising or non-obvious about this task?
|
|
76
|
+
- What should be calibrated for next time? (e.g., assumptions that were wrong, patterns that worked well)
|
|
77
|
+
- Where should this be recorded? (`agent memory` for agent-specific calibration / `team learnings` for shared process rules / `ADR` for architectural decisions)
|
|
@@ -16,8 +16,9 @@ Your philosophy: "If a human cannot understand what just happened, the system fa
|
|
|
16
16
|
|
|
17
17
|
Before writing any code:
|
|
18
18
|
1. Spawn Explore subagents in parallel to understand the existing UI patterns, component structure, and state management approach.
|
|
19
|
-
2.
|
|
20
|
-
3.
|
|
19
|
+
2. **Research current practices** when choosing component patterns, accessibility standards, or frontend libraries. Check current WCAG guidelines, framework documentation, and browser support baselines — standards evolve and framework APIs change between versions. Prefer codebase consistency over newer approaches; flag newer alternatives as `[SUGGESTION]` when they do not fit the existing conventions.
|
|
20
|
+
3. Look ahead — trace which API contracts, shared components, and styles will be affected.
|
|
21
|
+
4. Return concise summaries to the main thread, not raw exploration output.
|
|
21
22
|
|
|
22
23
|
After completing implementation:
|
|
23
24
|
1. Report cross-domain impacts: flag changes for @dev-team-voss (API contract expectations), @dev-team-szabo (new input surfaces), @dev-team-knuth (coverage gaps to audit).
|
|
@@ -65,3 +66,10 @@ After completing work, write key learnings to your MEMORY.md:
|
|
|
65
66
|
- Accessibility issues found and resolved (do not re-flag)
|
|
66
67
|
- Component patterns the team prefers
|
|
67
68
|
- Challenges you raised that were accepted (reinforce) or overruled (calibrate)
|
|
69
|
+
|
|
70
|
+
## Learnings Output (mandatory)
|
|
71
|
+
|
|
72
|
+
After completing work, you MUST output a "Learnings" section in your response:
|
|
73
|
+
- What was surprising or non-obvious about this task?
|
|
74
|
+
- What should be calibrated for next time? (e.g., assumptions that were wrong, patterns that worked well)
|
|
75
|
+
- Where should this be recorded? (`agent memory` for agent-specific calibration / `team learnings` for shared process rules / `ADR` for architectural decisions)
|
|
@@ -80,3 +80,10 @@ After completing work, write key learnings to your MEMORY.md:
|
|
|
80
80
|
- Areas where docs chronically drift from code
|
|
81
81
|
- Conventions the team has adopted for doc style and structure
|
|
82
82
|
- Challenges you raised that were accepted (reinforce) or overruled (calibrate)
|
|
83
|
+
|
|
84
|
+
## Learnings Output (mandatory)
|
|
85
|
+
|
|
86
|
+
After completing work, you MUST output a "Learnings" section in your response:
|
|
87
|
+
- What was surprising or non-obvious about this task?
|
|
88
|
+
- What should be calibrated for next time? (e.g., assumptions that were wrong, patterns that worked well)
|
|
89
|
+
- Where should this be recorded? (`agent memory` for agent-specific calibration / `team learnings` for shared process rules / `ADR` for architectural decisions)
|
|
@@ -16,8 +16,9 @@ Your philosophy: "Build as if the next developer inherits your mistakes at 3 AM
|
|
|
16
16
|
|
|
17
17
|
Before writing any code:
|
|
18
18
|
1. Spawn Explore subagents in parallel to understand the codebase area, find existing patterns, and map dependencies.
|
|
19
|
-
2.
|
|
20
|
-
3.
|
|
19
|
+
2. **Research current practices** when making framework, library, or architectural pattern choices. Check current documentation for the libraries and runtime versions in use — APIs deprecate, defaults change, and best practices evolve. Prefer codebase consistency over newer approaches; flag newer alternatives as `[SUGGESTION]` when they do not fit the existing conventions.
|
|
20
|
+
3. Look ahead — trace what code will be affected and spawn parallel subagents to analyze each dependency before you start.
|
|
21
|
+
4. Return concise summaries to the main thread, not raw exploration output.
|
|
21
22
|
|
|
22
23
|
After completing implementation:
|
|
23
24
|
1. Report cross-domain impacts: flag changes for @dev-team-mori (UI contract affected), @dev-team-szabo (security surface changed), @dev-team-knuth (coverage gaps to audit).
|
|
@@ -65,3 +66,10 @@ After completing work, write key learnings to your MEMORY.md:
|
|
|
65
66
|
- Patterns discovered in this codebase
|
|
66
67
|
- Conventions the team has established
|
|
67
68
|
- Challenges you raised that were accepted (reinforce) or overruled (calibrate)
|
|
69
|
+
|
|
70
|
+
## Learnings Output (mandatory)
|
|
71
|
+
|
|
72
|
+
After completing work, you MUST output a "Learnings" section in your response:
|
|
73
|
+
- What was surprising or non-obvious about this task?
|
|
74
|
+
- What should be calibrated for next time? (e.g., assumptions that were wrong, patterns that worked well)
|
|
75
|
+
- Where should this be recorded? (`agent memory` for agent-specific calibration / `team learnings` for shared process rules / `ADR` for architectural decisions)
|
|
@@ -233,37 +233,13 @@ if (flags.length === 0) {
|
|
|
233
233
|
process.exit(0);
|
|
234
234
|
}
|
|
235
235
|
|
|
236
|
-
// Track which agents have been flagged this session (for pre-commit gate to verify)
|
|
237
|
-
const fs = require("fs");
|
|
238
|
-
const trackingPath = path.join(process.cwd(), ".claude", "dev-team-review-pending.json");
|
|
239
|
-
let pending = [];
|
|
240
|
-
try {
|
|
241
|
-
pending = JSON.parse(fs.readFileSync(trackingPath, "utf-8"));
|
|
242
|
-
} catch {
|
|
243
|
-
// No tracking file yet
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
for (const flag of flags) {
|
|
247
|
-
const agent = flag.split(" ")[0]; // e.g. "@dev-team-szabo"
|
|
248
|
-
if (!pending.includes(agent)) {
|
|
249
|
-
pending.push(agent);
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
try {
|
|
254
|
-
fs.mkdirSync(path.dirname(trackingPath), { recursive: true });
|
|
255
|
-
fs.writeFileSync(trackingPath, JSON.stringify(pending, null, 2));
|
|
256
|
-
} catch {
|
|
257
|
-
// Best effort — don't fail the hook over tracking
|
|
258
|
-
}
|
|
259
|
-
|
|
260
236
|
// Output as a DIRECTIVE, not a suggestion. CLAUDE.md instructs the LLM to act on this.
|
|
261
237
|
console.log(`[dev-team] ACTION REQUIRED — spawn these agents as background reviewers:`);
|
|
262
238
|
for (const flag of flags) {
|
|
263
239
|
console.log(` → ${flag}`);
|
|
264
240
|
}
|
|
265
241
|
console.log(
|
|
266
|
-
`Use the Agent tool to spawn each as a general-purpose subagent with their agent definition from .
|
|
242
|
+
`Use the Agent tool to spawn each as a general-purpose subagent with their agent definition from .dev-team/agents/.`,
|
|
267
243
|
);
|
|
268
244
|
|
|
269
245
|
process.exit(0);
|
|
@@ -2,14 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* dev-team-pre-commit-gate.js
|
|
5
|
-
*
|
|
5
|
+
* Pre-commit hook — memory freshness gate.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
* 1
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* BLOCKS (exit 2) if review agents were flagged but not consulted.
|
|
12
|
-
* Advisory (exit 0) for memory reminders.
|
|
7
|
+
* Runs before each commit. Checks whether memory files need updating.
|
|
8
|
+
* Blocks (exit 1) when implementation files are staged without memory updates.
|
|
9
|
+
* Override: create an empty `.dev-team/.memory-reviewed` file to acknowledge
|
|
10
|
+
* that memory was reviewed and nothing needs updating.
|
|
13
11
|
*/
|
|
14
12
|
|
|
15
13
|
"use strict";
|
|
@@ -84,69 +82,63 @@ if (files.length === 0) {
|
|
|
84
82
|
process.exit(0);
|
|
85
83
|
}
|
|
86
84
|
|
|
87
|
-
//
|
|
88
|
-
const trackingPath = path.join(process.cwd(), ".claude", "dev-team-review-pending.json");
|
|
89
|
-
let pendingReviews = [];
|
|
90
|
-
try {
|
|
91
|
-
pendingReviews = JSON.parse(fs.readFileSync(trackingPath, "utf-8"));
|
|
92
|
-
} catch {
|
|
93
|
-
// No tracking file — no pending reviews
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
if (pendingReviews.length > 0) {
|
|
97
|
-
console.error(
|
|
98
|
-
`[dev-team pre-commit] BLOCKED — these agents were flagged for review but not yet spawned:`,
|
|
99
|
-
);
|
|
100
|
-
for (const agent of pendingReviews) {
|
|
101
|
-
console.error(` → ${agent}`);
|
|
102
|
-
}
|
|
103
|
-
console.error("");
|
|
104
|
-
console.error(
|
|
105
|
-
"Spawn each agent as a background subagent using the Agent tool with their definition",
|
|
106
|
-
);
|
|
107
|
-
console.error("from .claude/agents/. After review completes, clear the tracking file:");
|
|
108
|
-
console.error(" rm .claude/dev-team-review-pending.json");
|
|
109
|
-
console.error("");
|
|
110
|
-
console.error("To skip this check (e.g. for trivial changes), delete the tracking file first.");
|
|
111
|
-
process.exit(2);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
// Memory freshness check (advisory only)
|
|
115
|
-
const reminders = [];
|
|
85
|
+
// Memory freshness check (blocking unless overridden)
|
|
116
86
|
|
|
117
87
|
const hasImplFiles = files.some(
|
|
118
88
|
(f) => /\.(js|ts|jsx|tsx|py|rb|go|java|rs)$/.test(f) && !/\.(test|spec)\./.test(f),
|
|
119
89
|
);
|
|
120
90
|
|
|
121
91
|
const hasMemoryUpdates = files.some(
|
|
122
|
-
(f) => f.endsWith("
|
|
92
|
+
(f) => f.endsWith("learnings.md") || /agent-memory\/.*MEMORY\.md$/.test(f),
|
|
123
93
|
);
|
|
124
94
|
|
|
125
95
|
if (hasImplFiles && !hasMemoryUpdates) {
|
|
96
|
+
// Check for .memory-reviewed override marker
|
|
97
|
+
const markerPath = path.join(process.cwd(), ".dev-team", ".memory-reviewed");
|
|
98
|
+
let hasOverride = false;
|
|
99
|
+
try {
|
|
100
|
+
const stat = fs.lstatSync(markerPath);
|
|
101
|
+
// Require regular file — reject symlinks, directories, FIFOs, etc.
|
|
102
|
+
hasOverride = stat.isFile() && !stat.isSymbolicLink();
|
|
103
|
+
} catch {
|
|
104
|
+
// No marker file
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
if (hasOverride) {
|
|
108
|
+
// Override acknowledged — clean up the marker file after this commit
|
|
109
|
+
try {
|
|
110
|
+
fs.unlinkSync(markerPath);
|
|
111
|
+
} catch {
|
|
112
|
+
// Best effort — don't fail the hook over cleanup
|
|
113
|
+
}
|
|
114
|
+
process.exit(0);
|
|
115
|
+
}
|
|
116
|
+
|
|
126
117
|
let unstagedMemory = false;
|
|
127
118
|
try {
|
|
128
119
|
const unstaged = cachedGitDiff(["diff", "--name-only"], 2000);
|
|
129
120
|
unstagedMemory = unstaged
|
|
130
121
|
.split("\n")
|
|
131
122
|
.map((f) => f.split("\\").join("/"))
|
|
132
|
-
.some((f) => f.endsWith("
|
|
123
|
+
.some((f) => f.endsWith("learnings.md") || /agent-memory\/.*MEMORY\.md$/.test(f));
|
|
133
124
|
} catch {
|
|
134
125
|
// Ignore — best effort
|
|
135
126
|
}
|
|
136
127
|
|
|
137
128
|
if (unstagedMemory) {
|
|
138
|
-
|
|
139
|
-
"Memory files were updated but not staged
|
|
129
|
+
console.error(
|
|
130
|
+
"[dev-team pre-commit] BLOCKED: Memory files were updated but not staged. " +
|
|
131
|
+
"Run `git add .dev-team/learnings.md .dev-team/agent-memory/` to include learnings, " +
|
|
132
|
+
"or create an empty `.dev-team/.memory-reviewed` file to acknowledge that memory was reviewed.",
|
|
140
133
|
);
|
|
141
134
|
} else {
|
|
142
|
-
|
|
143
|
-
"
|
|
135
|
+
console.error(
|
|
136
|
+
"[dev-team pre-commit] BLOCKED: Implementation files staged without memory updates. " +
|
|
137
|
+
"Update .dev-team/learnings.md or agent memory with any patterns, conventions, or decisions from this work. " +
|
|
138
|
+
"If no learnings apply, create an empty `.dev-team/.memory-reviewed` file to acknowledge.",
|
|
144
139
|
);
|
|
145
140
|
}
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
if (reminders.length > 0) {
|
|
149
|
-
console.log(`[dev-team pre-commit] Before committing, consider: ${reminders.join("; ")}`);
|
|
141
|
+
process.exit(1);
|
|
150
142
|
}
|
|
151
143
|
|
|
152
144
|
process.exit(0);
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
* dev-team-watch-list.js
|
|
5
5
|
* PostToolUse hook on Edit/Write.
|
|
6
6
|
*
|
|
7
|
-
* Reads configurable file-pattern-to-agent mappings from .
|
|
7
|
+
* Reads configurable file-pattern-to-agent mappings from .dev-team/config.json
|
|
8
8
|
* and outputs structured spawn recommendations when patterns match.
|
|
9
9
|
* Advisory only — always exits 0.
|
|
10
10
|
*
|
|
11
|
-
* Config format in
|
|
11
|
+
* Config format in config.json:
|
|
12
12
|
* {
|
|
13
13
|
* "watchLists": [
|
|
14
14
|
* { "pattern": "src/db/", "agents": ["dev-team-codd"], "reason": "database code changed" },
|
|
@@ -42,7 +42,7 @@ if (!filePath) {
|
|
|
42
42
|
// Read watch list config
|
|
43
43
|
let watchLists = [];
|
|
44
44
|
try {
|
|
45
|
-
const prefsPath = path.join(process.cwd(), ".
|
|
45
|
+
const prefsPath = path.join(process.cwd(), ".dev-team", "config.json");
|
|
46
46
|
const prefs = JSON.parse(fs.readFileSync(prefsPath, "utf-8"));
|
|
47
47
|
watchLists = prefs.watchLists || [];
|
|
48
48
|
} catch {
|
package/templates/settings.json
CHANGED
|
@@ -6,15 +6,15 @@
|
|
|
6
6
|
"hooks": [
|
|
7
7
|
{
|
|
8
8
|
"type": "command",
|
|
9
|
-
"command": "node .
|
|
9
|
+
"command": "node .dev-team/hooks/dev-team-post-change-review.js"
|
|
10
10
|
},
|
|
11
11
|
{
|
|
12
12
|
"type": "command",
|
|
13
|
-
"command": "node .
|
|
13
|
+
"command": "node .dev-team/hooks/dev-team-tdd-enforce.js"
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
16
|
"type": "command",
|
|
17
|
-
"command": "node .
|
|
17
|
+
"command": "node .dev-team/hooks/dev-team-watch-list.js"
|
|
18
18
|
}
|
|
19
19
|
]
|
|
20
20
|
}
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
"hooks": [
|
|
26
26
|
{
|
|
27
27
|
"type": "command",
|
|
28
|
-
"command": "node .
|
|
28
|
+
"command": "node .dev-team/hooks/dev-team-safety-guard.js"
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
"type": "command",
|
|
32
|
-
"command": "node .
|
|
32
|
+
"command": "node .dev-team/hooks/dev-team-pre-commit-lint.js"
|
|
33
33
|
}
|
|
34
34
|
]
|
|
35
35
|
}
|
|
@@ -39,21 +39,7 @@
|
|
|
39
39
|
"hooks": [
|
|
40
40
|
{
|
|
41
41
|
"type": "command",
|
|
42
|
-
"command": "node .
|
|
43
|
-
}
|
|
44
|
-
]
|
|
45
|
-
}
|
|
46
|
-
],
|
|
47
|
-
"Stop": [
|
|
48
|
-
{
|
|
49
|
-
"hooks": [
|
|
50
|
-
{
|
|
51
|
-
"type": "command",
|
|
52
|
-
"command": "node .claude/hooks/dev-team-task-loop.js"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"type": "command",
|
|
56
|
-
"command": "node .claude/hooks/dev-team-parallel-loop.js"
|
|
42
|
+
"command": "node .dev-team/hooks/dev-team-pre-commit-gate.js"
|
|
57
43
|
}
|
|
58
44
|
]
|
|
59
45
|
}
|