hero-mmt-kit 1.1.5 → 1.2.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 +31 -0
- package/README.md +12 -10
- package/package.json +1 -1
- package/skills.manifest.json +6 -9
- package/src/init.cjs +0 -2
- package/src/integrations.cjs +7 -7
- package/src/skills.cjs +15 -6
- package/src/update.cjs +0 -2
- package/templates/CLAUDE.md.tmpl +38 -6
- package/templates/skills/NOTICE +25 -7
- package/templates/skills/brainstorming/SKILL.md +7 -7
- package/templates/skills/executing-plans/SKILL.md +1 -1
- package/templates/skills/hero-coding/SKILL.md +147 -69
- package/templates/skills/hero-mr-review/SKILL.md +3 -3
- package/templates/skills/hero-planning/SKILL.md +281 -59
- package/templates/skills/hero-report/SKILL.md +5 -2
- package/templates/skills/hero-reviewing/SKILL.md +322 -69
- package/templates/skills/hero-strict/SKILL.md +4 -4
- package/templates/skills/hero-unit-test/SKILL.md +128 -78
- package/templates/skills/subagent-driven-development/SKILL.md +14 -3
- package/templates/skills/subagent-driven-development/code-quality-reviewer-prompt.md +34 -34
- package/templates/skills/subagent-driven-development/scripts/task-brief.sh +1 -1
- package/templates/skills/using-hero/SKILL.md +22 -19
- package/templates/AGENTS.md.tmpl +0 -16
- package/templates/skills/receiving-code-review/SKILL.md +0 -213
- package/templates/skills/requesting-code-review/SKILL.md +0 -108
- package/templates/skills/requesting-code-review/code-reviewer.md +0 -168
- package/templates/skills/writing-plans/SKILL.md +0 -173
- package/templates/skills/writing-plans/plan-document-reviewer-prompt.md +0 -49
|
@@ -1,78 +1,128 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: hero-unit-test
|
|
3
|
-
description: Use to
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Hero Unit Test
|
|
7
|
-
|
|
8
|
-
## Overview
|
|
9
|
-
|
|
10
|
-
hero-unit-test is the
|
|
11
|
-
|
|
12
|
-
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
-
|
|
21
|
-
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
-
|
|
58
|
-
-
|
|
59
|
-
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
-
|
|
64
|
-
-
|
|
65
|
-
-
|
|
66
|
-
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
1
|
+
---
|
|
2
|
+
name: hero-unit-test
|
|
3
|
+
description: Use after implementation to write focused unit tests from the approved requirements, run them, and report the actual results
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Hero Unit Test
|
|
7
|
+
|
|
8
|
+
## Overview
|
|
9
|
+
|
|
10
|
+
hero-unit-test is the post-implementation unit-testing stage. It derives expected behavior from the approved plan or explicit acceptance criteria, writes focused unit tests around the implemented code, runs them, and reports the observed results. It does not implement or repair production code.
|
|
11
|
+
|
|
12
|
+
<HARD-BOUNDARY>
|
|
13
|
+
This stage may change tests and test-only support files only. It must not edit or refactor production code, perform code review, deploy or release, or perform git delivery actions.
|
|
14
|
+
</HARD-BOUNDARY>
|
|
15
|
+
|
|
16
|
+
## When to Use
|
|
17
|
+
|
|
18
|
+
Use this skill after implementation for behavior that needs executable unit-level coverage:
|
|
19
|
+
- Bug fixes that need a durable regression case.
|
|
20
|
+
- New business rules, edge cases, error paths, or interfaces.
|
|
21
|
+
- Refactors whose approved behavior must remain stable.
|
|
22
|
+
|
|
23
|
+
Skip it only when there is no runtime behavior to exercise, such as prose-only documentation or comments.
|
|
24
|
+
|
|
25
|
+
## Inputs
|
|
26
|
+
|
|
27
|
+
Normal inputs:
|
|
28
|
+
|
|
29
|
+
```text
|
|
30
|
+
PLAN_PATH=<approved-plan-path>
|
|
31
|
+
TARGET=local
|
|
32
|
+
SCOPE=<requirements, tasks, modules, or files>
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
- `PLAN_PATH` supplies requirements, business rules, edge cases, interfaces, and requirement-to-task coverage.
|
|
36
|
+
- A deliberately planless small change must have explicit acceptance criteria. If neither a plan nor clear criteria defines expected behavior, stop; do not infer the test oracle from the current implementation.
|
|
37
|
+
- `TARGET` defaults to the current local implementation. A commit/ref may be named for identity, but the runnable workspace must already contain that target.
|
|
38
|
+
- `SCOPE` narrows the requested unit-test work when only part of the implementation should be covered.
|
|
39
|
+
- Read existing unit-test conventions, helpers, fixtures, and commands for the affected area.
|
|
40
|
+
|
|
41
|
+
For a commit/ref target, resolve and record the intended SHA, then confirm the current workspace represents it. Do not check out, reset, or switch automatically. For a local target, record the initial production-code status before creating tests so test-stage changes can be distinguished from pre-existing implementation changes.
|
|
42
|
+
|
|
43
|
+
## Expected-Behavior Oracle
|
|
44
|
+
|
|
45
|
+
Derive expected results in this order:
|
|
46
|
+
|
|
47
|
+
1. Approved plan requirements and business rules.
|
|
48
|
+
2. Explicit acceptance criteria or external contracts.
|
|
49
|
+
3. Approved compatibility behavior.
|
|
50
|
+
4. Existing implementation only for API shape, dependencies, and available test seams — never as the expected result merely because the code currently behaves that way.
|
|
51
|
+
|
|
52
|
+
A failing test is valid when it accurately demonstrates that the implementation violates an approved requirement.
|
|
53
|
+
|
|
54
|
+
## Allowed Changes
|
|
55
|
+
|
|
56
|
+
This stage may:
|
|
57
|
+
- Create or edit unit-test files.
|
|
58
|
+
- Create or edit test-only fixtures, mocks, factories, snapshots, and helpers.
|
|
59
|
+
- Correct defective test setup or assertions and rerun the affected tests.
|
|
60
|
+
- Run relevant unit-test and coverage commands.
|
|
61
|
+
|
|
62
|
+
This stage must not:
|
|
63
|
+
- Edit or refactor production code to create a test seam or make a failure pass.
|
|
64
|
+
- Implement missing business behavior.
|
|
65
|
+
- Perform code review, deployment, or release work.
|
|
66
|
+
- Commit, push, merge, or open a pull/merge request.
|
|
67
|
+
- Invoke a generic workflow that implements production code as part of testing.
|
|
68
|
+
|
|
69
|
+
If production changes are required, preserve the accurate failing test where appropriate and hand the remediation back to `hero-coding`.
|
|
70
|
+
|
|
71
|
+
## Process
|
|
72
|
+
|
|
73
|
+
1. Read the complete plan/criteria and resolve the implementation target and requested scope.
|
|
74
|
+
2. Build a requirement-to-test matrix covering normal behavior, boundaries, error paths, and named edge cases.
|
|
75
|
+
3. Identify existing test conventions and the narrowest relevant unit-test command.
|
|
76
|
+
4. Write focused tests and test-only support code. Do not change production files.
|
|
77
|
+
5. Run the relevant unit tests and read the actual output.
|
|
78
|
+
6. Fix only test defects, then rerun the affected command.
|
|
79
|
+
7. Classify every remaining failure and report the exact result.
|
|
80
|
+
8. Finish with coverage, gaps, and production-remediation items; do not make the production fix.
|
|
81
|
+
|
|
82
|
+
## Failure Classification
|
|
83
|
+
|
|
84
|
+
Classify failures as:
|
|
85
|
+
|
|
86
|
+
- **Expected production mismatch:** the test represents an approved requirement and the implementation does not satisfy it. Preserve/report it and hand remediation to `hero-coding`.
|
|
87
|
+
- **Test defect:** setup, fixture, mock, timing, or assertion is wrong. Fix only the test and rerun it.
|
|
88
|
+
- **Environment/tooling failure:** the command cannot execute reliably. Report the command, error, and affected coverage.
|
|
89
|
+
- **Pre-existing unrelated failure:** evidence shows the failure is outside the requested implementation. List it separately; do not fix it here.
|
|
90
|
+
|
|
91
|
+
Green tests are not required for an honest test-stage result. The required outcome is accurate tests, executed commands, observed results, and a clear handoff for production mismatches.
|
|
92
|
+
|
|
93
|
+
## Report Convention (on request)
|
|
94
|
+
|
|
95
|
+
hero-unit-test ends with a concise chat report and does not write a file automatically. If the user asks for a durable report, invoke `hero-report`; it writes `docs/test-reports/YYYY-MM-DD-<slug>.md` from the results already collected.
|
|
96
|
+
|
|
97
|
+
Report should cover:
|
|
98
|
+
- Plan/criteria, resolved implementation target, and requested scope.
|
|
99
|
+
- Requirement-to-test mapping.
|
|
100
|
+
- Test files and test-only support files changed.
|
|
101
|
+
- Exact commands run and actual pass/fail/skip counts and failure output.
|
|
102
|
+
- Behavioral coverage by requirement and edge case.
|
|
103
|
+
- Numeric coverage only when a coverage command was actually run.
|
|
104
|
+
- Known gaps, untestable requirements, and failure classifications.
|
|
105
|
+
- Production remediation items handed to `hero-coding`.
|
|
106
|
+
- Confirmation that no production code was changed.
|
|
107
|
+
|
|
108
|
+
Test report style:
|
|
109
|
+
- Use concise, evidence-first bullets; avoid test-run storytelling.
|
|
110
|
+
- Preserve exact commands, test names, file paths, API names, errors, counts, and output summaries.
|
|
111
|
+
- Separate production mismatches from test defects and environment failures.
|
|
112
|
+
- Never claim coverage or success that the executed output did not establish.
|
|
113
|
+
|
|
114
|
+
## Definition of Done
|
|
115
|
+
|
|
116
|
+
- Planned unit tests for the requested scope were written or a concrete blocker explains why they could not be.
|
|
117
|
+
- Relevant commands were executed and their actual output was reported.
|
|
118
|
+
- Requirements and edge cases map to tests or explicit gaps.
|
|
119
|
+
- Every failure is classified and production remediation is handed to `hero-coding` without changing production code.
|
|
120
|
+
- Only test and test-only support files were modified by this stage.
|
|
121
|
+
- If a report was requested, it was written separately via `hero-report`.
|
|
122
|
+
|
|
123
|
+
## Related Skills
|
|
124
|
+
|
|
125
|
+
- Reads expected behavior from `hero-planning` and the implementation from `hero-coding`.
|
|
126
|
+
- Complements the independent, read-only findings pass in `hero-reviewing`.
|
|
127
|
+
- `hero-strict` may later run broader suites and non-unit verification in its own session.
|
|
128
|
+
- Uses `hero-report` only when the user asks for a durable test report.
|
|
@@ -58,6 +58,17 @@ Pick the budget from actual risk and uncertainty, not by default. For each tier,
|
|
|
58
58
|
|
|
59
59
|
**Final review is conditional.** Run a final integration review only when there were multiple independent task streams, high-risk/core changes, or prior reviews were narrow. If one combined review already covered the entire change, do not review the same scope again.
|
|
60
60
|
|
|
61
|
+
## Hero Stage Boundary
|
|
62
|
+
|
|
63
|
+
An active Hero stage contract overrides this generic same-session lifecycle.
|
|
64
|
+
|
|
65
|
+
- Inside `hero-coding`, use this skill only for bounded implementation delegation. Do not self-review, run verification, dispatch reviewers, or fix review findings in that session, regardless of the review budget table or process diagram below.
|
|
66
|
+
- Finish the implementation-only session, then let the user start `hero-reviewing` separately.
|
|
67
|
+
- `hero-reviewing` performs the read-only review or feedback assessment. Exact confirmed correction IDs return only through a later `hero-coding` session after explicit user approval.
|
|
68
|
+
- Inside any other Hero stage, every delegated agent inherits that stage's allowed actions and exclusions.
|
|
69
|
+
|
|
70
|
+
The review/fix lifecycle below remains available only when no narrower Hero stage is active.
|
|
71
|
+
|
|
61
72
|
## Pre-Flight Plan Review
|
|
62
73
|
|
|
63
74
|
Before dispatching Task 1, scan the whole plan once for internal contradictions or
|
|
@@ -193,7 +204,7 @@ treat ⚠️ as an automatic pass, and don't gate only on ❌ while leaving ⚠
|
|
|
193
204
|
`bash scripts/task-brief.sh <plan-file> <N>` first — don't paste the full task text
|
|
194
205
|
or make the implementer read the whole plan.
|
|
195
206
|
- `./spec-reviewer-prompt.md` - Use only for `full-multi-stage-review` or explicit acceptance/spec risk.
|
|
196
|
-
- `./code-quality-reviewer-prompt.md` -
|
|
207
|
+
- `./code-quality-reviewer-prompt.md` - Thin adapter to the canonical `hero-reviewing` contract for combined quality review, targeted quality review, or full review budgets.
|
|
197
208
|
- `./scripts/sdd-workspace.sh` - Resolves/creates `.hero-mmt-kit/sdd/`, the
|
|
198
209
|
self-ignoring scratch dir for task briefs, review packages, and the progress ledger.
|
|
199
210
|
- `./scripts/task-brief.sh PLAN_FILE N [OUTFILE]` - Extracts Task N's exact text into a
|
|
@@ -257,8 +268,8 @@ Task: Add auth-sensitive fullstack feature with API contract changes.
|
|
|
257
268
|
## Integration
|
|
258
269
|
|
|
259
270
|
Useful companion skills:
|
|
260
|
-
- **
|
|
261
|
-
- **
|
|
271
|
+
- **hero-planning** - Creates the implementation-only plan this skill may execute.
|
|
272
|
+
- **hero-reviewing** - Canonical read-only review and feedback-assessment contract; `code-quality-reviewer-prompt.md` is only an adapter.
|
|
262
273
|
- **superpowers:verification-before-completion** - Ensures final claims match evidence.
|
|
263
274
|
- **superpowers:using-git-worktrees** - Use when parallel agents may conflict or the user requests isolation.
|
|
264
275
|
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
# Code Quality Reviewer Prompt Template
|
|
2
|
-
|
|
3
|
-
Use this
|
|
4
|
-
|
|
5
|
-
**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
**
|
|
33
|
-
|
|
34
|
-
|
|
1
|
+
# Code Quality Reviewer Prompt Template
|
|
2
|
+
|
|
3
|
+
Use this thin adapter when a review budget calls for one implementation-quality reviewer. The canonical review contract and finding schema live in `hero-reviewing`; do not duplicate or broaden them here.
|
|
4
|
+
|
|
5
|
+
**Only dispatch after the implementation target is stable enough to identify an explicit base and head.**
|
|
6
|
+
|
|
7
|
+
```text
|
|
8
|
+
Task tool (general-purpose):
|
|
9
|
+
model: [MODEL - explicit, do not omit. See SKILL.md Model Selection.]
|
|
10
|
+
prompt: |
|
|
11
|
+
Invoke `hero-reviewing` with:
|
|
12
|
+
|
|
13
|
+
MODE=review
|
|
14
|
+
REVIEWER=direct
|
|
15
|
+
PLAN_PATH=[plan file, or use the exact task/acceptance criteria below]
|
|
16
|
+
TARGET=ref:[HEAD_SHA]
|
|
17
|
+
BASE_REF=[BASE_SHA]
|
|
18
|
+
|
|
19
|
+
Exact task / acceptance criteria:
|
|
20
|
+
[TASK N FROM PLAN OR BOUNDED REQUIREMENTS]
|
|
21
|
+
|
|
22
|
+
Supplemental review package:
|
|
23
|
+
[DIFF_FILE from `bash scripts/review-package.sh BASE_SHA HEAD_SHA`]
|
|
24
|
+
|
|
25
|
+
Follow `hero-reviewing`'s read-only, findings-only boundary. Do not edit files,
|
|
26
|
+
run build/lint/typecheck/tests/coverage, change git state, apply fixes, or
|
|
27
|
+
dispatch another reviewer. Read the actual target code and relevant unchanged
|
|
28
|
+
callers/contracts; the review package and implementer's report are context,
|
|
29
|
+
not substitutes for the repository.
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
**Do Not Trust the Report:** The implementer's self-report and rationale are unverified claims. Verify every returned finding against the diff, resulting code, requirements, and relevant surrounding contracts.
|
|
33
|
+
|
|
34
|
+
**Reviewer returns:** reviewed target, evidence-backed findings, coverage gaps, verdict, and correction candidates awaiting user approval, using the `hero-reviewing` schema.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
# Usage: task-brief.sh PLAN_FILE N [OUTFILE]
|
|
4
4
|
#
|
|
5
5
|
# Finds the heading matching "Task N" at whatever heading level it uses
|
|
6
|
-
# (
|
|
6
|
+
# (hero-planning emits "### Task N: [Component Name]") and copies everything
|
|
7
7
|
# up to (not including) the next heading at the same or shallower level,
|
|
8
8
|
# respecting fenced code blocks (``` or ~~~) so a heading-looking line
|
|
9
9
|
# inside a fenced step (e.g. a comment in example code) doesn't end the
|
|
@@ -13,20 +13,22 @@ hero-mmt-kit is a human-led workflow: the developer decides what to work on and
|
|
|
13
13
|
|
|
14
14
|
| Skill | Use when | Artifact / report |
|
|
15
15
|
|---|---|---|
|
|
16
|
-
| `hero-planning` |
|
|
17
|
-
| `hero-coding` | Implementing an approved plan
|
|
18
|
-
| `hero-reviewing` |
|
|
19
|
-
| `hero-unit-test` |
|
|
16
|
+
| `hero-planning` | Clarifying non-trivial work through analysis and brainstorming, then writing an implementation-only plan. | `docs/plans/YYYY-MM-DD-slug.md` — always written (it's the deliverable, not a report) |
|
|
17
|
+
| `hero-coding` | Implementing every task and requirement in an approved plan, or a small bounded request. No testing or self-review. | `docs/coding-reports/YYYY-MM-DD-slug.md` — on request |
|
|
18
|
+
| `hero-reviewing` | Single read-only entry point for a fresh implementation review, assessment of supplied review feedback, or an explicit combination of both. | `docs/reviews/YYYY-MM-DD-slug.md` — on request |
|
|
19
|
+
| `hero-unit-test` | Writing and running post-implementation unit tests from the approved requirements; no production-code fixes. | `docs/test-reports/YYYY-MM-DD-slug.md` — on request |
|
|
20
20
|
| `hero-security` | You want an independent OWASP + AI/LLM security review of a sensitive surface. | `docs/security-reports/YYYY-MM-DD-slug.md` — always written for the security pass. |
|
|
21
|
-
| `hero-mr-review` | Reviewing a teammate's merge request
|
|
22
|
-
| `hero-strict` | Extra rigor is wanted before a "done" claim
|
|
21
|
+
| `hero-mr-review` | Reviewing a teammate's committed merge request/ref against MR intent and repository conventions. | `docs/mr-reviews/YYYY-MM-DD-slug.md` — always written. |
|
|
22
|
+
| `hero-strict` | Extra rigor is wanted in a separate full verification session before a "done" claim. | Appends to the current report, if one exists/was requested. |
|
|
23
23
|
| `hero-report` | A written report is actually wanted for a finished `hero-coding`/`hero-reviewing`/`hero-unit-test` phase. | Writes the report at the path the source skill defines. |
|
|
24
24
|
|
|
25
|
-
A typical flow is `hero-planning` → `hero-coding` → `hero-unit-test` and/or `hero-reviewing` → done. Invoke `hero-security` separately when
|
|
25
|
+
A typical flow is `hero-planning` → `hero-coding` → `hero-unit-test` and/or `hero-reviewing` → done. Start each stage explicitly, preferably in a fresh session. The plan contains implementation work only; coding implements it only; unit testing writes/runs tests only; reviewing conducts a fresh review and/or assesses supplied feedback without fixing code or running tests. Confirmed review items require explicit user approval before a later `hero-coding` correction session. Invoke `hero-security` or `hero-strict` separately when their assurance depth is wanted. Skip stages that do not fit the size of the change.
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
Choose review by source of truth, not merely by whether a git ref exists:
|
|
28
|
+
- Use `hero-reviewing` when an implementation should be assessed against a Hero plan or explicit acceptance criteria, or when supplied review feedback needs technical validation. It can inspect local, exact-commit, or explicit-base ref targets and may use one internal fresh reviewer without requiring another user-facing skill.
|
|
29
|
+
- Use `hero-mr-review` for a teammate's committed MR/ref assessed against MR intent, repository conventions, impact, and potential bugs. It always writes its standalone report.
|
|
28
30
|
|
|
29
|
-
`hero-planning`, `hero-coding`, `hero-reviewing`, and `hero-unit-test` are
|
|
31
|
+
`hero-planning`, `hero-coding`, `hero-reviewing`, and `hero-unit-test` are independent stages, not an automatic pipeline. Finishing one never triggers the next. Generic vendored skills and delegated agents must inherit the active Hero stage's exclusions; they must not broaden its responsibility.
|
|
30
32
|
|
|
31
33
|
## Report writing
|
|
32
34
|
|
|
@@ -34,7 +36,7 @@ A typical flow is `hero-planning` → `hero-coding` → `hero-unit-test` and/or
|
|
|
34
36
|
|
|
35
37
|
## Session state
|
|
36
38
|
|
|
37
|
-
`docs/ACTIVE_STATE.md`'s Active Features table is the single source of durable workflow state — there is no separate session pointer file. It's injected into context automatically at the start of a session.
|
|
39
|
+
`docs/ACTIVE_STATE.md`'s Active Features table is the single source of durable workflow state — there is no separate session pointer file. It's injected into context automatically at the start of a session. Update it only when a skill's contract calls for durable workflow metadata; read-only reviewing and test-only work must not create unrelated implementation changes merely to record progress.
|
|
38
40
|
|
|
39
41
|
Resuming work in a fresh session:
|
|
40
42
|
1. Check the injected Active Features context (or read `docs/ACTIVE_STATE.md` directly if it wasn't injected).
|
|
@@ -42,22 +44,23 @@ Resuming work in a fresh session:
|
|
|
42
44
|
|
|
43
45
|
## Related vendored skills
|
|
44
46
|
|
|
45
|
-
The
|
|
47
|
+
The kit also ships general-purpose technique skills: `brainstorming`, `executing-plans`, `test-driven-development`, `systematic-debugging`, `verification-before-completion`, `dispatching-parallel-agents`, `subagent-driven-development`, and `using-git-worktrees`. They remain available for direct use, but a Hero stage must not invoke a generic lifecycle whose mandatory actions cross that stage's hard boundary. `hero-planning`, `hero-coding`, `hero-reviewing`, `hero-unit-test`, and `hero-security` define their own stage contracts.
|
|
46
48
|
|
|
47
49
|
## Output Style
|
|
48
50
|
|
|
49
|
-
Hero workflow
|
|
51
|
+
Hero workflow outputs inherit the project-wide `Response Style` in `CLAUDE.md`. Apply it to chat summaries, progress updates, plans, and reports.
|
|
50
52
|
|
|
51
|
-
|
|
52
|
-
-
|
|
53
|
-
-
|
|
54
|
-
- Keep code, commands, API names,
|
|
55
|
-
-
|
|
56
|
-
-
|
|
53
|
+
Workflow-specific emphasis:
|
|
54
|
+
- Lead with the result or current status, then the evidence, then the next action or decision.
|
|
55
|
+
- Use plain wording in the user's language for prose and avoid unnecessary English code-switching.
|
|
56
|
+
- Keep code identifiers, commands, file paths, API names, configuration keys, exact errors, numbers, and necessary established technical terms verbatim. Do not translate technical tokens or invent awkward equivalents.
|
|
57
|
+
- Briefly explain a necessary specialized term in the user's language on first use.
|
|
58
|
+
- Make plans and reports actionable for their audience: use concrete labels and actions, identify targets or conditions where relevant, and explain unfamiliar acronyms.
|
|
59
|
+
- Be concise when the work is simple, but expand risks, blockers, uncertainty, destructive actions, production changes, and ambiguous multi-step instructions until the user can act safely.
|
|
57
60
|
|
|
58
61
|
## Rules
|
|
59
62
|
|
|
60
63
|
- Don't run heavy ceremony for small tasks — a Tiny fix (typo, trivial config) can go straight to `hero-coding` with no plan artifact.
|
|
61
64
|
- Don't claim work is done without the relevant skill's Definition of Done being met.
|
|
62
65
|
- Keep `docs/ACTIVE_STATE.md` as the durable index — link to artifacts, don't duplicate their content there.
|
|
63
|
-
- Write artifact updates
|
|
66
|
+
- Write artifact updates using the Output Style above: concise where safe, complete where clarity requires it, with all evidence and technical facts preserved.
|
package/templates/AGENTS.md.tmpl
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# Agent Instructions
|
|
2
|
-
|
|
3
|
-
> This is a human-led Claude Code workflow: the developer decides what to work on and invokes the relevant skill directly. Use `using-hero` for the overview when it's unclear which skill applies next.
|
|
4
|
-
|
|
5
|
-
Core Hero skills: `hero-planning`, `hero-coding`, `hero-reviewing`, `hero-unit-test`, `hero-security`, `hero-strict`.
|
|
6
|
-
|
|
7
|
-
Minimum non-negotiables:
|
|
8
|
-
1. Use `using-hero` to pick the right skill; don't run heavy process for small tasks.
|
|
9
|
-
2. **Resume (fast path):** read `.hero-mmt-kit/session.json` first → then the `resumePath` it names → then the latest artifact. Read [ACTIVE_STATE](docs/ACTIVE_STATE.md) only to switch work items or when session is blank/stale.
|
|
10
|
-
3. Use Plan Mode for risky or hard-to-reverse changes before editing.
|
|
11
|
-
4. Read only the docs the current skill needs; avoid loading unrelated context.
|
|
12
|
-
5. Framework instructions, skills, rules, and templates are English-only; respond to the user in the same language they use in chat unless they request another language.
|
|
13
|
-
6. Do not bypass hooks, checks, or verification.
|
|
14
|
-
7. Use GitNexus for impact/context analysis on non-trivial code changes when available.
|
|
15
|
-
8. Sub-agent delegation is optional, not automatic — use it for research and review when it helps; not every task needs one. Don't hardcode model IDs.
|
|
16
|
-
9. Keep outputs concise: findings, decisions, risks, next steps.
|