Fold per-stage skill files into bundled prompt modules (retire *_SKILL_PATH) #28
Loading…
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?
Summary
Fold the per-stage skill bodies into bundled TypeScript modules composed directly into each stage's system prompt, replacing the external
*_SKILL_PATHfile-loading mechanism and its degrade path.Motivation
src/skills/alongside the code, with shared guidance factored out.What changed
src/skills/:implementSkill.ts,reviewSkill.ts,remediateSkill.ts,mrSkill.tsshared/codeQuality.tsshared by implement + remediatecomposeStagePromptsimplified towrapper + separator + bundled body; removed the filesystem read,stripFrontmatter, and all degrade branches.ComposeStagePromptInputnow takesbody(bundled) instead ofskillPath/defaultBody/readSkillFile.degraded/degradedStagesretained in the schema for downstream/artifact compatibility, but alwaysfalse/[].defaults.tsre-export the bundled bodies under the historicDEFAULT_*_SKILL_BODYnames to keep stage wiring stable.SkillPathsConfigand theskillsblock fromPiLoopConfig/MaskedConfigand the loader/masker.IMPLEMENT_SKILL_PATH,REVIEW_SKILL_PATH,REMEDIATE_SKILL_PATH,MR_SKILL_PATH.README.md,AGENTS.md(error-handling policy, config, testing expectations).Acceptance Criteria
src/skills/(implement/review/remediate/mr +shared/codeQuality.ts)composeStagePromptcomposes wrapper + bundled body with no file read and no degrade pathComposeStagePromptInputusesbodyinstead ofskillPath/defaultBody/readSkillFiledegraded/degradedStagesretained for compatibility and alwaysfalse/[]*_SKILL_PATHenv vars removed from config and added toRETIRED_ENV_VARSREADME.mdandAGENTS.mdupdated to reflect bundled skillsnpm testandnpm run lintpassRelated
DESIGN.mdIMPLEMENT_SKILL_PATH,REVIEW_SKILL_PATH,REMEDIATE_SKILL_PATH,MR_SKILL_PATH