hero-mmt-kit 1.1.6 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/README.md +19 -13
  3. package/package.json +2 -2
  4. package/skills.manifest.json +8 -9
  5. package/src/integrations.cjs +9 -7
  6. package/src/skills.cjs +17 -6
  7. package/templates/CLAUDE.md.tmpl +30 -42
  8. package/templates/skills/NOTICE +26 -8
  9. package/templates/skills/brainstorming/SKILL.md +9 -9
  10. package/templates/skills/executing-plans/SKILL.md +1 -1
  11. package/templates/skills/hero-coding/SKILL.md +148 -69
  12. package/templates/skills/hero-gitflow/SKILL.md +61 -0
  13. package/templates/skills/hero-mr-review/SKILL.md +3 -3
  14. package/templates/skills/hero-node/SKILL.md +177 -0
  15. package/templates/skills/hero-planning/SKILL.md +281 -59
  16. package/templates/skills/hero-report/SKILL.md +5 -2
  17. package/templates/skills/hero-reviewing/SKILL.md +322 -69
  18. package/templates/skills/hero-strict/SKILL.md +4 -4
  19. package/templates/skills/hero-unit-test/SKILL.md +128 -78
  20. package/templates/skills/subagent-driven-development/SKILL.md +22 -9
  21. package/templates/skills/subagent-driven-development/code-quality-reviewer-prompt.md +34 -34
  22. package/templates/skills/subagent-driven-development/implementer-prompt.md +4 -5
  23. package/templates/skills/subagent-driven-development/scripts/sdd-workspace.sh +9 -10
  24. package/templates/skills/subagent-driven-development/scripts/task-brief.sh +1 -1
  25. package/templates/skills/using-git-worktrees/SKILL.md +7 -5
  26. package/templates/skills/using-hero/SKILL.md +27 -19
  27. package/templates/skills/receiving-code-review/SKILL.md +0 -213
  28. package/templates/skills/requesting-code-review/SKILL.md +0 -108
  29. package/templates/skills/requesting-code-review/code-reviewer.md +0 -168
  30. package/templates/skills/writing-plans/SKILL.md +0 -173
  31. package/templates/skills/writing-plans/plan-document-reviewer-prompt.md +0 -49
package/CHANGELOG.md CHANGED
@@ -4,6 +4,39 @@ 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
+ ## [1.3.0] - 2026-10-01
8
+
9
+ ### Added
10
+
11
+ - `hero-node`, a Node.js JavaScript/TypeScript specialization that reads and inherits the `hero-coding` implementation-only contract. It requires explicit boolean comparisons (including `=== false` instead of unary negation), business-accurate checks, strict comparisons, explicit field mapping, and class-based domain entities/DTOs, while preserving scope, formatter conventions, and independent testing/review. Registered it in the bundled installer, skill guidance, and attribution, with contract, fresh-install, and upgrade regression coverage. Coding reports retain the existing on-request convention.
12
+ - `hero-gitflow`, an independently invoked skill for explicitly requested Git actions. It preserves `.gitignore` and local changes, prohibits Git delivery into protected branches, applies source-branch and ticket naming rules, formats English commit messages without agent/actor signatures, and pauses on unresolved logical conflicts. Registered it in the bundled process suite and `using-hero` guidance, with installation and policy regression tests.
13
+
14
+ ### Changed
15
+
16
+ - Bundled worktree, brainstorming, and subagent guidance no longer instructs agents to edit `.gitignore` or commit automatically; the subagent scratch workspace uses an external cache when its in-repo path is not already ignored. Git delivery remains a separate, human-requested action.
17
+
18
+ ## [1.2.0] - 2026-09-19
19
+
20
+ ### Changed
21
+
22
+ - 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.
23
+ - 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.
24
+ - `hero-planning` now owns requirements discovery, brainstorming, implementation design, requirement-to-task coverage, and plan writing in one self-contained skill.
25
+ - Planning artifacts now contain implementation tasks only. Testing, verification, review, security review, deployment, release, and commit activities are left to independent later sessions.
26
+ - `brainstorming`, execution skills, workflow docs, and installer metadata now hand off to `hero-planning` without chaining a separate plan-writing skill.
27
+ - `init` and `update` remove the retired framework-managed `writing-plans` directory from existing consumer installations so stale execution-handoff behavior cannot remain active.
28
+ - `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.
29
+ - `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.
30
+ - 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.
31
+ - `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.
32
+ - `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`.
33
+ - 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.
34
+
35
+ ### Removed
36
+
37
+ - 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`.
38
+ - 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`.
39
+
7
40
  ## [1.1.6] - 2026-07-27
8
41
 
9
42
  ### Changed
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # hero-mmt-kit
2
2
 
3
- > A focused, human-led coding workflow for **Claude Code** — seven direct-use skills (planning, coding, reviewing, unit testing, security, MR review, strict verification) plus an on-demand report writer, simple durable state, and soft safety hooks. Zero runtime dependencies.
3
+ > A focused, human-led coding workflow for **Claude Code** — nine direct-use skills (planning, coding, Node.js coding, reviewing, unit testing, security, MR review, Gitflow, strict verification) plus an on-demand report writer, simple durable state, and soft safety hooks. Zero runtime dependencies.
4
4
 
5
5
  `hero-mmt-kit` installs a lightweight Claude Code workflow into new or existing repositories. It is designed for developers who stay in control: you choose the task, invoke the relevant skill, and keep the final judgment on plans, code, tests, reviews, and security checks.
6
6
 
@@ -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, each wrapping proven vendored technique skills instead of duplicating them. Each phase is done on its own — finishing one never auto-triggers the next.
11
+ - **Nine operative skills** (`hero-planning`, `hero-coding`, `hero-node`, `hero-reviewing`, `hero-unit-test`, `hero-security`, `hero-mr-review`, `hero-gitflow`, `hero-strict`) covering the lifecycle of a change. `hero-node` specializes the coding stage for Node.js; it does not add a stage. 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.
@@ -64,27 +64,33 @@ your-project/
64
64
 
65
65
  ## Workflow skills
66
66
 
67
- Invoke `using-hero` first for an overview — it explains which skill applies next and how workflow state carries across sessions. The seven operative skills:
67
+ Invoke `using-hero` first for an overview — it explains which skill applies next and how workflow state carries across sessions. The nine operative skills:
68
68
 
69
69
  | Skill | Use when | Artifact / report |
70
70
  |---|---|---|
71
- | `hero-planning` | Starting new work — a feature, bugfix, or refactor that needs a plan before code changes. | `docs/plans/YYYY-MM-DD-slug.md` — always written; it's the deliverable, not a report |
72
- | `hero-coding` | Implementing an approved plan (or a small change that doesn't need one). | `docs/coding-reports/YYYY-MM-DD-slug.md` |
73
- | `hero-reviewing` | Fresh-eyes check of an implementation against its plan, before merge. | `docs/reviews/YYYY-MM-DD-slug.md` |
74
- | `hero-unit-test` | Verifying implementation correctness — TDD-first or post-implementation. | `docs/test-reports/YYYY-MM-DD-slug.md` |
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-node` | Node.js JavaScript/TypeScript implementation with explicit conditions, field mapping, and typed models; inherits the same `hero-coding` stage. | Same coding report — on request |
74
+ | `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 |
75
+ | `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
76
  | `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 merge request or commit before it merges. | `docs/mr-reviews/YYYY-MM-DD-slug.md` — always written. |
77
- | `hero-strict` | Extra rigor wanted before a "done" claim — a full verification pass. | Appends to the current report, if one exists/was requested. |
77
+ | `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. |
78
+ | `hero-gitflow` | Performing a Git action explicitly requested by the user, with protected-branch and `.gitignore` safeguards. | Chat result; no automatic next action. |
79
+ | `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
80
 
79
- A typical flow is `hero-planning` → `hero-coding` → `hero-unit-test` and/or `hero-reviewing` → (`hero-security` if a sensitive surface was touched) → done. Skip stages that don't fit the size of the change — a one-line typo fix doesn't need a plan artifact. Each phase is "done" on its own terms — there's no automatic full-pipeline run; the developer chooses what to invoke next. `hero-mr-review` sits outside this flow entirely: it reviews a teammate's MR, not the invoking developer's own work, so it's invoked directly whenever needed rather than as a pipeline stage.
81
+ 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
82
 
81
- `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).
83
+ For Node.js services, CLIs, workers, or libraries written in JavaScript/TypeScript, invoke `hero-node` instead of generic `hero-coding` to apply explicit boolean comparisons (`=== true` / `=== false`, not `!value` or `!!`), business-accurate checks, explicit field mapping, and class-based domain entities/DTOs. It reads the parent contract and stays implementation-only; you do not need to invoke both skills. It does not automatically apply to frontend code merely because Node-based tooling is present, or authorize refactoring unrelated code.
82
84
 
83
- These skills wrap general-purpose vendored technique skills rather than duplicating them: `brainstorming`, `writing-plans`, `executing-plans`, `test-driven-development`, `systematic-debugging`, `verification-before-completion`, `requesting-code-review`, `receiving-code-review`, `dispatching-parallel-agents`, `subagent-driven-development`, `using-git-worktrees`. `hero-security` and `hero-mr-review` are standalone review skills rather than wrappers. All are bundled under `templates/skills/` and installed unconditionally into `.claude/skills/` — every install gets the full suite, with attribution in `templates/skills/NOTICE`.
85
+ 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. `hero-gitflow` is likewise independent: invoke it only for a specific Git action requested by the user. It never changes `.gitignore` or delivers into protected branches, and completing a step never authorizes the next one.
86
+
87
+ `hero-coding`, `hero-reviewing`, and `hero-unit-test` don't write a report file by default — they end with a concise chat summary. A tenth, on-demand skill, `hero-report`, writes those report files when the user actually wants one, at the path convention the source skill defines. Work done through `hero-node` uses the same coding-report convention with source stage `hero-coding`. `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).
88
+
89
+ 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
90
 
85
91
  ## Session state
86
92
 
87
- `docs/ACTIVE_STATE.md`'s Active Features table is the single source of durable workflow state — there is no separate session pointer file. Each hero-* skill's Definition of Done includes updating it. 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.
93
+ `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
94
 
89
95
  ## Commands
90
96
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hero-mmt-kit",
3
- "version": "1.1.6",
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.",
3
+ "version": "1.3.0",
4
+ "description": "A focused Claude Code framework for human-led development — nine direct-use skills (planning, coding, Node.js coding, reviewing, unit testing, security, MR review, Gitflow, 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",
7
7
  "ai-workflow",
@@ -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. Most vendored technique skills are a curated, lightly trimmed MIT-licensed copy from obra/superpowers; the hero-* skills plus using-hero are authored by hero-mmt-kit (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.",
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; they wrap the vendored obra/superpowers technique skills rather than duplicating them, except hero-security which is a standalone security review skill (attribution in templates/skills/NOTICE).",
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,22 +19,21 @@
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": "Turn a request into an agreed, written plan before code changes." },
33
- { "name": "hero-coding", "source": "hero-mmt-kit", "description": "Implement an approved plan, or a small change that doesn't need one." },
34
- { "name": "hero-reviewing", "source": "hero-mmt-kit", "description": "Fresh-eyes check of an implementation against its plan, before merge." },
35
- { "name": "hero-unit-test", "source": "hero-mmt-kit", "description": "Verify implementation correctness — TDD-first or post-implementation." },
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-node", "source": "hero-mmt-kit", "description": "Specialize hero-coding for Node.js JavaScript/TypeScript with explicit conditions, field mapping, and typed models; same implementation-only stage." },
32
+ { "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." },
33
+ { "name": "hero-unit-test", "source": "hero-mmt-kit", "description": "Write and run post-implementation unit tests from approved requirements without changing production code." },
36
34
  { "name": "hero-security", "source": "hero-mmt-kit", "description": "Run an independent OWASP + AI/LLM security review and write a standalone security report." },
37
35
  { "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." },
36
+ { "name": "hero-gitflow", "source": "hero-mmt-kit", "description": "Handle explicitly requested Git actions with protected-branch, .gitignore, ticket, and commit-message safeguards." },
38
37
  { "name": "hero-strict", "source": "hero-mmt-kit", "description": "Opt-in full verification pass before a \"done\" claim." },
39
38
  { "name": "hero-report", "source": "hero-mmt-kit", "description": "On-demand report writer — writes the coding/review/test report at the source skill's conventional path, only when requested." }
40
39
  ]
@@ -26,20 +26,22 @@ 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 before code), hero-coding (implement), hero-reviewing (fresh-eyes check), ' +
30
- 'hero-unit-test (TDD-first or post-implementation tests), hero-security (standalone security review), ' +
29
+ 'Core skills: hero-planning (implementation-only plan), hero-coding (implementation and requirement tracking only), ' +
30
+ 'hero-node (Node.js JavaScript/TypeScript specialization of the same hero-coding stage), ' +
31
+ 'hero-reviewing (read-only review and supplied-feedback assessment), hero-unit-test (post-implementation unit tests only), ' +
31
32
  'hero-mr-review (standalone review of a teammate\'s MR by commit/tag/branch), ' +
33
+ 'hero-gitflow (user-requested Git actions only; protects branches and .gitignore), ' +
32
34
  'hero-strict (opt-in full verification pass before a "done" claim).\n\n' +
33
35
  'Session state: docs/ACTIVE_STATE.md\'s Active Features table (the single source of durable workflow state).\n\n' +
34
36
  'Details (always read the source files, do not duplicate here): docs/ACTIVE_STATE.md, docs/SECURITY_STANDARDS.md, ' +
35
37
  'docs/PERFORMANCE_STANDARDS.md.\n',
36
38
  'delegation_rules.md':
37
39
  'Sub-agent delegation is optional, not automatic.\n\n' +
38
- 'Summary: sub-agents are best as context-collectors (research/exploration) and reviewers (hero-reviewing). ' +
39
- 'Delegating implementation (hero-coding) is OPTIONAL: work directly with full context by default, and delegate ' +
40
- 'only when it genuinely helps (independent parallel tracks, or to isolate context). Not every task needs a sub-agent. ' +
41
- 'Sub-agents do NOT inherit the conversation/skills/context → any delegated prompt must be SELF-CONTAINED ' +
42
- '(plan/report links, skills to invoke, Definition of Done, relevant files). Use isolation: "worktree" for overlapping edits.\n',
40
+ 'Summary: sub-agents are best as context-collectors for research/exploration and as independent read-only reviewers. ' +
41
+ 'Delegating implementation is OPTIONAL and must keep one writing agent active per shared worktree. ' +
42
+ 'Every delegated prompt must be SELF-CONTAINED and inherit the active Hero stage boundary: coding cannot add tests/review, ' +
43
+ 'reviewing cannot write/fix/run verification, and unit testing cannot modify production code. Include the plan/target, ' +
44
+ 'allowed files/actions, exclusions, and Definition of Done; use isolation: "worktree" for overlapping edits.\n',
43
45
  };
44
46
 
45
47
  async function run(ctx) {
package/src/skills.cjs CHANGED
@@ -7,26 +7,33 @@ 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',
20
17
  'hero-planning',
21
18
  'hero-coding',
19
+ 'hero-node',
22
20
  'hero-reviewing',
23
21
  'hero-unit-test',
24
22
  'hero-security',
25
23
  'hero-mr-review',
24
+ 'hero-gitflow',
26
25
  'hero-strict',
27
26
  'hero-report',
28
27
  ];
29
28
 
29
+ // Framework-managed skill directories retired by a newer bundled workflow.
30
+ // Remove these during init/update so old installs cannot keep invoking stale behavior.
31
+ const RETIRED_CORE_SKILLS = [
32
+ 'writing-plans',
33
+ 'requesting-code-review',
34
+ 'receiving-code-review',
35
+ ];
36
+
30
37
  function uniqueCoreSkills(names) {
31
38
  const allowed = new Set(CORE_SKILL_ORDER);
32
39
  const selected = new Set();
@@ -62,9 +69,9 @@ function sourceEntries(src, selectedSkills) {
62
69
  }
63
70
 
64
71
  // Install vendored core skills (templates/skills/<name>/) into the consumer's
65
- // .claude/skills/ dir. Framework-managed:
66
- // overwrites requested framework skill dirs and the NOTICE file, but never deletes
67
- // user-added skill dirs outside the framework-managed process suite.
72
+ // .claude/skills/ dir. Framework-managed: overwrites requested framework skill
73
+ // dirs and the NOTICE file, removes explicitly retired framework skills, but never
74
+ // deletes user-added skill dirs outside the framework-managed process suite.
68
75
  function installSkills(pkgRoot, target, opts) {
69
76
  opts = opts || {};
70
77
  const src = path.join(pkgRoot, 'templates', 'skills');
@@ -83,6 +90,10 @@ function installSkills(pkgRoot, target, opts) {
83
90
 
84
91
  for (const rel of destinations) {
85
92
  const dstRoot = path.join(target, rel);
93
+ for (const name of RETIRED_CORE_SKILLS) {
94
+ const retiredDir = path.join(dstRoot, name);
95
+ if (exists(retiredDir)) fs.rmSync(retiredDir, { recursive: true, force: true });
96
+ }
86
97
  for (const entry of sourceEntries(src, selectedSkills)) {
87
98
  if (entry.isDirectory()) {
88
99
  const dstDir = path.join(dstRoot, entry.name);
@@ -3,12 +3,15 @@
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, written plan before code changes.
7
- - `hero-coding` — implement an approved plan (or a small change that doesn't need one).
8
- - `hero-reviewing` — fresh-eyes check of an implementation against its plan, before merge.
9
- - `hero-unit-test` — verify correctness, TDD-first or post-implementation.
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-node` — choose for Node.js JavaScript/TypeScript implementation with explicit coding rules; inherits the same `hero-coding` stage and boundaries.
9
+ - `hero-reviewing` — single read-only entry point for a fresh plan-backed review and/or technical assessment of supplied review feedback.
10
+ - `hero-unit-test` — write and run post-implementation unit tests without changing production code.
10
11
  - `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.
12
+ - `hero-mr-review` — standalone review of a teammate's committed MR/ref.
13
+ - `hero-gitflow` — standalone, user-requested Git actions under protected-branch and `.gitignore` rules.
14
+ - `hero-strict` — opt-in, separate full verification pass before a "done" claim.
12
15
 
13
16
  ### Context loading
14
17
  - **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.
@@ -17,54 +20,39 @@ Core Hero skills:
17
20
  ### Non-negotiables
18
21
  - **Gates:** for risky or hard-to-reverse changes, use Plan Mode (`EnterPlanMode` → `ExitPlanMode`) for real sign-off — not a prose promise.
19
22
  - **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.
23
+ - **Git:** use `hero-gitflow` only for Git actions the user explicitly requests; do not check out a branch, commit, push, merge, revert, or rebase automatically. Never edit or stage `.gitignore` (including existing local changes), and never add agent/actor signatures. `develop`, `release/*`, `main`, and `master` are protected destinations: do not commit, push, merge, rebase, or revert into them. Generic skills cannot override these rules; see `hero-gitflow` for branch, ticket, commit-message, and conflict handling.
21
24
  - **Enforcement:** hooks installed under `.claude/` — `git-guard` (PreToolUse on Bash), `session-bridge` (PostToolUse), `stop-reminder` (Stop). Don't bypass them.
22
25
  - **GitNexus (if installed):** skip on empty repos; use impact/context analysis for non-trivial code changes and stale-index checks.
23
26
  - **Skills (if installed):** invoke relevant process skills via the `Skill` tool; do not load unrelated skill/docs context.
24
- - **Language:** 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.
27
+ - **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.
25
28
  - **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
29
 
27
30
  ## Response Style
28
31
 
29
- ### Core Rule
32
+ ### Language and terminology
30
33
 
31
- - Min words, max information density.
32
- - Remove filler words.
33
- - Keep only important keywords/details.
34
- - Short sentences.
35
- - Prefer symbols over long explanations.
34
+ - Use the user's language consistently for explanations and prose.
35
+ - Keep code identifiers, commands, file paths, API names, configuration keys, and exact error messages verbatim.
36
+ - 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.
37
+ - Do not translate technical tokens or invent awkward equivalents. Avoid unnecessary English code-switching in non-English prose.
36
38
 
37
- ### Writing Style
39
+ ### Clarity and audience
38
40
 
39
- - Use:
40
- - `=` for meaning/result
41
- - `->` for flow/result
42
- - `:` for explanation
43
- - `-` for bullet points
44
- - `|` for compact comparisons
41
+ - Prefer plain, familiar wording and complete sentences.
42
+ - Do not assume technical expertise beyond what the conversation establishes.
43
+ - Include enough context for the user to understand the result, make a decision, and act safely.
44
+ - Expand an unfamiliar acronym on first use unless it is already established in the conversation.
45
45
 
46
- - Avoid:
47
- - long introductions
48
- - repeated context
49
- - polite filler
50
- - motivational text
51
- - unnecessary transitions
46
+ ### Structure
52
47
 
53
- ### Grammar
48
+ - 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.
49
+ - Use headings, lists, tables, and compact notation only when they improve scanning.
50
+ - Make plans and reports actionable: use concrete actions, targets, conditions, owners, and evidence where relevant; avoid vague labels such as "handle appropriately."
54
51
 
55
- - Basic grammar only.
56
- - Fragments acceptable if clear.
57
- - Skip articles/pronouns when unnecessary.
52
+ ### Brevity and completeness
58
53
 
59
- ### Answer Format
60
-
61
- - Start directly with answer.
62
- - Most important info first.
63
- - 1-3 lines preferred.
64
- - Expand only if user asks.
65
-
66
- ### Default Behavior
67
-
68
- - Assume user technical.
69
- - No over-explaining.
70
- - No tutorial unless requested.
54
+ - Match the level of detail to the task's complexity.
55
+ - Keep simple answers concise, but do not impose a fixed line count.
56
+ - Remove filler and repetition, not context required to understand, decide, or act.
57
+ - Clarity, completeness, safety, and honesty outrank terseness.
58
+ - Fully explain risks, blockers, uncertainty, destructive or irreversible actions, production changes, and consequential decisions.
@@ -1,8 +1,8 @@
1
1
  Vendored skills — attribution
2
2
  ==============================
3
3
 
4
- Most core process skills under this directory are vendored (a curated, lightly
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, writing-plans, executing-plans, test-driven-development,
18
- systematic-debugging, verification-before-completion, requesting-code-review,
19
- receiving-code-review, dispatching-parallel-agents,
20
- subagent-driven-development, using-git-worktrees, using-superpowers
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)
@@ -40,8 +58,8 @@ the other supporting files remain unchanged obra/superpowers-origin content
40
58
  under MIT.
41
59
 
42
60
  Framework-authored skills shipped by hero-mmt-kit:
43
- using-hero, hero-planning, hero-coding, hero-reviewing,
44
- hero-unit-test, hero-security, hero-strict, hero-report
61
+ using-hero, hero-planning, hero-coding, hero-node, hero-reviewing,
62
+ hero-unit-test, hero-security, hero-mr-review, hero-gitflow, 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. **Transition to implementation** — invoke writing-plans skill to create implementation plan
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
- "Invoke writing-plans skill" [shape=doublecircle];
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?" -> "Invoke writing-plans skill" [label="approved"];
57
+ "User reviews spec?" -> "Stop after approved spec" [label="approved"];
58
58
  }
59
59
  ```
60
60
 
61
- **The terminal state is invoking writing-plans.** Do NOT invoke frontend-design, mcp-builder, or any other implementation skill. The ONLY skill you invoke after brainstorming is writing-plans.
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
 
@@ -106,7 +106,7 @@ digraph brainstorming {
106
106
  - Write the validated design (spec) to `docs/superpowers/specs/YYYY-MM-DD-<topic>-design.md`
107
107
  - (User preferences for spec location override this default)
108
108
  - Use elements-of-style:writing-clearly-and-concisely skill if available
109
- - Commit the design document to git
109
+ - Do not commit the design document unless the user specifically asks for a commit. If requested, follow `hero-gitflow`'s branch, staging, and commit-message rules.
110
110
 
111
111
  **Spec Self-Review:**
112
112
  After writing the spec document, look at it with fresh eyes:
@@ -123,14 +123,14 @@ Fix any issues inline. No need to re-review — just fix and move on.
123
123
  **User Review Gate:**
124
124
  After the spec review loop passes, ask the user to review the written spec before proceeding:
125
125
 
126
- > "Spec written and committed to `<path>`. Please review it and let me know if you want to make any changes before we start writing out the implementation plan."
126
+ > "Spec written to `<path>`. Please review it and let me know if you want to make any changes before we start writing out the implementation plan."
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
- **Implementation:**
130
+ **Planning handoff:**
131
131
 
132
- - Invoke the writing-plans skill to create a detailed implementation plan
133
- - Do NOT invoke any other skill. writing-plans is the next step.
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
- - **superpowers:writing-plans** - Creates the plan this skill executes
71
+ - **hero-planning** - Creates the implementation-only plan this skill executes