feat(AI-82): port chapter generation prompts into SKILL.md Step 3#26
Merged
dastratakos merged 1 commit intoMay 4, 2026
Conversation
Replace the Step 3 TODO with the full chapter clustering, narration, and key-change-extraction prompt ported from the Stage monorepo's analysis-agent.ts and narrative-agent.ts system prompts.
There was a problem hiding this comment.
Code Review
This pull request replaces a placeholder in SKILL.md with comprehensive instructions for clustering and narrating code changes into 'chapters,' defining rules for grouping hunks, narration style, and identifying key changes. A review comment suggests ensuring the output format uses standard JSON instead of jsonc to avoid parsing errors if comments are included in the generated output.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replace the Step 3 TODO in
skills/stage-chapters/SKILL.mdwith the full chapter generation prompt, ported from the Stage monorepo'sanalysis-agent.tsandnarrative-agent.tssystem prompts. After this change, an agent following the skill produces real Stage-quality chapters with clustering, narration, and key-change extraction in a single pass.Changes
(filePath, oldStart)from@@headerslineRefswith OLD/NEW column guidance, all good/bad examples fromnarrative-agent.tsChaptersFileSchemaTesting
ChaptersFileSchemainpackages/cli/src/schema.tsandhunkReferenceSchema/lineRefSchemainpackages/types/src/chapters.ts