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
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,37 @@ Notable changes to `hero-mmt-kit` are documented here from `1.0.0` onward.
|
|
|
4
4
|
|
|
5
5
|
Format follows [Keep a Changelog](https://keepachangelog.com/); versioning follows [SemVer](https://semver.org/).
|
|
6
6
|
|
|
7
|
+
## [Unreleased]
|
|
8
|
+
|
|
9
|
+
## [1.2.0] - 2026-09-19
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
- User-facing replies and artifacts now follow a clearer multilingual communication policy: use the user's language consistently, avoid unnecessary English code-switching, preserve exact technical tokens, explain necessary specialized terms on first use, and prioritize clarity, completeness, safety, and honesty over forced brevity.
|
|
14
|
+
- Hero chat summaries, progress updates, plans, and reports now lead with the result or current status, provide supporting evidence, and end with the next action or decision. Regression tests enforce the policy in both source skills and generated consumer guidance.
|
|
15
|
+
- `hero-planning` now owns requirements discovery, brainstorming, implementation design, requirement-to-task coverage, and plan writing in one self-contained skill.
|
|
16
|
+
- Planning artifacts now contain implementation tasks only. Testing, verification, review, security review, deployment, release, and commit activities are left to independent later sessions.
|
|
17
|
+
- `brainstorming`, execution skills, workflow docs, and installer metadata now hand off to `hero-planning` without chaining a separate plan-writing skill.
|
|
18
|
+
- `init` and `update` remove the retired framework-managed `writing-plans` directory from existing consumer installations so stale execution-handoff behavior cannot remain active.
|
|
19
|
+
- `hero-coding` is now implementation-only: it tracks plan tasks and requirement coverage but does not write/run tests, verify, self-review, deploy, or perform git delivery actions.
|
|
20
|
+
- `hero-reviewing` is now the single read-only code-review entry point: it conducts a plan-backed fresh review, technically assesses supplied review feedback, or explicitly does both, with optional internal fresh-review delegation and evidence-checked findings.
|
|
21
|
+
- Confirmed review findings remain unapproved until the user approves exact IDs; `hero-coding` may implement only those approved correction IDs in a later implementation-only session and cannot evaluate or select feedback itself.
|
|
22
|
+
- `init` and `update` remove the retired framework-managed `requesting-code-review` and `receiving-code-review` directories so existing installations no longer expose three competing review entry points.
|
|
23
|
+
- `hero-unit-test` is now post-implementation-only: it derives expected behavior from the plan, changes test-only files, runs unit tests, reports actual results, and hands production mismatches back to `hero-coding`.
|
|
24
|
+
- Hero stage routing, report contracts, manifest metadata, generated Serena guidance, and regression tests now enforce the separation between implementation, review, unit testing, and strict verification.
|
|
25
|
+
|
|
26
|
+
### Removed
|
|
27
|
+
|
|
28
|
+
- The standalone vendored `writing-plans` skill and its plan-reviewer prompt. Applicable MIT-licensed plan-structuring guidance is now adapted inside `hero-planning` with attribution in `templates/skills/NOTICE`.
|
|
29
|
+
- The standalone vendored `requesting-code-review` and `receiving-code-review` skills plus the duplicate reviewer prompt. Applicable MIT-licensed review-request and feedback-assessment methodology is now adapted inside `hero-reviewing` with attribution in `templates/skills/NOTICE`.
|
|
30
|
+
|
|
31
|
+
## [1.1.6] - 2026-07-27
|
|
32
|
+
|
|
33
|
+
### Changed
|
|
34
|
+
|
|
35
|
+
- Merge `AGENT.md` and `CLAUDE.md`.
|
|
36
|
+
- Added to `CLAUDE.md` git and plan mode guards.
|
|
37
|
+
|
|
7
38
|
## [1.1.4] - 2026-07-20
|
|
8
39
|
|
|
9
40
|
### Added
|
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
`hero-mmt-kit` is **documentation + direct-use skills + soft hooks + a zero-dependency CLI**. It does not route work automatically, enforce phases, or block normal development flow.
|
|
10
10
|
|
|
11
|
-
- **Seven operative skills** (`hero-planning`, `hero-coding`, `hero-reviewing`, `hero-unit-test`, `hero-security`, `hero-mr-review`, `hero-strict`) covering the lifecycle of a change,
|
|
11
|
+
- **Seven operative skills** (`hero-planning`, `hero-coding`, `hero-reviewing`, `hero-unit-test`, `hero-security`, `hero-mr-review`, `hero-strict`) covering the lifecycle of a change. They define Hero-native stage contracts and, where useful, incorporate attributed methodology from proven vendored techniques. Each phase is done on its own — finishing one never auto-triggers the next.
|
|
12
12
|
- **Report writing is on-demand** — `hero-coding`/`hero-reviewing`/`hero-unit-test` end with a concise chat summary; a written report is only produced when asked, via the separate `hero-report` skill.
|
|
13
13
|
- **No router, no gates** — there is no task-classification doc and no hard PreToolUse enforcement. `using-hero` is a map, not a controller.
|
|
14
14
|
- **Soft hooks only** — `git-guard` blocks a small set of genuinely dangerous git commands and reminds (never blocks) on ordinary commits; `stop-reminder` nudges you to update state when you stop with uncommitted changes; `active-state-bridge` injects `docs/ACTIVE_STATE.md` into context once per session start.
|
|
@@ -68,23 +68,25 @@ Invoke `using-hero` first for an overview — it explains which skill applies ne
|
|
|
68
68
|
|
|
69
69
|
| Skill | Use when | Artifact / report |
|
|
70
70
|
|---|---|---|
|
|
71
|
-
| `hero-planning` |
|
|
72
|
-
| `hero-coding` | Implementing an approved plan
|
|
73
|
-
| `hero-reviewing` |
|
|
74
|
-
| `hero-unit-test` |
|
|
71
|
+
| `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 |
|
|
72
|
+
| `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 |
|
|
73
|
+
| `hero-reviewing` | Single read-only entry point for a fresh implementation review, technical assessment of supplied feedback, or an explicit combination of both. | `docs/reviews/YYYY-MM-DD-slug.md` — on request |
|
|
74
|
+
| `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 |
|
|
75
75
|
| `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. |
|
|
76
|
-
| `hero-mr-review` | Reviewing a teammate's
|
|
77
|
-
| `hero-strict` | Extra rigor wanted before a "done" claim
|
|
76
|
+
| `hero-mr-review` | Reviewing a teammate's committed MR/ref against MR intent and repository conventions. | `docs/mr-reviews/YYYY-MM-DD-slug.md` — always written. |
|
|
77
|
+
| `hero-strict` | Extra rigor wanted in a separate full verification session before a "done" claim. | Appends to the current report, if one exists/was requested. |
|
|
78
78
|
|
|
79
|
-
A typical flow is `hero-planning` → `hero-coding` → `hero-unit-test` and/or `hero-reviewing` → (`hero-security`
|
|
79
|
+
A typical flow is `hero-planning` → `hero-coding` → `hero-unit-test` and/or `hero-reviewing` → (`hero-security` or `hero-strict` when wanted) → done. Start each stage explicitly, preferably in a fresh session: planning defines implementation work; coding implements and tracks 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 findings require explicit user approval before a later `hero-coding` correction session. Skip stages that do not fit the change. There is no automatic full-pipeline run.
|
|
80
|
+
|
|
81
|
+
Choose review by source of truth. `hero-reviewing` is the one entry point for comparing a local or committed implementation with its Hero plan or explicit acceptance criteria and for validating supplied review feedback; optional fresh-review delegation happens internally. `hero-mr-review` sits outside that flow and reviews a teammate's committed MR range against MR intent, repository conventions, impact, and potential bugs.
|
|
80
82
|
|
|
81
83
|
`hero-coding`, `hero-reviewing`, and `hero-unit-test` don't write a report file by default — they end with a concise chat summary. An eighth, on-demand skill, `hero-report`, writes those report files when the user actually wants one, at the path convention the source skill defines. `hero-security` and `hero-mr-review` are the exceptions: both are independent flows that always write their own standalone report (`docs/security-reports/...` and `docs/mr-reviews/...` respectively).
|
|
82
84
|
|
|
83
|
-
|
|
85
|
+
The kit also ships general-purpose vendored technique skills: `brainstorming`, `executing-plans`, `test-driven-development`, `systematic-debugging`, `verification-before-completion`, `dispatching-parallel-agents`, `subagent-driven-development`, `using-git-worktrees`. They remain available for direct use, but their broader lifecycles must not override a Hero stage's hard boundary. All are bundled under `templates/skills/` and installed unconditionally into `.claude/skills/`, with attribution in `templates/skills/NOTICE`.
|
|
84
86
|
|
|
85
87
|
## Session state
|
|
86
88
|
|
|
87
|
-
`docs/ACTIVE_STATE.md`'s Active Features table is the single source of durable workflow state — there is no separate session pointer file.
|
|
89
|
+
`docs/ACTIVE_STATE.md`'s Active Features table is the single source of durable workflow state — there is no separate session pointer file. Skills update it only when their contract needs durable workflow metadata; read-only review and test-only work do not create unrelated implementation changes merely to record progress. The `active-state-bridge` hook injects it into context automatically at the start of a session, so resuming usually needs no extra reading — otherwise, read `docs/ACTIVE_STATE.md` directly.
|
|
88
90
|
|
|
89
91
|
## Commands
|
|
90
92
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hero-mmt-kit",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "A focused Claude Code framework for human-led development — seven direct-use skills (planning, coding, reviewing, unit testing, security, MR review, strict mode) plus an on-demand report writer, with simple state tracking. Works for new and existing (brownfield) projects.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"claude-code",
|
package/skills.manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$comment": "Skills the hero-mmt-kit workflow references. The `process` core skills are bundled under templates/skills/ and installed by init/update into .claude/skills/. Concise reporting principles are integrated directly into the hero-* workflow skills rather than shipped as a standalone optional skill.
|
|
2
|
+
"$comment": "Skills the hero-mmt-kit workflow references. The `process` core skills are bundled under templates/skills/ and installed by init/update into .claude/skills/. Concise reporting principles are integrated directly into the hero-* workflow skills rather than shipped as a standalone optional skill. Vendored technique skills are curated, lightly trimmed MIT-licensed copies from obra/superpowers; the hero-* skills plus using-hero are authored by hero-mmt-kit and may incorporate attributed MIT methodology (attribution: templates/skills/NOTICE). Design/taste skills are NOT bundled — they are referenced here and installed via the `skills` CLI from their ORIGINAL sources when the user opts into the taste/design skill.",
|
|
3
3
|
"schema": 1,
|
|
4
4
|
"installer": "skills",
|
|
5
5
|
"groups": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"bundled": true,
|
|
9
9
|
"source": "mixed",
|
|
10
10
|
"license": "MIT for obra/superpowers skills; hero-mmt-kit authored for the hero-* skills and using-hero",
|
|
11
|
-
"description": "Core process skills the workflow invokes by name. Bundled under templates/skills/ and installed into .claude/skills/ by init/update. The hero-* skills are the primary developer-facing interface
|
|
11
|
+
"description": "Core process skills the workflow invokes by name. Bundled under templates/skills/ and installed into .claude/skills/ by init/update. The hero-* skills are the primary developer-facing interface and define narrow stage contracts; broader vendored techniques remain available but must not override those boundaries (attribution in templates/skills/NOTICE).",
|
|
12
12
|
"selection": {
|
|
13
13
|
"mode": "all",
|
|
14
14
|
"deriveFrom": [],
|
|
@@ -19,20 +19,17 @@
|
|
|
19
19
|
{ "name": "using-superpowers", "source": "obra/superpowers" },
|
|
20
20
|
{ "name": "using-hero", "source": "hero-mmt-kit", "description": "Overview and router for the hero-* skills — explains which skill to invoke next and how workflow state carries across sessions." },
|
|
21
21
|
{ "name": "brainstorming", "source": "obra/superpowers" },
|
|
22
|
-
{ "name": "writing-plans", "source": "obra/superpowers" },
|
|
23
22
|
{ "name": "executing-plans", "source": "obra/superpowers" },
|
|
24
23
|
{ "name": "test-driven-development", "source": "obra/superpowers" },
|
|
25
24
|
{ "name": "systematic-debugging", "source": "obra/superpowers" },
|
|
26
25
|
{ "name": "verification-before-completion", "source": "obra/superpowers" },
|
|
27
|
-
{ "name": "requesting-code-review", "source": "obra/superpowers" },
|
|
28
|
-
{ "name": "receiving-code-review", "source": "obra/superpowers" },
|
|
29
26
|
{ "name": "dispatching-parallel-agents", "source": "obra/superpowers" },
|
|
30
27
|
{ "name": "subagent-driven-development", "source": "obra/superpowers" },
|
|
31
28
|
{ "name": "using-git-worktrees", "source": "obra/superpowers" },
|
|
32
|
-
{ "name": "hero-planning", "source": "hero-mmt-kit", "description": "
|
|
33
|
-
{ "name": "hero-coding", "source": "hero-mmt-kit", "description": "Implement an approved plan
|
|
34
|
-
{ "name": "hero-reviewing", "source": "hero-mmt-kit", "description": "
|
|
35
|
-
{ "name": "hero-unit-test", "source": "hero-mmt-kit", "description": "
|
|
29
|
+
{ "name": "hero-planning", "source": "hero-mmt-kit", "description": "Clarify requirements through analysis and brainstorming, then write an implementation-only plan with requirement-to-task coverage." },
|
|
30
|
+
{ "name": "hero-coding", "source": "hero-mmt-kit", "description": "Implement and track every requirement/task in an approved plan or small bounded request; no testing or self-review." },
|
|
31
|
+
{ "name": "hero-reviewing", "source": "hero-mmt-kit", "description": "Conduct a plan-backed, read-only review, assess supplied review feedback, or explicitly do both without applying fixes." },
|
|
32
|
+
{ "name": "hero-unit-test", "source": "hero-mmt-kit", "description": "Write and run post-implementation unit tests from approved requirements without changing production code." },
|
|
36
33
|
{ "name": "hero-security", "source": "hero-mmt-kit", "description": "Run an independent OWASP + AI/LLM security review and write a standalone security report." },
|
|
37
34
|
{ "name": "hero-mr-review", "source": "hero-mmt-kit", "description": "Review a teammate's merge request by commit/tag/branch and write a standalone MR review report." },
|
|
38
35
|
{ "name": "hero-strict", "source": "hero-mmt-kit", "description": "Opt-in full verification pass before a \"done\" claim." },
|
package/src/init.cjs
CHANGED
|
@@ -51,9 +51,7 @@ async function init(opts) {
|
|
|
51
51
|
|
|
52
52
|
// ---- 2. CLAUDE.md / AGENTS.md managed block ----
|
|
53
53
|
const claudeInner = renderString(fs.readFileSync(path.join(templates, 'CLAUDE.md.tmpl'), 'utf8'), vars);
|
|
54
|
-
const agentsInner = renderString(fs.readFileSync(path.join(templates, 'AGENTS.md.tmpl'), 'utf8'), vars);
|
|
55
54
|
log.ok(`CLAUDE.md: ${mergeManagedBlock(path.join(target, 'CLAUDE.md'), claudeInner, 'Project')}`);
|
|
56
|
-
log.ok(`AGENTS.md: ${mergeManagedBlock(path.join(target, 'AGENTS.md'), agentsInner, null)}`);
|
|
57
55
|
|
|
58
56
|
// ---- 3. Claude Code hooks + settings ----
|
|
59
57
|
ensureDir(path.join(target, '.claude', 'hooks'));
|
package/src/integrations.cjs
CHANGED
|
@@ -26,8 +26,8 @@ function runCmd(cmd, args, cwd) {
|
|
|
26
26
|
const SERENA_MEMOS = {
|
|
27
27
|
'hero_workflow.md':
|
|
28
28
|
'Human-led Claude Code workflow (hero-mmt-kit). Use the **using-hero** skill for the overview.\n\n' +
|
|
29
|
-
'Core skills: hero-planning (plan
|
|
30
|
-
'hero-
|
|
29
|
+
'Core skills: hero-planning (implementation-only plan), hero-coding (implementation and requirement tracking only), ' +
|
|
30
|
+
'hero-reviewing (read-only review and supplied-feedback assessment), hero-unit-test (post-implementation unit tests only), ' +
|
|
31
31
|
'hero-mr-review (standalone review of a teammate\'s MR by commit/tag/branch), ' +
|
|
32
32
|
'hero-strict (opt-in full verification pass before a "done" claim).\n\n' +
|
|
33
33
|
'Session state: docs/ACTIVE_STATE.md\'s Active Features table (the single source of durable workflow state).\n\n' +
|
|
@@ -35,11 +35,11 @@ const SERENA_MEMOS = {
|
|
|
35
35
|
'docs/PERFORMANCE_STANDARDS.md.\n',
|
|
36
36
|
'delegation_rules.md':
|
|
37
37
|
'Sub-agent delegation is optional, not automatic.\n\n' +
|
|
38
|
-
'Summary: sub-agents are best as context-collectors
|
|
39
|
-
'Delegating implementation
|
|
40
|
-
'
|
|
41
|
-
'
|
|
42
|
-
'
|
|
38
|
+
'Summary: sub-agents are best as context-collectors for research/exploration and as independent read-only reviewers. ' +
|
|
39
|
+
'Delegating implementation is OPTIONAL and must keep one writing agent active per shared worktree. ' +
|
|
40
|
+
'Every delegated prompt must be SELF-CONTAINED and inherit the active Hero stage boundary: coding cannot add tests/review, ' +
|
|
41
|
+
'reviewing cannot write/fix/run verification, and unit testing cannot modify production code. Include the plan/target, ' +
|
|
42
|
+
'allowed files/actions, exclusions, and Definition of Done; use isolation: "worktree" for overlapping edits.\n',
|
|
43
43
|
};
|
|
44
44
|
|
|
45
45
|
async function run(ctx) {
|
package/src/skills.cjs
CHANGED
|
@@ -7,13 +7,10 @@ const CORE_SKILL_ORDER = [
|
|
|
7
7
|
'using-superpowers',
|
|
8
8
|
'using-hero',
|
|
9
9
|
'brainstorming',
|
|
10
|
-
'writing-plans',
|
|
11
10
|
'executing-plans',
|
|
12
11
|
'test-driven-development',
|
|
13
12
|
'systematic-debugging',
|
|
14
13
|
'verification-before-completion',
|
|
15
|
-
'requesting-code-review',
|
|
16
|
-
'receiving-code-review',
|
|
17
14
|
'dispatching-parallel-agents',
|
|
18
15
|
'subagent-driven-development',
|
|
19
16
|
'using-git-worktrees',
|
|
@@ -27,6 +24,14 @@ const CORE_SKILL_ORDER = [
|
|
|
27
24
|
'hero-report',
|
|
28
25
|
];
|
|
29
26
|
|
|
27
|
+
// Framework-managed skill directories retired by a newer bundled workflow.
|
|
28
|
+
// Remove these during init/update so old installs cannot keep invoking stale behavior.
|
|
29
|
+
const RETIRED_CORE_SKILLS = [
|
|
30
|
+
'writing-plans',
|
|
31
|
+
'requesting-code-review',
|
|
32
|
+
'receiving-code-review',
|
|
33
|
+
];
|
|
34
|
+
|
|
30
35
|
function uniqueCoreSkills(names) {
|
|
31
36
|
const allowed = new Set(CORE_SKILL_ORDER);
|
|
32
37
|
const selected = new Set();
|
|
@@ -62,9 +67,9 @@ function sourceEntries(src, selectedSkills) {
|
|
|
62
67
|
}
|
|
63
68
|
|
|
64
69
|
// Install vendored core skills (templates/skills/<name>/) into the consumer's
|
|
65
|
-
// .claude/skills/ dir. Framework-managed:
|
|
66
|
-
//
|
|
67
|
-
// user-added skill dirs outside the framework-managed process suite.
|
|
70
|
+
// .claude/skills/ dir. Framework-managed: overwrites requested framework skill
|
|
71
|
+
// dirs and the NOTICE file, removes explicitly retired framework skills, but never
|
|
72
|
+
// deletes user-added skill dirs outside the framework-managed process suite.
|
|
68
73
|
function installSkills(pkgRoot, target, opts) {
|
|
69
74
|
opts = opts || {};
|
|
70
75
|
const src = path.join(pkgRoot, 'templates', 'skills');
|
|
@@ -83,6 +88,10 @@ function installSkills(pkgRoot, target, opts) {
|
|
|
83
88
|
|
|
84
89
|
for (const rel of destinations) {
|
|
85
90
|
const dstRoot = path.join(target, rel);
|
|
91
|
+
for (const name of RETIRED_CORE_SKILLS) {
|
|
92
|
+
const retiredDir = path.join(dstRoot, name);
|
|
93
|
+
if (exists(retiredDir)) fs.rmSync(retiredDir, { recursive: true, force: true });
|
|
94
|
+
}
|
|
86
95
|
for (const entry of sourceEntries(src, selectedSkills)) {
|
|
87
96
|
if (entry.isDirectory()) {
|
|
88
97
|
const dstDir = path.join(dstRoot, entry.name);
|
package/src/update.cjs
CHANGED
|
@@ -40,9 +40,7 @@ async function update(opts) {
|
|
|
40
40
|
|
|
41
41
|
// Managed blocks (content outside markers preserved)
|
|
42
42
|
const claudeInner = renderString(fs.readFileSync(path.join(templates, 'CLAUDE.md.tmpl'), 'utf8'), vars);
|
|
43
|
-
const agentsInner = renderString(fs.readFileSync(path.join(templates, 'AGENTS.md.tmpl'), 'utf8'), vars);
|
|
44
43
|
log.ok(`CLAUDE.md: ${mergeManagedBlock(path.join(target, 'CLAUDE.md'), claudeInner, 'Project')}`);
|
|
45
|
-
log.ok(`AGENTS.md: ${mergeManagedBlock(path.join(target, 'AGENTS.md'), agentsInner, null)}`);
|
|
46
44
|
|
|
47
45
|
ensureDir(path.join(target, '.claude', 'hooks'));
|
|
48
46
|
for (const h of ['git-guard.cjs', 'stop-reminder.cjs', 'active-state-bridge.cjs']) {
|
package/templates/CLAUDE.md.tmpl
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
> This is a human-led Claude Code workflow: you (the developer) decide what to work on and invoke the relevant skill directly. There is no router doc and no hard gate — use `using-hero` for the overview when it's unclear which skill applies next.
|
|
4
4
|
|
|
5
5
|
Core Hero skills:
|
|
6
|
-
- `hero-planning` — turn a request into an agreed,
|
|
7
|
-
- `hero-coding` — implement
|
|
8
|
-
- `hero-reviewing` — fresh-
|
|
9
|
-
- `hero-unit-test` —
|
|
6
|
+
- `hero-planning` — turn a request into an agreed, implementation-only plan before code changes.
|
|
7
|
+
- `hero-coding` — implement and track every approved requirement/task; no testing or self-review.
|
|
8
|
+
- `hero-reviewing` — single read-only entry point for a fresh plan-backed review and/or technical assessment of supplied review feedback.
|
|
9
|
+
- `hero-unit-test` — write and run post-implementation unit tests without changing production code.
|
|
10
10
|
- `hero-security` — standalone OWASP + AI/LLM security review when you want a dedicated security pass.
|
|
11
|
-
- `hero-strict` — opt-in full verification pass before a "done" claim.
|
|
11
|
+
- `hero-strict` — opt-in, separate full verification pass before a "done" claim.
|
|
12
12
|
|
|
13
13
|
### Context loading
|
|
14
14
|
- **Resume (fast path):** read `.hero-mmt-kit/session.json` first → then the `resumePath` it names → then the latest artifact only if needed. Read [ACTIVE_STATE](docs/ACTIVE_STATE.md) only to switch work items or when session is blank/stale.
|
|
@@ -16,8 +16,40 @@ Core Hero skills:
|
|
|
16
16
|
|
|
17
17
|
### Non-negotiables
|
|
18
18
|
- **Gates:** for risky or hard-to-reverse changes, use Plan Mode (`EnterPlanMode` → `ExitPlanMode`) for real sign-off — not a prose promise.
|
|
19
|
+
- **Plan Mode:** do not enter Plan Mode unless the user explicitly requests planning. When they do, invoke `hero-planning`.
|
|
20
|
+
- **Git:** do not check out a branch, commit, or merge unless the user explicitly requests it.
|
|
19
21
|
- **Enforcement:** hooks installed under `.claude/` — `git-guard` (PreToolUse on Bash), `session-bridge` (PostToolUse), `stop-reminder` (Stop). Don't bypass them.
|
|
20
22
|
- **GitNexus (if installed):** skip on empty repos; use impact/context analysis for non-trivial code changes and stale-index checks.
|
|
21
23
|
- **Skills (if installed):** invoke relevant process skills via the `Skill` tool; do not load unrelated skill/docs context.
|
|
22
|
-
- **Language:** framework instructions, skills, rules, and templates
|
|
24
|
+
- **Language:** framework instructions, skills, rules, and templates remain English-only. User-facing replies and artifacts must use the user's language unless they request another language.
|
|
23
25
|
- **Sub-agent delegation is optional, not automatic.** Sub-agents are best for research and review; use one when it helps, and skip it when direct work is clearer. Don't hardcode model IDs — let the harness resolve the active model.
|
|
26
|
+
|
|
27
|
+
## Response Style
|
|
28
|
+
|
|
29
|
+
### Language and terminology
|
|
30
|
+
|
|
31
|
+
- Use the user's language consistently for explanations and prose.
|
|
32
|
+
- Keep code identifiers, commands, file paths, API names, configuration keys, and exact error messages verbatim.
|
|
33
|
+
- Keep an established technical term in its standard form when translating it would be inaccurate or awkward; briefly explain it in the user's language on first use.
|
|
34
|
+
- Do not translate technical tokens or invent awkward equivalents. Avoid unnecessary English code-switching in non-English prose.
|
|
35
|
+
|
|
36
|
+
### Clarity and audience
|
|
37
|
+
|
|
38
|
+
- Prefer plain, familiar wording and complete sentences.
|
|
39
|
+
- Do not assume technical expertise beyond what the conversation establishes.
|
|
40
|
+
- Include enough context for the user to understand the result, make a decision, and act safely.
|
|
41
|
+
- Expand an unfamiliar acronym on first use unless it is already established in the conversation.
|
|
42
|
+
|
|
43
|
+
### Structure
|
|
44
|
+
|
|
45
|
+
- For substantive output, lead with the conclusion or current status, follow with key facts or evidence, and end with the next action, decision, or a clear statement that none is needed.
|
|
46
|
+
- Use headings, lists, tables, and compact notation only when they improve scanning.
|
|
47
|
+
- Make plans and reports actionable: use concrete actions, targets, conditions, owners, and evidence where relevant; avoid vague labels such as "handle appropriately."
|
|
48
|
+
|
|
49
|
+
### Brevity and completeness
|
|
50
|
+
|
|
51
|
+
- Match the level of detail to the task's complexity.
|
|
52
|
+
- Keep simple answers concise, but do not impose a fixed line count.
|
|
53
|
+
- Remove filler and repetition, not context required to understand, decide, or act.
|
|
54
|
+
- Clarity, completeness, safety, and honesty outrank terseness.
|
|
55
|
+
- Fully explain risks, blockers, uncertainty, destructive or irreversible actions, production changes, and consequential decisions.
|
package/templates/skills/NOTICE
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Vendored skills — attribution
|
|
2
2
|
==============================
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
trimmed copy) from:
|
|
4
|
+
Several core process skills under this directory are vendored (a curated,
|
|
5
|
+
lightly trimmed copy) from:
|
|
6
6
|
|
|
7
7
|
superpowers — https://github.com/obra/superpowers
|
|
8
8
|
Copyright (c) obra (Jesse Vincent) and contributors
|
|
@@ -14,15 +14,33 @@ was kept; authoring/meta/test files and non–Claude-Code tool references were
|
|
|
14
14
|
removed. Skill methodology is unchanged.
|
|
15
15
|
|
|
16
16
|
Vendored skills from obra/superpowers:
|
|
17
|
-
brainstorming,
|
|
18
|
-
systematic-debugging, verification-before-completion,
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
brainstorming, executing-plans, test-driven-development,
|
|
18
|
+
systematic-debugging, verification-before-completion,
|
|
19
|
+
dispatching-parallel-agents, subagent-driven-development,
|
|
20
|
+
using-git-worktrees, using-superpowers
|
|
21
21
|
|
|
22
22
|
Note: finishing-a-development-branch was vendored previously but has been
|
|
23
23
|
dropped — hero-mmt-kit intentionally does not automate merge/PR/branch-cleanup
|
|
24
24
|
decisions; those stay with the human.
|
|
25
25
|
|
|
26
|
+
Note on hero-planning: this hero-mmt-kit-authored skill incorporates adapted
|
|
27
|
+
plan-structuring methodology from obra/superpowers' former writing-plans skill,
|
|
28
|
+
including change-surface mapping, task decomposition, actionable task structure,
|
|
29
|
+
and placeholder avoidance. That adapted methodology remains under MIT. The
|
|
30
|
+
requirements ledger, requirement-to-task coverage model, implementation-only
|
|
31
|
+
boundary, and human-controlled cross-session handoff are hero-mmt-kit design
|
|
32
|
+
choices.
|
|
33
|
+
|
|
34
|
+
Note on hero-reviewing: this hero-mmt-kit-authored skill incorporates adapted
|
|
35
|
+
methodology from obra/superpowers' former requesting-code-review and
|
|
36
|
+
receiving-code-review skills, including fresh reviewer context, evidence-first
|
|
37
|
+
review, technical evaluation before accepting feedback, severity calibration,
|
|
38
|
+
compatibility checks, scope/YAGNI checks, and evidence-based pushback. That
|
|
39
|
+
adapted methodology remains under MIT. The read-only stage boundary, explicit
|
|
40
|
+
local/commit/ref target model, four-way feedback classification, parent
|
|
41
|
+
validation of delegated findings, and user-approved cross-session correction
|
|
42
|
+
handoff are hero-mmt-kit design choices.
|
|
43
|
+
|
|
26
44
|
Note on subagent-driven-development: this skill received a selective backport of
|
|
27
45
|
newer upstream additions (durable progress ledger, task-brief/review-package
|
|
28
46
|
scripts, explicit model-selection discipline, reviewer anti-pre-judging guidance)
|
|
@@ -41,7 +59,7 @@ under MIT.
|
|
|
41
59
|
|
|
42
60
|
Framework-authored skills shipped by hero-mmt-kit:
|
|
43
61
|
using-hero, hero-planning, hero-coding, hero-reviewing,
|
|
44
|
-
hero-unit-test, hero-security, hero-strict, hero-report
|
|
62
|
+
hero-unit-test, hero-security, hero-mr-review, hero-strict, hero-report
|
|
45
63
|
|
|
46
64
|
Design / visual-direction skills are NOT vendored — they are referenced in
|
|
47
65
|
skills.manifest.json and installed from their original sources on demand.
|
|
@@ -29,7 +29,7 @@ You MUST create a task for each of these items and complete them in order:
|
|
|
29
29
|
6. **Write design doc** — save to `docs/superpowers/specs/YYYY-MM-DD-<topic>-design.md` and commit
|
|
30
30
|
7. **Spec self-review** — quick inline check for placeholders, contradictions, ambiguity, scope (see below)
|
|
31
31
|
8. **User reviews written spec** — ask user to review the spec file before proceeding
|
|
32
|
-
9. **
|
|
32
|
+
9. **Stop after the approved design** — the human may start `hero-planning` in a later session; do not invoke it automatically.
|
|
33
33
|
|
|
34
34
|
## Process Flow
|
|
35
35
|
|
|
@@ -43,7 +43,7 @@ digraph brainstorming {
|
|
|
43
43
|
"Write design doc" [shape=box];
|
|
44
44
|
"Spec self-review\n(fix inline)" [shape=box];
|
|
45
45
|
"User reviews spec?" [shape=diamond];
|
|
46
|
-
"
|
|
46
|
+
"Stop after approved spec" [shape=doublecircle];
|
|
47
47
|
|
|
48
48
|
"Explore project context" -> "Ask clarifying questions";
|
|
49
49
|
"Ask clarifying questions" -> "Propose 2-3 approaches";
|
|
@@ -54,11 +54,11 @@ digraph brainstorming {
|
|
|
54
54
|
"Write design doc" -> "Spec self-review\n(fix inline)";
|
|
55
55
|
"Spec self-review\n(fix inline)" -> "User reviews spec?";
|
|
56
56
|
"User reviews spec?" -> "Write design doc" [label="changes requested"];
|
|
57
|
-
"User reviews spec?" -> "
|
|
57
|
+
"User reviews spec?" -> "Stop after approved spec" [label="approved"];
|
|
58
58
|
}
|
|
59
59
|
```
|
|
60
60
|
|
|
61
|
-
**The terminal state is
|
|
61
|
+
**The terminal state is a saved, user-approved design and a stop.** Do not invoke `hero-planning`, frontend-design, mcp-builder, or any implementation skill automatically. The human decides when to start the next stage, preferably in a later session.
|
|
62
62
|
|
|
63
63
|
## The Process
|
|
64
64
|
|
|
@@ -127,10 +127,10 @@ After the spec review loop passes, ask the user to review the written spec befor
|
|
|
127
127
|
|
|
128
128
|
Wait for the user's response. If they request changes, make them and re-run the spec review loop. Only proceed once the user approves.
|
|
129
129
|
|
|
130
|
-
**
|
|
130
|
+
**Planning handoff:**
|
|
131
131
|
|
|
132
|
-
-
|
|
133
|
-
- Do
|
|
132
|
+
- When the human later requests an implementation plan, invoke `hero-planning` with the approved design as an input.
|
|
133
|
+
- Do not start planning or implementation automatically from this skill.
|
|
134
134
|
|
|
135
135
|
## Key Principles
|
|
136
136
|
|
|
@@ -68,4 +68,4 @@ After all tasks complete and verified:
|
|
|
68
68
|
|
|
69
69
|
**Required workflow skills:**
|
|
70
70
|
- **superpowers:using-git-worktrees** - Ensures isolated workspace (creates one or verifies existing)
|
|
71
|
-
- **
|
|
71
|
+
- **hero-planning** - Creates the implementation-only plan this skill executes
|