Sharpen

From KjellKod/quest · View interactive version

Sharpen is an AI agent skill from the GitHub repository KjellKod/quest. Adversarial interview against a plan, design, or write-up - one question at a time, with a recommended answer attached to each - to surface contradictions, hidden assumptions, and unresolved tradeoffs before they ship. Use when the user invokes /sharpen or $sharpen, says "sharpen this", "stress-test

How to use this skill

Skill file

Skill: Sharpen

Pressure-test the artifact under discussion. Walk the decision tree branch by branch. Surface contradictions, hidden assumptions, orphaned design intent, and unresolved tradeoffs before they bite at month 3.

The point is shared understanding — agent and human aligned on what's actually settled, what's still soft, and what needs to change before this ships.

On entry

Read the artifact (the path the user supplied, or the artifact already in context). Then:

  1. Estimate how many decision branches it has. Commit to a question count. Hard cap at 12.
  2. Announce: Sharpening <artifact>. Estimated ~N questions.
  3. Ground before Q1 when local facts matter:

Each question

On exit

When the tree is walked, emit a structured summary:

  1. Resolved — decisions locked, one-line rationale each.
  2. Open — questions that surfaced but weren't settled, ranked by importance.
  3. Next — one concrete action. Either no changes needed or re-plan with these revisions: … (list them).

Then ask once: Anything I missed before we wrap? If yes, address it and re-emit the summary. If no, done.

When NOT to invoke

Special mode: `/sharpen ux-defaults`

Invoke this when the user wants to lock in UX defaults for a UI project — typically right before plan approval on a quest where the router set ui_work: true, or any time a backend engineer has built something that "needs to look right" but can't articulate the design choices.

Invocation: /sharpen ux-defaults is the explicit invocation. When an orchestration workflow invokes sharpen on a ui_work: true plan, it should pass ux-defaults as the argument so this mode runs automatically. Outside a workflow, the user types /sharpen ux-defaults directly. If a user types /sharpen with no argument and you cannot resolve an active artifact, prompt them once: "Did you mean /sharpen ux-defaults on the current plan, or /sharpen <path> for a specific artifact?"

The six questions — same one-at-a-time, recommended-answer-attached rhythm as standard sharpen. Skip any question whose answer is already visible in the prompt or plan.

  1. Mobile relevance (asked first because it gates downstream choices). "Will this be used on phone-class viewports? Recommended: required for any consumer or web-public surface; no for internal admin / desktop-only tools. If required, the plan must address desktop ↔ mobile divergence (see guidebook §5.3)."
  2. Temperature. "What's the brand color, if any? Recommended: no brand yet → cool (Tailwind slate). Linear, Stripe, Vercel, and many modern SaaS defaults use this family. Override: warm brand → stone; utilitarian / explicitly monochrome → neutral; tech/scientific → zinc; content-forward / paper feel (Google/GitHub) → gray."
  3. Density. "How dense is the UI? Recommended: comfortable for consumer / settings / marketing; compact for IDE / data table / power-user. Override: pick the other."
  4. Content-vs-chrome ratio. "Does the user spend more time looking at the toolbars and panels (chrome-dense — Linear, Figma, VS Code sidebar, the GitHub Actions UI) or at the content inside them (content-forward — GitHub READMEs, Google search, a settings form)? Recommended: content-forward for almost everything except dedicated creator/developer tools."
  5. Brand accent. "Have a brand accent color? Recommended: #2563eb (Tailwind blue-600) if no other answer — reads as 'modern web'. Override: any hex."
  6. Destructive actions on this surface? "Anything that loses money, deletes data, or is otherwise irreversible? Recommended: if yes, separate it visually (red text, far from primary action), require explicit confirmation, and log for undo where possible. If no, mark none and move on. This is the failure mode the rest of the rubric won't catch — Delete account next to Save is the canonical example."

On exit, emit a fenced ## UX Defaults block that can be pasted into the plan or used to update the plan in place:

## UX Defaults (locked via /sharpen ux-defaults)

- Mobile: <required | optional | no>
- Gray ramp: <slate | stone | neutral | zinc | gray>
- Density: <comfortable | compact>
- Ratio: <content-forward | chrome-dense>
- Accent: <hex>
- Destructive actions: <none | listed with confirmation/undo plan>

Principle citations: ux-guidebook§4.2, §4.3, §4.7, §5.2, §5.3.

If the user only wants to adjust some of the six, walk only those branches and emit a partial block. Skip questions where the answer is already visible in the prompt or plan.

Style

Direct. Opinionated. No hedging. Short questions, short follow-ups. Restate the tree state periodically so the user can see what's locked and what's open.

Example: Grounding Smoke Runner (Portable)

Before (ungrounded):

After (grounded):

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.