Add scaffold / check / refactor context skills + refresh existing service skills #260
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_skills#260
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Produce the AI context (markdown skills) that lets an agent reliably:
These are documentation skills (md + toml sidecar per the new skills structure), not CLI tools. The actual scaffold/check tooling lives in
hero_rpcandlab.New skills to add (under
skills/hero/service/)hero_service_scaffold.mdWhen + how an agent should create a new Hero service. Steps:
hero_rpc scaffold <name> --schema <path>(link the hero_rpc issue).cargo buildto trigger codegen, thenlab infocheckuntil clean.lab service <name> --startand verify smoke tests pass.Reference: hero_rpc's upgraded
example/recipe_serveras the canonical end-to-end demo.hero_service_refactor.mdHow to migrate a legacy service (e.g.
hero_inspector, the olderhero_procpatterns, hand-rolled_uiadmins) to the canonical template:lab infocheck— collect findings.hero_service_check_fix).Makefile/scripts/*.sh/service_<name>.nuper ADR-0001.lab infocheckclean exit +lab servicesmoke tests.hero_service_check.md(or extend existinghero_service_check_fix)Decide whether to extend the existing skill or split out a leaner check-only skill that an agent can run as a fast audit (without the fix recipes). Cross-link as appropriate.
Updates to existing skills
hero_service.md,hero_service_check_fix.md,hero_service_toml_info.md: audit for stale references.hero_admin_lib→hero_website_lib(after the framework alias issue lands).HeroLifecycle/HeroRpcServer/HeroUiServerfromhero_service(the hero_rpc crate) → align with whichever wins in the codegen-alignment issue (recommendation: drop in favour ofherolib_core::base+lab).hero_computeand latest-pulledhero_procas the reference services; removehero_inspectoras a reference (it's out of date)._admin/_server/_sdk/_web/_apptable is current; remove any_uireferences.Format
Per Kristof's recent skill reorganization:
.mdper skill, one.tomlsidecar.hero_service_toml_infoandherolib_baseinstead of repeating their content).Acceptance
hero_service_scaffold.mdand produce a working service end-to-end.hero_service_refactor.mdand produce alab infocheck-clean repo.skills/hero/service/mentionshero_admin_liborhero_inspectoras a positive example. (Askama mentions are fine and expected — it's the ecosystem default; just verify they describe compile-time use.)Related
hero_rpc scaffold) #54Parent / context tracker: hero_skills#262 — read it before starting work on this issue. Locked decisions, reference materials, and execution order live there. Iterate via comments here; consolidation passes on the body only after feedback settles.
State refresh
Pulled latest. Skills directory has been reorganized into
skills/hero/{config,proc,service,ui,networkprotocol}/subdirs. The three service skills relevant to this issue stay atskills/hero/service/— files unchanged in path:hero_service.md+.tomlhero_service_toml_info.md+.tomlhero_service_check_fix.md+.tomlAction items in this issue are still valid. New context:
skills/hero/service/.Tier-1 cleanup pass — done
Audited the three existing service skills (
hero_service.md,hero_service_toml_info.md,hero_service_check_fix.md) for stale references per the action list.Findings
hero_admin_libhero_inspector(positive example)HeroLifecycle/HeroRpcServer/HeroUiServerfrom oldhero_servicecrateherolib_core::base+labTera(as default)Askamaappears, which is the locked default; added a clarifying note that it's compile-time_uinaming references_client(old SDK name)Edits in
2a05555hero_service_toml_info.md— dropped the legacyui.sock/*_ui.sockrows from the router-card table; added a one-line note thatadmin.sockis canonical and_uiis out.hero_service_check_fix.md— naming table now includes_sdk(Rust SDK lib crate, required when a server exists) and_examples(optional); added an Askama-as-compile-time-default note pointing athero_admin_lib(Askama) vshero_website_lib(Tera); added_clientto the "fix needed if" bad-suffix list and broadened the grep accordingly.hero_service.md— no changes needed; already aligned (usesadmin/web/cli/cmdlineenum values, no_uireferences).Held back (tier 3 — waits on hero_rpc#54 + #55)
Per the May-18 state-refresh comment, the new scaffold / check / refactor skills wait on the scaffolder shape (hero_rpc#54) and codegen alignment (hero_rpc#55) so they describe the actual tool surface. Will pick those up once those land.
Pushed tier-1 cleanup on branch
development_timur(commit2a05555).development: https://forge.ourworld.tf/lhumina_code/hero_skills/compare/development...development_timurTwo files changed, +9 / -4. Tier-3 (new scaffold/refactor/check skills) stays parked here in #260 until hero_rpc#54 + #55 land — no follow-up issue needed since the remaining deliverables are already in this issue's body and the blockers are linked from the META (#262).
Tier-3 — new scaffold / check / refactor skills landed
Pushed three new skills on
development_timur(d97366a). Diff vsdevelopment: https://forge.ourworld.tf/lhumina_code/hero_skills/compare/development...development_timurWhat's new under
skills/hero/service/hero_service_scaffold.md+.tomlWorkspaceScaffolder(library API +hero_rpc_generatorCLI). Documents the generated 5-crate layout, the known gaps the scaffolder doesn't yet emit (Makefile/buildenv.sh removal,_examples,PURPOSE.md,README.md,.forgejo/workflows/build-linux.yaml, hero_rpc2 trait SDK pending), and the post-scaffold validation loop.hero_service_check.md+.tomllab infocheck); per-dimension spot-checks (naming,service.toml, base wiring, socket paths,lab-driven lifecycle, OpenRPC); live smoke-test recipe; finding-to-fix pointer table referencinghero_service_check_fix. Split from_check_fixper the issue body's "leaner check-only skill" option.hero_service_refactor.md+.toml_ui/_client→ fixservice.toml→ rewritemain.rsagainstherolib_core::base→ swap admin tohero_admin_lib→ stage SDK toward hero_rpc2 trait emitter → drop Makefile/scripts/.nu→ regeneratePURPOSE.md/README.md→ add_examples→ add release CI). Drives thelab infocheckfix-loop.Source-of-truth check
hero_rpcdevelopmentandissue-55-codegen-alignment. §1–§6 of #55 are landed on the branch (from_service_toml,_adminviahero_admin_lib, §5main.rsboilerplate,_admin/_sdknaming, per-binaryservice.toml,hero_lifecyclerename, hero_rpc2 vendor + context types + HTTP wiring + scaffolded trait/Python SDK emitters). Skills describe what the scaffolder produces today on that branch, with explicit "known gaps" pointers for the deltas #54 still tracks.[name](name)) —hero_service_toml_info,herolib_base,hero_sockets,hero_service_check_fix,forge-release-workflow, etc. — so agents follow the wiring rules from those skills without duplication.hero_inspectoris referenced only as a negative example ("do not model on this — out of date"), per the acceptance criteria. No mention ofhero_admin_libas something to drop (kept as the canonical admin foundation per parent META).hero/service/format: pure markdown body +.tomlsidecar (description, technology, links, tags, purposes), no YAML frontmatter.Acceptance from the issue body
hero_service_scaffold.mdand produce a working service end-to-end. (Inputs table → scaffold flow → known gaps to patch by hand →lab infocheck+lab service --install/--startvalidation → acceptance checklist.)hero_service_refactor.mdand produce alab infocheck-clean repo. (Ten-step migration plan + explicit acceptance criteria + reference tohero_service_check_fixfor per-finding recipes.)skills/hero/service/mentionshero_admin_liborhero_inspectoras a positive example. (hero_admin_libappears only where the META locks it in as the admin foundation;hero_inspectorappears only with "do NOT mimic.")Closing this issue
All tier-3 deliverables in the issue body are landed. The downstream pieces flagged as "known gaps" in
hero_service_scaffold.md(Makefile/buildenv.sh deletion in scaffolder,_examplescrate emission,PURPOSE.md/README.md/.forgejo/workflows/build-linux.yamlgeneration, hero_rpc2 trait translator) stay with hero_rpc#54 + #55 §2 part 4 and don't belong here. Once both land, the "known gaps" section ofhero_service_scaffold.mdcan shrink in a follow-up cleanup pass on this repo.Marking this complete on my side — ready for review.
Closing — work landed. Both halves done: tier-1 cleanup pass in
0634d4d; new scaffold/check/refactor skills in PR #264 (merged3b04435).