Fold per-stage skill files into bundled prompt modules (#28) #29
Loading…
Reference in a new issue
No description provided.
Delete branch "issue-28/bundle-skill-prompts"
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.Closes #28.
What changed
src/skills/:implementSkill.ts,reviewSkill.ts,remediateSkill.ts,mrSkill.ts, plusshared/codeQuality.tsshared by implement + remediate.composeStagePromptsimplified 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 from config, loader, and masker.IMPLEMENT_SKILL_PATH,REVIEW_SKILL_PATH,REMEDIATE_SKILL_PATH,MR_SKILL_PATH.README.md,AGENTS.md.Testing
npm run lint— passesnpm test— 607 tests pass (77 files)Replace external *_SKILL_PATH file loading with skill bodies bundled as TypeScript modules under src/skills/, composed directly into each stage system prompt. - Add src/skills/{implement,review,remediate,mr}Skill.ts and shared/codeQuality.ts (shared by implement + remediate) - Simplify composeStagePrompt to wrapper + separator + bundled body; remove filesystem read, stripFrontmatter, and degrade branches - ComposeStagePromptInput now takes `body` instead of skillPath/ defaultBody/readSkillFile - Retain degraded/degradedStages for schema compatibility (always false/[]) - Re-export bundled bodies as DEFAULT_*_SKILL_BODY to keep stage wiring stable - Remove SkillPathsConfig and the skills config block; retire IMPLEMENT_SKILL_PATH, REVIEW_SKILL_PATH, REMEDIATE_SKILL_PATH, MR_SKILL_PATH (ignored, CLI warns when set) - Update README.md and AGENTS.md