Skip to content

Trim PROMPT.md.tmpl and review prompts — condense boilerplate #143

@federiconeri

Description

@federiconeri

Problem

Several prompt templates have verbose sections that can be condensed:

PROMPT.md.tmpl (~81 lines)

  • Design Quality Check (lines 45-54): 10 lines of checklist → 2 lines referencing the guide
  • Security Review (lines 35-43): 9 lines → 2 lines referencing the guide
  • Learning Capture (lines 63-70): 7 lines → 1 line
  • Rules (lines 72-80): mostly duplicates Task section instructions

Review prompts (PROMPT_review_*.md.tmpl)

  • 3 prompts with ~80% overlap (manual=121 lines, auto=155 lines, merge=194 lines)
  • Each has Troubleshooting section (~6 lines) — Claude knows gh CLI
  • Each has Learning Capture boilerplate (~7 lines)
  • Each has verbose inline Claude review prompt (~20 lines)

Solution

PROMPT.md.tmpl

  • Condense Design Quality Check to: "Before marking UI tasks complete, verify against @.ralph/guides/FRONTEND.md checklist."
  • Condense Security Review to: "Review changes against @.ralph/guides/SECURITY.md. Run {{packageManager}} audit."
  • Condense Learning Capture to: "If this iteration revealed useful patterns or mistakes, append to @.ralph/LEARNINGS.md."
  • Remove redundant Rules that duplicate Task section

Review prompts

  • Remove Troubleshooting sections from all 3
  • Condense Learning Capture to 1 line in all 3
  • Condense inline Claude review prompt

Files

  • src/templates/prompts/PROMPT.md.tmpl
  • src/templates/prompts/PROMPT_review_auto.md.tmpl
  • src/templates/prompts/PROMPT_review_merge.md.tmpl
  • src/templates/prompts/PROMPT_review_manual.md.tmpl

Estimated Reduction

~15 lines from PROMPT.md, ~20 lines per review prompt

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Lower priorityenhancementEnhancement to existing featureperformancePerformance optimization

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions