Skip to content

docs(skills): condense skill docs for better agent context efficiency#358

Open
subsy wants to merge 1 commit intomainfrom
improve/skill-docs-condensed
Open

docs(skills): condense skill docs for better agent context efficiency#358
subsy wants to merge 1 commit intomainfrom
improve/skill-docs-condensed

Conversation

@subsy
Copy link
Owner

@subsy subsy commented Mar 13, 2026

Summary

  • Condense all four SKILL.md files by removing redundant sections while keeping all critical content inline
  • Merge duplicate "Story Ordering" and "Dependencies" sections into one
  • Tighten verbose prose without losing practical calibration examples
  • Trim checklists to essentials

Motivation

Inspired by PR #339 (thanks @popey!) which correctly identified redundancy across skill files. That PR split content into companion files (EXAMPLES.md, REFERENCE.md, ANTI_PATTERNS.md), but since agents only read SKILL.md at runtime (src/commands/create-prd.tsx:79-91, src/setup/skill-installer.ts:142-146), moved content would become invisible during skill execution.

This PR takes the consolidation wins from #339 while keeping all high-signal content inline:

  • Worked examples (Input PRD → Output) stay in SKILL.md
  • Schema anti-patterns stay in create-json's SKILL.md
  • br/bd comparison table stays in beads-rust's SKILL.md

Results

Skill Before After Reduction
create-beads-rust 362 lines 309 lines -15%
create-beads 338 lines 284 lines -16%
create-json 387 lines 347 lines -10%
ralph-tui-prd 328 lines 314 lines -4%
Total 1415 1254 -11%

What was removed

  • Redundant "Story Ordering: Dependencies First" section (merged into Dependencies)
  • Verbose ralph-tui behavior bullet lists (condensed to one sentence each)
  • Repeated good/bad acceptance criteria examples (kept guidance, dropped repetition)
  • Checklist items that duplicate body content

What was kept

  • All worked examples (most important for agent output quality)
  • All anti-patterns (critical guardrails for create-json)
  • br/bd comparison table
  • Story sizing with right-sized/too-big examples and rule of thumb

Test plan

  • bun run typecheck passes
  • bun run build passes
  • Skills content review: verify no critical guidance was lost

Summary by CodeRabbit

  • Documentation
    • Updated guidance documentation with clearer, more concise content across skill resources.
    • Added explicit clarification that ralph-tui spawns a fresh agent instance per iteration with no persistent memory between iterations.
    • Enhanced documentation on dependency handling and blocking behaviour.
    • Streamlined narrative flow with consolidated examples and standardised phrasing throughout.

Reduce redundancy across all four SKILL.md files while keeping all
critical content inline (worked examples, anti-patterns, reference
tables). Agents only read SKILL.md at runtime, so splitting content
into companion files would make it invisible during execution.

Changes:
- Merge "Story Ordering" into "Dependencies" section (was redundant)
- Condense verbose ralph-tui behavior lists to single sentences
- Tighten acceptance criteria guidance (keep good/bad, drop repetition)
- Trim checklists to essentials (remove items that repeat body content)
- Keep all worked examples, anti-patterns, and br/bd comparison inline

Inspired by PR #339 (popey) which identified the redundancy issues.
@vercel
Copy link

vercel bot commented Mar 13, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
ralph-tui Ignored Ignored Mar 13, 2026 5:19pm

Request Review

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 13, 2026

Walkthrough

Documentation files for Ralph-TUI skills were updated to reduce verbosity and consolidate guidance. Changes include merging bullet lists into concise statements, restructuring sections for clarity, adding clarification that Ralph-TUI spawns a fresh agent per iteration with no memory of prior work, and simplifying narrative flow without altering the underlying workflow structure.

Changes

Cohort / File(s) Summary
Ralph-TUI Skill Documentation
skills/ralph-tui-create-beads-rust/SKILL.md, skills/ralph-tui-create-beads/SKILL.md, skills/ralph-tui-create-json/SKILL.md, skills/ralph-tui-prd/SKILL.md
Editorial consolidation reducing verbosity through merged bullet lists, condensed sections (Story Size, Dependencies, Acceptance Criteria, Conversion Rules, and Checklists), and added clarification that Ralph-TUI spawns a fresh agent per iteration with no memory. Minor semantic additions regarding blocking dependencies and quality gates, but no workflow or logic changes.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarises the main change: condensing skill documentation files to improve agent context efficiency, which aligns with the primary objective of reducing verbosity while preserving critical content.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch improve/skill-docs-condensed
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (3)
skills/ralph-tui-create-beads/SKILL.md (1)

280-282: Consider matching checklist dependency wording to the full progression.

Earlier sections use schema → backend → UI → integration; checklist Line 282 stops at UI. For consistency, you may want to include integration here too.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@skills/ralph-tui-create-beads/SKILL.md` around lines 280 - 282, Update the
checklist item "Stories ordered by dependency (schema → backend → UI)" to match
the full progression used elsewhere by appending "→ integration" so it reads
"Stories ordered by dependency (schema → backend → UI → integration) to maintain
consistency with earlier sections.
skills/ralph-tui-create-beads-rust/SKILL.md (1)

79-79: Consider adding a comma for improved readability.

The new context about ralph-tui's memory model is valuable. For better readability, consider adding a comma after "iteration":

"Each story must be completable in ONE ralph-tui iteration (~one agent context window), ralph-tui spawns a fresh agent per iteration with no memory of previous work."

However, this could also be two separate sentences for even greater clarity:

"Each story must be completable in ONE ralph-tui iteration (~one agent context window). Ralph-tui spawns a fresh agent per iteration with no memory of previous work."

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@skills/ralph-tui-create-beads-rust/SKILL.md` at line 79, Edit the sentence
"Each story must be completable in ONE ralph-tui iteration (~one agent context
window). ralph-tui spawns a fresh agent per iteration with no memory of previous
work." to improve readability by either adding a comma after "iteration" (making
it a single sentence) or by capitalizing and separating into two sentences as
suggested; ensure "ralph-tui" is capitalized consistently if you split into two
sentences ("Ralph-tui") to match surrounding style.
skills/ralph-tui-create-json/SKILL.md (1)

168-168: Consider adding a comma for improved readability.

Similar to the beads-rust skill, this important context about ralph-tui's memory model would benefit from a comma after "iteration" or splitting into two sentences:

"Each story must be completable in ONE ralph-tui iteration (~one agent context window). Ralph-tui spawns a fresh agent per iteration with no memory of previous work."

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@skills/ralph-tui-create-json/SKILL.md` at line 168, The sentence "Each story
must be completable in ONE ralph-tui iteration (~one agent context window).
Ralph-tui spawns a fresh agent per iteration with no memory of previous work."
needs improved readability by adding a comma or splitting into two sentences;
update the line containing "Each story must be completable in ONE ralph-tui
iteration (~one agent context window)" to add a comma after "iteration" (or
rewrite as two sentences as suggested) so it reads clearly and matches the style
used in similar skills like the beads-rust example.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@skills/ralph-tui-create-beads/SKILL.md`:
- Around line 122-124: The priority scale is inconsistent: the CLI flag string
"--priority=[1-4]" and examples use 1/2/3 but the "Priority:" line uses
"0=critical" and "4=backlog"; update the document to use a single scale
(recommend changing "0=critical" to "1=critical" and clarify "1=critical,
2=high, 3=medium, 4=backlog") and then adjust the "Priority:" line and any
examples or descriptions that reference 0/1/2/3 to the chosen 1-4 scale so they
match the "--priority=[1-4]" flag and examples.

---

Nitpick comments:
In `@skills/ralph-tui-create-beads-rust/SKILL.md`:
- Line 79: Edit the sentence "Each story must be completable in ONE ralph-tui
iteration (~one agent context window). ralph-tui spawns a fresh agent per
iteration with no memory of previous work." to improve readability by either
adding a comma after "iteration" (making it a single sentence) or by
capitalizing and separating into two sentences as suggested; ensure "ralph-tui"
is capitalized consistently if you split into two sentences ("Ralph-tui") to
match surrounding style.

In `@skills/ralph-tui-create-beads/SKILL.md`:
- Around line 280-282: Update the checklist item "Stories ordered by dependency
(schema → backend → UI)" to match the full progression used elsewhere by
appending "→ integration" so it reads "Stories ordered by dependency (schema →
backend → UI → integration) to maintain consistency with earlier sections.

In `@skills/ralph-tui-create-json/SKILL.md`:
- Line 168: The sentence "Each story must be completable in ONE ralph-tui
iteration (~one agent context window). Ralph-tui spawns a fresh agent per
iteration with no memory of previous work." needs improved readability by adding
a comma or splitting into two sentences; update the line containing "Each story
must be completable in ONE ralph-tui iteration (~one agent context window)" to
add a comma after "iteration" (or rewrite as two sentences as suggested) so it
reads clearly and matches the style used in similar skills like the beads-rust
example.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: a088aa80-d618-40a5-88a3-aabc948971fa

📥 Commits

Reviewing files that changed from the base of the PR and between fcea670 and 033011c.

📒 Files selected for processing (4)
  • skills/ralph-tui-create-beads-rust/SKILL.md
  • skills/ralph-tui-create-beads/SKILL.md
  • skills/ralph-tui-create-json/SKILL.md
  • skills/ralph-tui-prd/SKILL.md

Comment on lines +122 to +124
3. **Dependencies**: Schema/database → backend → UI → integration (use `bd dep add` after creating beads)
4. **Priority**: Based on dependency order, then document order (0=critical, 2=medium, 4=backlog)
5. **All stories**: `status: "open"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Priority scale is internally inconsistent in this document.

Line 123 says 0=critical, but earlier output format uses --priority=[1-4] (Line 70) and examples use 1/2/3. Please align one scale across all sections to avoid incorrect bead creation.

Suggested doc fix
-4. **Priority**: Based on dependency order, then document order (0=critical, 2=medium, 4=backlog)
+4. **Priority**: Based on dependency order, then document order (1=high, 2=medium, 3=low, 4=backlog)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
3. **Dependencies**: Schema/database → backend → UI → integration (use `bd dep add` after creating beads)
4. **Priority**: Based on dependency order, then document order (0=critical, 2=medium, 4=backlog)
5. **All stories**: `status: "open"`
3. **Dependencies**: Schema/database → backend → UI → integration (use `bd dep add` after creating beads)
4. **Priority**: Based on dependency order, then document order (1=high, 2=medium, 3=low, 4=backlog)
5. **All stories**: `status: "open"`
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@skills/ralph-tui-create-beads/SKILL.md` around lines 122 - 124, The priority
scale is inconsistent: the CLI flag string "--priority=[1-4]" and examples use
1/2/3 but the "Priority:" line uses "0=critical" and "4=backlog"; update the
document to use a single scale (recommend changing "0=critical" to "1=critical"
and clarify "1=critical, 2=high, 3=medium, 4=backlog") and then adjust the
"Priority:" line and any examples or descriptions that reference 0/1/2/3 to the
chosen 1-4 scale so they match the "--priority=[1-4]" flag and examples.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant