|
| 1 | +--- |
| 2 | +name: rfspec |
| 3 | +version: 1.2.0 |
| 4 | +description: | |
| 5 | + Multi-model spec generation and synthesis. Use when the user wants to: |
| 6 | + - Get competing proposals from different AI models |
| 7 | + - Compare approaches to a problem from different perspectives |
| 8 | + - Synthesize the best parts of several proposals into one spec |
| 9 | + Keywords: rfspec, competing specs, multi-model, compare approaches, |
| 10 | + multiple perspectives, request for spec, fan out, model comparison. |
| 11 | + NOT for: single-model generation, code review, or running tests. |
| 12 | +--- |
| 13 | + |
| 14 | +# rfspec -- Request for Spec |
| 15 | + |
| 16 | +Fan out a prompt to multiple models, compare their responses, and help the user pick or synthesize the best result. |
| 17 | + |
| 18 | +## Quick Reference |
| 19 | + |
| 20 | +| Task | Action | |
| 21 | +|------|--------| |
| 22 | +| Generate competing specs | `/rfspec <prompt>` | |
| 23 | +| Pick one result | Select via AskUser after comparison | |
| 24 | +| Synthesize results | Combine strongest elements when user chooses synthesis | |
| 25 | +| Save final spec | Write to `specs/active/YYYY-MM-DD-<slug>.md` | |
| 26 | + |
| 27 | +## Workflow |
| 28 | + |
| 29 | +1. Run `/rfspec <user's prompt>` -- fires parallel model calls, returns labeled options (A, B, C). |
| 30 | +2. Evaluate the results -- see [references/evaluation-guide.md](references/evaluation-guide.md). |
| 31 | +3. Present the choice to the user via AskUser. |
| 32 | +4. Save the selected or synthesized result. |
| 33 | + |
| 34 | +## Saving |
| 35 | + |
| 36 | +Save the final result (picked or synthesized) to: |
| 37 | + |
| 38 | +``` |
| 39 | +specs/active/YYYY-MM-DD-<slug>.md |
| 40 | +``` |
| 41 | + |
| 42 | +Where `<slug>` is a short kebab-case name derived from the topic. |
| 43 | + |
| 44 | +## Pitfalls |
| 45 | + |
| 46 | +- Don't summarize each option individually -- compare them against each other. |
| 47 | +- Don't concatenate when synthesizing -- resolve contradictions and produce a coherent document. |
| 48 | +- If all options are rejected, gather feedback and re-run with a refined prompt. |
| 49 | + |
| 50 | +## Verification |
| 51 | + |
| 52 | +After saving a spec: |
| 53 | + |
| 54 | +1. Confirm the file exists at the expected path. |
| 55 | +2. Verify it contains the selected or synthesized content. |
| 56 | +3. Report the saved path to the user. |
| 57 | + |
| 58 | +## Examples |
| 59 | + |
| 60 | +Example 1: User wants competing specs |
| 61 | +User says: "Get me specs from multiple models for adding a dark mode toggle" |
| 62 | +Actions: |
| 63 | + |
| 64 | +1. Run `/rfspec add a dark mode toggle to the settings page with persistent user preference` |
| 65 | +2. Read Options A, B, C |
| 66 | +3. Compare: "Option A uses CSS variables with a React context, Option B uses Tailwind's dark class with localStorage, Option C uses a theme provider with system preference detection." |
| 67 | +4. Present choice via AskUser |
| 68 | +Result: User picks Option B, saved to `specs/active/2026-03-06-dark-mode-toggle.md` |
| 69 | + |
| 70 | +Example 2: User wants synthesis |
| 71 | +User says: "rfspec this: refactor the auth module to use JWT" |
| 72 | +Actions: |
| 73 | + |
| 74 | +1. Run `/rfspec refactor the auth module to use JWT` |
| 75 | +2. Compare results, noting Option A has better token rotation but Option C has cleaner middleware |
| 76 | +3. User selects "Synthesize" |
| 77 | +4. Combine Option A's rotation logic with Option C's middleware structure |
| 78 | +Result: Synthesized spec saved to `specs/active/2026-03-06-auth-jwt-refactor.md` |
| 79 | + |
| 80 | +Example 3: All options rejected |
| 81 | +User says: "None of these work, they all miss the caching layer" |
| 82 | +Actions: |
| 83 | + |
| 84 | +1. Ask what's missing -- user explains the Redis caching requirement |
| 85 | +2. Offer to re-run: `/rfspec refactor auth module to use JWT with Redis session caching` |
| 86 | +Result: New round of specs generated with caching addressed |
| 87 | + |
| 88 | +## References |
| 89 | + |
| 90 | +- [references/evaluation-guide.md](references/evaluation-guide.md) -- how to compare, synthesize, and handle rejection |
| 91 | +- [references/troubleshooting.md](references/troubleshooting.md) -- error codes and fixes |
0 commit comments