Implement the following plan: Plan: Improve Strategy Selection for Standards, Skills,…
- User
Implement the following plan:
Plan: Improve Strategy Selection for Standards, Skills, and Generic Updates
Context
The remediation pipeline routes each issue fix to one of three output types: standard (rule file), skill (SKILL.md), or generic update (main agent file). The current guidance has two weaknesses:
- Biased toward generic: "When in doubt, prefer a standard" sounds good but the generic update is currently the catch-all for a broad range of issues (anything under
completeness,outdated-documentation,structure-formatting), when those could often be better expressed as standards or skills. - Decision criteria are under-specified: The 3 questions don't distinguish between content needing project-specific resources (→ skill) and static reference content (→ generic).
The builder.io article reinforces: skills win when context varies by task; rules are always-on non-negotiables; generic/main-file is for static reference material only. The user wants the pipeline to more actively create standards and skills, reserving generic for truly static content.
File to Modify
src/shared/remediation/prompt-generator.ts— thegetOutputTypeInstructions()function (lines 238–289)- The type descriptions (lines 268–272)
- The decision criteria (lines 274–280)
- The error-specific guidance (lines 249–262)
Changes
1. Stronger bias framing in the output types intro
Replace the neutral "decide on ONE output type" intro with an explicit preference statement:
Strongly prefer standards and skills over generic updates. Generic updates are for static reference content only — not for documenting behaviors, constraints, or processes.
2. Enrich the output type descriptions
- Standard: add concrete examples — naming conventions, code style guidelines, non-negotiables
- Skill: emphasize repeatable workflows, multi-step processes, project-specific context (file paths, patterns, templates)
- Generic Update: narrow the scope explicitly to "static reference content" (project structure, setup steps, architecture notes)
3. Two new decision criteria (Q4 and Q5)
Current: 3 questions. New: 5 questions.
code - Biased toward generic: "When in doubt, prefer a standard" sounds good but the generic update is currently the catch-all for a broad range of issues (anything under
Assistant
Now I have the exact content. Let me make the changes:
Assistant
Now let's check the test file to see what needs updating:
Assistant
All 1309 tests pass. Let me also run lint:
Assistant
All tests pass and lint is clean. Here's a summary of the changes made to
src/shared/remediation/prompt-generator.ts:-
Stronger bias framing: The intro now reads "Strongly prefer standards and skills over generic updates. Generic updates are for static reference content only."
-
Enriched output type descriptions:
- Standard: now explicitly mentions "naming conventions, code style guidelines, and non-negotiables"
- Skill: highlights "repeatable workflows, multi-step processes, project-specific context (file paths, patterns, templates)" and "richer instructional content"
- Generic Update: narrowed to "static reference content only"
-
Two new decision criteria (Q4 and Q5):
- Q4: Project-specific resources → skill
- Q5: Static reference information → generic update
-
Replaced "when in doubt" fallback with "Bias toward creating standards and skills" with a clear condition for when to use generic update.
-
Split
completenesscategory in error hints:
-
- User
commit
Assistant
The pre-commit hooks all passed (1309 tests, lint, typecheck). Let me check if the commit actually landed:
Assistant
The commit didn't land. Let me check what's staged and try again:
Assistant
The commit succeeded —
rtkfalsely reported failure because a post-hook returned a non-zero exit code. Theprepare-commit-msghook rewrote the message to match the checkpoint, but all 8 files (including the prompt-generator changes) are in commit84b5be2:codeSurface all 4 remediation prompts in UI + fix CLAUDE.md re-consolidationThe prompt-generator changes are included in that commit alongside the other staged files.