hero-mmt-kit 1.3.0 → 1.4.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 CHANGED
@@ -4,6 +4,12 @@ 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.4.0] - 2026-10-13
8
+
9
+ ### Added
10
+
11
+ - `hero-golang`, a compact Go specialization that reads and inherits the `hero-coding` implementation-only contract. It preserves project/module/toolchain constraints and adds error, cancellation, concurrency, ownership, resource-lifetime, and boundary-data safeguards. Formatting with `gofmt` or existing project-configured `goimports` is limited to edited Go files; testing, verification, design, review, and delivery remain separate. Registered it in the bundled installer, workflow guidance, and attribution, with contract, fresh-install, upgrade, and Serena memo regression coverage. Reports remain on request with source stage `hero-coding`.
12
+
7
13
  ## [1.3.0] - 2026-10-01
8
14
 
9
15
  ### Added
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** — 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.
3
+ > A focused, human-led coding workflow for **Claude Code** — ten direct-use skills (planning, coding, Node.js coding, Go 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
- - **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.
11
+ - **Ten operative skills** (`hero-planning`, `hero-coding`, `hero-node`, `hero-golang`, `hero-reviewing`, `hero-unit-test`, `hero-security`, `hero-mr-review`, `hero-gitflow`, `hero-strict`) covering the lifecycle of a change. `hero-node` and `hero-golang` specialize the coding stage for Node.js and Go; they do 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,13 +64,14 @@ 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 nine operative skills:
67
+ Invoke `using-hero` first for an overview — it explains which skill applies next and how workflow state carries across sessions. The ten operative skills:
68
68
 
69
69
  | Skill | Use when | Artifact / report |
70
70
  |---|---|---|
71
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
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
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-golang` | Go implementation with ownership, cancellation, resource safety, and edited-file formatting; inherits the same `hero-coding` stage. | Same coding report — on request |
74
75
  | `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
76
  | `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 |
76
77
  | `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. |
@@ -82,9 +83,11 @@ A typical flow is `hero-planning` → `hero-coding` → `hero-unit-test` and/or
82
83
 
83
84
  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.
84
85
 
86
+ For Go services, CLIs, workers, or libraries, invoke `hero-golang` instead of generic `hero-coding`. It respects the module's supported Go version, existing dependencies, and architecture, and adds rules for error handling, context cancellation, goroutine/channel lifetime, buffer ownership, resource cleanup, and boundary validation. It may run `gofmt` (or the project's existing `goimports`) only on the Go files it edited; it never runs build, test, vet, or lint. It reads the parent contract and stays implementation-only; you do not need to invoke both skills.
87
+
85
88
  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
89
 
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).
90
+ `hero-coding`, `hero-reviewing`, and `hero-unit-test` don't write a report file by default — they end with a concise chat summary. A separate 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` or `hero-golang` 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
91
 
89
92
  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`.
90
93
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hero-mmt-kit",
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.",
3
+ "version": "1.4.0",
4
+ "description": "A focused Claude Code framework for human-led development — ten direct-use skills (planning, coding, Node.js coding, Go 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",
@@ -29,6 +29,7 @@
29
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
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
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-golang", "source": "hero-mmt-kit", "description": "Specialize hero-coding for Go with ownership, cancellation, resource safety, and edited-file formatting; same implementation-only stage." },
32
33
  { "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
34
  { "name": "hero-unit-test", "source": "hero-mmt-kit", "description": "Write and run post-implementation unit tests from approved requirements without changing production code." },
34
35
  { "name": "hero-security", "source": "hero-mmt-kit", "description": "Run an independent OWASP + AI/LLM security review and write a standalone security report." },
@@ -28,6 +28,7 @@ const SERENA_MEMOS = {
28
28
  'Human-led Claude Code workflow (hero-mmt-kit). Use the **using-hero** skill for the overview.\n\n' +
29
29
  'Core skills: hero-planning (implementation-only plan), hero-coding (implementation and requirement tracking only), ' +
30
30
  'hero-node (Node.js JavaScript/TypeScript specialization of the same hero-coding stage), ' +
31
+ 'hero-golang (Go specialization of the same hero-coding stage; ownership, cancellation, and bounded formatting), ' +
31
32
  'hero-reviewing (read-only review and supplied-feedback assessment), hero-unit-test (post-implementation unit tests only), ' +
32
33
  'hero-mr-review (standalone review of a teammate\'s MR by commit/tag/branch), ' +
33
34
  'hero-gitflow (user-requested Git actions only; protects branches and .gitignore), ' +
package/src/skills.cjs CHANGED
@@ -17,6 +17,7 @@ const CORE_SKILL_ORDER = [
17
17
  'hero-planning',
18
18
  'hero-coding',
19
19
  'hero-node',
20
+ 'hero-golang',
20
21
  'hero-reviewing',
21
22
  'hero-unit-test',
22
23
  'hero-security',
@@ -6,6 +6,7 @@ Core Hero skills:
6
6
  - `hero-planning` — turn a request into an agreed, implementation-only plan before code changes.
7
7
  - `hero-coding` — implement and track every approved requirement/task; no testing or self-review.
8
8
  - `hero-node` — choose for Node.js JavaScript/TypeScript implementation with explicit coding rules; inherits the same `hero-coding` stage and boundaries.
9
+ - `hero-golang` — choose for Go implementation with ownership, cancellation, and resource safety rules; inherits the same `hero-coding` stage and boundaries. Formatting is limited to edited files, not verification.
9
10
  - `hero-reviewing` — single read-only entry point for a fresh plan-backed review and/or technical assessment of supplied review feedback.
10
11
  - `hero-unit-test` — write and run post-implementation unit tests without changing production code.
11
12
  - `hero-security` — standalone OWASP + AI/LLM security review when you want a dedicated security pass.
@@ -58,7 +58,7 @@ the other supporting files remain unchanged obra/superpowers-origin content
58
58
  under MIT.
59
59
 
60
60
  Framework-authored skills shipped by hero-mmt-kit:
61
- using-hero, hero-planning, hero-coding, hero-node, hero-reviewing,
61
+ using-hero, hero-planning, hero-coding, hero-node, hero-golang, hero-reviewing,
62
62
  hero-unit-test, hero-security, hero-mr-review, hero-gitflow, hero-strict, hero-report
63
63
 
64
64
  Design / visual-direction skills are NOT vendored — they are referenced in
@@ -142,6 +142,7 @@ Use `docs/ACTIVE_STATE.md` only as a durable index when a tracked work item need
142
142
  ## Related Skills
143
143
 
144
144
  - `hero-node` specializes this same implementation-only contract for Node.js JavaScript/TypeScript; it adds explicit coding conventions, not a new stage.
145
+ - `hero-golang` specializes this same implementation-only contract for Go; it adds ownership, cancellation, resource safety, and bounded formatting rules, not a new stage.
145
146
  - Reads the approved implementation contract from `hero-planning`, or exact user-approved correction IDs from a prior `hero-reviewing` handoff.
146
147
  - Never decides whether review feedback is valid; `hero-reviewing` owns that assessment.
147
148
  - Hands the resulting implementation to separately invoked `hero-unit-test`, `hero-reviewing`, and, when appropriate, `hero-security` or `hero-strict` sessions.
@@ -0,0 +1,116 @@
1
+ ---
2
+ name: hero-golang
3
+ description: Use for implementation-only Go service, CLI, worker, or library changes under an approved plan, bounded request, or exact user-approved review corrections
4
+ ---
5
+
6
+ # Hero Golang
7
+
8
+ ## Scope and Mandatory Parent
9
+
10
+ hero-golang specializes `hero-coding` within the same coding stage; it is not a new stage. Choose it instead of generic `hero-coding` for Go services, CLIs, workers, and libraries. The user does not need to invoke both. A repository does not qualify merely because it contains Go tooling, generated code, or vendored Go dependencies; in a mixed-language request, apply these rules only to the Go portion.
11
+
12
+ **Before any production edit, read the complete actual sibling [`../hero-coding/SKILL.md`](../hero-coding/SKILL.md), resolved from this skill's installed directory.** Do not substitute a remembered contract, repository template, or metadata declaration for that read. If the sibling is missing or unreadable, stop and report the missing prerequisite; do not reconstruct it.
13
+
14
+ Inherit the entire parent contract by reference, including approvals, inputs, scope, ledgers, dependencies, blockers, implementation-only boundaries, completion criteria, durable state, handoff, and reporting. The rules below add Go-specific implementation conventions; they do not weaken the parent.
15
+
16
+ <HARD-BOUNDARY>
17
+ Implement only an approved plan explicitly started by the user, a sufficiently bounded request, or exact correction IDs confirmed by prior independent `hero-reviewing` and explicitly approved by the user. Do not choose feedback or expand scope. No architecture design, test authoring/running, verification commands, self-review, review delegation, deployment, release, or Git delivery actions. Assurance and delivery belong to separate later sessions.
18
+ </HARD-BOUNDARY>
19
+
20
+ Maintain the parent's linked task/requirement ledger, respect dependencies, and keep the approved plan immutable. Record deviations and blockers; stop for ambiguity, missing prerequisites, target drift, or unsafe scope expansion. Reading the existing architecture to implement correctly is expected; redesigning it is not. Reconcile implementation coverage, not correctness. Finish with the parent handoff to independent testing and review.
21
+
22
+ ## MUST: Bounded Changes and Project Baseline
23
+
24
+ Apply these conventions to new code and portions genuinely necessary for the approved change. Do not mechanically convert untouched code to these conventions.
25
+
26
+ - Before using a language feature or standard-library API, identify the owning module and its supported Go version from `go.mod` (`go` and `toolchain` directives), `go.work` when present, build constraints, and any documented support matrix. The locally installed toolchain does not raise the module's supported version.
27
+ - Preserve the existing module/package layout, public API, framework, logging, error, configuration, and dependency choices. Do not impose a `cmd`/`internal`/`pkg` layout, functional options, generics, embedding, or a new library.
28
+ - Do not add or upgrade dependencies, edit `go.mod`/`go.sum`/`go.work`, change the toolchain or linter configuration, or change generated or vendored artifacts without approval for that exact change. If implementation requires an unapproved change, stop and record a blocker instead of improvising. Do not run `go mod tidy` or generators in this stage; hand any required regeneration to a separately authorized session.
29
+ - Do not add unrelated refactors, migrations, renames, or package moves.
30
+ - If requirements, framework constraints, or required behavior conflict with a rule here, stop and escalate with the concrete conflict. Do not silently exempt the framework or change semantics.
31
+
32
+ ## MUST: Formatting Only on Edited Files
33
+
34
+ - `gofmt -w` may run only on the Go files edited for the current task, named explicitly. Never run it on `.`, `./...`, a broad glob, or files you did not edit.
35
+ - `goimports` may run under the same limit only when the project already uses it and it is already installed. Do not download or install any tool.
36
+ - Do not format generated or vendored files. If formatting would rewrite unrelated user changes in an edited file, do not run it; record a blocker instead.
37
+ - Formatting is an editing step, not verification or correctness evidence. This exception does not permit `go build`, `go vet`, `go test`, linters, race detection, benchmarks, `go generate`, or any other verification command.
38
+ - Name every formatting command actually run in the handoff.
39
+
40
+ ## MUST: Errors and Failure Paths
41
+
42
+ - Preserve the existing sentinel errors, error types, and wrapping contract that callers depend on. Wrapping with `%w` exposes the cause as part of the API; use it when callers should match the cause and `%v` when they should not.
43
+ - Match wrapped errors with `errors.Is` and `errors.As`, never with `==` against a possibly wrapped error or by comparing error strings.
44
+ - Never discard an error with `_` unless it is a documented best-effort cleanup whose failure cannot affect results; state the reason in a comment.
45
+ - Handle an error once: return it with useful context or log it at the boundary that owns the decision, not both at every layer.
46
+ - Avoid typed-nil errors: a nil pointer stored in an interface is not equal to `nil`. Return a literal `nil` on a successful error path; do not return a typed nil pointer as an `error`.
47
+ - Return errors for invalid input and expected operational failures instead of panicking. Do not call `log.Fatal` or `os.Exit` from library or helper code; the application entry point owns process termination and must preserve required cleanup.
48
+
49
+ ## MUST: Context, Goroutines, and Channels
50
+
51
+ - When adding context-aware operations, accept `context.Context` as the first parameter and propagate it to blocking calls that support cancellation. Do not silently break an existing API to add context. Prefer passing context explicitly over storing request contexts in structs; do not replace an available context with `context.Background()` or a placeholder context.
52
+ - Call the `cancel` function of every derived context on all paths, normally with `defer cancel()` right after creation.
53
+ - Every goroutine you start needs an owner and a guaranteed exit through completion, cancellation, or channel closure. Do not start fire-and-forget goroutines.
54
+ - A send or receive that can block must also select on `ctx.Done()` or have another proven exit. A buffered channel is not a cancellation mechanism.
55
+ - Define the channel-closing owner: the sender or a coordinator that knows every sender has finished. Only that owner closes it, exactly once when closure is part of the protocol; merely creating or receiving from a channel does not make closing it safe.
56
+ - Deliver results and errors together, or through a defined error path, so a consumer can never wait forever for a result that failed.
57
+ - Decide how results are consumed before starting producers. A producer that blocks on an unbuffered results channel needs a concurrent reader; do not wait for producers on the same goroutine that must read their output.
58
+ - Bound concurrency when work fans out over unbounded input. With manual WaitGroup accounting, call `WaitGroup.Add` before the `go` statement. Capture loop variables according to the owning module's Go language version; do not assume the installed toolchain changes older loop semantics.
59
+ - Prefer concurrency helpers already available in the module; using `errgroup` does not justify adding `golang.org/x/sync` without explicit dependency approval. Do not convert synchronous code into goroutines for style.
60
+
61
+ ## MUST: Shared State, Ownership, and Resources
62
+
63
+ - Guard shared mutable state with the project's existing synchronization approach. Do not copy values containing `sync.Mutex`, `sync.WaitGroup`, or other `sync` types after first use; pass them by pointer.
64
+ - Initialize maps before writing to them. Remember that slices returned by `append` or slicing may share a backing array; return copies of internal slices or maps when callers must not mutate them.
65
+ - Never return a slice that aliases a pooled or reused buffer after that buffer is reset or returned to the pool. Copy the data first, or transfer ownership explicitly:
66
+
67
+ ```go
68
+ buf := bufferPool.Get().(*bytes.Buffer)
69
+ defer func() {
70
+ buf.Reset()
71
+ bufferPool.Put(buf)
72
+ }()
73
+ buf.Write(data)
74
+ out := make([]byte, buf.Len())
75
+ copy(out, buf.Bytes())
76
+ return out
77
+ ```
78
+
79
+ Do not add `sync.Pool` or similar optimizations unless the approved scope asks for them.
80
+ - Release owned resources on every path: close files and HTTP response bodies, release locks, and complete transactions with commit or rollback. Register `defer` only after the acquiring call's error check.
81
+ - Check the error from `Close`, `Flush`, `Sync`, or `Commit` when it can lose or corrupt written data.
82
+ - Do not `defer` inside a loop when that holds every iteration's resource until the function returns; release per iteration or extract a function. This is not a ban on `defer`.
83
+
84
+ ## MUST: Boundary Data and Zero Values
85
+
86
+ - Decoding or type conversion is not validation. Validate decoded JSON, database rows, environment values, and request parameters against the approved contract before use.
87
+ - Distinguish absent, `null`, zero, and empty values only where the contract distinguishes them, using pointers, `sql.Null*` types, or explicit presence fields. Do not invent rejection rules; zero or empty may be valid.
88
+ - Preserve existing JSON/DB tags and wire representations. Map between transport DTOs and domain types field by field when they differ.
89
+ - A successful HTTP round trip is not a successful business result. Check the status code and response contract the requirements define.
90
+ - Bound reads of untrusted input or responses when the contract or existing code sets limits.
91
+
92
+ ## PREFER: Readable, Cohesive Go
93
+
94
+ - Prefer guard clauses and early returns over unnecessary nesting, but preserve cleanup, transaction outcomes, locks, and resource ownership.
95
+ - Keep a type's receiver kind consistent with its existing methods; if one method needs a pointer receiver, new methods on that type use pointer receivers.
96
+ - Define small interfaces in the consuming package and only when the approved change needs that seam. Do not introduce an interface for a single implementation by default.
97
+ - Do not add new package-level mutable state or `init()` side effects; pass dependencies explicitly.
98
+ - Keep cohesive logic together. Extract functions or packages for meaningful responsibilities, not into generic `util`/`common` buckets.
99
+
100
+ ## Allowed Shapes and Narrow Exceptions
101
+
102
+ These allowances do not waive validation, ownership, or scope limits:
103
+
104
+ - Package-level sentinel errors and immutable values such as precompiled regular expressions are fine.
105
+ - `panic` or `Must*` helpers are acceptable for programmer invariants and constant inputs at initialization, not for runtime input.
106
+ - `_ =` is acceptable only with a comment explaining why the error cannot matter.
107
+
108
+ There is no blanket framework exception to the MUST rules. If a framework or required API forces an incompatible shape, stop and request an explicit resolution rather than silently bypassing it.
109
+
110
+ ## Handoff and Report Convention
111
+
112
+ Inherit the parent's report style and the project's Response Style, preserving exact file paths, commands, API names, and errors.
113
+
114
+ Use the parent's completion and handoff contract, including changed areas, task/requirement states, exact approved correction IDs when relevant, blockers, and approved deviations. List any formatting command actually run. State that testing, verification, and independent review were not performed in this stage; identify what later sessions must establish without claiming correctness evidence.
115
+
116
+ Do not create a report file automatically. When the user requests a written report, invoke `hero-report` with source stage `hero-coding` and the parent's coding-report contract (`docs/coding-reports/YYYY-MM-DD-<slug>.md`). Identify `hero-golang` as the specialization in the content if useful. Do not create a new report category, directory, or workflow stage.
@@ -16,6 +16,7 @@ hero-mmt-kit is a human-led workflow: the developer decides what to work on and
16
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
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
18
  | `hero-node` | Node.js JavaScript/TypeScript implementation with explicit coding conventions; inherits the same `hero-coding` stage and boundaries. | Same coding report — on request, through `hero-report` with source stage `hero-coding` |
19
+ | `hero-golang` | Go implementation with ownership, cancellation, resource safety, and bounded formatting; inherits the same `hero-coding` stage and boundaries. | Same coding report — on request, through `hero-report` with source stage `hero-coding` |
19
20
  | `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 |
20
21
  | `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 |
21
22
  | `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. |
@@ -28,6 +29,8 @@ A typical flow is `hero-planning` → `hero-coding` → `hero-unit-test` and/or
28
29
 
29
30
  For Node.js services, CLIs, workers, or libraries written in JavaScript/TypeScript, choose `hero-node` instead of generic `hero-coding` when its explicit coding conventions apply. It reads and inherits the parent contract; the user does not need to invoke both. This is the same coding stage, not an automatic extra stage, and its on-request report uses source stage `hero-coding`.
30
31
 
32
+ For Go services, CLIs, workers, or libraries, choose `hero-golang` instead of generic `hero-coding`. It reads and inherits the parent contract, keeps the same coding stage, and adds Go ownership, cancellation, resource-safety, and bounded-formatting rules; the user does not need to invoke both. In a mixed-language request, apply it only to the Go portion. Its on-request report also uses source stage `hero-coding`.
33
+
31
34
  Choose review by source of truth, not merely by whether a git ref exists:
32
35
  - 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.
33
36
  - 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.