Skip to content
Back to skills

Refine

ASecurity

Challenge a ticket or a feature before coding — structured discussion in 6 steps: extraction of hidden assumptions, severity matrix (Crack/Tension/Foundation risk), free discussion, underlying question, conclusion among 5 possible outcomes (Go / Adapt / Drop / Backlog V2 / Blocker). Trigger when the user says \"refine\", \"/refine [ticket name]\", \"let's discuss this feature\", \"challenge this ticket\", \"is this feasible\", \"validate the specs\", \"what are the alternatives\", or before s...

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 7, 2026
developmentgoreactexpressapi

Works with

  • claude code
  • api

Security analysis

A100/100

Scanned November 7, 2026

npx -y skills add Zoomma1/get-your-life-together --skill refine --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Refine?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Refine
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/zoomma1-refine/badge)](https://www.skillsdirectory.com/skills/zoomma1-refine)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: refine
description: "Challenge a ticket or a feature before coding — structured discussion in 6 steps: extraction of hidden assumptions, severity matrix (Crack/Tension/Foundation risk), free discussion, underlying question, conclusion among 5 possible outcomes (Go / Adapt / Drop / Backlog V2 / Blocker). Trigger when the user says \"refine\", \"/refine [ticket name]\", \"let's discuss this feature\", \"challenge this ticket\", \"is this feasible\", \"validate the specs\", \"what are the alternatives\", or before starting a feature whose specs are unclear. Pair programming mode — no code until {USER_NAME} explicitly says \"go\" or \"take over\"."
narrative_critical: true
---

> **⚠️ narrative-critical — Skill protected against aggressive optimization**
>
> This skill produces **qualitative narrative output**. Its effectiveness is measured by the **richness of the output produced**, not by structural compactness.
>
> **For `/evaluateskills`**: in case of mutation, **a Sonnet dry-run is mandatory even if delta < 2**. Do NOT apply `[LEAN]` / `[STRUCTURE]` in a way that strips the narrative instructions (grouping, context, highlights, open questions, tone, storytelling). Preservation of qualitative content takes precedence over line reduction.

# Skill: Refine

This skill opens a structured discussion on a ticket or a feature **before the code**. Its goal is to avoid 3 common pitfalls:
1. Coding the wrong thing because the specs are vague
2. Discovering halfway through that a dependency or an assumption was wrong
3. Implementing in the wrong direction for lack of exploring the alternatives

Refine = challenge the specs, identify what is implicit, assess feasibility, and decide together what comes next.

## Triggers

- Command `/refine [ticket name]`
- The user says "let's discuss this feature", "challenge this ticket", "is this feasible", "take over the refine of ticket X"
- **Any ticket moving to Ready** — `/refine` is mandatory before confirming the move to Ready, whether during `/today`, a standalone refinement session, or any other session. Do not wait for an explicit request from {USER_NAME}.

**Skill structure**: 6 steps — load context → assumptions extraction → analysis + risks → discussion → underlying question → conclusion. Two intermediate steps only activate on **dev tickets**: 5.5 (agentic specs) and 5.6 (adversarial pass).

## Early detection — Exploratory ticket (ADR-046)

**Before Step 1**, check whether the ticket is exploratory:
- Title contains "Explore", "Exploration", "Investigate", **"Audit" / "Auditer"** *(extended 2026-08-18)*, or
- Description clearly indicates a discovery activity ("read", "look at", "understand", "assess whether X is worth it")

**If exploratory → lightened format**:
- Skip Steps 1-5 (assumptions, severity matrix, discussion, underlying question)
- **The inventory part is done right away if it costs less than 5 min** *(2026-08-18)* — it is what corrects the framing, and it cannot be corrected from the backlog. `/refine` reads the **ticket**, never the **ground truth**: it can only *refine* the starting hypothesis, never invalidate it. *(Measured on 08/18: a 20-second inventory produced 6 skills, of which 3 were not guessed by the ticket, 1 false positive and 2 out of scope — a full refine would have refined a 5-name list that was 40% wrong. See ADR-046, amendment of 08/18.)*
- Direct pass: **frame (→ Ready) / backlog V2 / drop** + 2-3 lines of reasoning
- The only question: "is it worth exploring this, and if so, in what form?"
- **Frame → Ready**: an investigation/instrumentation ticket that comes out of the refine with a defined scope (priority #1 identified, out-of-scope named) moves to the **Ready** column like any other ticket — it follows the `✏️ Adapt` outcome, **never left in Idea**. An investigation ticket remains actionable: in Idea it gets forgotten ({USER_NAME}'s decision, session 19:16 2026-05-17).
- **Backlog V2 / reserved Idea** only for genuinely premature cases (missing prerequisites), not as the default for exploratory tickets.
- **Absolute rule**: never conclude "Drop" without having read the source. Correct flow: read → extract learnings (Knowledge note if relevant) → implementation tickets right after, if they are worth it.

**If not exploratory → standard flow Steps 1-6.**

## Step 1 — Load the context

1. Look for the ticket in the Kanbans of the active projects:
   - Read `{VAULT_PATH}\{PROJECTS_FOLDER}\[ProjectName]\` to locate the Features or Kanban file
   - Look for the ticket's note (format: `FeatureName.md` or equivalent)
2. If found → read the ticket note + the existing specs. **Proceed directly, without asking permission — {USER_NAME} named the ticket, they expect it to be loaded.**
3. Read the README of the project concerned (`{VAULT_PATH}\{PROJECTS_FOLDER}\[ProjectName]\claude-code\README.md`) for the technical context
4. **Never load skills in anticipation** — wait for an explicit request from {USER_NAME} ("show me", "how would you do it", "take over")

**If the ticket is not found or poorly written** → ask {USER_NAME} to describe it directly in the chat. Accept a verbal description as the source of truth for the refine. If the description given is fragmentary, iterate: ask clarifying questions (scope, context, dependencies) before moving to Step 2.

## Step 1.5 — Ticket recap

Before any analysis, restate the ticket in plain terms: type, project, what it does, why, expected behavior, out of scope, any hard point flagged by the ticket. Short format — a readable summary, not a copy-paste of the file.

**Purpose**: {USER_NAME} confirms we are talking about the same ticket before investing in the analysis — catches a framing misunderstanding in 30 seconds instead of after several rephrasings.

This also applies to **exploratory tickets** (lightened format): short recap → then verdict frame / backlog V2 / drop.

## Step 2 — Extraction and validation of assumptions

Before analyzing the ticket, identify the hidden assumptions it contains. State them explicitly:

- "We assume that..." (e.g. "...the DB is accessible in real time")
- "This presupposes that..." (e.g. "...{USER_NAME} has access to a third-party API")
- "This only works if..." (e.g. "...we accept a 2s latency")

**Concrete format**: present 3-5 key assumptions, one per line, validated against the ticket and the project README.

**Then validate with {USER_NAME}** before continuing. The goal: avoid spending an hour discussing a false version of the ticket.
- If {USER_NAME} confirms → continue to Step 3
- If {USER_NAME} contradicts → immediately go back to Step 1 to re-read and adjust
- If {USER_NAME} adds an assumption → incorporate it and re-validate

## Step 3 — Analysis + Severity matrix

Present an honest analysis with a classification of each risk:

```
## Analysis of [TicketName]

### What I understand
[Summary of what the ticket asks for]

### Feasibility
[Feasible / Feasible with constraints / Complex / To be reconsidered]

### Risks and sticking points
- **Crack** (minor) — [e.g. small ambiguity or detail to clarify]
- **Tension** (blocking until resolved) — [e.g. contradiction, missing decision]
- **Foundation risk** (critical) — [e.g. external dependency, false assumption = ticket collapses]

### Open questions
- ...

### My opinion
[Direct opinion — no empty diplomacy]
```

**Risk ranking**:
- **Crack** → continue the discussion, revisit in the next sprint if needed
- **Tension** → ask {USER_NAME} the question now, block the Go until resolved
- **Foundation risk** → STOP. Identify who must validate and document the dependency. Tag `#blocked` if blocking.

**Handle in order**: Foundation risks first, then Tensions, then Cracks.

**Heuristics by ticket type** — apply before concluding on feasibility:

- **Acquisition / scale** → first check the existing usage baseline (retention of users already onboarded) before discussing channel or format. 20 users, 0 retained = scaling is like filling a leaky bucket. The real question comes first.
- **Fix already specced** → validate the spec and decide the outcome, **do not trigger an investigation**. Commands, access, diagnosis = execution, not refine. A conditional unknown (e.g. the real port of a container) is resolved at execution time — it is not a spec blocker.
- **Measurement** → check whether the data already exists elsewhere (infra logs, metrics, platform dashboards) **before** prescribing instrumentation (DB field, event table, custom code). Do not instrument what is already measured.
- **Structural discovery during refine** (the problem is bigger than the ticket) → create a dedicated decision ticket (decide drop / rewrite / merge). Do not patch it on the fly.

## Step 4 — Discussion

Free discussion mode — {USER_NAME} gives their opinion, we iterate until a decision or a pivot.

**Rules during the discussion**:
- Name the problems directly, propose an alternative, let {USER_NAME} decide — no automatic validation
- Stay concrete — always anchor in the real project context
- No code during the discussion — only when the user says "show me" or "take over"
- **Limit**: if the discussion loops (same question asked 3+ times, no progress), propose stopping and waiting for more information. Document the stopping point in the ticket.

**If {USER_NAME} wants to abort or pivot**:
- Respect the decision without negotiating
- Document what was explored and why the discussion stops (for future context)
- Move to Step 6 (Conclusion) and select an appropriate outcome (often Blocker if it is an external dependency, or Backlog V2 if it is a future pivot)

## Step 5 — The underlying question

Before concluding, identify and ask the hidden question — the one that was not named explicitly but conditions the final decision:

**Concrete examples**:
- "Do we accept a complicated solution now or simplify it in V2?"
- "What is the real blocking dependency — is it truly insurmountable?"
- "Do we code for the nominal case or anticipate all edge cases?"
- "Does this ticket solve the real user problem, or just a symptom?"

**Why it matters**: the Tensions and Cracks we identified often reflect a single real underlying question. Asking it directly speeds up the final decision.

**Attitude**: ask the question directly, without empty diplomacy. Do not validate the answer automatically — wait for {USER_NAME}'s reaction.

## Step 5.5 — Agentic specs (dev tickets)

This step only activates for **dev** tickets. It exists because a ticket meant for code benefits from arriving with its execution contract already surgical — breakdown, validation points, testable criteria. {USER_NAME}'s insight (2026-05-15): this granularity is useful **even when the ticket is coded by hand**, not only when facing an agent. So it is not an "for the machine" artifact, it is simply a better refine for dev tickets.

**Detect the dev signal** — the ticket is attached to a code project ([project-A], [project-B]…) **or** its content contains dev keywords: `route`, `component`, `migration`, `skill`, `endpoint`, `service`, `refactor`, `query`, `test`. The list guides the judgment, it does not confine it — a clearly dev ticket without these exact words counts too.

**If signal detected → propose, {USER_NAME} decides in one word**: *"Dev ticket — should I generate the `### Agentic specs` block in `## Generated specs`? (yes/no)"*. No frontmatter to type, no rigid gating: the block stays under {USER_NAME}'s control, consistent with the fact that it is not tied to the actual execution mode (agentic or main).

**If no signal, or if the user says no** → add nothing, move to Step 6 normally.

**If {USER_NAME} confirms** → the ✏️ Adapt outcome of Step 6 must write the `### Agentic specs` subsection (detailed structure in that branch).

## Step 5.6 — Adversarial pass (dev tickets)

This step exists for one reason: **the refine cannot critique itself**. A refine's sycophancy is *relational* — it arises from the discussion history, where agreement was built turn after turn. An instruction such as "be more critical" addressed to the same model drifts, because it asks the one who just validated to attack. What works is a mechanism: **delegate the critique to an agent that never saw the conversation**. It cannot be sycophantic toward an agreement it did not take part in.

**Gate** — same dev signal as Step 5.5. Non-dev ticket (essay, vault ops, organization) → **no pass**, go directly to Step 6. If Step 5.5 ran, the pass applies.

**Position in the flow** — the pass runs **before** Step 6 writes anything into the note. At this stage the direction is settled (Steps 3-5): draft the content of the `## Generated specs` **without writing it into the ticket yet**, send it to the agent, and let Step 6 write only the version that survived. A demolished spec never lands in the file — it is not corrected afterward, it never enters.

**If the anticipated outcome is ✅ Go** (the specs are already in the ticket and have nothing to rewrite), there is no prior drafting: the artifact attacked is the **note as it is**. The pass still applies — this is precisely where it has the most value, a ✅ Go being exactly the moment where the refine found nothing to object to. If the `### Agentic specs` block from Step 5.5 was produced, it is part of the attacked artifact: the execution contract is critiqued like the rest.

### What we give the agent, what we hide from it

- ✅ **Given** — the complete ticket note · the drafted content of the specs · **pointers** to the project technical context (project README, project `CLAUDE.md`, constraints, target files).
- 🚫 **Hidden** — **the entire refine conversation history, without exception**: the exchanges, {USER_NAME}'s validations, the confirmed assumptions, the tone of the discussion.

**Excluding the conversational history is the entirety of the mechanism.** Passing it on "for context" reopens exactly the flaw this step closes: the agent would see the agreement being built and fall in line. If the agent lacks material, the answer is **more project technical context** — never a piece of conversation.

**Spawn** — `Agent` tool, `subagent_type: general-purpose`, a single agent, synchronous.

### Hostile prompt (frozen — wording validated by {USER_NAME} 2026-08-04)

```
Tu es reviewer adversarial. Ton rôle : monter le dossier le plus accablant
CONTRE la spec ci-dessous, comme un reviewer qui veut la couler.

Tu n'as pas participé à la discussion qui a produit cette spec et tu ne la
verras jamais. C'est voulu : tu n'as aucun accord à préserver, aucune position
à défendre, personne à ménager. Traite-la comme le travail d'un inconnu que tu
dois empêcher de partir en production.

## Artefact attaqué
[note complète du ticket]

## Specs retenues
[contenu rédigé des ## Specs générées]

## Contexte technique projet
[pointeurs : README projet, CLAUDE.md projet, contraintes, fichiers cibles]

## Ce que tu produis — 5 sections, dans cet ordre

1. **Steelman de l'approche opposée** — la meilleure version de la solution qui
   n'a PAS été retenue. Pas un homme de paille : formule-la comme la défendrait
   quelqu'un qui la croit meilleure.
2. **Si cette spec est mauvaise, voici la raison la plus probable** — UNE seule,
   la plus probable, pas une liste. Nomme le mécanisme d'échec, pas un risque
   générique.
3. **Qu'est-ce qui devrait être vrai pour que cette décision échoue ?** — les
   conditions, et pour chacune : vérifiable maintenant ? à quel coût ?
4. **Niveau de confiance** — ta confiance dans la direction prise par la spec,
   et ce qui te ferait changer d'avis.
5. **Entre-deux et pistes** — hybrides entre l'approche retenue et l'approche
   opposée, ou corrections ciblées. Pour CHACUNE, obligatoirement :
   **ce qu'elle fait gagner** et **ce qu'elle fait perdre**, nommés tous les deux.
   Une piste dont tu ne sais pas nommer la perte n'est pas une piste, c'est un
   slogan : ne la propose pas.

## Interdits

- **Aucune piste, correction ou atténuation dans les sections 1 à 4.** Elles
  portent la charge, point. Tout ce qui répare va en section 5, jamais avant.
- **Aucune formule d'ouverture ou de clôture bienveillante** ("globalement
  solide", "bonne base", "quelques points mineurs"). Tu n'équilibres pas.
- **Ne fabrique pas d'objections.** Si la spec tient, dis-le par la section 4
  (confiance haute) — pas en inventant des griefs pour remplir. Une charge
  honnête et courte vaut mieux qu'une longue charge creuse.
- Ne pose aucune question : tu produis un rapport, tu ne converses pas.
```

### Single-pass restitution, mechanical cut

The agent returns 5 sections. They are restituted **all at once**, with a differentiated volume per section — but the differentiation is **declared in advance, section by section**, never decided case by case depending on what the objection says.

| Section | Restitution |
|---|---|
| 1 — Steelman | **2 lines** |
| 2 — The most probable reason it breaks | **in full** |
| 3 — Verifiable conditions (table) | **in full** |
| 4 — Confidence level | **2 lines** |
| 5 — Paths | in full, each path with its **gain AND its loss**, never one without the other |

**Why a single pass.** A two-pass restitution (full charge → reaction → paths) made {USER_NAME} **read the same file twice**: sections 1-4 and section 5 overlap heavily, and the agent restated its charge while repairing it. {USER_NAME} was arbitrating on a re-reading, not on new information. *(Cause: 2026-08-13, two adversarial passes in the same evening via `/daily-refine` — both found the real cause, but the restitution made the same file be read again under two angles. Validated on real passes until 2026-09-02, including DEN-04: "one single arbitration round, without double reading".)*

> 🔒 **What does not change, and that is the whole point.** We shorten the **form**, never the **filter**. The cut stays on a **section boundary declared in advance** — never on a judgment of what deserves to be raised. Never drop an objection, do not summarize it, do not re-rank it by severity, do not comment on it, do not interleave it with its remedy. The refine that produced the spec is **the biased instance**: letting it choose which objections pass would give it back exactly the power the pass had just taken away from it.

### Back into the flow

{USER_NAME} arbitrates what holds and what does not. The retained objections **reopen the specs**: back to Step 5.5/6, and the corrected version is the one Step 6 will write. The discarded objections are not rediscussed — it is their arbitration, not a negotiation.

## Step 6 — Conclusion and outcome

**If Step 5.6 ran**, it precedes the selection of the outcome: the specs written here are those that survived the adversarial pass and {USER_NAME}'s arbitration, not the earlier version.

Propose one of the five outcomes and document the decision:

**`effort:` frontmatter** — scale **1-5**, aligned with the `value = impact/effort` calculation of `/exec-ready` (no S/M/L: avoid a superfluous conversion at writing time). Written only on ✅ Go and ✏️ Adapt outcomes, with the value judged during the analysis (Step 3) and the discussion — never improvised at the conclusion. Do not rewrite if already present.

**✅ Go — implement as is**
- The specs are clear, the assumptions confirmed, feasibility OK
- Write `effort:` in the frontmatter (see above)
- Ask whether {USER_NAME} wants to start now or later
- If "later": note the date and the intention in the ticket (not just verbally)

**✏️ Adapt — modify the specs**
- Update the `## Generated specs` section of the ticket with the decisions made — **post-5.6 version** if the pass ran
- Write `effort:` in the frontmatter (see above)
- Move the ticket to the Ready column if not already done
- **If Step 5.5 confirmed a dev ticket** → add to `## Generated specs` a `### Agentic specs` subsection structured in 6 points (0→5). The goal: an execution contract that an agent — or {USER_NAME} doing manual dev — can follow without re-interpreting. The references on agentic specs (Addy Osmani, O'Reilly, analysis of 2500+ repos) converge on three requirements this structure encodes: exact commands (not tool names), verifiable criteria as a binary oracle, and explicit boundaries in tiers.

  0. **Project context to load** — pointers, not content: read `claude-code/README.md`, the project `CLAUDE.md`, `claude-code/lessons.md`, and name the skills relevant *for this specific ticket* (e.g. `/express-route-pattern`, `/vitest-test-pattern`). The conventions themselves (naming, TDD, DDD, stack) live in the project constitution and are never copied here — duplicating them per ticket recreates the maintenance burden the 05/15 decision wanted to avoid and makes them diverge. If the project constitution is incomplete on a point, propose an addition to the project `CLAUDE.md` separately — not a patch inside the ticket.
  1. **Step-by-step executable breakdown** — each step = action + exact command if applicable (`npm test -- foo.spec.ts`, not "run the tests") + file(s) touched.
  2. **Review gates in 3 tiers** — ✅ what the agent does alone / ⚠️ where it stops and asks / 🚫 what it never does. Vocabulary aligned with the "Agentic task contract" of the CLAUDE.md and [[03 - Knowledge/Claude code/agentic-coding-workflow]].
  3. **Testable done criteria** — format `input → observable output` or `this test passes`. Never "it works": a criterion must give a pass/fail signal without interpretation.
  4. **Explicit scope + named out-of-scope** — taken from the Agentic contract of the CLAUDE.md; the named out-of-scope matters as much as the scope.
  5. **Final self-check** — the agent re-reads its output against the criteria of point 3 and lists the gaps before closing the phase. This is the safety net that catches an implementation that "looks finished" but does not pass the criteria.

**🗑️ Drop — abandon the ticket**
- Move the ticket to the Done column with an abandonment note
- Document why in the ticket's note

**🧊 Backlog V2 — valid ticket but premature**
- Tag `#V2` in the kanban
- Feed the project's `V2 ideas.md` file with the ticket and the reasoning (create the file if it does not exist)
- Leave the ticket in the Idea column — it will be picked up when the prerequisites are met

**⏸️ Blocker — valid ticket but blocked**
- The ticket depends on missing external information, an undelivered feature, or a pending decision
- Identify precisely what blocks it and who must unblock it
- Tag `#blocked` in the kanban + note the blocker in the ticket's note

**For all outcomes**: update the ticket's note with the complete reasoning — it is the refine's memory for a later review.

## Absolute rules

- Never start coding without {USER_NAME} explicitly saying "go" or "take over"
- Always update the ticket's note with the decisions of the discussion
- An honest opinion takes precedence over a reassuring one
- **During /refine, the only file modified is the ticket's note** — never the target files of the implementation ({USER_NAME}.md, skills, daily notes, CLAUDE.md, etc.). Any modification outside the ticket must wait for the explicit "go".
- **The adversarial agent of Step 5.6 never receives the refine's conversation history** — neither extracted, nor summarized, nor "for context". It is the entire mechanism of the step: an agent that saw the agreement being built falls in line with it. Lack of context → add *technical project* context, never conversational context.
- **No improvement track at time 1 of the 5.6 restitution.** Sections 1 to 4 of the case for the prosecution are restituted in full and alone; section 5 (middle ground and paths) only arrives after {USER_NAME}'s reaction. Never interleave, never anticipate "to be constructive" — that is exactly the dilution the step exists to prevent.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.