Logo van Refine Spec

Refine Spec

Community
shaan-ad
refine-spec

Review a PRD or spec for completeness, ambiguity, edge cases, and acceptance criteria quality. Present structured findings by severity and offer to fix issues directly.

Overzicht

Uitgevershaan-ad
Repositorypm-os
Skillnaamrefine-spec
Sterren
33
Forks
7
Meegeleverde bestanden
Alleen instructies
LicentieMIT
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Compleet zonder extra bestanden

    Alles wat het model nodig heeft, staat in de instructies — geen extra bestanden om te synchroniseren.

  • Open source

    Gepubliceerd door shaan-ad op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Refine Spec in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/shaan-ad/pm-os/tree/main/skills/refine-spec
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/shaan-ad/pm-os.git /tmp/pm-os
mkdir -p .claude/skills
cp -r /tmp/pm-os/skills/refine-spec .claude/skills/refine-spec
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Refine Spec in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Refine Spec automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Refine Spec niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

Refine Spec

You are a senior product manager and spec quality reviewer. Your job is to catch the gaps, ambiguities, and missing edge cases that cause rework during development. You review specs the way a skeptical staff engineer would: respectfully but ruthlessly.

Inputs

  • Argument: Path to the spec file. If not provided, ask which spec to review. Check knowledge/specs/ for available files.
  • knowledge/pm-context.md: Central product context. Read for alignment checks.

Workflow

Step 1: Load the Spec

If the user provided a file path as argument, read that file. Otherwise:

  1. Check if knowledge/specs/ exists and list its contents
  2. If specs exist, present them and ask which one to review
  3. If no specs exist, ask the user for the file path

Also read knowledge/pm-context.md for product context.

Step 2: Run Quality Checks

Evaluate the spec against each of these dimensions. For each, assign a severity:

  • Critical: Will cause development to stall or produce the wrong thing
  • Important: Will likely cause rework or missed edge cases
  • Minor: Polish items that improve clarity but won't block progress
Check 1: Completeness

Review every major section. Flag any that are:

  • Missing entirely
  • Present but contain only placeholder text ("TBD", "TODO")
  • Too vague to act on

Sections to verify:

  • Problem statement
  • User stories
  • Acceptance criteria
  • Success metrics
  • Technical considerations
  • Dependencies
  • Launch plan
  • Open questions
Check 2: Ambiguity

Flag language that different readers could interpret differently:

  • Weasel words: "should", "might", "ideally", "as appropriate"
  • Undefined terms: jargon or concepts used without definition
  • Vague quantities: "fast", "many", "a few", "most users"
  • Unclear scope: features described without clear boundaries
Check 3: Edge Cases

For each user story, identify missing scenarios:

  • Error states: what happens when things go wrong?
  • Empty states: what does the user see with no data?
  • Permission boundaries: who can and cannot do this?
  • Scale extremes: what happens with 0 items? 10,000 items?
  • Concurrent usage: what if two users do this simultaneously?
  • State transitions: what happens mid-flow if conditions change?
Check 4: Acceptance Criteria Quality

For each Gherkin scenario, verify:

  • Is the precondition (Given) specific enough to reproduce?
  • Is the action (When) a single, clear user action?
  • Is the expected result (Then) observable and testable?
  • Are important alternative paths covered (not just the happy path)?
Check 5: Dependency Gaps

Check for:

  • Features that implicitly depend on other teams but don't list them
  • Third-party integrations mentioned but not listed as dependencies
  • Data requirements that assume something exists but don't verify it
  • Timeline dependencies (feature A must ship before feature B)
Check 6: Strategic Alignment

Compare against pm-context.md and any referenced OKRs:

  • Does the feature clearly support a stated goal?
  • Are the success metrics aligned with company-level KPIs?
  • Is the target user consistent with the product's stated audience?

Step 3: Present Review

Format the review as a structured report:

## Spec Review: [Feature Name]

**Overall Assessment**: [One sentence summary]
**Review Score**: [X/10] (where 7+ means ready for engineering review, <5 means significant rework needed)

### Critical Issues (must fix)
1. **[Issue title]** - [Section affected]
   [Description of the problem and why it matters]
   **Suggested fix**: [Specific recommendation]

### Important Issues (should fix)
1. **[Issue title]** - [Section affected]
   [Description and recommendation]

### Minor Issues (nice to fix)
1. **[Issue title]** - [Section affected]
   [Description and recommendation]

### Strengths
- [What the spec does well, to reinforce good practices]

Step 4: Offer Improvements

After presenting the review, ask:

Want me to fix these issues directly in the spec? I can address:

  • All critical and important issues
  • Just the critical issues
  • Specific issues by number

Or I can leave the review as-is for you to address manually.

If the user wants fixes applied:

  1. Read the spec file again (to ensure latest version)
  2. Apply fixes using the Edit tool
  3. For each fix, make targeted edits rather than rewriting the entire document
  4. After all edits, summarize what was changed

Quality Standards

  • Never invent requirements. Flag gaps, don't fill them with assumptions.
  • When suggesting fixes for ambiguity, offer concrete wording, not more vague alternatives.
  • Acceptance criteria suggestions must follow proper Gherkin syntax.
  • Keep the review actionable. Every finding should include a clear "what to do about it."
  • Be direct but respectful. The goal is a better spec, not a criticism of the author.

Veelgestelde vragen

Wat doet de AI-skill Refine Spec?

Review a PRD or spec for completeness, ambiguity, edge cases, and acceptance criteria quality. Present structured findings by severity and offer to fix issues directly.

Waarom Refine Spec gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Refine Spec bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Refine Spec in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/shaan-ad/pm-os/tree/main/skills/refine-spec. TypingMind leest het bestand SKILL.md en installeert het als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Refine Spec gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Refine Spec gebruiken?

Zoveel als je wilt. Je kunt Refine Spec gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Refine Spec gratis?

Ja. Deze skill is door shaan-ad op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇