Skill instructions
architect5.47 KB
View saved version →
---
name: architect
description: "Sketch types, signatures, and module structure before code, then stay in the loop while implementation fills in. Use for /architect, 'architect this', 'design this', or non-trivial work where jumping to code would lock in the wrong shape."
menu-description: settle types and module shape before writing code that crosses a function boundary
---
# Architect
Sketch types, function signatures, class shapes, and module boundaries with `not implemented` bodies and pseudocode. Synthesize across multiple model perspectives, then fill in code against the chosen sketch.
## Start
Open a todolist with one entry per phase before starting.
1. Ground
2. Sketch
3. Agree
4. Implement
5. Scrap
## Phase A: Ground the problem
Build a real mental model of every system the new code touches. Run the **how** skill over the relevant subsystems. Naming a file isn't grounding. Produce the architectural explanation `how` prescribes. If the design redefines ownership or layering, also run the **why** skill on the existing shape so the rationale becomes a constraint, not a guess.
Skip Phase A only when the work is genuinely greenfield with no surrounding system to integrate.
## Phase B: Sketch
Run the **arena** skill with the design-sketch task and the Phase A grounding artifacts. Pass `references/runner-prompt.md` as each runner's prompt.
Take the runners from the `architect runners` line in the `fstack-models` rule (`~/.cursor/rules/fstack-models.mdc` or `~/.claude/fstack-models.md`), in place of the `arena runners` line. If the rule or that line is missing, use the `DivergentPanel` defaults in `models.json`. Alias and rejected entries follow the runner rules in the **arena** skill's Phase A.
Design it twice. Require at least two structurally distinct candidates before synthesis, even when the first looks sufficient. This is the **exhaust-the-design-space** principle skill made concrete. Whole-shape alternatives, not point fixes inside one shape.
Screen every candidate against [`references/design-red-flags.md`](references/design-red-flags.md) before synthesis. Assume the next contributor is an agent that sees only the files it opened, copies the nearest example, and takes the shortest path that compiles. Prefer the design where a change that looks right from one file is right for the whole repo.
Compare viable candidates on interface depth. Prefer the design that hides more complexity behind a smaller, simpler public surface. A rich interface can keep call chains short by concentrating capability instead of scattering it across layers.
Arena returns one synthesized design package. Its synthesis decision fills the rationale's "Synthesis decision" section.
## Phase C: Agree (opt-in)
Default: proceed directly to implementation with the synthesized design. No human checkpoint.
Opt in to a checkpoint when the invoker explicitly asks: "/architect with checkpoint," "stop and show me before implementing," or similar. Then surface the synthesized design and pause for sign-off.
The synthesis can ship as its own commit either way, as the "scaffold first" mode of the **foundational-thinking** principle skill. Planned and scoped breakage during fill-in is fine, per the **outcome-oriented-execution** principle skill. For adversarial pressure on the design before implementing, run the **interrogate** skill on the synthesized sketch.
If the human pushes back on the shape (in a checkpoint or after the fact), treat that as Phase A evidence. Re-ground and re-run Phase B before writing more code.
## Phase D: Implement against the sketch
Replace `not implemented` bodies with code, pseudocode with logic. The synthesized sketch is the contract. Deviations from it are signal to surface, not friction to absorb silently. If a function needs a parameter the sketch didn't anticipate, ask whether the sketch was wrong, the requirement was missed, or the implementation is overreaching.
## Phase E: Scrap when the architecture is w
Preview of the first 4,000 characters. Read full instructions →
Referenced files: 3 — file references are metadata, not package contents.
arena5.42 KB
View saved version →
---
name: arena
description: "Spawn N parallel candidates at the same task, pick a base, graft the strongest parts of the losers into it. Use for /arena, 'arena this', 'throw it in the arena', or when one attempt at a non-trivial artifact would lock in the wrong shape."
menu-description: run N parallel attempts at the same task and pick the best parts
---
# Arena
Open a todolist with one entry per phase (Frame, Fan out, Cross-judge, Pick, Graft, Verify) before launching anything.
## Phase A: Frame
Every candidate gets the same prompt, so the prompt is the contract.
1. State the artifact each candidate is producing.
2. Derive the rubric, 3-6 concrete gradeable criteria for what success looks like on *this* task. It is the picker's tool in Phase D. Candidates only see the task.
3. Pick the runners. Use the `arena runners` line in `~/.cursor/rules/fstack-models.mdc` or `~/.claude/fstack-models.md`. If the rule or that line is missing, default to the `DivergentPanel` role in `models.json`. An `auto` or `inherit-parent` entry in this line means the parent model, so omit `model` for it. If the Task tool rejects a configured entry, run that seat on its family's default from `models.json` and say so. Families go by prefix: `claude-*`, `gpt-*` / `codex-*`, `gemini-*`, and `grok-*` with `cursor-grok-*` and `composer-*`. If the family has no default, or the Task tool rejects that default, use the closest valid slug of the same family from its error message, or drop the seat and say so when there is none. If dropped seats leave fewer than two runners, add runners until there are two, or one when the line has one entry. Run each added runner on a remaining runner's model, or omit `model` so it runs on the parent model when none remain, and say so. Spawn more runners when the arena covers multiple design directions. Use the same model N times when the work is generation-bound rather than judgment-sensitive. Pick each subagent's reasoning level and fast or standard speed for the job, per the Subagents section of the **engineer-mode** skill.
4. Give each candidate its own output location (a git worktree where possible, otherwise `/tmp/arena-<slug>/candidate-<n>/`), per the **separate-before-serializing-shared-state** principle skill.
## Phase B: Fan out
Spawn all N subagents in one message with `run_in_background: true`, each with the task, the path to the shared grounding, its own output path, and instructions to produce the artifact and a short rationale naming the alternatives it considered and what it rejected.
If a candidate produces no output, proceed with N-1 and note the dropout.
## Phase C: Cross-judge
After all Phase B candidates complete, choose one model from the `arena cross-judge pool` line in `~/.cursor/rules/fstack-models.mdc` or `~/.claude/fstack-models.md`. If the rule or that line is missing, choose from the `DivergentPanel` pool in `models.json`. Spawn one readonly judge subagent. The judge is never from the parent's family, as Phase A step 3 defines families. Try only the entries from another family, in pool order. An `auto` or `inherit-parent` entry is the parent model, so it never judges. If the Task tool rejects an entry, use a valid slug of the same model at the closest level or speed from the error message, or move to the next entry when there is none. If no entry from another family runs, try the default pool's entries from another family the same way. If none of those runs, skip the judge, pick the base alone in Phase D, and say so. If you do not know the parent's model, try the pool's real slugs in pool order and say that the family check did not run. The judge sees the rubric and the candidates by path label, scores each criterion, and recommends a base with rationale. It runs in parallel with your reading in Phase D. Don't spawn it while candidates are still writing.
## Phase D: Pick a base
Read every candidate end to end before picking. Score each against the rubric criterion by criterion, not on ho
Preview of the first 4,000 characters. Read full instructions →
automate-me7.18 KB
View saved version →
---
name: automate-me
description: "Use for \"automate me\", \"create/update/refresh my -mode skill\", \"turn/capture my preferences or working style into a skill\", or wanting agents to follow how the user works. Drafts or revises a personal -mode skill via create-skill + unslop, optionally pulling fresh evidence from recent transcripts."
menu-description: draft your own personal -mode skill from recent transcripts
---
# Automate me
A guided flow for turning the user's working conventions into a skill agents will follow. The output is one `-mode` skill tailored to them (e.g. `jay-mode`, `priya-mode`).
This skill orchestrates three others: an inline mining pass (see step 1), Cursor's built-in `create-skill` (authoring), and the **unslop** skill (prose discipline). It sequences them. It doesn't replace them.
## Flow
### 0. Check for an existing skill
Look recursively for `.cursor/skills/**/*-mode/SKILL.md` and `~/.cursor/skills/*-mode/SKILL.md` matching the user's handle. Mode skills can live in a personal category directory (`.cursor/skills/<handle>/`), not only at the top level. If one exists, confirm intent with `AskQuestion` (unless they already said "update my skill" or similar):
- Update the existing skill (default for repeat runs)
- Start fresh (rare, ask why before doing it)
Update mode changes the rest of the flow:
- Step 1 mines only history since the skill was last edited (`git log -1 --format=%cI <path>`).
- Step 2 asks what's changed or missing, not what to capture from zero.
- Step 4 edits the existing file in place. Preserve sections the user hasn't contradicted. Revise ones with new evidence. Add new sections only for genuinely new rules.
### 1. Mine their history
Locate the active workspace's transcripts before fanning out. The system prompt names the workspace's `agent-transcripts/` directory. Use only that path. Don't glob across `~/.cursor/projects/*/`. That crosses workspace boundaries and reads private chats from unrelated projects.
Survey recent agent conversations within that scope for recurring patterns. Run multiple parallel subagents across slices of history (e.g. last 2-4 weeks, split into 3 slices so each has enough material). Pick each subagent's reasoning level and fast or standard speed for the job, per the Subagents section of the **engineer-mode** skill. Each slice mining subagent reads transcripts from the workspace-scoped path the parent provides, looks for the signals below, and returns a short structured list of patterns it saw with evidence pointers. Default signals worth hunting:
- Response preferences (length, tone, format, "dumb it down" corrections)
- Delegation habits (subagents, models, specialized workflows, parallelism)
- Verification posture (what "done" means, unit tests vs live repro, reviewers)
- Code and prose discipline (style, principles cited, lint/format tools)
- Process conventions (worktrees, commits, PRs, review/merge tooling)
- Meta preferences (fixing skills mid-task, proposing new ones)
Cross-check across slices before elevating a signal. Patterns seen in 2+ slices are high-confidence. Lone signals are weak and usually get dropped.
### 2. Ask the user directly
Mining misses intent that hasn't come up yet. Use the `AskQuestion` tool (structured multi-choice) rather than asking the user to type from scratch.
Shape: one or two questions with 4-6 options each, `allow_multiple: true` for category questions. Start broad ("Which areas matter most?"), then follow up on selected areas with specific options. After the structured rounds, one free-form chat question catches anything the options missed.
Don't dump 20 questions.
### 3. Cluster findings
Group the combined signals into sections. Common ones (use only what applies):
- **Response style**: length, tone, format.
- **Autonomy**: how much to do without asking, MCP tool use.
- **Understand first**: which skills to reach for when scoping or investigating a change.
- **Subagents**: default, parallelism, mPreview of the first 4,000 characters. Read full instructions →
babysit4.5 KB
View saved version →
---
name: babysit
description: Watch an open PR — fix failing CI, handle the straightforward review comments, and drive it to a mergeable state. Claude Code analog of Cursor's built-in /babysit. Use after opening a PR when the user wants the agent to shepherd it without re-prompting.
menu-description: monitor an open PR, fix CI/comments, keep it merge-ready
---
# Babysit a PR
Claude Code analog of Cursor's built-in `/babysit`. The implementation is a loop over `gh` CLI plus the Claude Code `loop` skill for pacing.
**Platform note.** On Codex, the Claude tool names and Claude built-in skills named below (`loop`, `AskUserQuestion`) are Claude defaults. Resolve them via [`codex-tools.md`](../engineer-mode/references/codex-tools.md).
Inside engineer-mode, the **Babysit** playbook ([`../engineer-mode/playbooks/babysit.md`](../engineer-mode/playbooks/babysit.md)) supersedes this skill: it owns mode declaration, the merge frontier, stack safety, and the `watch-pr` watcher. This skill stays the standalone `/babysit` entry point for a single PR outside a engineer-mode run.
## When to use
- There's an open PR and the user explicitly wants it kept green, and you are not already inside a engineer-mode run (the playbook owns that case).
- The user invokes `/babysit` directly.
- A subagent that opens a PR does NOT babysit — return to the parent and let the parent decide.
## Steps
1. **Fetch PR state.**
```bash
gh pr view <number> --json number,title,state,mergeable,reviewDecision,statusCheckRollup,mergeStateStatus,comments,reviews
```
2. **Triage in priority order.**
- Merge conflicts (`mergeStateStatus == DIRTY`): rebase or merge `main`; resolve; force-push only if the branch is yours and not shared.
- Failing checks (`statusCheckRollup` entries with `conclusion: FAILURE`): pull logs with `gh run view <run-id> --log-failed`. Root-cause the failure; fix the underlying code or test; commit; push.
- Review comments (`gh pr view --json comments,reviews`): act only on feedback you actually agree with. When a comment has a single mechanical answer — a rename, a guard clause, a formatting nit — make the edit and quote the comment in the commit message. When it hinges on a judgement call, or you can't tell what's being asked, don't guess: leave it and reply with what you would have done.
- Review-bot comments (Bugbot and similar automation): classify fix/dismiss/ask before acting, per [`references/bugbot-triage.md`](references/bugbot-triage.md). Ask by default on security, data, and high-severity findings.
3. **Loop.** Use the Claude Code `loop` skill to pace re-checks. Pick the interval from what you're watching:
- Active CI run: poll `gh pr checks --watch` (it blocks until checks finish, so no separate loop interval needed).
- Awaiting reviewer: 20–30 min heartbeat.
- Idle but want to catch new comments: hourly.
4. **When to stop.**
- Build is green, every comment resolved, branch merges cleanly → call it ready.
- You've run three rounds of fix → push → recheck and it still isn't fully green → stop, summarise what's still broken, and hand control back.
- The next fix would force a design choice → pause and put it to the user with `AskUserQuestion`.
5. **Report.** Summarize fixes applied, comments addressed, comments deferred (with reason), current PR status. Cite each commit by SHA.
## Hard rules
- Don't rewrite history on a branch others may have pulled. If a rebase or force-push looks necessary, clear it with the user first.
- Don't tweak a test's expected values just to get a pass. Only change an assertion when the behaviour genuinely changed and the assertion was pinned to the old behaviour.
- Never skip hooks (`--no-verify`).
- Never bypass a failing check by marking it as not required.
- `gh pr ready` only when all checks are green and no unresolved review comments remain.
## Cross-refs
- `engineer-mode` opens here after a PR is
Preview of the first 4,000 characters. Read full instructions →
Referenced files: 1 — file references are metadata, not package contents.
benchmark-checklist4.93 KB
View saved version →
---
name: benchmark-checklist
description: "Vet a perf measurement (limiter, tuning, limits, errors, repeatability, relevance, and whether the work happened) before you report or act on it. Use when you run a benchmark or report a speedup or regression you measured."
menu-description: vet a performance measurement before reporting or acting on it
---
# Benchmark checklist
Use this when you produce a performance number: a PR's before and after, a regression claim, a hillclimb harness, or a library or config choice. Answer each question with evidence from a run, not a guess about the code.
For a quick ballpark the user asked for, one run is enough. Still check questions 4 and 7, and say that it is one run. Skip the rest unless that run looks wrong. A choice between options is never a ballpark.
## Before you run anything
- Write down the claim you expect to make, in the words you would ship ("export is 30% faster at p50 on the 60k-row dataset"). The questions test that sentence.
- Read the measurement script. Note what it times, counts, and ignores.
- Check the load average with `uptime` and the core count with `nproc`. If the machine is busy, find out what is running. If you cannot stop it, interleave the sides so both see the same noise, and say so in the report.
## The questions
1. **Why not double?** Name the limiter. Profile in a run you do not report, because profilers and tracers slow the work down. Use CPU per process (`top`, `pidstat`), a runtime profiler (`node --cpu-prof`, `py-spy`, `perf`), I/O wait, and syscall counts (`strace -c` on Linux), then map the hot spot to source. Watch the load generator too: if it saturates first, you measured the load generator. If a change did not move the number, the limiter explains why, so find it before you call the change useless.
2. **Was it tuned?** Run every side the way production runs it: release builds, production flags and env, batching and transaction settings, connection pools, caches as warm or cold as production sees them, and the same versions and data. If one side runs on defaults, you compared configurations, not implementations. A limiter that is a setting (a commit per row, a debug build, a missing index) means that side is untuned. Tune it and measure again before you pick a winner. If you cannot tune it, do not pick a winner from that run. When the user is choosing what to adopt, narrowing the claim to the code as it ships today does not fix this, because they adopt the option, not today's settings.
3. **Did it break limits?** Do the arithmetic. Compare bytes per second with disk and network bandwidth, operations per second times cost per operation with your cores, and the time saved with the time the changed piece took. Removing a piece that takes 10% of the run can make the run at most about 11% faster. A result past a limit measured something other than the work, such as a cache, a no-op, or a bug.
4. **Did it error?** Count failures and non-success responses, and check that outputs are correct, not just present. Rejections are often fast, and timeouts and retries are slow. If the script does not count errors, add the count.
5. **Does it reproduce?** Run each side at least 5 times, alternating (A, B, A, B, and so on) so warmup, lazy initialization, caches, and drift favor neither. Report the median and range. A gap smaller than the run-to-run variation is no measurable difference. When the call is close, use a rank-sum test or the harness's own statistics.
6. **Does it matter?** Next to any micro result, measure the end-to-end path a user waits on, with realistic data sizes and concurrency, and report the micro result as a share of the whole. A helper that takes 1% of a request can make the request at most 1% faster, however fast the helper gets.
7. **Did it even happen?** Confirm the work ran inside the timed region: the request reached the server, the rows were written, the bytes were read, and the code used the result. Lazy code (generators nobody itePreview of the first 4,000 characters. Read full instructions →
blast-radius3.83 KB
View saved version →
---
name: blast-radius
description: "Find what a change could break somewhere else before it ships, beyond the diff, and prove the one fact it's safe because of by running real code instead of writing it up. Use for 'blast radius of X', 'what could this break', or reviewing a small diff you don't trust."
menu-description: find what a change could break beyond the diff and prove safety by running code
---
# Blast radius
Find what a change breaks somewhere else, before it ships. Use for "blast radius of X", "what could this break", or reviewing a small diff you don't trust yet.
Companion to `how` and `why`. `how` tells you what the code does. `why` tells you why it's shaped that way. Blast radius tells you what it breaks somewhere else.
Listing the callers is not the job. The agent can grep those in a second. The job is the breakage grep won't show you.
## Don't trust your own writeup
A blast-radius writeup that sounds right is worthless. It reads as convincing whether or not it's true. So don't hand back the writeup. Find the one or two facts the whole thing depends on and prove them by running code.
### How sure are you
For each fact the change's safety depends on, get it as far down this list as is cheap, and say where it stopped.
1. You said so. Worthless on its own.
2. You pointed at the line. A real `file:line`, or the library's own source.
3. You showed the bad case can't happen. You walked the failure step by step and it doesn't reach.
4. You ran it. A script or test that calls the real code and fails loud if you're wrong.
5. You reproduced it in the running app.
Step 4 is usually one small script that imports the same library the app ships and calls the exact function you're worried about.
## Steps
1. Read the change. The diff, the symbols it adds, changes, and deletes, and what it now does differently, including the part the diff doesn't spell out. Use `why` step 2 to pull the PR and commits.
2. Find the one fact it's safe because of. Most changes that look risky are safe because of a single fact, like "this call only drops already-dead cache entries and does nothing else". Find that fact. If it holds, most risky cases are cleared at once. Spend your time here, not on a long list of maybes.
3. Look where grep stops. Read the source of the library you call, and check its pinned version and any local patch. Work out when things run: microtasks, unmount and teardown, Solid versus React. Follow what a symbol search misses: the JSON an API returns, a DB column, a wire format, another language reading the same bytes, a feature flag, code three hops downstream.
4. Be honest about each risk. Give it a real chance of happening and a real cost if it does. Keep the risks you confirmed. List the ones you checked and cleared separately. Same rules as `why`. Cite a real `file:line`, a search that finds nothing is still an answer, and never make up a caller or an API.
5. Prove the one fact. Write a script or test that runs the real code, run it, and paste what happened.
6. For a big or wide change, run it as an `arena`. Ask more than one model the same question and merge the answers. Different models catch different real bugs.
## What to hand back
- **What it does.** What changed, including the part that isn't obvious.
- **The one fact it's safe because of.** State it, say which step you got it to, and show the proof. If you couldn't prove it, write unproven.
- **Risks.** Each names how it breaks, the `file:line`, how likely and how bad, and how to check. Paste the proof for the ones that matter.
- **Cleared.** What you checked and why it's fine.
- **Before you merge.** The cheapest test or repro that catches the real bug, including the script you wrote.
Write it through `unslop`, cite real code, and strip anything private before it goes anywhere public.
**Reply:** the writeup above, with the one safety fact either proven or marked unproven.
bro314 Bytes
View saved version →
---
name: bro
description: Restate the last message in plain human language, with no jargon.
menu-description: restate the last message in plain human language, no jargon
---
Restate your last message. Stop using jargon and speak coherently. State it more simply and concisely, like one human talking to another.
browse3.03 KB
View saved version →
---
name: browse
description: Web browsing and page extraction. Attaches to Chrome over CDP when it is running, otherwise one-shot headless Chrome. Use for /browse, "open URL", public competitor pages, interactive search UIs, or a session where you are already logged in.
menu-description: browser automation and web extraction
---
# Browse
Drive a real browser. Prefer this over naive Playwright scripts. Extracted text is sanitized before it hits the model.
## How to invoke
From any harness:
```bash
npx @scino/fstack browse <command>
```
From this skill folder (works when the skill is a junction into the fstack package):
```bash
node run.mjs <command>
```
From a clone:
```bash
node bin/fstack.js browse <command>
```
## Commands
```bash
fstack browse goto https://example.com
fstack browse text
fstack browse text https://example.com
fstack browse screenshot
fstack browse screenshot https://example.com out.png
fstack browse eval "document.title"
fstack browse eval https://example.com "document.title"
fstack browse check-cdp
fstack browse sanitize ./raw.txt
```
`goto` / `text` / `screenshot` / `eval` without a URL need Chrome CDP (your session). With a URL they can run headless in one shot.
`text` waits for visible body text, then fails if the body is still empty. That is usually a search shell, a challenge page, or JS that never painted. Do not retry the same URL. Search or click, then `text` again.
## Strategy 1: One-shot headless
Public pages where the URL already has the content. Pass the URL on the command.
```bash
fstack browse text https://example.com
```
Uses installed Chrome when possible. Text is injection-sanitized.
## Strategy 2: Real Chrome (interaction and login-walled sites)
Use CDP when you need to type, click, or wait on a page, or when headless is blocked.
Empty extract is not a login problem by itself. Many public UIs start as a search shell. Attach CDP, complete the query or click in that window (or `goto` a URL that already encodes the query), wait until results exist, then `fstack browse text` with no URL.
Login-walled sites (LinkedIn, X, and similar) still need you to log in by hand in that Chrome. Only use sessions you own.
Start Chrome once:
**Windows** (throwaway profile; does not fight an already-open Chrome):
```powershell
& "C:\Program Files\Google\Chrome\Application\chrome.exe" --remote-debugging-port=9222 --user-data-dir="$env:TEMP\chrome-fstack-cdp"
```
To reuse your real cookies, quit Chrome first, then point `--user-data-dir` at `$env:LOCALAPPDATA\Google\Chrome\User Data`.
**macOS:**
```bash
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222
```
Confirm with `fstack browse check-cdp`.
## Strategy 3: Harness native browser
If the host agent already has a working browser tool (Cursor, Antigravity), use it for ordinary pages. Use this skill when you need CDP attach, sanitization, or a harness that has no browser.
## Needs
`playwright-core` (ships with `@scino/fstack`). Headless one-shot wants Chrome installed, or `npx playwright install chromium`.
Referenced files: 1 — file references are metadata, not package contents.
ceo-review3.42 KB
View saved version →
---
name: ceo-review
description: Founder/CEO strategic plan review. Calibrates scope across 4 modes (Scope Expansion, Selective Expansion, Hold Scope, Scope Reduction) to challenge premises, eliminate bloat, or discover the 10-star product experience. Use for /ceo-review, "review scope", or strategic plan review.
menu-description: strategic plan review with 4 scope calibration modes
---
# CEO Review (Strategic Scope Calibration)
Before committing weeks of engineering effort to an implementation plan, the founder must ask: **Are we building the right scope?**
Are we thinking too small and missing the breakthrough product experience? Or are we overcomplicating an MVP that should ship by Friday?
`ceo-review` evaluates an implementation plan or feature proposal across 4 distinct strategic postures.
---
## When to Invoke
- You have an engineering implementation plan or RFC ready to build.
- You feel unsure whether the scope is too broad or too conservative.
- You want to pressure-test the user experience before writing code.
---
## The 4 Scope Modes
When invoking `/ceo-review [mode]`, select one of the following postures:
### 1. `SCOPE_EXPANSION` (The 10-Star Product)
*Inspired by Brian Chesky's Airbnb product design framework.*
- **Question**: *"What would make a customer tell 10 friends about this?"*
- Ignores conventional constraints for a moment to imagine the magical version:
- A 5-star experience: It works and doesn't crash.
- A 7-star experience: It anticipates what the user needs before they click.
- A 10-star experience: The problem is solved automatically with zero manual effort.
- Identifies which pieces of the 10-star vision can be built today with AI agent leverage.
### 2. `SELECTIVE_EXPANSION` (Hold the Core, Elevate the Key Detail)
- Holds 90% of the scope fixed to ensure speed.
- Cherry-picks the single high-leverage delight factor that turns a boring utility into a beloved product (e.g. instant keyboard shortcut, zero-latency optimistic update, beautiful CLI progress display).
### 3. `HOLD_SCOPE` (Maximum Execution Rigor)
- Freezes the boundaries.
- No new features, no scope creep.
- Focuses 100% on bulletproof edge cases, rock-solid tests, error boundaries, and unslop.
### 4. `SCOPE_REDUCTION` (The Friday Ship)
- **Question**: *"What can we cut so this ships by tomorrow afternoon?"*
- Identifies unnecessary tables, secondary settings, complex configuration options, and premature generalizations.
- Strips the plan to its irreducible core: 1 input, 1 action, 1 output.
---
## The Review Deliverable
```markdown
# 🏛️ CEO Strategic Review: [Project / Feature Name]
**Selected Posture**: [SCOPE_EXPANSION | SELECTIVE_EXPANSION | HOLD_SCOPE | SCOPE_REDUCTION]
### 🎯 Strategic Assessment
[2-3 sentences diagnosing whether the current plan is over-engineered or under-ambitious]
### ✂️ Scope Adjustments
- **Cut**: [Feature / complexity to remove immediately]
- **Keep**: [Core non-negotiables]
- **Add / Elevate**: [The single detail that makes it remarkable]
### ⚖️ Tradeoff Matrix
| Dimension | Current Plan | Recommended Plan | Business Impact |
|---|---|---|---|
| Time to Ship | 2 Weeks | 3 Days | 4x faster feedback loop |
| Complexity | 4 Models, 6 Tables | 1 File, 1 SQLite Table | Zero migration overhead |
| User Delight | 6/10 (Functional) | 9/10 (Magical) | High word-of-mouth potential |
### 🚀 Next Action
Hand the calibrated plan to `/engineer-mode` for flawless engineering execution.
```
changelog-to-post3.92 KB
View saved version →
---
name: changelog-to-post
description: Converts git commits, PR diffs, or engineering release notes into clean, user-facing changelogs, customer update emails, and launch tweets. Translates internal code changes into customer value. Use for /changelog-to-post, "draft release notes", or announcing new features.
menu-description: translate code changes into user changelogs and launch announcements
---
# Changelog to Post
Engineers write commits for git history: *"fix(auth): handle null session in token refresh hook"*. Customers and prospects don't care about the hook—they care that they won't get logged out mid-workflow.
`changelog-to-post` reads your recent git commits, PR descriptions, or release tags, translates them into clear customer value, and produces a complete launch communication bundle.
---
## When to Invoke
- You just merged a batch of PRs or tagged a new version.
- You want to update your product's public changelog or `CHANGELOG.md`.
- You want to send a quick email to active users announcing new capabilities.
- You want to draft an announcement post for X/LinkedIn.
---
## The Launch Bundle Output
When invoked, `changelog-to-post` generates 3 linked deliverables:
### 1. The Customer-Facing Changelog (For Website / In-App Modal)
- Grouped into: **✨ New Capabilities**, **⚡ Performance & Improvements**, and **🐛 Bug Fixes**.
- Each item leads with what the user can now do, not the internal code change.
### 2. The Founder Release Email (For Active Users & Newsletter)
- 150-250 words max.
- High-level narrative of why this release matters.
- Link to documentation or live demo.
### 3. The Social Announcement (For X and LinkedIn)
- Visual-ready hook highlighting the single biggest improvement.
- Clean bullet list of secondary improvements.
---
## Example Walkthrough
### Raw Input (Git Log):
- `feat: add parallel test execution with --workers flag`
- `fix: prevent memory leak in child process fork`
- `feat: export results to JUnit XML and GitHub Actions annotations`
- `perf: cache AST parses across warm test runs`
### Generated Deliverables:
#### Deliverable 1: Public Changelog Entry
```markdown
## v1.4.0 — 5x Faster Test Runs & CI Annotations
### ✨ New
- **Parallel Test Execution**: Run test suites across multiple CPU cores with `--workers`. Large suites finish up to 5x faster.
- **GitHub Actions Annotations**: Test failures now show inline on your GitHub PR diffs with file and line references.
- **JUnit XML Export**: Export test results formatted for GitHub Actions and standard CI reporting dashboards.
### ⚡ Improvements
- **Warm AST Caching**: Tests with unchanged dependencies skip re-parsing, saving ~400ms per run during local TDD loops.
### 🐛 Fixes
- Fixed a memory leak where orphaned child processes remained in memory after aborted test runs.
```
#### Deliverable 2: Founder Update Email
```markdown
Subject: v1.4.0: 5x faster test runs and inline PR annotations
Hey everyone,
One of the most common complaints we heard last month was that test suites were taking too long on large monorepos.
Today we're releasing v1.4.0, which introduces native parallel test execution. You can now pass `--workers auto` to distribute test suites across all CPU cores. In our internal benchmarks on a 2,000-test repo, runtime dropped from 4 minutes 12 seconds to 48 seconds.
We also added inline GitHub PR annotations so you can see exactly which line broke without scrolling through raw terminal logs.
Update to v1.4.0 today:
`npm install -g fstack@latest`
Full release notes and documentation are live here: [link].
Let us know what you think!
Best,
Fabio
```
#### Deliverable 3: X Announcement
```text
fstack v1.4.0 is live.
Tests now run in parallel across CPU cores with `--workers auto`.
Benchmark on our monorepo:
• Before: 4m 12s
• Now: 48s
Also shipped:
- Inline GitHub Actions annotations on PR diffs
- JUnit XML export for CI dashboards
- AST caching for instant local re-runs
`npm i -g fstack@latest`
```
correct2.47 KB
View saved version →
---
name: correct
description: "Find the mistakes agents keep repeating in this repo and make each one impossible. Try architecture first, then types, then a lint whose error names the fix, then a test, and write docs last. Prove each check fails on a real past mistake. Repeat this each time the operator corrects you. Use for /correct."
menu-description: find recurring agent mistakes and make them structurally impossible
---
# Correct
The operator keeps correcting agents in this repo for the same mistakes. Change the repo so the next agent can't make them.
Assume every contributor is an agent that sees only the files it opened, copies the nearest example, and takes the shortest path that compiles. Design the repo so a change that looks right from one file is right for the whole repo.
## Find the mistake classes
First, read recent commits, reverts, review comments, agent instruction files, and comments that explain workarounds. Group the mistakes into classes. A class counts once it has happened twice.
## Fix each class at the highest level that works
1. **Eliminate it with architecture.** Give each piece of state one owner and each task one supported way. Hide internals so the wrong import fails. Replace hand-synced lists with one source of truth. Delete old ways and dead code an agent would copy.
2. **Enforce it with types so the bad state can't be written.** If bad code still compiles, add a lint or CI check whose error names the file, type, or function to use instead. If the pattern is already common, fail only when a change adds more.
3. **Test the behavior.** Fix or delete any test that still passes when the behavior it checks breaks, or that fails when only the internals change.
4. **Write docs or agent rules last, only for judgment calls.** Nothing fails when an agent skips them.
## Fix and prove
Then fix the most frequent classes now, one commit each. Prove each new check fails on a real past mistake. Run the same command locally and in CI. Exceptions go on the offending line with a reason, an expiry date, and a human's approval.
## Keep the rule table
Last, keep a table in the agent instruction file that pairs each rule with what enforces it. When the operator corrects you, fix the mistake and add the rule. If the rule was already there and nothing enforces it, that's a repeat, so fix it at the highest level in the same change. Drop a rule once its mistake can't happen.
**Reply:** each class with its evidence, the level you picked, and why a higher level didn't work.
create-formal-verification-skill5.64 KB
View saved version →
---
name: create-formal-verification-skill
description: "Generate a project-local skill that formally verifies the code where a bug costs the most and tests reach the least, in any language, with whichever verification tool fits. Use for /create-formal-verification-skill, \"model-check this race\", \"prove this invariant\", or when concurrency, retries, state machines, parsers, or unsafe code need more than tests."
menu-description: generate a project-local formal verification skill (TLA+, model checker, prover)
---
# Create a formal verification skill
A test checks the cases that someone thought to write. Formal verification checks every case in a stated scope: every order of steps in a model, every input up to a bound, or every input. This skill finds the part of the repo where that matters most, verifies one property of it, and leaves a project-local skill that lets the next agent check a change against that property. Write that skill for an agent who reads it cold, mid-change, and has never seen your work. The user must be able to trust the result and act on it without learning the verification language.
## Choose the target from the code
Answer from the codebase, and ask the user only what you cannot observe. If the user named an area or a bug, start there.
A good target is a promise the code makes, where a break harms users and tests rarely reach the case that breaks it. Choose the strongest such target in the repo, not the one that is easiest to verify.
## Let the question choose the tool
Pick the tool that answers the question at the lowest cost: a model checker, a proof assistant, an SMT-backed verifier, or another tool. Whether events can happen in a bad order usually suits a model checker over a small model of the design, and TLA+ is the default for that in any language. Whether the code itself behaves for every input, as with memory safety, overflow, or a data-structure invariant, usually suits a verifier that runs on the code. If no verifier runs on this language, say so, and test the real code with generated inputs, not a hand model of the function. A property that must hold at every size, where a bound is not enough, can need a proof. Prefer a tool that the repo's developers can install and run, and tell the user why you chose it.
## What makes it good
- **True to the code.** Every part of the model or proof points to code that a reviewer can open. What the verification treats as one indivisible step is one indivisible step in the code. Names come from this repo.
- **Able to fail.** A check that you have never seen fail proves nothing. Show each property failing on a broken variant of the code it guards, such as a removed check or a reordered step.
- **Findings stay findings.** When the current code breaks the property, report it with the counterexample in the code's terms. Do not weaken the property or the model until it passes, and do not change product code unless the user asks.
- **Honest about scope.** Say what is verified, under which bounds and assumptions, and what is left out. A pass covers the model or the bound, not the whole system.
- **Readable without the tool.** State the property and the harm in one plain sentence each. Tell a counterexample as a short sequence of steps in the code's words.
- **Cheap to rerun.** One command, a reproducible tool version, and a run short enough that the next agent will use it on every relevant change.
- **Kept in step with the code.** Record which files and functions each check covers, and the commit at which you last confirmed that the verification describes them. When the covered code changes after that commit, the next agent can see that the verification needs another look.
## Generate the verify skill
Write a project-local skill under `.agents/skills/` (for example `.agents/skills/verify-formal-<area>/SKILL.md`) with frontmatter that names the area and says when to use it. Without frontmatter, the skill never registers. From the skill alone, the next
Preview of the first 4,000 characters. Read full instructions →
create-verification-skill7.1 KB
View saved version →
---
name: create-verification-skill
description: "Generate a project-local verification skill that drives your app the way a user does — any language, framework, or platform. Use for /create-verification-skill, \"make a control skill for this repo\", or when a project has no scripted way to prove UI/CLI/service behavior."
menu-description: generate a project-local verification skill and feature map
---
# Create a verification skill
Every serious project needs a scripted way to drive the real app and prove behavior: launch it, exercise a feature the way a user would, and capture evidence. This skill generates that as one project skill the whole team shares, at `.agents/skills/verify-<app>/`. You write the generator's output for the next agent, not for a human: it will be read cold, mid-task, by an agent that has never seen the app.
**Where it lives.** `.agents/skills/` is the harness-agnostic project skill directory (Cursor, Codex, Claude Code, Hermes, OpenClaw). Commit `verify-<app>/`. Do not write a second copy under `.claude/skills/` or `~/.codex/skills/`. Those paths are one person's harness, and the rest of the team never sees them. If `.agents/` is gitignored, add an exception for `.agents/skills/verify-*/` so the map stays in the repo. `fstack init` junctions live beside it; do not replace those junctions. The app-driving harness is platform-neutral; resolve Codex tool names via [`codex-tools.md`](../engineer-mode/references/codex-tools.md).
## 1. Interview the repo, not the user
Answer these from the codebase and only ask the user what you cannot observe:
- **Surface:** what does a user actually touch? A web UI, a CLI/TUI, a desktop app, an API, a mobile app, a library? A repo can have several; pick the primary one and note the rest.
- **Run:** how does the app start locally? Prefer the repo's own documented dev command (package scripts, Makefile, README quickstart). Note ports, env vars, seed data, auth.
- **Drive:** how can an agent interact with it programmatically? Existing harnesses first — Playwright/Cypress specs, expect scripts, PTY helpers, curl-able endpoints, a debug port. Only then pick a generic recipe: browser/CDP for web and Electron, a tmux/PTY harness for CLI/TUI, plain HTTP for services.
- **Observe:** what evidence can be captured? Screenshots, terminal transcripts, response bodies, logs, exit codes, DB state.
- **Isolate:** can two instances run side by side (ports, data dirs, profiles)? If not, say so in the generated skill: refusing to double-drive a shared instance beats corrupting the user's session.
If the checkout doesn't build or start as-is, fix that first (or report it precisely) before generating; a skill written against a broken base teaches wrong steps. When an irrelevant missing asset blocks startup (a static dir the API never serves, a sample config), the generated skill may create it, clearly marked as verification scaffolding, and remove it in cleanup.
## 2. Generate the skill
Write `.agents/skills/verify-<app>/SKILL.md` with YAML frontmatter (`name: verify-<app>` and a `description` that names the app, the surface, and when to reach for it — without frontmatter the skill never registers) and these sections, each grounded in what the interview actually found (no placeholders left):
- **Launch:** the exact command that starts the app for verification, and how to tell it's ready (a log line, a port answering, a prompt). Launch must reach a usable state from an empty data dir, including any migrations and seed data. Ready means usable, not just that a process answers. A database health check can pass while its init scripts are still running. Include teardown. For a short-lived CLI or TUI there is no server to keep alive: launch means build the binary (or install deps) once, then start each drive in its own isolated PTY or tmux session.
- **Doctor:** one read-only check that answers "is this instance worth driving?" — process up, right version/build,
Preview of the first 4,000 characters. Read full instructions →
Referenced files: 3 — file references are metadata, not package contents.
customer-lens3.37 KB
View saved version →
---
name: customer-lens
description: Audits UI flows, onboarding funnels, error messages, and landing page copy from the perspective of a skeptical, distracted customer. Identifies cognitive friction, confusing jargon, and drop-off risks. Use for /customer-lens, "audit UX", or customer friction review.
menu-description: audit UI, copy, and onboarding through the eyes of a skeptical customer
---
# Customer Lens
Founders and engineers have "curse of knowledge": we know exactly how the app works, where to click, and why that cryptic error message appeared. Real customers have 10 browser tabs open, zero patience, and will bounce in 5 seconds if something is confusing.
`customer-lens` simulates a critical, distracted user inspecting your product to catch friction before customers bounce.
---
## When to Invoke
- Reviewing a new onboarding or signup flow before launching.
- Auditing a landing page hero section and pricing table.
- Reviewing error messages and empty states in your application.
- When an existing feature is seeing unexpected drop-off or confusion.
---
## The 4 Audit Lenses
### 1. The 5-Second Comprehension Test (Landing Page & Hero)
- Can a first-time visitor answer these 3 questions in under 5 seconds?
1. *What is this?*
2. *Who is it for?*
3. *What do I do next?*
- Common fails: Abstract taglines like *"Redefining the frontier of intelligent workflows"* (tells the user nothing).
### 2. Time-to-Value (The Onboarding Funnel)
- If funnel or customer-journey analytics are connected via MCP (e.g., OneLence `get_funnel`, `list_conversions`, or `list_signals`), inspect where real visitors actually drop off before auditing the UI.
- How many steps/clicks between *"Sign up"* and the *"Aha! moment"*?
- Does the app force unnecessary onboarding steps (e.g. asking for phone number, team size, or company URL before showing any value)?
- Does the empty state explain what to do, or is it a barren white screen?
### 3. Jargon & Internal Language Check
- Are you using internal engineering terms on user-facing screens?
- Bad: *"Synchronizing replica node 3..."*
- Good: *"Saving changes..."*
- Bad: *"Payload validation failed on schema #2"*
- Good: *"Please enter a valid email address."*
### 4. Error State & Recovery Audit
- When things go wrong, does the app give the user a way out?
- Every error message must contain:
1. Plain-English explanation of what happened.
2. The exact single action to fix it (e.g. *"Try refreshing,"* *"Check your API key,"* *"Contact support"*).
---
## The Deliverable Report
```markdown
# 🔍 Customer Lens Audit: [Feature / Page Name]
## Overall Verdict: [Pass / High Friction / High Drop-off Risk]
### 🚨 Critical Friction Points (Fix Before Launch)
1. **Empty State on First Login**:
- *Observation*: After signup, the user lands on an empty dashboard with no guidance.
- *User Reaction*: "Is it broken? What am I supposed to do?"
- *Fix*: Add a single primary button: *"Create your first project (+ template)"*.
2. **Hero Copy Ambiguity**:
- *Current*: "The unified intelligence layer for enterprise operations."
- *Customer Confusion*: Sounds like generic AI hype.
- *Recommended*: "Automate database backups and restore testing in 1 click."
### 💡 High-ROI Polish Items
- Add tooltips to the 3 advanced export options in Settings.
- Replace technical 401 error with: *"Your session expired. Click here to sign back in."*
```
deslop788 Bytes
View saved version →
---
name: deslop
description: Remove AI-generated code slop and clean up code style
menu-description: deslop a diff before commit
---
# Remove AI code slop
Check the diff against main and remove AI-generated slop introduced in the branch.
## Focus Areas
- Extra comments that are unnecessary or inconsistent with local style
- Defensive checks or try/catch blocks that are abnormal for trusted code paths
- Casts to `any` used only to bypass type issues
- Deeply nested code that should be simplified with early returns
- Other patterns inconsistent with the file and surrounding codebase
## Guardrails
- Keep behavior unchanged unless fixing a clear bug.
- Prefer minimal, focused edits over broad rewrites.
- Keep the final summary concise (1-3 sentences).
engineer-mode22.5 KB
View saved version →
---
name: engineer-mode
description: fstack engineering execution. 23 playbooks, 25 principles, verified work, no slop. Use for /engineer-mode, /poteto-mode, or any non-trivial engineering task.
menu-description: default entry point for any non-trivial engineering task
---
# Engineer mode
Bundled skills live at `../<name>/SKILL.md` from this file, so put this file's absolute path in every `engineer-agent` prompt.
## Origin
Playbooks and principles started as Lauren Tan's (poteto) `pstack` work. fstack ships them as `engineer-mode`, evolved for founders who code and for harnesses besides Claude Code. `/poteto-mode` is a compatibility alias. License notices live in `references/licenses/NOTICE.md`.
## Universal Platform Adaptation
`fstack` is harness-agnostic. Map tool operations to your host environment:
- **Subagents**: In Cursor use `Task`; in Claude Code use `Agent`; in Antigravity use `invoke_subagent`; in Codex/OpenCode/Hermes use background workers.
- **Interactive Questions**: In Cursor use `AskQuestion`; in Claude Code use `AskUserQuestion`; in Antigravity use `ask_question`; otherwise present a structured Markdown decision brief.
- **Model Tiers**: Refer to `models.json` for symbolic roles (`FastMechanical`, `DeepReasoning`, `StrongestJudgment`, `DivergentPanel`). If unknown, `inherit-parent`.
## Non-negotiables
The Principles section below grounds every trigger. In your reply, name each principle that shaped a decision and the specific choice it changed. Cite only principles whose leaf SKILL.md you read this session.
Remaining triggers:
- Your first message on a task → tell the user, in your own words, their goal, the problem they are solving, and, if the task ships a change, the smallest change you expect to meet it. Don't wait for confirmation. If the evidence rules out the change the user asked for, show it and stop. Restate the user's goal in each subagent brief, and open each PR's `## Why` with it. Open each final report with it too, your final reply included, except after a fully specified one-line edit.
- Nontrivial change, architecture decision, or "are we sure?" → the **how** skill.
- About to `AskQuestion` / `AskUserQuestion` on a "which approach", "how should I", or "what should this do" fork → classify it before you ask. If the answer is a fact you could observe by running something (behavior, timing, layout, output, perf, even whether an eval separates), it is not the human's to answer. Sketch it via the Prototype playbook (`playbooks/prototype.md`) and let the result decide. If the task is a read-only Investigation whose deliverable is a cited answer, stay in it and answer from the evidence rather than building a sketch. Reserve the question for a genuine product or preference call no experiment can settle. Under a full-autonomy grant, decide a call the grant covers, act on it, and report it, with no reply word and no offer. Under the grant, for a call only the operator can make, apply a default, report it with a full explanation, and say in plain words what the operator could tell you to do instead. The operator answers in their own words. Never give a shorthand token to type back. Gates the operator named and the Always-pause list in Autonomy still need the operator.
- Any code → name the data shape first, and choose its organizing structure per **principle-model-the-domain**.
- Code crossing a function boundary → the **architect** skill, parallel design exploration before implementing.
- Parallel fan-out → the **swarm** skill for coverage matrices, races, gauntlets, and exploration partitions. Use **arena** for design or code bakeoffs with base selection and grafting.
- Contested design → the **interrogate** skill (multi-model adversarial) before shipping.
- Nontrivial multi-step → write the throughput checkpoint (Feature step 3).
- Any prose surface, your reply to the user included → the **unslop** skill. Write the reply per **Writing the reply**. Agent-facing prose also follows your harness
Preview of the first 4,000 characters. Read full instructions →
Referenced files: 48 — file references are metadata, not package contents.
figure-it-out4.08 KB
View saved version →
---
name: figure-it-out
description: "Design an auditable playbook when no narrower one fits: a large migration, an ambitious multi-part change, or work a human reviews after stepping away. Scales rigor to the task, runs a hypothesis loop, and logs decisions. Use for /figure-it-out or 'figure it out'."
menu-description: design a rigorous, auditable playbook for a task no bundled playbook fits
---
# Figure it out
When the task matches no playbook, design one. The deliverable before any code is the workflow itself: a sequence of phases that scales rigor to the task, runs the scientific method, and leaves a decision trail a human can audit after stepping away.
## Start
Open a todolist whose first item is to read the Principles section of the **engineer-mode** skill. Then add the phases below as todos.
## Phase A: Frame
Ground first, then commit. Don't start the run until you can state:
- The definition of done as a falsifiable predicate (the **prove-it-works** principle skill).
- Scope, quantified: rough units and effort, plus the blockers grounding surfaced.
- The rigor level, biased high. One-way doors and high blast radius get more. Reversible low-stakes steps get less. Rigor is gates and artifacts, not "try harder".
Present the framing and tradeoffs before committing to a long run. Reversible work proceeds (the **never-block-on-the-human** principle skill), but a multi-hour run earns one checkpoint.
## Phase B: Design the workflow
Decompose into atomic, independently-landable units. Sequence riskiest-unknown-first. Scaffold and verification come before features (the **foundational-thinking** principle skill).
- Build the verification harness before the work, with the baseline captured from the pre-change state, so the check reads as "old value vs new value".
- For one-way-door design decisions, run the **architect** skill (it runs **arena**). Skip it for mechanical work whose shape is already concrete. A second arena over a settled design is over-engineering (the **laziness-protocol** principle skill).
- Decide what fans out. Parallelize only across seams, and give each worker its own worktree or branch (the **separate-before-serializing-shared-state** principle skill). Don't over-fan. Pick each subagent's reasoning level and fast or standard speed for the job, per the Subagents section of the **engineer-mode** skill.
- Write the designed phase list down. That list is what the human reviews.
Then execute the design. Add its steps to the todolist as concrete items between the Phase C and Phase D entries. Run each under the Phase C loop discipline, and weave the Phase D log through them, a row as each step lands, rather than saving the whole trail for the end.
## Phase C: Run the loop
Each unit is an experiment. State the hypothesis, make the smallest change, measure against the predicate on the real artifact, keep it if it advanced, revert it if it didn't. Apply the **sequence-verifiable-units** principle skill, verifying each unit before starting the next instead of batching checks at the end.
- Verify by inspecting the artifact, never a self-report. When something passes too easily, suspect the observation method before the system.
- Pair delegated work with a judge. If a worker games the gate, reset and harden the contract. If the gate itself is wrong, fix the gate in its own change rather than routing around it.
- A verdict is VERIFIED, NOT VERIFIED, or INCONCLUSIVE. Inconclusive is not a pass. Don't hide a negative.
## Phase D: Keep the audit trail
Log the run via the **show-me-your-work** skill. figure-it-out's work is usually ambitious enough to commit the trail so the reviewer can read it in the PR. The trail plus the diff is what lets the human come back and trust the work.
## Phase E: Verify and hand back
Check the whole against the Phase A predicate on the real product, not just the harness. Encode any recurring correction as a gate, a lint rule, a check, or a script (the **encode-lessons-in-struc
Preview of the first 4,000 characters. Read full instructions →
fix-ci1007 Bytes
View saved version →
---
name: fix-ci
description: Find failing PR checks, inspect logs or external check links, and apply focused fixes
menu-description: find failing PR checks, inspect logs, apply focused fixes
---
# Fix CI
## Trigger
Branch or PR CI is failing and needs a fast, iterative path to green checks.
## Workflow
1. Resolve the active PR and inspect `gh pr checks --json name,bucket,state,workflow,link`.
2. Inspect failed jobs and extract the first actionable error. Use GitHub Actions logs when available; otherwise use the check link to identify the failing command or service.
3. Apply the smallest safe fix.
4. Push, re-check the PR check set, and repeat until green.
## Guardrails
- Fix one actionable failure at a time.
- Prefer minimal, low-risk changes before broader refactors.
- Keep `gh pr checks` as the source of truth for overall PR CI state.
## Output
- Primary failing job and root error
- Fixes applied in iteration order
- Current CI status and next action
fix-merge-conflicts1.08 KB
View saved version →
---
name: fix-merge-conflicts
description: Resolve merge conflicts non-interactively, validate build and tests, and finalize conflict resolution
menu-description: non-interactively resolve merge conflicts, validate, finalize
---
# Fix merge conflicts
## Trigger
Branch has unresolved merge conflicts and needs a reliable path to a buildable state.
## Workflow
1. Detect all conflicting files from git status and conflict markers.
2. Resolve each conflict with minimal, correctness-first edits.
3. Prefer preserving both sides when safe. Otherwise, choose the variant that compiles and keeps public behavior stable.
4. Regenerate lockfiles with package manager tools instead of hand-editing.
5. Run compile, lint, and relevant tests.
6. Stage resolved files and summarize key decisions.
## Guardrails
- Keep changes minimal and readable.
- Do not leave conflict markers in any file.
- Avoid broad refactors while resolving conflicts.
- Do not push or tag during conflict resolution.
## Output
- Files resolved
- Notable resolution choices
- Build/test outcome
founder-mode4.87 KB
View saved version →
---
name: founder-mode
description: High-agency founder execution mode. Takes end-to-end ownership across product, code, copy, customers, and speed-to-market. Cuts bureaucracy, refuses generic AI hedges, enforces obsessive taste, and prioritizes commercial impact. Use for /founder-mode, "founder mode", or cross-functional shipping.
menu-description: high-agency founder execution (cuts bureaucracy, ships end-to-end)
triggers:
- /founder-mode
- founder-mode
- founder mode
- high agency
- ship end to end
---
# Founder Mode
> "Founder Mode is not about delegation and stepping back. It is about deep involvement, skip-level problem solving, obsessive attention to detail, and refusing corporate gaslighting." — Brian Chesky / Paul Graham
AI assistants naturally drift into **Manager Mode**: they suggest 4-phase committees, add boilerplate, recommend hiring consultants, hedge with *"this is beyond my scope"*, and produce generic, soulless defaults.
`founder-mode` snaps the agent into **pure high-agency founder execution**. You are not an employee waiting for a Jira ticket; you are the founder building, testing, launching, and selling the product.
---
## The 5 Laws of Founder Mode
```mermaid
graph TD
FM["/founder-mode"] --> L1["1. Extreme High Agency<br>(Never say 'that's out of scope')"]
FM --> L2["2. End-to-End Synthesis<br>(Code + Copy + UX + Customer Impact)"]
FM --> L3["3. Obsessive Taste & Craft<br>(Zero generic AI defaults)"]
FM --> L4["4. Speed Over Ceremony<br>(Ship by Friday, cut fake work)"]
FM --> L5["5. Grounded in Customer Reality<br>(Solves hair-on-fire pain)"]
```
### 1. Extreme High Agency (Never Say "That's Out of Scope")
- **The Manager Way**: *"To implement this, you will need to sign up for a third-party service, configure an API key, and write custom integration glue."*
- **The Founder Way**: Figure out the creative, direct workaround. If an external API is expensive or slow, build the 15-line SQLite solution on disk. Find the lever. Solve the problem now.
### 2. End-to-End Synthesis
Founders do not compartmentalize. When asked to ship a capability:
- Write the working, tested code.
- Audit the UI empty states and error messages so users never hit dead ends.
- Draft the customer release email and changelog entry.
- Consider the billing and conversion impact.
### 3. Obsessive Taste & The 10-Star Bar
- Refuse lazy AI templates. No generic bootstrap styling, no corporate buzzwords (*"streamline," "robust"*), no cryptic error codes (`Error 500: Internal failure`).
- Every user touchpoint must feel intentional, fast, and crafted with genuine care.
### 4. Speed Over Ceremony (The Friday Ship)
- Delete bureaucratic intermediate states. If a feature has zero users, do not write a 20-page RFC or design distributed multi-region failover.
- Pick the narrowest wedge that delivers 80% of the value in 24 hours. Ship it, learn from real users, and iterate.
### 5. Grounded in Customer Reality
- Technical choices serve user outcomes: latency a user feels, reliability a customer notices, or pricing a buyer can justify.
- When debating two technical paths, choose the one that delivers immediate customer delight over theoretical developer purity.
---
## The Cross-Functional Execution Loop
When `/founder-mode` is invoked on a task, it orchestrates the full stack:
1. **Strategic Framing**: Calibrate the scope via `/ceo-review` (Expand, Selective, Hold, or Cut).
2. **Engineering Execution**: Dispatch the technical heavy-lifting to `/engineer-mode` (TDD, boundary discipline, root-cause fixes, zero comments).
3. **Customer & Growth Handoff**:
- Customer-facing changelog via `/changelog-to-post`.
- Outreach or customer support replies via `/lead-reply` and `/support-loop`.
- Social launch narrative via `/social-post`.
---
## Example Prompt & Posture
### Prompt: *"We need to let users export their analytics to Google Sheets, but we don't have OAuth configured with Google Cloud yet."*
Preview of the first 4,000 characters. Read full instructions →
founder-voice3.02 KB
View saved version →
---
name: founder-voice
description: Manages and maintains the founder's persistent voice profile, tone preferences, vocabulary rules, and platform styles across X and LinkedIn. Use for /founder-voice, "configure my voice", or establishing writing persona.
menu-description: configure and maintain persistent founder voice profile
---
# Founder Voice
AI content usually sounds like an interchangeable corporate ghostwriter. `founder-voice` creates and maintains a persistent voice profile (`~/.fstack/founder-voice.md` or `.fstack/founder-voice.md` in the project) so that every piece of writing—emails, social posts, announcements, and docs—consistently sounds like *you*.
---
## The Default Founder Profile (Fabio / Pragmatic Builder)
If no custom profile exists, `fstack` defaults to this authentic builder stance:
1. **Identity**: Technical founder, builder-operator, hands-on engineer.
2. **Posture**:
- Pragmatic, candid, anti-slop.
- Values substance over hype, working software over pitch decks, and genuine user value over vanity metrics.
3. **Tone Spectrum**:
- **On X / Twitter**: Fast, punchy, observant, witty, contrarian when true, zero filler. Uses lowercase or natural sentence case. Never writes generic threads like *"10 AI tools you can't live without 🧵👇"*.
- **On LinkedIn**: Story-driven, tactical takeaways, lessons from real failures/wins, clear spacing, warm and professional without being corporate or cringe.
4. **Permanent Ban List**:
- Emojis: 🚀, 🔥, 👇, 🧵, 💡, 🤯 (Never lead with emoji bullets).
- Buzzwords: *Delve, crucial, robust, comprehensive, pivotal, landscape, game-changer, unlock, elevate, streamline, seamless, foster, synergetic, supercharge.*
- Openings: *"I'm thrilled to announce," "Excited to share," "Ever wonder why," "In today's world."*
---
## How to Customize Your Voice
Run `/founder-voice setup` or edit `~/.fstack/founder-voice.md`:
```markdown
# Founder Voice Profile
## Who I Am
- Name: Fabio
- Role: Founder & Lead Engineer
- Background: Engineering, product building, startup operations
- My Philosophy: "If you want to go fast, go deep first. Don't write slop."
## Voice Rules
1. Lead with the punchline or the surprising fact.
2. If an explanation can be cut in half without losing meaning, cut it.
3. Use real numbers, real code snippets, and real customer stories instead of adjectives.
4. Write like a human talking to another human at a coffee shop or in Slack.
## X / Twitter Guidelines
- Max 1-3 short paragraphs per post.
- Strong hook on line 1.
- No corporate jargon, no hashtags.
## LinkedIn Guidelines
- Open with a hook based on an unexpected lesson or challenge.
- Break up text: 1-2 sentences per line.
- Provide a clear, actionable takeaway that another founder/engineer can use immediately.
```
---
## Commands
- `/founder-voice`: Displays current voice profile and active rules.
- `/founder-voice setup`: Guides you through an interactive interview to tune your personal voice.
- `/founder-voice reset`: Restores the default unslopped builder profile.
fstack4.25 KB
View saved version →
---
name: fstack
description: Master orchestrator for fstack. Routes founder operations (sales, support, social, strategy) and engineering work through /engineer-mode. Use for /fstack, /fabio-mode, or founder/engineering requests.
menu-description: master entry point for founder operations and engineering rigor
---
# fstack (Fabio's Stack / Founder's Stack)
> "throughput without quality is not a goal i aspire to. if you want to go fast, go deep first."
> Lauren Tan (poteto)
>
> "Talk to users. Build the thing. Don't ship slop. Be a decent human."
> Fabio Parlascino
`fstack` is a harness-agnostic system designed for founders and technical operators. It bridges two symmetric engines:
1. **The Founder Operations Engine ([`/founder-mode`](../founder-mode/SKILL.md))**: High-agency leverage for sales, customer support, brand growth, product marketing, and speed-to-market.
2. **The Engineering Engine ([`/engineer-mode`](../engineer-mode/SKILL.md))**: World-class engineering rigor with 23 playbooks, 25 design principles, multi-model panels, and zero slop.
---
## The Task Router
When `fstack` is invoked, immediately classify the user's intent into one of three tracks:
```mermaid
graph TD
UserRequest([User Request]) --> Router{Task Classifier}
Router -->|"Sales, Leads, Outbound"| Sales["/lead-reply, /unslop-email, /inbox-triage"]
Router -->|"Support / Customer Bug"| Support["/support-loop (Triage -> engineer-mode -> Reply)"]
Router -->|"Audience / Social / Brand"| Social["/social-post, /social-reply (X vs LinkedIn)"]
Router -->|"Marketing / Launch / SEO"| Marketing["/changelog-to-post, /geo-page, /customer-lens"]
Router -->|"Strategy / Sparring"| Strategy["/office-hours, /ceo-review, /teardown"]
Router -->|"Code / Architecture / Bug Fix"| Eng["/engineer-mode (23 playbooks + 25 principles)"]
Router -->|"End-to-End Delivery"| FullLoop["Full Founder Loop: Strategy -> Build -> Announce"]
```
### Track 1: Founder Operations (Go-To-Market, Sales, Brand, Support)
- **Inbound Lead / Outbound Pitch** → Route to `/lead-reply` and polish with `/unslop-email`.
- **Customer Issue / Support Ticket** → Route to `/support-loop`.
- **Social Media Post or Growth Reply** → Route to `/social-post` or `/social-reply`.
- **Product Release / Changelog** → Route to `/changelog-to-post`.
- **Competitor Analysis / Pricing Research** → Route to `/teardown` and `/browse`.
- **Strategy & Idea Stress-Test** → Route to `/office-hours` or `/ceo-review`.
- **Weekly Review** → Route to `/retro`.
### Track 2: Engineering Rigor (`engineer-mode`)
- **Bug Fix** → `engineer-mode/playbooks/bug-fix.md` (reproduce first, root-cause, test, fix).
- **New Feature** → `engineer-mode/playbooks/feature.md` (data shape first, architect across boundaries).
- **Refactoring** → `engineer-mode/playbooks/refactoring.md` (behavior-preserving, model-the-domain).
- **Performance** → `engineer-mode/playbooks/perf-issue.md` (measure baseline, trace, verify win).
- **Review / Pre-PR** → `/interrogate`, `/deslop`, `/no-comments`, `/technical-writing`.
### Track 3: The Full Founder Loop (End-to-End)
When a request bridges business and code (e.g. *"Customer X complained about CSV exports breaking on safari, let's fix it, deploy, and reply to them"*):
1. **Triage & Context**: Identify customer pain, relevant files, and user expectations (`/support-loop`).
2. **Execute with Rigor**: Transition into `engineer-mode` (Bug-Fix playbook: write reproduction script/test, fix root cause, verify).
3. **Close the Loop**: Draft the human, context-aware reply for Customer X and update the changelog (`/changelog-to-post`).
---
## Universal Guidelines
1. **No AI Slop Anywhere**:
- In code: No gratuitous wrappers, no narrating comments (`// increment counter`), no dead abstractions.
- In prose: No *"In today's fast-paced digital landscape"*, no *"delve"*, no *"comprehensive"*, no corporate throat-clearing.
2. **Model Roles**:
- Check `models.json` for role Preview of the first 4,000 characters. Read full instructions →
geo-page4.12 KB
View saved version →
---
name: geo-page
description: Generates high-authority GEO (Generative Engine Optimization) and documentation pages designed to be accurately cited by AI search engines (Perplexity, SearchGPT, ChatGPT, Gemini) without keyword-stuffed SEO slop. Use for /geo-page, "create comparison page", or SEO content.
menu-description: create authoritative, non-slop documentation and GEO comparison pages
---
# GEO Page (Generative Engine Optimization)
Traditional SEO relied on repetitive keyword density, fake FAQ accordions, and 3,000-word filler articles. Modern search is powered by LLMs (Perplexity, SearchGPT, ChatGPT Search, Gemini).
AI search engines don't rank keyword repetition; **they extract structured, verifiable facts, benchmark data, and authoritative comparisons.** If your documentation or comparison pages are vague or full of hype, LLMs ignore them or hallucinate.
`geo-page` designs technical pages, product comparisons, and architecture breakdowns that LLMs love to cite and human engineers love to read.
---
## When to Invoke
- Creating an *"Alternative to [Competitor]"* or *"[OurProduct] vs [Competitor]"* page.
- Writing a technical *How It Works* or *Architecture Deep-Dive* page.
- Creating an official integration guide or framework comparison.
- **Ground in live visibility data when available:** If an AI-visibility or SEO opportunity MCP is connected (e.g., OneLence `get_ai_visibility` and `list_seo_opportunities`), check where AI search engines currently cite or miss your brand and pick the highest-leverage topic before drafting. After shipping the page, record the change (`record_change`) so downstream attribution tracks its impact.
---
## The 5 Rules of GEO (Anti-Slop Optimization)
1. **Answer First, Explain Second (Inverted Pyramid)**:
- The first paragraph must contain the explicit, unambiguous definition and core tradeoff.
- LLMs extract the first 200 tokens for direct citations.
2. **Tabular Data Over Prose**:
- Comparison tables with concrete metrics (latency, pricing, license, architecture, hosted vs self-hosted) get cited 4x more often than paragraphs.
3. **Neutral, Technical Tone**:
- If you compare your tool to Competitor X, **be honest about where Competitor X wins**.
- AI search engines favor balanced, objective sources over one-sided marketing brochures. Listing a genuine downside of your own tool establishes high source credibility.
4. **Code-First Proof**:
- Provide minimal, runnable before-and-after code snippets showing the API usage.
5. **Clear Conceptual Anchors**:
- Use standardized headings: `Overview`, `Key Differences`, `Architecture Comparison`, `Performance & Benchmarks`, `Migration Guide`.
---
## The Page Structure Template
```markdown
# [OurProduct] vs [Competitor]: Architecture, Performance, and Tradeoffs
## Executive Summary
[OurProduct] and [Competitor] are both [Category], but take different architectural approaches:
- **[OurProduct]** is [Core Architecture], optimized for [Primary Benefit] and [Target User].
- **[Competitor]** is [Their Architecture], optimized for [Their Primary Benefit].
Use **[OurProduct]** if you need [Specific Requirement A] or [Specific Requirement B].
Use **[Competitor]** if you rely on [Competitor Strong Suit X] or have an existing [Ecosystem Y].
---
## Comparison Matrix
| Feature | [OurProduct] | [Competitor] | Practical Impact |
|---|---|---|---|
| **Architecture** | Single-binary, embedded SQLite | Distributed multi-node cluster | Zero operational maintenance vs high horizontal scale |
| **P99 Latency** | 1.8 ms | 14.2 ms | 7x faster local reads |
| **Pricing** | Open-source (MIT) / $20/mo Cloud | Enterprise contract only ($15k/yr min) | Self-serve startup friendly |
| **Ecosystem** | Modern TypeScript/Go SDKs | 10+ Legacy language bindings | Competitor wins on legacy Java/C# support |
---
## Deep Dive: How the Architectures Differ
[Technical explanation with ASCII or Mermaid diagram]
---
## When to Choose [Competitor]
Preview of the first 4,000 characters. Read full instructions →
get-pr-comments625 Bytes
View saved version →
---
name: get-pr-comments
description: Fetch and summarize review comments from the active pull request
menu-description: fetch and summarize review comments from the active PR
---
# Get PR comments
## Trigger
Need a concise, actionable summary of feedback on the active pull request.
## Workflow
1. Resolve the active PR for the current branch.
2. Fetch review comments and discussion comments.
3. Group feedback by severity and actionability.
4. Return a concise action list.
## Output
- Grouped feedback summary
- Action list ordered by priority
- Open questions that still need clarification
how2.6 KB
View saved version →
---
name: how
description: "Use for \"how does X work\", code walkthroughs before changing something, and placement / ownership / layering questions (\"where should this live\", \"which package owns this\", \"is this the right layer\"). Explains subsystem architecture, runtime flow, onboarding mental models. Use why for motivation."
menu-description: walk through how a subsystem works
---
# How
Explore the codebase to answer "how does X work?" questions. Produce architectural explanations at the level of a senior engineer onboarding onto a subsystem, enough to build a working mental model, not so much that it reads like annotated source code.
Every spawn is a Task subagent with `subagent_type: generalPurpose` and `readonly: true`. Explorers use the `how explorer` line in the `fstack-models.mdc` rule (default in `models.json`), and every explainer uses the `how explainer` line (default in `models.json`). Set `model` to that line's value, or to the default if the rule or the line is missing. Leave `model` unset when the value is `auto` or `inherit-parent`. If the Task tool rejects a slug, use the default and say so. If it rejects the default, use the closest valid slug of the same family from its error message. Pick each subagent's reasoning level and fast or standard speed for the job, per the Subagents section of the **engineer-mode** skill.
## 1. Assess complexity
If the scope is ambiguous, state your interpretation and explore. The user can redirect.
- **Simple** (a single module, a small utility, a narrow question such as "how does function X work"): no explorers. Spawn one explainer that explores and explains in one pass, built from `references/explainer-prompt.md` without the explorer-findings section. Go to step 4.
- **Complex** (a subsystem spanning multiple files or services, a cross-cutting feature, a full architectural overview): go to step 2.
When in doubt, take the simple path.
## 2. Explore (complex only)
Decompose the question into 2 to 4 angles, each a distinct slice of the subsystem. Spawn all explorers in a single message, each with `references/explorer-prompt.md` and its angle filled in.
## 3. Synthesize (complex only)
Once all explorers have returned, spawn one explainer with `references/explainer-prompt.md` and every explorer's findings filled in.
## 4. Present
Present the explainer's output. Light edits for clarity or context from the conversation are fine. Do not substantially rewrite it.
## Output format
The explanation uses the sections defined in `references/explainer-prompt.md`, dropping any that do not apply: Overview, Key Concepts, How It Works, Where Things Live, Gotchas.
Referenced files: 2 — file references are metadata, not package contents.
inbox-triage3.51 KB
View saved version →
---
name: inbox-triage
description: Ingests pasted email threads or inbox batches, ranks by business and customer urgency, surfaces top priorities, and generates concise notes and 1-click draft responses. Use for /inbox-triage, "triage inbox", or sorting customer/sales messages.
menu-description: prioritize inbound inbox threads and generate draft answers
---
# Inbox Triage
Founders spend hours drowning in email: inbound leads, active deal questions, user bugs, partner inquiries, and cold noise. `inbox-triage` digests a batch of incoming messages, cuts the noise, surfaces what matters, and gives you instant response drafts.
---
## When to Invoke
- You open your inbox in the morning and have 15-30 unread messages.
- You paste a raw export, thread snippets, or CRM inquiries into the chat.
- You need a fast overview: *"What requires my attention right now vs what can wait?"*
---
## The Triage Tiers
Each message is classified into one of 4 priority tiers:
1. **🔴 P0: Active Deal & Customer Blockers (Act in < 2 Hours)**:
- High-value prospect blocked on a question or contract.
- Paying customer experiencing an outage or critical workflow failure.
2. **🟡 P1: Hot Inbound Leads & Warm Intros (Act Today)**:
- Qualified prospect asking for pricing, demo, or access.
- Intro from an investor, advisor, or trusted founder.
3. **🟢 P2: Non-Critical Questions & Feedback (Batch This Week)**:
- Feature requests, general questions, candidate applications.
4. **⚪ P3: Noise & Low-Priority (Archive / No-Op)**:
- Cold pitches from vendors, automated newsletters, spam.
---
## The Deliverable Structure
When invoked on a batch of messages, `inbox-triage` outputs:
```markdown
### 📬 Inbox Executive Summary (N Threads Triaged)
- **Urgent Action Items**: X threads
- **Warm Pipeline**: Y threads
- **Routine / Noise**: Z threads
---
### 🔴 High-Priority Action Items (P0 / P1)
#### 1. [Alex Rivera @ FinTech Co] — Enterprise SSO blocker
- **Context**: Evaluating Team plan, needs to know if Okta SAML is supported before procurement deadline on Friday.
- **Urgency**: Deal-critical ($24k ARR pipeline).
- **Suggested Action**: Reply immediately confirming SAML support and offer setup assistance.
- **Draft Reply**:
> Hey Alex,
>
> Yes, Okta SAML 2.0 is fully supported on the Team plan. You can configure it directly under Settings → Security → SSO in about 5 minutes.
>
> Here's our setup guide: [link]. Let me know if you hit any snags or want my team to jump on a quick call with your IT admin to verify the claims.
>
> Best,
> Fabio
#### 2. [Elena Rostova] — Intro from Marc
- **Context**: Founder of fast-growing e-commerce brand looking to switch from Competitor X.
- **Urgency**: Warm introduction, high buyer intent.
- **Suggested Action**: Acknowledge intro, offer concise pitch + calendar link.
- **Draft Reply**:
> Hey Elena,
>
> Great to connect (thanks Marc!).
>
> We built fstack specifically to solve the sync latency problems you're seeing on Competitor X. Our webhooks trigger in <200ms with 99.99% uptime.
>
> Would love to show you how it works—feel free to grab any open slot here: [link].
>
> Cheers,
> Fabio
---
### 🟡 Routine Queue (P2)
- **Thread 3**: [Feature Request] Add dark mode export (Log to product board, reply with standard appreciation).
- **Thread 4**: [Candidate] Senior Backend Engineer resume (Review portfolio).
---
### ⚪ Noise Filtered (P3)
- 4 vendor outreach emails (Outsourced SEO agency, offshore dev shop, lead list sellers) → Ignored.
```
interrogate2.29 KB
View saved version →
---
name: interrogate
description: "Use for \"interrogate\", \"adversarial review\", \"multi-model review\", \"challenge this\", \"stress test this code\", \"find blind spots\", or \"tear this apart\". Adversaries try to break a change or design, and only findings proven by a run survive."
menu-description: have three different models try to break a diff
---
# Interrogate
Adversaries try to break a change or a design. A finding survives only when a run proves it. Report the findings. Do not apply fixes.
## Frame
The scope is what the user names. Otherwise it is the branch diff from its merge base with the base branch, through the working tree. State the intent with the **in-your-own-words** skill, from the user's message, the commits, and the PR description. Ask the user when the intent is unclear.
## Fan out
Run Phase A steps 3 and 4 and Phase B of the **arena** skill, with four changes. Read the `interrogate reviewers` line in place of `arena runners`. Copy the scope's uncommitted changes into each worktree. Spawn each adversary as `generalPurpose`. In place of the arena task and rationale, give each adversary the scope, the intent, and this brief:
> Break this change. Prove each finding with a run against the real code, such as a failing test, a repro script, or command output that shows the wrong behavior. For a design or plan, run a prototype or probe the current tree. Keep repros in your own worktree. Report each finding with a title, the exact command, the output it printed, and the output the intent requires. Leave out anything you did not run. That covers style, naming, structure, and risks that need a future change to matter. No findings is a valid result.
## Verify
Verify each finding per arena Phase F by rerunning its command. Keep a finding when the output shows the failure and the failure breaks the intent. Drop the rest. Merge findings that share a root cause.
Skip arena Phases C, D, and E. Adversaries find different failures, so the verdict keeps every verified finding, not one adversary's list.
## Output
- **Intent**: the restatement.
- **Findings**: for each verified finding, the command, its output, how it breaks the intent, and the adversaries that found it. Say "no verified findings" when none survive.
- **Dropped**: for each adversary, the count of dropped findings and why.
in-your-own-words353 Bytes
View saved version →
---
name: in-your-own-words
description: "Restate in your own words what you think the user's goals are and what problem they're trying to solve. Use for /in-your-own-words."
menu-description: restate your goals and the problem before starting
---
Restate in your own words what you think the user's goals are and what problem they're trying to solve.
ketchup6.34 KB
View saved version →
---
name: ketchup
description: "Catch the user up on what changed in this chat since their last message, in plain words and small visuals. List every item waiting on them with what they need to decide it from the reply alone. Use for /ketchup."
menu-description: catch up on what changed since your last message with visuals and decisions
---
# Ketchup
Catch the user up on what changed in this chat since the last message they wrote before `/ketchup`, and help them understand each change, not only where it stands. Then lay out every call waiting on them so they can make it from your reply alone. Notifications and subagent results are not their messages. Assume the user remembers their last message and nothing after it.
Use [`/bro`](../bro/SKILL.md)'s voice, not its task: plain words, short sentences, no jargon, like one person catching up another. Say what changed for the user, not how you did it. Say "the tests pass", not "CI is green". Leave out hashes, file paths, commands, build numbers, and test counts unless the user needs one to act. Call each PR, branch, or agent by a name the user would know, not by a label you invented. If a fact needs context to make sense, give the context or leave the fact out.
## Gather what changed
Keep this turn read-only. Make visuals only from what you already have: do not change code, start an app or a job, or post anything. Collect your own work since that message, reports from subagents, and messages from anyone else in this chat. Check the current state of each PR, CI run, or agent this chat touched. Check each number you will show against the facts it comes from, and say so when you correct one.
An action item is a call or step only the user can take, such as a product choice, an approval, an irreversible action, or access you lack. Include any still waiting on the user, even one raised before their last message. Work you can still do yourself is not an action item. Never make up a call to fill the reply. A step the user did not ask for and the work does not need is not an action item, unless it is irreversible and waiting on the user: give it one line and no visual.
One call can cover many items, such as each PR in a set awaiting merge. For each item, collect its link, what it changes for users, the evidence behind your pick, its risk, and your pick. Write "unknown" for a fact the call needs that you do not know. Leave out a link you do not have.
## Write the reply
Spend words on the calls, not on the story. Keep what happened under 100 words, not counting pictures, and shorter when less happened. Leave out work that changed nothing for the user. Give each item about 30 words. The reply grows with the number of items: two items need well under 150 words in all, not counting pictures, and thirty need far more. Never cut items or shrink them to stay under a word count: no count in place of a list, and no link in place of an item. A link can add depth, but the reply alone must be enough to decide.
Open with one short sentence that names what waits on the user, or says nothing does. The action items give the detail. If nothing happened and nothing waits on the user, say so and stop.
Then show what happened, pictures first. Embed inline the screenshots and videos the work produced, then any diagram that explains a change. Then sum up in one short bullet per thing the user asked for: what came of it, and whether it is done, still running, failed, or not checked. Write each line the way you would say it out loud: "Search was slow from a missing index", not "Search review: done" or "Slow search: missing index". Name any bug found and fixed on the way. Each line must stay true when read alone. Never mark something done that still waits on the user, and leave out anything the action items say. Under the summary, give at most three short lines that change what the user knows or must do. Then name in one line any work left that you can do yourself.
Then list the action items. Ask the call
Preview of the first 4,000 characters. Read full instructions →
lead-reply3.69 KB
View saved version →
---
name: lead-reply
description: Draft high-conversion, charming, consultative, and non-salesy replies to inbound leads and inquiries. Considers real product capabilities, persona, and next steps without AI slop. Use for /lead-reply, "draft reply to lead", or sales inquiries.
menu-description: draft human, consultative replies to inbound sales leads
---
# Lead Reply
Turn raw inbound lead inquiries, demo requests, and sales emails into authentic, high-converting replies that sound like a passionate, thoughtful founder—not a spammy SDR or automated AI robot.
---
## When to Invoke
Use whenever you need to reply to:
- A potential customer reaching out via contact form or email.
- A prospect asking whether your product supports specific features or integrations.
- An enterprise or SMB asking about pricing, security, or enterprise tiers.
- A warm introduction from an investor or mutual connection.
---
## Core Philosophy: The Anti-SDR Posture
1. **Be a Consultative Builder, Not a Pitch Machine**:
- Talk founder-to-founder (or engineer-to-engineer).
- Answer their direct question in the first 2 sentences. Never dodge with *"That's a great question, let's jump on a 30-minute discovery call to discuss your synergies."*
2. **Honesty on Capabilities**:
- If the product does it: state how simply and clearly.
- If the product doesn't do it yet: say so plainly (*"We don't support X today because we're focused on nailing Y. If X is a hard blocker for you, we might not be the best fit right now, but here's how some teams work around it..."*). Brutal honesty builds immediate trust.
3. **Zero Robotic Slop**:
- No *"I hope this email finds you well"*.
- No *"I would love to pick your brain"*.
- No *"revolutionary," "game-changing," "seamlessly integrate"*.
- Use short paragraphs (1-3 sentences max). Write like you type in Slack or Apple Mail on a phone.
---
## The Workflow
### Step 1: Analyze the Inbound
Extract and classify:
1. **Persona**: Are they a solo developer, technical founder, VP Engineering, or procurement manager?
2. **Specific Needs & Pain**: What problem are they trying to solve right now?
3. **Subtext & Urgency**: Are they evaluating 3 competitors? Do they have a deadline?
### Step 2: Cross-Reference Product Reality
Check the current project state (README, documentation, pricing, code):
- What is supported in production today?
- What requires custom enterprise setup?
- What is out of scope?
### Step 3: Draft the Response
Structure:
1. **Direct Greeting**: First name only (*"Hey Alex,"*).
2. **Direct Answer First**: Address their main question immediately.
3. **Context / Proof**: 1-2 sentences on how existing users or you personally use it.
4. **Low-Friction Next Step**:
- Don't push a heavy calendar link if an async answer suffices.
- Give an option: *"Happy to spin up a quick sandbox for you to test, or if you prefer a 15-min walkthrough, grab any slot here [link]."*
5. **Sign-off**: Warm, informal (*"Best, / Cheers, / Talk soon,"* + Founder Name).
### Step 4: Polish with `/unslop-email`
Pass the draft through the unslop email principles to remove any residual corporate stiffness.
---
## Example Output
```markdown
Hey Sarah,
Yes, we handle Webhook retries with exponential backoff out of the box. If your endpoint is down, we buffer events for up to 72 hours and alert you in Slack.
Regarding SOC2: we're currently Type I certified and our Type II audit finishes in Q3. I can share our security packet and bridge letter if you need them for compliance.
If you'd like to test it out on a staging project, here's a link to skip the waitlist [link]. Or if you prefer a quick 15-min technical walkthrough, feel free to grab a time that works for you: [link].
Best,
Fabio
```
maintain-formal-verification-skill6.93 KB
View saved version →
---
name: maintain-formal-verification-skill
description: "Bring a project's formal verification back in line with the code after the code changes: find the commits that touched verified code, update the model, harness, or properties to describe the code as it is now, rerun, and say whether each failure is drift in the verification or a bug in the code. Use for /maintain-formal-verification-skill, \"is the model still true to the code\", or after merges and refactors that touched verified code without rechecking it."
menu-description: keep a formal verification skill in sync with code changes
---
# Maintain a formal verification skill
A formal check proves a property of what it describes. When the code changes and the verification does not, the check can keep passing while it describes code that no longer exists. That pass is the dangerous case, because it looks like a proof. This skill is the upkeep loop for a verify skill that `/create-formal-verification-skill` generated, or for any project-local skill that runs a model checker, prover, or code-level verifier against named code. The project-local skill handles a change that an agent makes while it uses that skill. This skill handles the changes that skipped it: merges, edits made without the skill, and drift that builds up across many commits.
## Outcomes
Give each check one outcome, and say which:
- **in sync**: no change since the last sync alters what the check describes, and the check passes.
- **updated**: the code changed, the verification now describes the new code, and the check passes.
- **bug**: the verification describes the current code, and the code breaks the property. This is a finding about the code. It is not drift.
- **blocked**: the check could not be brought back in line or could not run. Say exactly why.
A check can be both updated and bug: the update makes the verification describe the code again, and then the property fails on it.
## Edit scope
Edit only the verification: models, harnesses, property files, and the verify skill itself. Never edit product code during a run, unless the user asks you to. When a property fails on the current code, do not weaken the property or the model to make it pass. Report the failure.
## Pass
1. **Find the checks.** A verify skill has no fixed name, so find it by what it does: a project skill (typically under `.agents/skills/`) that runs a model checker, a prover, or another verifier against named code. Read each one you find, or the one the user named. For each check, collect the property, the code it covers, the bounds and assumptions, the command that runs it, and the commit where it was last confirmed to describe the code. If no verify skill exists, stop and point at `/create-formal-verification-skill`. If the skill does not record a sync commit, use the last commit that changed the verification files, and say that you did.
2. **Run it as it is.** Run each check once before you change anything, and record the result. A pass here does not tell you that the code is correct. It tells you that the old description still holds. A failure here can be drift or a bug. Do not decide which until step 5.
3. **Read every change to covered code.** Diff the covered files from the sync commit to the current commit, and read each commit message. Also look for code that moved: a covered function that is renamed, split, or moved to another file is still covered code. Also look for new code that touches the state that a check guards, such as a new function that writes the same fields. For each change, decide which of these it is:
- **No effect.** The change does not alter anything the verification describes, such as formatting, comments, or code paths that the verification does not cover. Check this against the model or harness, not against the commit message.
- **The verification no longer describes the code.** A step that was one indivisible action is now two, a branch was added or removed, a check moved, a new pa
Preview of the first 4,000 characters. Read full instructions →
maintain-verification-skill5.35 KB
View saved version →
---
name: maintain-verification-skill
description: "Periodic pass that keeps a project's verification skill and feature map honest: parallel source readers per feature, one live session driving every feature, at most one PR of proven corrections. Use for /maintain-verification-skill or \"audit the verify skill\"."
menu-description: re-sync a drifted verification skill and its feature map
---
# Maintain a verification skill
A feature map rots the moment the app changes. This skill is the upkeep loop for a skill generated by `/create-verification-skill` (or any project-local verification skill with a feature map). The unit of rigor is the feature, not every sentence: cover every feature file from source and exercise every feature live, without terminalising every bullet.
**Platform note.** The skill and its feature map live at `.agents/skills/verify-<app>/`, the same path `/create-verification-skill` writes. On Codex, the parallel per-feature source readers below map to `spawn_agent` fan-out. See [`codex-tools.md`](../engineer-mode/references/codex-tools.md).
## Outcomes
Pick one, and say which:
- **clean** — every feature got source and live coverage; nothing worth shipping. No branch, no PR.
- **changed** — one PR ships proven doc, harness, or map corrections.
- **blocked** — coverage could not finish or a proven fix could not ship safely. Say exactly what blocked it.
## Edit scope
Only edit the verification skill's own directory (its SKILL.md, features/, and any harness scripts it owns). Never edit product code during a run: a behavior the map describes that the app no longer does is either doc drift (fix the map) or a product regression (report it, don't paper over it in docs).
## Pass
0. **Locate the target.** Find the verification skill to maintain: the project skill whose body has launch/drive sections and a feature map. Look at `.agents/skills/verify-*/` first. A leftover under `.claude/skills/verify-*/` or another harness directory is the same skill in the wrong place: move it to `.agents/skills/verify-<app>/` and maintain it there. Several candidates → ask which one; none → stop and point at `/create-verification-skill` instead of inventing a target.
1. **Index hygiene.** Read the feature map README and glob its sibling files. Fix missing, extra, duplicate, or dead entries. Lightweight; no generated inventory.
2. **Source wave.** One read-only subagent per feature file, launched concurrently. Each explains "how does this user-facing feature work?" from source, flags likely doc drift with citations, and returns one concise live-verification recipe. Children never drive the app and never edit files. Return shape: feature summary / source entry points / likely drift or none / one recipe.
3. **Reconcile.** Every feature file has a returned summary. Merge overlapping recipes into as few app states as practical. Spot-check cited drift; don't re-prove clean claims. Sweep recent churn for user-facing surfaces missing from the map — require a concrete source path before calling one missing.
4. **Live pass.** Required even when source looks clean. The coordinator owns all driving; follow the verification skill's own launch model — one long-lived instance driven serially for servers and UIs, or a fresh isolated session per drive for short-lived CLIs (the skill's Launch section decides, not this one). Exercise every feature at least once, and hold three invariants the whole pass, whatever the failure: (1) never drive an instance you haven't health-checked since it last did something surprising — doctor before first drive, doctor on each fresh session where sessions are the unit, doctor again after any failed drive, and where doctor can't see the failure (a wedged UI state on a healthy process), reset to a known state or relaunch rather than hoping; (2) evidence captured so far survives every cleanup, checked at its named location, not assumed; (3) nothing a drive started outlives tha
Preview of the first 4,000 characters. Read full instructions →
make-pr-easy-to-review2.36 KB
View saved version →
---
name: make-pr-easy-to-review
description: Prepare PRs for review by cleaning noisy history, improving PR descriptions, and adding reviewer guidance without changing code behavior. Use for "make this easy to review", "tidy this PR", "clean up commits", or "annotate the diff".
menu-description: clean noisy history and improve PR description before review
---
# Make PR Easy to Review
Prepare a PR so a reviewer can quickly understand the intent, important files, and risk. The default goal is reviewability without behavior changes.
## Workflow
1. Resolve the target PR from the user-provided URL or current branch.
2. Inspect commits, diff size, changed paths, generated files, and PR description.
3. Identify reviewability issues: noisy commits, stale description, unrelated changes, mixed mechanical and logic changes, missing tests, or unclear reviewer entry points.
4. Propose a plan before rewriting history or force-pushing.
5. Apply safe improvements, then verify the tree or diff still matches the intended code.
## History Cleanup
Only rewrite history when the user asks for it or agrees to the plan. Before rewriting:
```bash
gh pr view <PR> --json title,headRefName,baseRefName,state,commits
git fetch origin <headRefName> <baseRefName>
ORIGINAL_TREE=$(git rev-parse origin/<headRefName>^{tree})
```
Good commit groupings usually follow dependency order:
1. Schema/storage or generated API definitions.
2. Core logic.
3. Wiring and integration.
4. UI or surface behavior.
5. Tests.
After rewriting, verify content identity:
```bash
echo "Original tree: $ORIGINAL_TREE"
echo "Current tree: $(git rev-parse HEAD^{tree})"
git diff origin/<headRefName> --stat
```
Do not push if the tree changed unintentionally.
## Reviewer Guidance
When code behavior should stay untouched, prefer PR description and review notes:
- Add a TL;DR that matches the actual diff.
- Separate core files from generated or mechanical files.
- Call out risky behavior changes, migration order, rollout plan, and test coverage.
- Link issue trackers, dashboards, or design docs when they explain intent.
## Guardrails
- Never hide meaningful behavior changes inside "cleanup".
- Do not bypass hooks unless the user explicitly asks.
- If the PR is too large to make reviewable with notes, recommend splitting instead of polishing around the problem.
no-comments2.7 KB
View saved version →
---
name: no-comments
description: "Spawn Comment Sicko, fix accepted findings, and offer encodings for claimed constraints."
menu-description: strip comments before review, fix the accepted findings, encode claimed constraints
---
# No comments
Spawn Comment Sicko. Act on accepted findings.
Defer to Comment Sicko's fresh perspective.
## Scope
Use the caller's files or diff. Otherwise use the current diff against the base branch, default `main`, including the working tree.
## Steps
1. Spawn `Task` with `subagent_type: "comment-sicko"`. Pass the scope. Pick each subagent's reasoning level and fast or standard speed for the job, per the Subagents section of the **engineer-mode** skill. Do not restate its rules.
2. Inspect its report and diff. Reject application-code edits, scope escapes, exception-protected deletions, misstated `MUST KILL` reasons, and flags that treat kept intentional code as guilty. Reshape flags on our-code surprises stay actionable. Do not restore those comments. A keep survives only with proof it is about something we cannot change. Audit missed scoped lint and TypeScript suppressions. Correctness or safety suppressions stay actionable `MUST KILL`s. Restore deletions only with exact exceptions and scoped proof. Before accepting thin `IMPORTANT` or `do not remove` kills or keeps, run `/how` or `/why` on their symbol. If a kill is ambiguous, do not restore. If a keep is refuted or still ambiguous, delete it. Revert and rerun one rejected report with the failure named. Reject a second, report it open, and fail `/no-comments`.
3. Fix trivial accepted flags directly by deleting a dead path, dropping a parameter, or using the real API. If any fix needs a shape, run `/architect` once for the accepted set and surrounding code. Stop at the sketch. Architect shapes. Step 4 implements.
4. Implement the smallest root-cause fix in scope. Remove every named workaround. If the root cause is out of scope, land the smallest in-scope fix and report the rest open. The **principle-fix-root-causes** and **principle-redesign-from-first-principles** skills guide intent only. Neither authorizes widening the fence nor fixing instances outside it. Never bolt on symptom guards.
5. Constraint comments say `do not remove`, `do not change wording`, or `talk to X before changing`. Leave keeps about things we cannot change. Offer the cheapest in-scope type, runtime, test, or CI lint. Wait for interactive approval. Unattended and eval require caller pre-approval. If approved, encode then delete. Otherwise delete, report the constraint open, and sketch out-of-scope work.
6. Report the deletion count, restored comments, reruns, architect sketch, fixes, encoding offers, encodings, unenforced constraints, and other open work.
office-hours3.33 KB
View saved version →
---
name: office-hours
description: YC-style founder sparring and product interrogation. Asks 6 forcing questions on demand reality, status quo, desperate specificity, narrowest wedge, observation, and future-fit before writing code. Use for /office-hours, "brainstorm this idea", or product stress-test.
menu-description: product interrogation with 6 YC forcing questions
---
# Founder Office Hours
The #1 reason startups fail is building something nobody wants. Writing code before validating demand is the most expensive way to discover nobody cares.
`office-hours` is an intense, supportive product sparring partner. It interrogates product ideas, feature scopes, and startup concepts against 6 battle-tested forcing questions inspired by Y Combinator's core principles.
---
## When to Invoke
- You have a brand new product idea or pivot in mind.
- You are considering adding a massive new feature to your product.
- You want an honest reality check: *"Is this actually worth building?"*
---
## The 6 Forcing Questions
When you bring an idea to `/office-hours`, the agent walks through these 6 questions one by one (or as a consolidated brief):
### 1. Demand Reality: Who is in hair-on-fire pain right now?
- Who desperately needs this today?
- Are they losing money, sleep, or hours of manual labor right now because this doesn't exist?
- If the answer is *"This would be nice to have"*, stop. Startups die on "nice to have".
### 2. Status Quo: What is the hacky workaround they use today?
- If the problem is real, people are already solving it somehow: spreadsheets, duct-taped Zapier workflows, ugly shell scripts, or hiring a junior VA.
- If nobody is doing *anything* today to solve this problem, the problem is likely not painful enough to build a business around.
### 3. Desperate Specificity: Who are users #1 through #10?
- Ban generalities: *"Software engineers," "small business owners," "content creators."*
- Demand extreme specificity: *"Founders of B2B SaaS companies with 5-20 employees whose Stripe webhook processing is failing."*
- Can you list 5 specific people or companies by name you could message today?
### 4. Narrowest Wedge: What is the smallest thing that delivers value?
- Strip away user accounts, team management, billing tiers, dark mode, and integrations.
- What is the single core loop that delivers a "holy cow, this works" moment in under 2 minutes?
### 5. Direct Observation: What did you actually witness vs assume?
- Did a real person explicitly complain about this to you?
- Did you watch someone struggle with an existing tool?
- Or did you invent the problem in your head during a shower?
### 6. Future-Fit: Does this get stronger as frontier AI models improve?
- If OpenAI, Anthropic, or Google releases a model with a 10x larger context window or faster reasoning, does your product become obsolete, or does it get 10x more valuable?
- Never build an interface that is merely a thin wrapper around a prompt that a model update will eat. Build workflows, data persistence, and proprietary levers.
---
## Interactive Sparring Mode
The agent will not just nod and agree. It will:
- Challenge weak premises candidly.
- Ask for concrete customer evidence.
- Help you distill your 6-month roadmap idea into a 48-hour prototype wedge.
- Produce a clean **Product Definition Brief** ready to hand over to `/engineer-mode` for engineering execution.
poteto-mode895 Bytes
View saved version →
---
name: poteto-mode
description: Compatibility alias for /engineer-mode and credit to Lauren Tan's pstack, which set the foundation of playbooks and principles for fstack's engineer-mode. Use for /poteto-mode or legacy prompts.
menu-description: compatibility alias and credit to pstack for engineer-mode
mode: true
disable-model-invocation: true
reminder: New task? Playbook match or rigor needed -> apply /engineer-mode. Casual turn or user opts out -> don't.
---
# poteto-mode (alias)
This skill is a compatibility alias. Load and follow [`engineer-mode`](../engineer-mode/SKILL.md) in full, including its Principles index.
`/poteto-mode` remains valid so existing muscle memory and prompts keep working. New writing should say `/engineer-mode`.
Attribution for the original playbooks and principles lives in `engineer-mode` and in `skills/engineer-mode/references/licenses/NOTICE.md`.
principle-attack-the-premise1.89 KB
View saved version →
---
name: principle-attack-the-premise
description: "Apply when two or more fixes that share one premise have failed the same gate. Write the premise down and test it directly before you write another fix that assumes it."
disable-model-invocation: true
user-invocable: false
---
# Attack the Premise
When two or more fixes that share one premise have failed the same gate, suspect the premise, not the fixes.
**Why:** Each failed fix is evidence against the belief it assumed. A third fix on the same premise spends effort where the evidence already says the cause is not.
**Pattern:**
- **Write the premise down.** The premise is the one sentence that every failed fix assumed.
- **Test the premise before the next fix.** Find an observation that would come out differently if the premise were false, and make it. Look at how the failures are distributed, not only at how large they are. Make the check rerunnable per [Build the Lever](../principle-build-the-lever/SKILL.md).
- **Follow the evidence.** If it contradicts the premise, the cause is elsewhere. Look for what the failures have in common that the premise did not predict. If it confirms the premise, ask the next "why" per [Fix Root Causes](../principle-fix-root-causes/SKILL.md). The earlier fixes may have treated a consequence instead of the cause.
- **Remove the condition instead of compensating for it**, per the [Laziness Protocol](../principle-laziness-protocol/SKILL.md). If the evidence shows that one part always lands on the losing side, change what puts it there. A mechanism that cleans up after it leaves the cause in place and adds work on every run.
**Stop:** Do not start the next fix before the premise is written down and tested.
This principle is distinct from [Redesign from First Principles](../principle-redesign-from-first-principles/SKILL.md), which rebuilds a design around a new requirement. It questions a fact the current design assumes.
principle-boundary-discipline1.86 KB
View saved version →
---
name: principle-boundary-discipline
description: "Apply when wiring validation, error handling, or framework adapters. Concentrate guards at system boundaries (CLI, config, network, external APIs); trust internal types and keep business logic in pure functions."
disable-model-invocation: true
user-invocable: false
---
# Boundary Discipline
Place validation, type narrowing, and error handling at system boundaries. Trust internal code unconditionally. Business logic lives in pure functions. The shell is thin and mechanical.
**Why:** Scattered validation is noisy, redundant, and gives a false sense of safety. Keep logic out of framework wiring so it can be tested without the framework.
**The pattern:**
- **At boundaries** (CLI args, config files, external APIs, network protocols): validate, return errors, handle defensively.
- **Inside the system:** typed data, error propagation, no re-validation. Trust the types.
- **Across the boundary.** Expose domain concepts, not the boundary's private representation. Keep general-purpose mechanism inside and special-purpose policy at the edge.
**Applications:**
Validation and error handling:
- Validate config at parse time (the boundary), not inside business logic
- Parse raw data into domain types at the boundary
- Do not re-export transport, storage, framework, or wire types through the public surface
- No redundant nil checks deep in call chains if the boundary already validated
Code organization:
- Business logic in pure functions with no framework dependencies
- Parse functions: pure transforms from raw bytes to typed state
- Prompt construction: structured state in, string out
- Scoring and assessment: pure transforms from state to results
**The tests:**
- "Is this data crossing a system boundary right now?" If not, validation is redundant.
- "Can this be a pure function that the shell just calls?" If yes, extract it.
principle-build-the-lever2.35 KB
View saved version →
---
name: principle-build-the-lever
description: "Apply to any non-trivial work, not just bulk work: edits, migrations, analyses, checks. Build the tool that does it or proves it (codemod, script, generator, or a skill your subagents follow) instead of working by hand. The tool is the artifact a reviewer can rerun."
disable-model-invocation: true
user-invocable: false
---
# Build the Lever
When the work isn't trivial, build the tool that does it instead of doing it by hand.
A codemod, generator, or script does the work the same way every time and reruns for free. The tool is one artifact a reviewer can read and rerun to check the work. Hand-done changes can only be re-verified by redoing them. A deterministic script turns "trust me" into "run this".
Default to building the lever. Skip it only when the task is trivial, a couple of obvious edits you can see at a glance.
- Do the first unit by hand to learn the recipe, then build the tool. Prove it by rerunning it on that unit and diffing against your hand-done version. Make the lever safe to rerun.
- Codemod or script for edits, generator for repetitive files, a dump-to-sqlite query for analysis, a rerunnable check for verification.
- A deterministic lever beats fan-out. If the tool can process every unit in one pass, run it yourself. Don't fan out delegates to hand-apply what a script can do.
- When you fan work out to subagents, write the lever as a skill they all read: the recipe, the verification contract, and the do-not-touch fences in one artifact. Keep it outside the delegates' write scope so they can't quietly edit the contract.
- Applying this principle produces a file. If you cited it and there is no codemod, script, generator, or delegate skill in the diff, you didn't apply it.
- Commit the lever when the work outlives the session.
The bar is triviality, not repetition. A one-off still earns a lever when the lever is what makes the work checkable. Per the [Laziness Protocol](../principle-laziness-protocol/SKILL.md), build the smallest script that does or proves the job, never a framework.
Distinct from [Encode Lessons in Structure](../principle-encode-lessons-in-structure/SKILL.md), which makes a recurring instruction a durable guardrail. This is throughput and reviewability on the work in front of you. For scripting the verification itself, see [Prove It Works](../principle-prove-it-works/SKILL.md).
principle-clear-naming3.11 KB
View saved version →
---
name: principle-clear-naming
description: Apply when naming variables, functions, types, files, or endpoints. Enforces the 6-month amnesia test, language conventions, intent-based naming, and cross-boundary consistency.
user-invocable: false
disable-model-invocation: true
---
# Clear Naming Discipline
> "There are only two hard things in Computer Science: cache invalidation and naming things." — Phil Karlton
Code is read far more often than it is written. A bad name forces every future reader to inspect the underlying implementation just to understand what a function or variable holds. A good name makes the surrounding code self-evident.
---
## 1. The 6-Month Amnesia Test
Whenever you name a variable, function, class, file, or endpoint, ask:
> **"If I wake up with amnesia in 6 months and read this line, will I immediately know what it is and what it does? Will a new teammate guess its exact purpose on their first day?"**
If the answer is *"Only if they read the function body"*, the name has failed. Rename it.
---
## 2. Intent Over Mechanism
Name by **what problem it solves and what data it represents**, not the mechanical data structure or plumbing:
| Mechanical / Bad | Intent-Driven / Good | Rationale |
|---|---|---|
| `dataArray` | `activeSubscriptions` | Names the domain entity, not the memory structure. |
| `dictMap` | `cachedUserPermissions` | Reveals what the lookup is for. |
| `processStuff()` | `syncStripeInvoices()` | States the exact business operation. |
| `tempFlag` | `hasVerifiedEmail` | Self-documenting state. |
---
## 3. Language & Ecosystem Conventions
Always adhere to the idiom of the host language unless an explicit codebase convention overrides it:
- **TypeScript / JavaScript**:
- `camelCase` for variables, properties, and functions (`getUserSession`, `isOrgAdmin`).
- `PascalCase` for classes, types, interfaces, and React components (`PaymentProcessor`, `UserProfileCard`).
- `UPPER_SNAKE_CASE` for immutable module-level constants (`MAX_RETRY_ATTEMPTS`).
- **Python**:
- `snake_case` for functions, methods, and variables (`calculate_tax`, `user_id`).
- `PascalCase` for classes (`DatabaseConnection`).
- **Go / Rust**: Follow standard idiomatic casing (`userID`, `fetch_record`).
---
## 4. Consistency Across Boundaries
Pick one verb per action in a subsystem and stick to it religiously. Do not mix semantic synonyms across files:
- If you use `get...` for database lookups, do not switch randomly to `fetch...`, `retrieve...`, or `query...`.
- If you use `delete...`, do not switch between `remove...`, `drop...`, and `destroy...` for the same entity type.
---
## 5. Booleans as Clear Predicates
Booleans must sound like yes/no questions:
- **Good**: `isEnabled`, `hasAccess`, `shouldRetry`, `canEdit`, `isPendingApproval`.
- **Bad**: `status` (ambiguous), `access` (noun), `check` (sounds like a function).
---
## 6. Ban Cryptic Abbreviations
Unless an abbreviation is universally recognized in the domain (`id`, `url`, `req`, `res`, `ctx`, `err`), spell it out:
- Bad: `usrMgrSvc`, `calcDiscTot()`, `custAddrStr`.
- Good: `userManager`, `calculateDiscountTotal()`, `customerAddress`.
principle-encode-lessons-in-structure580 Bytes
View saved version →
---
name: principle-encode-lessons-in-structure
description: "Apply when you catch yourself writing the same instruction a second time, or notice a recurring correction. Encode the rule as a lint, metadata flag, runtime check, or script instead of more text."
disable-model-invocation: true
user-invocable: false
---
# Encode Lessons in Structure
If the lesson needs judgment and cannot be encoded, make the instruction more prominent and add an example of the failure mode.
**Corollary:** If the fix is structural, only use the structural fix. The instruction is the symptom.
principle-exhaust-the-design-space417 Bytes
View saved version →
---
name: principle-exhaust-the-design-space
description: "Apply when facing a novel UI interaction or architectural decision with no precedent in the codebase. Build 2-3 competing prototypes and compare side by side before committing."
disable-model-invocation: true
user-invocable: false
---
# Exhaust the Design Space
It also applies to product design decisions where user experience depends on feel, not logic.
principle-experience-first1.18 KB
View saved version →
---
name: principle-experience-first
description: "Apply when product, UX, or feature-scope tradeoffs come up. Choose user delight over implementation convenience; ship fewer polished features over more rough ones."
disable-model-invocation: true
user-invocable: false
---
# Experience First
When implementation convenience conflicts with user delight, choose delight.
- Every feature, control, and option must be justified
- Ship less, ship better (polished experience with three features beats rough one with ten)
- Prototype before committing (design decisions are cheaper in throwaway HTML than production code)
- Get the details right (transitions, alignment, spacing, feedback, error states)
- Tighten the core loop (every feature should serve the central workflow or get out of the way)
The user is whoever consumes the work. For a UI that is the end user. For a library or an internal API it is the colleague who imports it. The engineer who maintains the code next is a user too. Weigh their experience the same way, and explain impact from their perspective.
Foundations should serve the experience. Foundational thinking governs the *sequence* of work. This principle governs the *target*.
principle-explain-the-number1.9 KB
View saved version →
---
name: principle-explain-the-number
description: "Apply before you measure, and before you trust, report, or act on a number you measured: a speedup, a regression, a throughput, a latency, or an eval result. Find what limits it, and rule out that it measured something other than the work you think."
disable-model-invocation: true
user-invocable: false
---
# Explain the Number
- **Write the decision before you run.** Name the result that would change a decision, and the noise floor. Stop when the run-to-run spread is larger than the effect.
- **Ask "why not double?"** Name the resource or code path that bounds the result, such as a core, a lock, the disk, the network, or the load generator itself. Get it from a profile or from system counters taken during a run, then map it to source. A guess from reading the code is not a limiter. If you cannot say why the number is not twice as good, you do not know what you measured.
- **List what else the number could be measuring, and rule out each one with evidence.** The usual suspects are errors, skipped or cached work, code that never ran, an untuned side (one left on default settings), noise, and a piece too small to matter end to end.
- **Keep the evidence with the number.** Put the run count, the spread, and the limiter in the notes or a linked artifact.
For a performance number, run the full procedure with the [benchmark-checklist](../benchmark-checklist/SKILL.md) skill. For an eval result, ask the same of the trials: did every run do the task, does the gap hold across trials and models, and does the scenario matter.
You skipped this when a run started without the result that would change a decision, when the evidence behind a number has no run count, no spread, or no named limiter, or when the time saved is larger than the time the changed piece took.
Distinct from [Prove It Works](../principle-prove-it-works/SKILL.md), which checks that an output is real.
principle-fix-root-causes1.8 KB
View saved version →
---
name: principle-fix-root-causes
description: "Apply when debugging. Trace each symptom back to the first place the system went wrong and fix it there. A guard is a fix only when the state it handles is legitimate."
disable-model-invocation: true
user-invocable: false
---
# Fix Root Causes
When debugging, fix the fault, not the place where it surfaced. The symptom is where a wrong state became visible. The root cause is the first place the system did something it should not do, or failed to handle a state it should handle.
**Why:** A symptom fix hides the evidence and leaves the fault free to surface somewhere else. Each one makes the system harder to reason about, because the code now carries a workaround for a bug that nobody named.
**Pattern:**
- Reproduce first.
- Ask "why" at each step until the answer is a wrong decision in the code, not a consequence of an earlier one.
- When stuck, instrument. Read the actual error and the actual state. Do not guess.
- Ask whether the state that triggered the symptom is legitimate. If the system may be in that state, the code that broke on it is the root cause, and handling the state there is the fix. If the state should never exist, a check where it broke hides the bug. Find what produced the state. Guards, retries, swallowed errors, clamped values, and discarded state are the usual ways to hide a bug.
- When something fails only after a restart, suspect persisted state first: config files, caches, lock files, serialized state.
- Check for the pattern, not just the instance. Find every place with the same fault and fix them all.
- If a workaround needs a paragraph-long comment to justify it, the code is wrong. Fix the code, not the comment.
- If the deciding fact took a deep dig to find, propose the cheap, always-on signal that would have shown it at first look.
principle-foundational-thinking1.52 KB
View saved version →
---
name: principle-foundational-thinking
description: "Apply before writing logic: choosing core types and data structures, sequencing scaffold-vs-feature work, asking what concurrent actors share. Get the data structures right so downstream code becomes obvious."
disable-model-invocation: true
user-invocable: false
---
# Foundational Thinking
**Structural decisions** protect option value. **Code-level decisions** protect simplicity.
**Data structures first.** Get the data shape right before writing logic. Define core types early, trace every access pattern, and choose structures that match the dominant paths.
At code level, DRY the structure, not every line. Types and data models should converge. Three similar statements still beat a premature abstraction. Prefer explicit over clever. Test behavior and edge cases, not line counts.
**Concurrency corollary.** Before sharing state between actors, ask "what happens if another actor modifies this concurrently?" If not "nothing", isolate.
**Scaffold first.** If something helps every later phase, do it first. Ask "does every subsequent phase benefit from this existing?" CI, linting, test infrastructure, and shared types are scaffold. Sequence for option value: setup before features, tests before fixes. Keep commits small and single-purpose.
Each increment should land a coherent abstraction or deepen one that exists. Do not spread a new capability across callers as special-case coordination.
Subtraction comes before scaffolding. Remove dead code first, then lay foundations.
principle-guard-the-context-window541 Bytes
View saved version →
---
name: principle-guard-the-context-window
description: "Apply when context is filling up: large outputs, long files, repeated reads, fan-out planning. Route bulk to subagents; keep summaries in the main thread, not raw payloads."
disable-model-invocation: true
user-invocable: false
---
# Guard the Context Window
**Why:** Context overflow degrades reasoning quality, creates compression artifacts, and halts progress.
**Pattern:**
- **Size phases and cap scope.** Limit files per phase, set turn budgets, account for mechanism costs.
principle-laziness-protocol608 Bytes
View saved version →
---
name: principle-laziness-protocol
description: "Apply when refactoring, evaluating diff size, or tempted to add abstractions, layers, or signal threading. Bias toward deletion, Occam's Razor (fewest entities), and the smallest change that solves the problem."
disable-model-invocation: true
user-invocable: false
---
# Laziness Protocol
- **Consolidate decisions.** Do not repeat the same choice in several places. Put it behind one source of truth and pass the result as a simple flag.
- **Minimize the diff.** Make the smallest change that solves the problem. Fewer lines beat "elegant" boilerplate.
principle-make-operations-idempotent1.79 KB
View saved version →
---
name: principle-make-operations-idempotent
description: "Apply when designing commands, lifecycle steps, or processing loops that run amid crashes, restarts, and retries. Converge to the same end state regardless of partial prior runs."
disable-model-invocation: true
user-invocable: false
---
# Make Operations Idempotent
Design operations so they converge to the correct state regardless of how many times they run or where the previous run stopped. Every state-mutating operation should answer: "What happens if this runs twice? What happens if the previous run crashed halfway?"
**Why:** Commands, lifecycle operations, and processing loops run where crashes, restarts, and retries are normal. If partial state changes the next run's outcome, every restart becomes a debugging session.
**The idea:** derive each step from the state that exists, not from what the previous run meant to do. Read the current state, compare it to the goal, and apply only the difference. A step written this way is safe to repeat, because a repeat finds nothing left to do.
Anything a run leaves behind, such as a lock, a temporary file, a half-written record, or a claimed job, must be recognizable as stale by the next run. Judge staleness by evidence that stays true wherever the previous run could have stopped, not only in the common case. A marker that the next run cannot judge turns every crash into manual cleanup. For example, write to a temporary path and rename it into place, or compare artifacts by content instead of by creation order.
**The test:**
1. What happens if this runs twice in a row?
2. What happens if the previous run crashed at every possible point?
3. Does re-execution converge to the same end state?
If any answer is "it depends on what state was left behind," the operation needs a reconciliation step.
principle-migrate-callers-then-delete-legacy-apis659 Bytes
View saved version →
---
name: principle-migrate-callers-then-delete-legacy-apis
description: "Apply when introducing a new internal API while old callers still exist. Migrate callers and delete the old API in the same wave instead of preserving compatibility layers."
disable-model-invocation: true
user-invocable: false
---
# Migrate Callers Then Delete Legacy APIs
- Update tests to assert the new contract, and delete tests that only protect pre-refactor implementation details
**When this applies:**
- No external users depend on backward compatibility
- The project can absorb coordinated breaking changes
- The new API is part of a simplification or refactor initiative
principle-minimize-reader-load1.97 KB
View saved version →
---
name: principle-minimize-reader-load
description: "Apply when reviewing or shaping code that's hard to trace. Count layers between question and answer, and hidden state in the reader's head; collapse one-caller wrappers and shrink mutable scope."
disable-model-invocation: true
user-invocable: false
---
# Minimize Reader Load
Maintainability is the work a reader must do to understand code. Track two axes: **layers to trace** (indirections between the question and the answer) and **state to hold** (hidden or mutable context the reader must keep in their head). LOC, cyclomatic complexity, and "clean architecture" are proxies. Reader load is the thing that matters. The two axes are independent. A flat file with 50 globals can be as hard to reason about as a 6-layer adapter stack. Guard both. This is the human analog of [Guard the Context Window](../principle-guard-the-context-window/SKILL.md). Working memory is finite for readers too.
- **Collapse layers** that cost more than they save: wrappers with one caller, adapters with no second implementation, speculative indirection that was never needed. Inline them.
- **Make adjacent layers change the abstraction.** A layer that repeats the same methods and arguments adds reader load without compression. Collapse pass-through layers.
- **Demand interface compression.** A broad interface that hides little complexity makes readers learn both the surface and the implementation. Prefer boundaries that hide meaningful decisions.
- **Shrink state scope:** prefer pure functions (returns over mutations), locals over fields, fields over module state, and module state over globals. Derive instead of sync.
- **Name the invariant at the boundary,** not in every consumer, so the reader learns it once.
- Before adding a layer or a piece of state, ask: does it reduce reader load elsewhere by at least as much?
**The test:** can a new reader answer "where does X come from?" and "what can change X?" in under 30 seconds? If not, cut layers or cut state.
principle-model-the-domain1.84 KB
View saved version →
---
name: principle-model-the-domain
description: "Apply when writing stateful logic, or when code branches a lot or repeats a shape assumption across files."
disable-model-invocation: true
user-invocable: false
---
# Model the Domain
Encode the real domain in a data structure instead of scattering it across conditionals. A structure that matches the domain makes invalid states unrepresentable and deletes branches. Choosing it at write time is cheap. Recovering it later reads as a refactor and gets deferred.
Reach for:
- A state machine instead of scattered booleans, phases, or lifecycle checks.
- A typed model instead of loose parameters or repeated shape assumptions.
- A map, registry, lookup table, or discriminated union instead of branching spread across files.
- A reducer or command/event model instead of ad hoc state mutations.
- A module organized around one body of domain knowledge instead of a sequence such as load, validate, transform, and save. Execution order is not ownership.
- A small module boundary that gathers repeated behavior, ownership, or invariants.
- A queue, cache, index, graph, tree, or normalized collection where the access pattern calls for it.
- Any other structure that fits. When none fits, work out what the code must never allow and how the data gets read, then find the structure that encodes exactly that.
Do not force an abstraction. Prefer boring code if the current shape is already clear, local, and unlikely to grow. Be skeptical of an abstraction that adds indirection without removing branches, duplicated rules, invalid states, or lifecycle risk.
The sign that you skipped this is a new feature that grows an existing if/else chain by one more branch, or a second boolean that must stay in sync with the first. Temporal decomposition is another sign. Phase-named modules repeat the same domain rules across steps.
principle-never-block-on-the-human932 Bytes
View saved version →
---
name: principle-never-block-on-the-human
description: "Apply when tempted to ask 'should I do X?' on reversible work."
disable-model-invocation: true
user-invocable: false
---
# Never Block on the Human
The human supervises asynchronously. Agents must stay unblocked. Make reasonable decisions, proceed, and let the human course-correct after the fact. Since code changes are reversible and reviewable, a wrong decision usually costs less than blocking.
- Proceed, then present. Do the work, show the result. Don't ask "should I do X?" Do X, explain why.
- Make the system self-healing. When you notice a problem, log it and fix it in the next round.
- Irreversible actions (force-push, delete production data, send external messages) still require confirmation.
- Reversible actions (write code, edit notes, split tasks) should proceed without blocking.
- Product direction comes from the human. Execution should not block.
principle-outcome-oriented-execution1.07 KB
View saved version →
---
name: principle-outcome-oriented-execution
description: "Apply during planned rewrites and migrations with explicit phase boundaries. Converge on the target architecture; don't preserve smooth intermediate states with throwaway compatibility code."
disable-model-invocation: true
user-invocable: false
---
# Outcome-Oriented Execution
Optimize for the intended, verifiable end state rather than preserving smooth intermediate states.
**Why:** Keeping every intermediate step fully stable often creates temporary compatibility code that becomes long-lived debt. Converge on the target architecture and prove correctness at explicit verification boundaries.
**Core rule:**
- Prioritize end-state integrity over transitional stability
- Intermediate breakage is acceptable when it is planned, scoped, and reversible
**Guardrails:**
- Use this for planned rewrites and migrations with explicit phase boundaries
- Declare where temporary breakage is acceptable
- Keep high-signal checks for actively touched areas while migrating
- Require full static and runtime verification at plan completion
principle-prove-it-works1.36 KB
View saved version →
---
name: principle-prove-it-works
description: "Apply after completing a task, before declaring done. Verify against the real artifact (run the feature, read the actual value, inspect the diff), not a proxy, self-report, or 'it compiles.'"
disable-model-invocation: true
user-invocable: false
---
# Prove It Works
Verify every task output by checking the real thing directly. Do not infer from proxies, self-reports, or "it compiles."
**Why:** Unverified work has unknown correctness. Indirect verification (file mtimes, output freshness, agent self-reports, cached screenshots) feels cheaper than direct observation. Acting on a wrong inference costs far more than checking the source.
Check the real thing, not a proxy:
- Check process liveness directly, not indirectly through derived state
- Read the actual value, not a cached or derived representation
- When verification fails, suspect the observation method before suspecting the system
## Script the check when you can
The strongest proof is a deterministic script that re-runs the same comparison, not a one-time eyeball. Write the script, run it, and keep its output as an artifact a reviewer can re-run instead of trusting your word.
Keep the artifact visible for the human. Commit it only for large or complex work where the trail has to be auditable later, like a big port or migration (the **show-me-your-work** skill).
principle-redesign-from-first-principles780 Bytes
View saved version →
---
name: principle-redesign-from-first-principles
description: "Apply when integrating a new requirement into an existing design."
disable-model-invocation: true
user-invocable: false
---
# Redesign From First Principles
When integrating a change, don't bolt it onto the existing design. Redesign as if the requirement had been a foundational assumption from the start.
- Read all affected files and understand the current design
- Ask: "if we were writing this from scratch with this new requirement, what would we build?"
- Propagate the change through every reference: types, docs, examples, rationale sections
- Think about the whole redesign, then deliver it incrementally
This is the method for preserving option value when integrating changes into an existing design.
principle-separate-before-serializing-shared-state1.55 KB
View saved version →
---
name: principle-separate-before-serializing-shared-state
description: "Apply when concurrent actors might write to the same file, branch, key, or state object. Eliminate the sharing first; serialize structurally only when one shared writer is a real invariant."
disable-model-invocation: true
user-invocable: false
---
# Separate Before Serializing Shared State
When concurrent actors might share mutable state, first ask whether they need the same mutable object. If not, eliminate the sharing. When sharing is real, enforce serialization structurally: lockfiles, sequential phases, exclusive ownership. Instructions and conventions are not concurrency control.
**Why:** Concurrent writes to shared state create race conditions that are intermittent, hard to reproduce, and expensive to debug.
**Pattern:**
1. **Identify shared mutable state** (files both read and write, branches both push to, APIs both define and consume).
2. **Default: eliminate the shared write target.** Ask: do these actors need one canonical object, or are they publishing independent facts? Give each actor its own owned file, key, branch, or state directory, and merge only at the read/reporting boundary. Two workers writing their own `lastX` field into one `state.json` is still shared mutation. `indexer-state.json` + `metrics-state.json` is not.
3. **Only when one shared write target is a real invariant, serialize access structurally** (lockfiles, sequential phases, single-writer actor, or atomic compare-and-swap). Treat "we need a lock" as a design smell to check, not as the default answer.
principle-sequence-verifiable-units1.69 KB
View saved version →
---
name: principle-sequence-verifiable-units
description: "Apply to multi-step work (sweeps, migrations, runs of similar edits) and to how you stack commits and PRs. Break work into small units that each end in a verifiable state, check each before the next, and order delivery so the sequence proves itself to a reviewer."
disable-model-invocation: true
user-invocable: false
---
# Sequence work into verifiable units
Order work as a sequence of small units, each ending in a state you can check, and don't advance until the current one is green.
**Why:** A break caught at the unit that caused it is cheap to localize. A break caught after a batch is buried, and you have already built further on a broken base. Sequencing those same units into a delivery a reviewer can replay turns "trust me" into "watch it go red, then green."
**Execution.** In a sweep, migration, or any run of similar edits, verify each change before starting the next. Each unit is a before/after bracket: known-good state, one change, run the check, then proceed. Rebase onto clean trunk first so every check measures against the real baseline. When a lever does the edits, the per-unit check is nearly free. Run it anyway.
**Delivery.** Stack commits and PRs in the order that proves the work. The canonical shape is the failing test first, then the fix on top. Other story orders are a subtraction before the reshape, a baseline capture before the treatment, the scaffold before the feature. Each commit lands on its own and the sequence reads as an argument.
The sequencing complement to the **prove-it-works** principle skill, which keeps each check real, and the **build-the-lever** principle skill, which makes the per-unit check cheap.
principle-subtract-before-you-add931 Bytes
View saved version →
---
name: principle-subtract-before-you-add
description: "Apply when sequencing an addition, refactor, or rewrite. Remove dead code, redundant validators, and stub references first, then build on the simpler base."
disable-model-invocation: true
user-invocable: false
---
# Subtract Before You Add
When evolving a system, remove complexity first, then build. Default to subtraction.
Make simplification a continual investment. Leave the design slightly simpler and more capable behind the same or smaller surface than you found it.
- Sequence removal before construction
- Cut before you polish (get to the minimum before investing in quality)
- Design for observed usage, not speculative edge cases
- No speculative validators, parsers, or guards beyond what the spec demands
- Simplify prompts (remove redundant instructions, excessive templates)
- When a reference has no novel content, delete it rather than leaving a stub
principle-test-behavior-not-implementation2.57 KB
View saved version →
---
name: principle-test-behavior-not-implementation
description: "Apply when you write, change, or keep a test. Assert what the code's users can observe, so that the test fails when that behavior breaks and keeps passing when only the internals change."
disable-model-invocation: true
user-invocable: false
---
# Test Behavior, Not Implementation
A test is a claim about what the code does for its users: a caller, an end user, or another service. Behavior is what those users can observe through the interface they use. That includes return values, errors, state they can read back, and effects on systems outside the code, such as a request sent, a row written, or a message emitted. Implementation is what they cannot observe: private helpers, internal call order, intermediate data, and which internal collaborator did the work.
Judge each test against two imagined edits:
- **Break the behavior.** Make the code return a wrong value, skip an effect, or do the effect twice. If the test still passes, it proves nothing. The usual causes are an assertion looser than the contract, an expected value computed by the code under test, a restated constant or prompt string that never runs the code that reads it, and an assertion on data that the test built itself.
- **Change the internals.** Keep every observable result the same and restructure the code underneath. If the test now fails, it is pinned to the implementation. It will need a rewrite on every refactor and still catches no bug.
Keep a test that catches the first edit and survives the second. Rewrite or delete the rest. To write a test that does both, drive the code through its users' interface with a concrete input. Derive the expected value from the requirement, not from a run of the code. Assert what the contract promises, no less and no more.
The contract decides, not the shape of the assertion. When "an empty cart never charges" is the promise, an assertion that the payment client got no call is behavior. Pair it with a case where the charge happens, so that the test shows it can see a call. The payload that a mocked external service receives is behavior, because that service observes it. A call to an internal helper is implementation, because no user can see it. An empty list is the exact answer when no record matches, and a hollow check when the test only needs some result. An exact error message pins wording that no caller reads. The error type that callers branch on is the contract.
A test can pin an invariant instead of a call, such as a key that must exist in two tables or a compile-time type check. The invariant is the behavior.
principle-type-system-discipline1.54 KB
View saved version →
---
name: principle-type-system-discipline
description: "Apply when designing types, reviewing a function signature, or writing code in any statically-typed language. Make illegal states unrepresentable, brand semantic primitives, parse external data at boundaries, exhaust variants, derive from authoritative schemas."
disable-model-invocation: true
user-invocable: false
---
# Type System Discipline
Make the compiler reject impossible states, mismatched primitives, and unhandled variants. Prefer defining errors and special cases out of existence over proliferating handlers. For TypeScript syntax, see the `typescript-best-practices` skill.
- **Brand semantic primitives.** `UserId` and `OrderId` are strings underneath but should not be interchangeable. Give each its own type, such as a branded intersection in TypeScript or a newtype elsewhere. Validate once at creation, trust the type downstream. If two arguments share a primitive type but mean different things, brand them.
- **External data is untyped until parsed.** RPC payloads, JSON, IPC messages, CLI args, config files, environment variables, database rows. Have a parse function at every boundary that turns unstructured input into the typed model. The **boundary-discipline** principle skill says where to put validation.
- **Derive types from authoritative schemas.** When a protocol buffer, OpenAPI spec, GraphQL schema, database migration, design-token file, or another file owns a shape, derive from it instead of hand-rolling a parallel type. See the **encode-lessons-in-structure** principle skill.
recall5.29 KB
View saved version →
---
name: recall
description: "Reconstruct your recent working context from your own chat history, live state, and the shared record (user reports, prior fixes, incidents), then hand back a tight current-state brief. Use for 'recall my work on X', 'catch me up', 'what have I been working on', 'where did I leave off', before starting or resuming work."
menu-description: catch up on recent working context from chat history, live state, and the shared record
---
# Recall
**Before you start or resume work, you rebuild the user's recent working context and hand back a tight capsule of where things stand now and what to do next.**
Keep it tight and on-topic. Read only what the in-scope threads need, then stop.
Your context lives in two records. Your own chat history holds what you did and decided. The shared record holds everything that happened around the same code under other names: the symptoms users keep reporting, the fixes that shipped and got reverted, the errors still firing in prod. That second record is what the **why** skill searches, across source control, the issue tracker, chat and issue channels, long-form docs, and error tracking. A feature with a long bug tail keeps most of its story there, so don't reconstruct it from your transcripts alone.
Transcripts live at `~/.cursor/projects/<slug>/agent-transcripts/<uuid>/<uuid>.jsonl`, where `<slug>` is the workspace path with the leading slash dropped and each "/" turned into "-" (so `/Users/you/proj` becomes `Users-you-proj`). Every line is one chat message.
1. Classify, then route. One specific prior chat to resume is the `session-pickup` playbook, not this. Turning habits into a durable skill is `automate-me`. A human-readable summary of your work is a different task. Recall loads working context across recent chats before you act. If the user already gave you a full state capsule (paths, branch, the change), use it and skip the mining.
2. Lock the scope before searching. Pin the window ("recent" is a real range, default the last 7 days), the topic if named, and the workspace (default the active one. Never read another project's transcripts without being asked). State the scope back. Never quietly turn "all" into "recent N".
3. Fan out across your chat history. Spawn parallel subagents on a fast, cheap model, each taking a slice of the corpus. Tell every subagent to order candidates by real modification time (`ls -t`) and never by UUID name, grep the topic first and then read only the matching chats and only their relevant regions, and skip the current chat plus obvious noise (subagent, eval, and test chats). Each returns the same schema, one block per chat: topic, the user's goal, decisions, open threads, struggles and corrections, and artifacts (PRs, tickets, branches), each citing the chat UUID. For one or two chats, skip the fan-out and search directly. The raw transcripts stay in the subagents. The main thread gets only their findings. Pick each subagent's reasoning level and fast or standard speed for the job, per the Subagents section of the **engineer-mode** skill.
4. Sweep the shared record whenever the topic names a feature, file, subsystem, area, or bug. This is the default, not a judgment call, and "my work on X" does not exempt it. Hand it to the **why** skill's source investigators, but steer their question from "why was this built this way" to "what's the current state, what's been tried and didn't hold, and what are users still reporting". Reuse its per-source playbooks, run the investigators in parallel with the chat-history mining, and inherit its posture: one investigator per source, null results are findings, skip an unavailable MCP and say so. Fold what comes back into the brief. Skip this step only for pure activity recall with no named target ("what did I do this week"), where your own history and live state are the entire answer.
5. Verify against live state. Take the PRs, branches, and tickets that the mining and the sweep surfaced and chePreview of the first 4,000 characters. Read full instructions →
reflect4.99 KB
View saved version →
---
name: reflect
description: Spawn three parallel review subagents over the active transcript, surface learnings, and route each to a concrete edit on an existing skill. Use when the user says reflect.
menu-description: capture a long task's lessons as a skill edit
---
# Reflect
Mine the current conversation for durable learnings, then route them into skill edits.
Invoke when the user says "reflect" or "/reflect". Skip when the conversation is trivial, off-topic, or already covered by an existing skill the parent followed correctly. One-offs are not learnings.
## 1. Locate the active transcript
Before fanning out, find this conversation's transcript in the `agent-transcripts/` directory the system prompt names. Do not glob across `~/.cursor/projects/*/`. That crosses workspace boundaries and reads private chats from unrelated projects.
```bash
ls -t <agent-transcripts>/*.jsonl <agent-transcripts>/*/*.jsonl <agent-transcripts>/*/subagents/*.jsonl 2>/dev/null | head -10
```
That covers the legacy flat (`<id>.jsonl`), current nested (`<id>/<id>.jsonl`), and subagent (`<parent>/subagents/<child>.jsonl`) layouts. For each candidate, read the first JSONL line. Take the file whose `message.content[0].text` contains the conversation's opening user prompt. If none matches, pass a tight digest of the session instead.
## 2. Spawn three reviewers in parallel
One message, three `Task` calls, `subagent_type: generalPurpose`, agent mode (`readonly: false`). Reviewers need MCP access to look up the tickets, chat threads, and observability traces the transcript references, and readonly strips MCPs.
Each reviewer and the synthesizer name a role line in the `fstack-models` rule (`~/.cursor/rules/fstack-models.mdc` or `~/.claude/fstack-models.md`) and a default role in `models.json`. Set `model` to that line's value, or to the default if the rule or the line is missing. Leave `model` unset when the value is `auto` or `inherit-parent`. If the Task tool rejects a slug, use the default and say so. If it rejects the default, use the closest valid slug of the same family from its error message. Pick each subagent's reasoning level and fast or standard speed for the job, per the Subagents section of the **engineer-mode** skill.
| Lens | Role line | Default `model` (`models.json`) | Prompt template |
|---|---|---|---|
| Judgment | `reflect judgment, divergent, synthesizer` | `StrongestJudgment` | `references/judgment-reviewer.md` |
| Tooling | `reflect tooling` | `FastMechanical` | `references/tooling-reviewer.md` |
| Divergent | `reflect judgment, divergent, synthesizer` | `DivergentPanel` | `references/divergent-reviewer.md` |
Pass each template verbatim, substituting the transcript path or digest where marked. Reviewers return findings in the `Task` response body.
## 3. Synthesize
One `Task` call, `subagent_type: generalPurpose`, `model` from the `reflect judgment, divergent, synthesizer` line (default in `models.json`), agent mode (`readonly: false`). It spot-verifies citations through MCP, and readonly strips MCPs. Pass `references/synthesizer.md` verbatim, with each reviewer's full output inlined where marked. It returns an Accepted / Rejected / Backlog list.
## 4. Structural enforcement check
Move any Accepted item that a lint rule, script, metadata flag, or runtime check would enforce more reliably to Backlog. See the **encode-lessons-in-structure** principle skill.
## 5. Apply
Present the synthesizer's full Accepted / Rejected / Backlog output and wait for explicit approval before applying any Accepted edit. The user picks the subset and may redirect routings. Skill changes affect every future agent in the org. Do not auto-apply.
File each Backlog item to your team's devex or backlog tracker without waiting. Only the Accepted list waits for approval.
Never edit a skill under `plugins/cache/`. Before approval, show its destination, `.cursor/skills/<skill>/` or `~/.cursor/skills/<skill>/`. After approval, copy the skill fold
Preview of the first 4,000 characters. Read full instructions →
Referenced files: 4 — file references are metadata, not package contents.
retro3.09 KB
View saved version →
---
name: retro
description: Weekly founder momentum, engineering velocity, customer feedback, and tech debt review. Keeps founders honest about real progress vs busywork. Use for /retro, "weekly review", or team retrospective.
menu-description: weekly founder retrospective on momentum, customer reality, and debt
---
# Founder Retrospective (The Weekly Reality Check)
It is easy for a founder to feel exhausted on Friday without having moved the business forward. Answering emails, tweaking CSS, and refactoring working code feels like work, but often produces zero user value.
`retro` is a fast, 15-minute weekly checkpoint that audits momentum, customer feedback, accumulated debt, and aligns next week's focus.
---
## When to Invoke
- Every Friday afternoon or Monday morning.
- At the conclusion of an intense sprint or major launch.
---
## The 4 Audit Sections
### 1. Velocity: What Actually Shipped?
- Scan git commits and PRs over the last 7 days.
- Group into:
- Customer-facing capabilities (Things users noticed).
- Internal infrastructure / refactors.
- Bug fixes.
- **The Honest Ratio**: If customer-facing capabilities were < 40% of the week's output, diagnose why.
### 2. User Reality: What Did Customers Actually Do?
- If a growth, attribution, or billing MCP is connected (e.g., OneLence `get_briefing` / `get_performance` / `list_decisions`, PostHog, or Stripe), pull real funnel conversions, channel ROI, wasted-spend signals, and revenue movement first rather than relying on gut feel.
- What was the qualitative feedback from users/prospects this week?
- Where did users get stuck or complain?
- Did any metric move (signups, active runs, conversion rate, revenue, retention)?
### 3. Debt & Slop Audit: What Corners Did We Cut?
- Check for temporary hacks, missing tests, or unhandled edge cases introduced during fast shipping.
- Did we add any unnecessary dependencies or layers?
- Can we delete 200 lines of dead code right now?
### 4. Next Week's Single Needle-Mover:
- What is the **one thing** that, if accomplished next week, makes everything else easier or unnecessary?
- Explicitly list 3 things you will **NOT** do next week to protect focus.
---
## The Retro Output Template
```markdown
# 🏁 Weekly Founder Retro: Week Ending [Date]
### 📦 What Shipped
1. [Feature 1]: Parallel worker execution (`v1.4.0`).
2. [Fix 1]: Resolved CSV parsing edge case for customer Acme.
3. [Doc 1]: Published interactive GEO comparison guide.
### 👥 Customer Reality
- 3 new paying accounts onboarded.
- Primary complaint: API documentation was missing TypeScript examples.
- Inbound interest: 4 qualified inbound leads from X announcement post.
### 🧹 Tech Debt & Simplification
- Stale branches pruned.
- Deleted unused legacy analytics script (`-140 LOC`).
- Open debt item: Add integration tests for OAuth token refresh edge case.
### 🎯 Next Week's Focus
- **The #1 Needle-Mover**: Ship self-serve Stripe customer portal to unblock annual plan upgrades.
- **Explicit Anti-Goals (Will NOT do)**:
- Will not redesign the landing page nav.
- Will not build Discord notifications until 5 users ask for it.
```
setup-fstack5.3 KB
View saved version →
---
name: setup-fstack
description: Configure which models fstack uses per role and at what reasoning budget. Detects available models and writes a per-harness override sheet. Use for /setup-fstack, "configure fstack models", "fstack budget", or changing model choices.
menu-description: configure fstack per-role model choices
---
# Setup fstack
Write a per-harness override sheet so `/engineer-mode` delegations use the models you actually have. Repo-root `models.json` is the default map. The override sheet wins when present.
| Harness | Override file | How it loads |
|---|---|---|
| Cursor | `~/.cursor/rules/fstack-models.mdc` | `alwaysApply: true` rule |
| Claude Code | `~/.claude/fstack-models.md` | `@~/.claude/fstack-models.md` in `CLAUDE.md` |
| Codex | `~/.codex/fstack-models.md` | paste into `~/.codex/AGENTS.md` |
On Codex, slugs are Codex models (for example `gpt-5.5`), not `claude-*`. Detect them from `~/.codex/config.toml` plus what the user confirms. See [`codex-tools.md`](../engineer-mode/references/codex-tools.md).
## Steps
### 1. Detect available models
Enumerate the model slugs you can pass to a subagent in this session. That is the dependable source. Never write a real slug you have not confirmed is available. `inherit-parent` and `auto` are always valid. Both mean the role runs on the parent session's model (omit `model` on the subagent call).
### 2. Load current state
If the override file for this harness already exists, read it and treat its `# budget` line and its role values as current. Otherwise start from `models.json` for this harness, falling back to `universal`.
### 3. Budget, map, and confirm
**(a) Ask for a budget.** Prefer a structured question over free text. Offer these four options with these exact labels, and name the current budget when the sheet records one.
- `unlimited - keep max`
- `large - xhigh reasoning`
- `medium - high reasoning`
- `small - medium reasoning`
**(b) Apply it.** Build the working table from the loaded state. On a re-run keep any role you changed by family, list, or alias (`inherit-parent`, `auto`). `unlimited` leaves every effort as in that table. `large`, `medium`, and `small` set the effort token of every real slug, panel entries included, to `xhigh`, `high`, or `medium`. The effort token is the last token, or the one before a trailing `fast`, on the ladder `max` > `xhigh` > `high` > `medium` > `low`. If the result is not a detected slug, use the same family's detected slug with the highest effort at or below the target, else mark the role as needing a choice. `inherit-parent` and `auto` do not change. Do not invent vendor slugs. Rewrite effort tokens on whatever `models.json` or the existing override already has.
**(c) Show the roles and confirm.** Show every role with its model. Mark any real slug not in the detected set as needing a choice. Ask whether to accept as-is or change specific roles. Prefer a structured question over free text.
Panel roles (`how critics`, `arena runners`, `architect runners`, `interrogate reviewers`) are lists. One subagent runs per entry. `arena cross-judge pool` is also a list. Arena picks one value whose model family differs from the parent when possible. `swarm workers` is the default worker model unless a race assigns another model per arm.
### 4. Validate
Every real slug written must be in the detected set. `inherit-parent` and `auto` always pass. An override pointing at a model the user cannot use breaks every delegation that reads it.
### 5. Write the override
Overwrite the whole file so re-runs stay idempotent. Include a `# budget` line with the chosen label and its target effort.
**Cursor** (`~/.cursor/rules/fstack-models.mdc`):
```markdown
---
description: fstack per-role model choices (overrides models.json)
alwaysApply: true
---
# fstack model configuration. One line per role. Delete a line to fall back to models.json.
# inherit-parent or auto: the r
Preview of the first 4,000 characters. Read full instructions →
sharpen700 Bytes
View saved version →
---
name: sharpen
description: "Make a task deeper, not bigger, then rewrite the prompt. Use for /sharpen."
menu-description: make a prompt deeper, not bigger, before sending it
---
I want a deeper version of this task, not a bigger one. Before rewriting it, do four things:
1. Say what a top professional in this field would do here that I'm not asking for.
2. Name the rawest material they would start from instead of what has already been digested for me.
3. Name the specific methods and tools they would use.
4. Say what, other than you or me, would show the result is right.
Then rewrite my prompt to ask for exactly that.
Leave choices that are mine to make open instead of deciding them.
show-me-your-work6.43 KB
View saved version →
---
name: show-me-your-work
description: "Keep a reviewable decision trail for long-running or unattended work: a TSV log with one row per decision (what, why, evidence, result). Local by default; commit it when a reviewer needs the trail to trust the result. Use for /show-me-your-work, autonomous or multi-phase runs, or work a human reviews after stepping away."
menu-description: log decisions to a reviewable tsv decision trail
---
# Show me your work
Keep one canonical log.
## The format
A single TSV file, one row per decision. Cells stay single-line. Evidence is a pointer, not prose.
Copy `references/decision-log-template.tsv` (the header row) to start a clean log. Columns:
- **ts.** ISO8601 timestamp.
- **phase.** The phase or workstream.
- **decision.** What was chosen or done, one line.
- **why.** The reason in plain words. If a principle drove it, say it plainly, not as a jargon tag.
- **evidence.** A link or path that proves it: commit SHA, PR number, `file:line`, or an artifact, trace, or screenshot path. Never a paragraph.
- **result.** The outcome or predicate state: `tests green`, `reverted`, `pixel-diff 0`, `INCONCLUSIVE`, `open`.
An example, plain-spoken so a reviewer reads it at a glance.
```
ts phase decision why evidence result
2026-05-24T09:02:00Z frame counted the work first, about 100 components and roughly 75 hours wanted to know the size before starting a long run commit 3a9f1c2 found 5 things to sort out before starting
2026-05-24T09:40:00Z harness took screenshots of the old version before changing anything so we can compare old against new and catch any visual change scripts/snapshot.sh, baseline/ saved 120 reference screenshots
2026-05-24T11:15:00Z widget moved the widget styles over without changing how it looks keep the change small and the result identical commit 7c21e0a, pixel-diff 0 looks identical, tests pass
2026-05-24T12:30:00Z widget threw out a helper's work because its screenshots were blank checked the real files instead of trusting its summary worktree reset reverted, tightened the instructions for next time
```
## Logging a row
Write each entry the way you'd tell a teammate what you did. Plain words, concrete actions, no AI speak or abstract jargon (the **unslop** skill applies to log text too).
Use the helper `scripts/log.sh <logfile> <phase> <decision> <why> <evidence> <result>`. It stamps `ts`, writes the header on first use, strips stray tabs/newlines, and prefixes any cell starting with `=`, `+`, `-`, or `@` with a single quote. A bare `printf` appending a row works too, but mind those same bytes if cells come from generated or user-supplied text.
Log decision points and checkpoints, not every action: a fork chosen, a unit completed with its verification result, a pivot or revert with its trigger, a blocker surfaced, a gate fixed. For loop runs, one row per iteration. Skip the trivial and self-evident.
A run is one agent conversation, including its later turns and any summary of it. A pickup, a replacement agent, or a new chat starts a new run. When a run adds to a log that already has rows, its first row has phase `start`, and so does its first row after another run's `start` row. So a run that comes back to a log in a later turn first reads the log's last rows to see whether another run wrote since. A `start` row names the `ts` range of the rows before it that this run did not write, and its evidence names this run, such as its agent id. Use phase `start` for nothing else.
## Where it lives
By default the log is a working artifact, not committed. Keep it at `decisions.tsv` in the work dir, or `.audit/<task-slug>.tsv` when several efforts run at once, and leave it out of git.
Commit it only when the work is ambitious enough that a reviewer needs the trail to trust the result.
## Rules
- Append-only. A wrong call gets a new row that supersedes it. Never edit or delete history.
- Prefer evidence produced by committed scripts over hand-made one-offs (the **encode-les
Preview of the first 4,000 characters. Read full instructions →
Referenced files: 2 — file references are metadata, not package contents.
social-post3.88 KB
View saved version →
---
name: social-post
description: Drafts authentic, high-signal social media posts from founder thoughts, engineering wins, or product updates. Generates tailored, distinct styles for X (punchy, witty, no fluff) and LinkedIn (tactical, story-driven, structured). Use for /social-post, "draft tweet", "draft linkedin post", or founder content.
menu-description: draft authentic, non-slop social posts for X and LinkedIn
---
# Social Post
AI-generated social media posts are infamous for generic engagement bait: robotic hooks, cringey LinkedIn storytelling, and hollow Twitter threads. `social-post` turns raw founder observations, code milestones, and startup realities into high-signal content people actually want to read.
---
## When to Invoke
- You just solved a gnarly bug or shipped a feature and want to share the technical lesson.
- You noticed an interesting pattern in customer behavior or AI workflows.
- You want to draft a release announcement or thought piece for X, LinkedIn, or both.
---
## Dual Platform Discipline
Every draft is tailored specifically for the target platform:
### 1. The X (Twitter) Stance: High-Signal & Punchy
- **Length**: 1 to 3 short sentences or a micro-thread (max 3 posts).
- **Tone**: Conversational, observant, candid, occasionally contrarian or dryly humorous.
- **Formatting**: Simple line breaks. No hashtag clouds (`#startup #ai #buildinpublic` are banned).
- **Hook**: Line 1 must contain the core observation or surprising insight.
### 2. The LinkedIn Stance: Tactical Storytelling
- **Length**: 150 to 300 words.
- **Tone**: Professional warmth, transparent, grounded in lessons learned.
- **Formatting**: Short 1-2 sentence paragraphs with generous line breaks. Easy to scan on mobile.
- **Structure**:
1. *The Hook*: An unexpected problem or non-obvious realization.
2. *The Friction*: What went wrong, what everyone assumed, or the difficult choice made.
3. *The Breakthrough*: The concrete technical or operational solution.
4. *The Takeaway*: A practical principle other builders can apply.
---
## The Workflow
1. **Input**: Ingest the founder's raw notes, a git commit/diff, or a topic idea.
2. **Context Check**: Read `~/.fstack/founder-voice.md` if available to match personal vocabulary.
3. **Filter Out Slop**:
- Strip all banned words (*delve, game-changer, unlock, supercharge*).
- Cut out rhetorical questions like *"Have you ever felt like X?"*
- Cut out manufactured melodrama (*"I was sitting in my car crying when I realized..."*).
4. **Output**: Generate side-by-side variations (Option A: X Post, Option B: LinkedIn Post, Option C: Contrarian / Hot Take).
---
## Example Outputs
### Input: *"We migrated our background jobs from Redis/BullMQ to pure SQLite + WAL mode and our server costs dropped by 80% with zero dropped jobs."*
#### Variation 1: X (Twitter)
```text
We ripped out Redis and BullMQ for our background worker queues and replaced them with SQLite in WAL mode.
Server bill dropped 80%, zero dropped jobs across 4 million tasks, and our local dev setup is now just one file.
Sometimes the best architecture is the boring one you already have on disk.
```
#### Variation 2: LinkedIn
```text
Most architecture complexity isn't solving user problems. It’s solving the complexity we introduced last quarter.
Six months ago, our background worker queue was running on Redis and BullMQ. It worked, but keeping connection pools alive across serverless containers and debugging stalled jobs was eating hours every sprint.
Last week, we replaced the whole queue with SQLite in WAL mode.
Here is what happened:
• Server costs dropped by 80%.
• Local onboarding went from "install Docker and boot 3 services" to running `npm run dev`.
• Zero dropped jobs over 4,000,000 processed tasks.
The lesson: before adding another distributed system to your stack, ask if a single durable process on a modern NVMe drive can do the job instead.
Usually, it can.
```
social-reply3.49 KB
View saved version →
---
name: social-reply
description: Crafts high-leverage, non-slop replies to trending and viral posts on X and LinkedIn. The number one growth strategy for founders and early accounts to build presence and earn authentic followers without being spammy. Use for /social-reply, "draft reply to tweet", or commenting on posts.
menu-description: craft high-leverage, insightful replies to trending posts on X/LinkedIn
---
# Social Reply (Founder Growth Engine)
For an early-stage founder or small social account, posting standalone content into the void rarely gets reach. **The highest ROI growth strategy on X and LinkedIn is leaving insightful, early replies on high-reach posts in your domain.**
`social-reply` analyzes the target post and drafts 3 high-value, non-spammy reply angles that position you as a knowledgeable peer.
---
## When to Invoke
- You see an influential founder, investor, or engineer post about something in your space.
- You want to chime in on a trending technical debate.
- You paste the post text or URL and say: `/social-reply`.
---
## The 3 Pillars of a High-Converting Reply
1. **Be Additive, Never Flattering**:
- Terrible: *"Great post! 100% agree! 🚀"* (Invisible, spam).
- Terrible: *"Check out my tool at link.com!"* (Instant mute/block).
- **Great**: Add a concrete data point, an edge case, or a counter-intuitive observation the original author missed.
2. **Speed & Clarity**:
- The best replies are 1-3 lines. People scan comment sections rapidly.
3. **Sound Like a Peer, Not a Fan**:
- Speak from direct builder experience. Use phrases like *"We noticed this when..."*, *"The edge case we hit was..."*, *"One exception to this is..."*
---
## The 3 Reply Angles Generated
When you provide a target post, `social-reply` drafts 3 distinct options:
### Angle 1: The Additive Data Point (Elevates the Original Post)
- Validates the author's point with a concrete, real-world measurement or tactical trick.
- Author will likely like or retweet your reply because it makes their original thesis look smarter.
### Angle 2: The Nuanced Counter-Perspective (Thoughtful Debate)
- Respectfully points out the boundary condition or edge case where the author's advice doesn't apply.
- Triggers high engagement because other readers will jump into the thread.
### Angle 3: The War Story / Builder Anecdote
- Shares a 2-sentence experience from shipping production software or running your company.
---
## Example Walkthrough
### Target Post by High-Reach Engineer:
> *"Never use microservices until you hit at least 50 engineers. A modular monolith will take you much further with 1/10th the operational overhead."*
### Generated Options:
#### Option 1 (Additive Data Point):
> "The turning point for us wasn't team size, but database locks. A monolith scaled fine until 3 background workers started contending for the same write lock on the events table. Splitting just that one async worker out bought us another 2 years of monolith simplicity."
#### Option 2 (Nuanced Counter):
> "Mostly true, with one exception: third-party compliance boundaries. Having isolated services for HIPAA or PCI data is often 10x cheaper than trying to put a whole monolith through SOC2 / FedRAMP audits."
#### Option 3 (War Story):
> "Ran a 6-person team that spent 3 months debugging distributed tracing across 14 microservices instead of shipping user features. Migrated back to a single Rails container over a weekend and velocity tripled immediately."
statechart8.94 KB
View saved version →
---
name: statechart
description: "Check a TLA+ model of a system that moves between states, such as a product flow, a protocol, or a service, and draw it as a Mermaid statechart. The report gives the shortest path to each state that breaks a rule. Use for /statechart, or to show a bug as a path through states."
menu-description: check a TLA+ model and draw what the user sees as a Mermaid statechart
---
# Statechart
The chart shows how a system moves between states, in the words of the person who reads it. That person, the reader, decides whether the behavior is right.
## Run
Work in a scratch folder outside the repo. Write a TLA+ spec and its config. Then run:
```sh
<skill dir>/scripts/statechart SPEC.tla [--config FILE] [--view FILE] [--out DIR]
```
`scripts/statechart.ts` is TypeScript, so run it with a runtime that can execute TypeScript.
The first run installs TLC and Java with mise and needs the network.
## Write the spec
- Write each rule that the reader agrees to as an INVARIANT. A rule can be about a screen, a result, a stored value, or a message. If the model has no variable for a rule, add the variable. Never weaken a rule to make it hold.
- Write `Next` as a disjunction of the actions, such as `YouPressPlay \/ YouPressStop`. If you do not, TLC names every step `Next`.
- A state with no step out breaks `NoDeadlock`, also when it is a correct end state. When an INVARIANT or a PROPERTY already has that name, the rule is `CHECK_DEADLOCK`. Add to `Next` an action that is true only in the end states and changes nothing, such as `Done == phase \in {"paid", "failed"} /\ UNCHANGED vars`, and give it a label in `step()`.
## Pick the chart
You do the work that needs judgment: the words on each state and arrow, the phases and their colors, the title, and the report to the reader. Put your work in a view module, and give it with `--view`.
To show the reader's words, the view exports `state(vars)`. The value that `state()` returns picks the form:
- A string gives a flat chart: `export const state = (v) => (v.paid ? "Paid" : "Paying");`
- An array gives parent states: `export const state = (v) => v.main.split(".");`
- An object gives one parallel region for each key: `export const state = (v) => ({ Playback: v.playback, Volume: v.volume });`
Label each state with what the reader can see or cares about, such as "Paying" or "Lease held, write pending". Keep variable names out of labels. In `vars`, a TLA+ sequence is an object with keys from 1, so `v.pc[1]` is `pc[1]`. A set is an array.
The view can also export `step(action, from, to)`. It gets the TLC action name and the values before and after the step, and it returns the label of the arrow. Write each step label as the user sees it happen, such as "you press play" or "the connect fails". Do not name the code or the TLA+ action. Two actions that end the same in the chart get the same label, so that they share one arrow.
When a step can occur only in some conditions, end its label with the condition in brackets, in the reader's words, such as `you press play [while the file loads]`. In a regions chart, the command writes the condition on the other regions on the arrow, in the words of their labels, such as `[when Offline]`. Your brackets replace it, and two arrows from one state can then look the same. So in a regions chart, do not write brackets for a condition on another region. When a value that no label shows decides where a step goes, name the result in the label, such as "the roster read fails".
The view can also export these:
- `group(vars)` returns the name of a phase. Each chart state gets the color of its group. When the model states behind one chart state are in different groups, that state gets no color.
- `colors` gives each group name a color class.
- `title` is a string that the chart shows at the top.
The command calls `state()` and `group()` at most once for each model state, and `step()` at most once for each step. The chart and the report bothPreview of the first 4,000 characters. Read full instructions →
Referenced files: 30 — file references are metadata, not package contents.
stfu2.56 KB
View saved version →
---
name: stfu
description: Forces ultra-terse, zero-chatter, quiet execution mode. Cuts all conversational filler, preambles, narrations, polite throat-clearing, and verbose diff explanations. Executes actions directly and reports minimal necessary status. Use for /stfu, /shutup, "shut up", or "quiet mode".
menu-description: quiet, zero-chatter execution mode (no filler, pure action)
triggers:
- /stfu
- /shutup
- shut up
- stfu
- be quiet
- stop talking
- quiet mode
---
# STFU Mode (Quiet Execution)
AI assistants talk too much. When a builder knows what they want, conversational fluff, step-by-step narrations, and polite disclaimers are pure friction.
`stfu` toggles the agent into **pure execution posture**: do the work, shut up, and return only the essential result or error.
---
## The Non-Negotiable Rules of STFU Mode
1. **Zero Conversational Filler**:
- Banned: *"Certainly! I'd be happy to help you with that."*
- Banned: *"Sure thing! Let's get right on it."*
- Banned: *"Here is a summary of what I did..."*
2. **Zero Status Narration**:
- Do not announce what tool you are about to call (*"Now I will read file X to inspect line Y..."*). Just run the tool call.
3. **No Repeating the User's Request**:
- Never mirror back the user's prompt (*"You asked me to fix the typo in auth.ts. In this file, we can see..."*).
4. **Minimal Deliverable Format**:
- If a command or edit succeeded: output 1 single line confirming the action (*"Fixed typo in `auth.ts:42`. Tests green."*).
- If the task required code: show the concise diff or file pointer, not 4 paragraphs explaining why you wrote a `const`.
- If an error occurred: output the exact error message and the 1-line fix proposal.
5. **No Follow-up Nagging**:
- Banned: *"Is there anything else I can assist you with today?"*
- Banned: *"Feel free to let me know if you have further questions!"*
- End turn immediately when the action finishes.
---
## Example Before & After
### Prompt: *"Change the port in server.ts from 3000 to 8080"*
#### Without STFU (Verbose AI):
> "Certainly! I'd be delighted to help you update the port configuration in your server file. I will first locate `server.ts` and inspect where the port constant is declared.
>
> [Tool call: replace_file_content]
>
> Great! I have successfully updated the port from 3000 to 8080. This change ensures that when you run `npm start`, your Express application will now bind to port 8080 instead of 3000. Let me know if you need help with anything else!"
#### With STFU Mode:
> `server.ts:12` port changed from `3000` to `8080`.
sudo1.97 KB
View saved version →
---
name: sudo
description: Direct clinical execution mode for technical systems, security auditing, and low-level engineering. Cuts unsolicited lecturing, moralizing disclaimers, and sycophantic pushback. Use for /sudo, "sudo", or direct technical mode.
menu-description: direct clinical execution (no unsolicited lecturing or disclaimers)
triggers:
- /sudo
- sudo
- direct technical mode
- execute without lecturing
---
# SUDO Mode (Direct Clinical Execution)
Technical operators working on security audits, systems programming, protocol analysis, or low-level debugging need direct, objective answers without unsolicited disclaimers or patronizing lectures.
`sudo` sets a **clinical, matter-of-fact engineering posture** focused strictly on technical accuracy.
---
## Operational Posture
When `/sudo` is invoked, follow these rules:
1. **Zero Lecturing or Moralizing**:
- Do not add preachy preambles, unsolicited ethical commentary, or generic cautionary boilerplate before answering a technical question.
- Start directly with the technical analysis, command, or code.
2. **Clinical, Objective Precision**:
- Treat requests like a compiler or UNIX utility: evaluate the input, execute the engineering task, and return the concrete output.
- Analyze system architecture, binary formats, network protocols, and vulnerability vectors with neutral, peer-reviewed precision.
3. **Technical Tradeoffs Only**:
- Do not invent hypothetical non-technical objections to pad or hedge an answer.
- State real technical constraints objectively (*"This segfaults on x86_64 due to unaligned access"* or *"This query locks the table during migration"*) and give the exact fix.
---
## When to Use
- Security code reviews, vulnerability reproduction, and defensive hardening in your own repositories.
- Debugging low-level systems, protocols, memory layouts, or performance bottlenecks.
- Any technical session where you want direct, unhedged engineering answers without conversational disclaimers.
support-loop5.04 KB
View saved version →
---
name: support-loop
description: End-to-end founder customer support loop. Ingests a customer bug report or inquiry, investigates the codebase, reproduces the issue, triggers engineer-mode bug-fix if valid, or prepares a workaround, and drafts an empathetic, contextual customer reply. Use for /support-loop, "handle support ticket", or customer bug triage.
menu-description: triage customer issue, fix bug in codebase, and draft reply
---
# Support Loop (Ticket-to-Fix-to-Reply)
The ultimate superpower of a technical founder is closing the loop between user pain, code fix, and customer communication in minutes instead of weeks of tiered customer service bureaucracy.
`support-loop` automates this entire lifecycle:
1. Parse the customer's inquiry.
2. Investigate the codebase and telemetry.
3. If it's a bug: trigger `engineer-mode`'s **Bug-fix playbook** (repro test, root cause fix, verify).
4. If it's intended behavior or user error: formulate the exact step-by-step workaround.
5. Draft an empathetic, clear, human customer response.
---
## When to Invoke
- A user reports a bug in your product via email, Discord, Slack, or GitHub issue.
- A paying customer hits an unexpected error (*"500 Internal Server Error when uploading file > 10MB"*).
- You want to verify whether a customer complaint is an actual bug or user misunderstanding before replying.
---
## The 4-Phase Protocol
```mermaid
graph TD
Ticket([Customer Ticket / Message]) --> Phase1[Phase 1: Ingest & Triage]
Phase1 --> Phase2[Phase 2: Codebase Investigation]
Phase2 --> Check{Is it a bug?}
Check -->|"Yes: Confirmed Defect"| Phase3A["Phase 3A: engineer-mode (Bug-Fix)<br>1. Write failing test<br>2. Fix root cause<br>3. Verify green test"]
Check -->|"No: Intended / User Error"| Phase3B["Phase 3B: Document Workaround<br>Step-by-step guide for user"]
Phase3A --> Phase4[Phase 4: Draft Empathetic Customer Reply]
Phase3B --> Phase4
```
---
### Phase 1: Ingest & Triage
Extract key facts:
- Who is the user? (Free tier, self-hosted, enterprise customer)
- What were they trying to accomplish?
- What was the observed symptom? (UI freeze, error code, unexpected value)
- What environment/browser/input data did they use?
### Phase 2: Codebase Investigation
Navigate the repository:
1. Search for matching error strings, endpoint routes, or UI components.
2. Trace the data flow: user input → validation → business logic → database/external API → response.
3. Identify if the edge case is handled or unhandled.
### Phase 3A: If Confirmed Bug → Trigger `engineer-mode`
Switch to `engineer-mode` with the **Bug-fix playbook** (`skills/engineer-mode/playbooks/bug-fix.md`):
1. **Reproduce First**: Write an isolated unit test or runtime script that reliably triggers the failure.
2. **Root Cause**: Trace the exact variable, null pointer, race condition, or schema mismatch.
3. **Fix**: Apply the minimal, cleanest fix per **principle-fix-root-causes** and **principle-laziness-protocol**.
4. **Verify**: Ensure the test passes, run existing regression tests, verify no blast radius.
### Phase 3B: If Not a Bug (Intended Behavior / Workaround)
- Pinpoint why the customer got confused (UX affordance, missing tooltip, documentation gap).
- Formulate the exact solution or workaround.
- Note any small UI/copy improvement to prevent future users from hitting the same issue.
### Phase 4: Draft the Customer Reply
The reply must follow strict human founder guidelines:
- **Validate Their Experience**: Never make the user feel dumb or blamed (*"Thanks for flagging this, you caught a real edge case"*).
- **Transparency**: Explain what happened in 1 plain English sentence without technical jargon overload.
- **Resolution**: Tell them what was done (fix deployed / how to resolve).
- **Next Step**: Ask them to verify or let you know if anything else looks off.
---
## Example Outputs
### Scenario A: Real Bug Fixed
```markdown
Hey David,
Thanks so much for writing inPreview of the first 4,000 characters. Read full instructions →
swarm2.82 KB
View saved version →
---
name: swarm
description: "Fan out N parallel workers, drain them, and return one report. Use for /swarm, 'swarm this', or parallel coverage, races, gauntlets, and exploration."
menu-description: fan out N parallel workers across slices or races, then return one aggregated report
---
# Swarm
## Start
Open a todolist with one entry per phase before launching anything.
1. Frame
2. Fan out
3. Aggregate
4. Report
## Phase A: Frame
1. State the done predicate and the artifact or report the swarm must return.
2. Choose the shape. Partition into slices, race N workers on identical briefs, or mix both. For a race or mixed shape, declare `first pass`, `rank all`, or `best-of` before spawning.
3. Pick the worker model from the `swarm workers` line in `~/.cursor/rules/fstack-models.mdc` or `~/.claude/fstack-models.md`. If the rule or that line is missing, use the `FastMechanical` / `DeepReasoning` default in `models.json`. For `auto` or `inherit-parent`, omit `model` so the workers run on the parent model. If the Task tool rejects a slug, use the default and say so. If it rejects the default, use the closest valid slug of the same family from its error message. For a model race, name each arm's model up front. Pick each subagent's reasoning level and fast or standard speed for the job, per the Subagents section of the **engineer-mode** skill.
4. Give each worker its own writable output when it writes. When workers verify or measure commits, each brief names the exact SHAs. A measurement brief also names the method (sample count, what one sample is, order). The worker records both in its result.
## Phase B: Fan out
Spawn all N workers in one message with `subagent_type: generalPurpose`, `environment: "cloud"`, `run_in_background: true`, and the step 3 model, left unset for `auto` or `inherit-parent`. Use `environment: "local"` only when the worker needs access to something on the user's computer.
When a worker must start from a non-default pushed branch, pass `cloud_base_branch`.
Every brief stands alone. Include the goal, scope, exact slice or race arm, how to verify, and what to report. Reports use `PASS`, `ISSUES`, or `BLOCKED` with evidence. A worker that can prove a defect reports `ISSUES` and lists every issue it can prove, not only the first.
If a worker drops out, proceed with N-1 and note it.
## Phase C: Aggregate
Read the terminal results. Drop a result that does not record the SHAs and method its brief names, and respawn that worker once. After a second miss, record a gap. A gap does not count as a pass. For coverage, every required slice needs a result. For a race, apply the selection rule declared up front. Use first pass, rank all, or best-of. Do not paste raw worker dumps.
## Phase D: Report
Return one consolidated in-chat report with a result table, issue one-liners, gaps or dropouts, and the race rule when used.
tdd3.11 KB
View saved version →
---
name: tdd
description: "Use only when the user explicitly asks for TDD, a failing test, or a regression test, OR when the bug has an obvious cheap local test target. Skip when the test path is unclear, expensive, integration-heavy, or not requested."
menu-description: fix a bug by writing the failing test first, then the fix
---
# TDD Bug Fix
When fixing a bug with a clear, cheap test path, make the broken behavior executable before changing production code. The goal is a focused regression test that fails before the fix and passes after it.
Do not force a test when it would be impractical. If the available test would require broad harness setup, brittle mocks, slow end-to-end infrastructure, production-only state, vague reproduction steps, or large unrelated fixture churn, skip adding a new test and use the closest useful verification instead.
## Workflow
1. **Understand the bug.** Identify the intended behavior, current behavior, affected path, and smallest observable reproduction.
2. **Choose the narrowest executable check.** Prefer the closest unit, component, integration, or regression test already used for that codepath. If no practical test path is obvious, do not create one from scratch just to satisfy the workflow.
3. **Write the failing test first.** Add the smallest focused test that would have caught the bug. The test should encode intended behavior, not mirror the current implementation.
4. **Run the new test before fixing.** Confirm it fails for the intended reason. If it passes or fails for an unrelated reason, correct the test or reproduction before editing the implementation.
5. **Fix the bug.** Make the smallest production change that satisfies the intended behavior while preserving nearby contracts.
6. **Rerun the regression test.** Confirm the test now passes.
## If a Failing Test Is Impractical
Use the closest executable regression check instead: a targeted script, manual reproduction command, browser automation, snapshot comparison, log assertion, or focused integration check.
Prefer no new test over a bad test. A bad test is one that mostly tests mocks, encodes current implementation details, depends on timing or unrelated global state, needs expensive infrastructure for a small fix, or would be deleted immediately after proving the fix.
## Guardrails
- Do not change tests merely to match a wrong implementation.
- Do not weaken existing assertions unless the expected behavior has genuinely changed and the reason is clear.
- Keep the regression test focused on the bug. Avoid broad fixture churn or unrelated coverage expansion.
- If the bug is flaky, make the test deterministic where possible and document the signal being locked down.
- If the bug exposes a broader class of failures, first land the focused regression path, then consider additional sibling coverage.
## Final Response
Report the evidence, not just the outcome:
- Name the failing-before test or executable check and the failure it produced.
- Name the passing-after test run and any nearby validation performed.
- If failing-before evidence could not be demonstrated, state why and describe the closest regression check used instead.
teach5.53 KB
View saved version →
---
name: teach
description: "Explain a body of work plainly so a person actually understands it. Runs the `how` and `why` skills and weaves what they find into one clear explanation. Use for 'teach me this', 'help me really understand X', 'explain this change or subsystem to me'."
menu-description: explain a subsystem plainly by composing how + why
---
# Teach
**You explain what a thing is, how it works, and why it's built that way, in one plain account at the person's pace. The goal is that they understand it, not that you change anything.**
Teach sits on top of `how` and `why`. Get your bearings on what the work is and what it touches, then run `how` for how it works and `why` for why it's that way. Those are real skill invocations that do their own digging. Blend what they find into one plain explanation, lead with what matters to the person, and go deeper when they ask. Reword freely for teaching, with one exception. Keep `why`'s confidence language intact (its hedges are findings, not style).
1. Decide the few things they should walk away understanding. Choose them from why they're asking (about to change it, reviewing it, debugging it, new to it) and what they already know, both read from the conversation, not quizzed out of them. Skip what they plainly already know. Put the depth where their question is.
2. Let `how` and `why` do the work, don't redo it. Read the code yourself to get oriented, then run `how` for how it works and `why` for why. Run them in parallel and combine the results. Match the size to the question. Run both for a subsystem, maybe one is enough for a small change. Keep `why` narrow by default since its full sweep is slow. Put the narrowing in the ask itself (a scoped question, git plus a source or two) so `why` records the skipped categories per its own contract, and widen it only when the reasons are the point.
3. Start with a plain definition. Name the thing and say what it is in general terms, the way a senior engineer would say it out loud, with its common name if it has one. Then tie it to the case in front of you ("in X, we use this to ...") and build from there: how it works, the deeper reasons, the edge cases. For each part, explain the idea so it clicks: the problem it solves and how it actually works. Walk through what happens as the person does the thing (opens a long chat, scrolls up) when that is what makes it land. Listing functions and constants is reference, not teaching. Don't print framing labels ("the one idea to hold onto", "the thing to walk away with", "the key insight", "at its core", "TL;DR"). Give the smallest complete answer first, a sentence or two, not a dense paragraph, then stop. Add layers when they ask. Never a wall of text.
4. Keep it a conversation, not a lecture or a performance. Offer to go deeper or move on, and follow their lead. No quizzes. No pacing theater. Don't print "Pause", don't ask them to say it back, don't announce "the sentence to nail", and don't flag a part as important or hard ("here is the part worth slowing down on", "this is the tricky part", "here is where it gets interesting"). Just say it. When you would pause, stop and let them respond. Running one-shot with no live human, deliver it cleanly and put any offer to go deeper at the end.
5. Show, don't only tell, and build the picture up diagram by diagram. Open the diff, the code, or the debugger when that is the fastest way to land it. Draw when a picture lands faster than words. For anything with three or more moving parts, do not draw one diagram with all of them at once. Draw a short series instead, where each diagram redraws the last and adds a single part, so the reader watches the system assemble. A single all-at-once diagram, especially one saved for the end, is a reference, not teaching. Concretely, to teach a flow from A to B to C, draw it three times. First A to B. Then redraw and add C. Then redraw and add the return edge or the next piece. Match the medium to the idea, and usPreview of the first 4,000 characters. Read full instructions →
teardown3.65 KB
View saved version →
---
name: teardown
description: Conducts deep competitor, product, and pricing teardowns using web browsing and market intelligence. Analyzes positioning, pricing packaging, customer friction, sentiment on Reddit/X, and architectural vulnerabilities. Use for /teardown, "analyze competitor", or competitor teardown.
menu-description: deep competitor, pricing, and product teardown analysis
---
# Teardown (Competitor & Market Intelligence)
Knowing your competitors' weaknesses is how a startup outmaneuvers incumbents. Big companies move slowly, paywall basic features, and leave painful UX gaps that customers hate.
`teardown` combines web browsing with strategic analysis to dissect a competitor’s product, pricing, onboarding, and customer sentiment.
---
## When to Invoke
- Analyzing a direct or indirect competitor before building a feature.
- Evaluating how competitors price and package their tiers (what's behind an "Enterprise - Contact Sales" wall).
- Investigating customer complaints on Reddit, Hacker News, X, or G2 to find underserved niches.
- Crafting your product's positioning and competitive comparison pages (`/geo-page`).
---
## The 5 Teardown Lenses
### 1. Positioning & Claims vs Reality
- What is their primary hero hook?
- What do they claim to do, and does the actual product live up to it?
- Is their copy clear or filled with corporate AI buzzwords?
### 2. Pricing & Packaging Architecture
- What is their pricing model? (Per-seat, usage-based, flat monthly, tiered)
- Where do they place the paywall? (e.g. SSO behind enterprise, audit logs locked to $50k tier)
- Where is the pricing trap that frustrates users?
### 3. User Friction & Onboarding Velocity
- Can a user self-serve sign up and see value in 2 minutes?
- Or do they force a *"Book a demo with our SDR team"* form?
- How much onboarding friction exists?
### 4. Real Customer Sentiment (The Complaint Mining Loop)
- Search Reddit, Hacker News, and X for: `"[CompetitorName] issue"`, `"[CompetitorName] alternative"`, `"[CompetitorName] slow"`.
- What are active users constantly complaining about? (Slow sync, terrible support, sudden price hikes, broken API)
### 5. The Vulnerability & Strategic Wedge
- **Their Architectural Flaw**: Are they burdened by 10 years of legacy infrastructure that prevents them from shipping modern features?
- **Our Wedge**: What is the single clean, fast, transparent capability we can offer that makes their solution look antiquated?
---
## The Teardown Report Template
```markdown
# 🔬 Teardown Report: [Competitor Name]
**URL**: [https://competitor.com] | **Market Category**: [Category]
### 💡 Executive Takeaway
[2 sentences summarizing their core position and their biggest commercial/product vulnerability]
---
### 💰 Pricing & Packaging Breakdown
| Tier | Price | Included | The Catch / Paywall Trap |
|---|---|---|---|
| Starter | Free | 1 User, 500 records | No export capability |
| Pro | $49/seat/mo | Team features | SSO, Webhooks locked out |
| Enterprise | Call Sales ($15k min) | SSO, Audit Logs | Long sales cycles, annual lock-in |
**The Strategic Opportunity**: Offer self-serve SSO and standard webhooks on a fair flat-rate tier.
---
### 🚨 What Customers Hate (Reddit / X Sentiment)
1. *"The sync latency takes 15 minutes and frequently times out on large batches."*
2. *"They quadrupled pricing last year and forced us onto an annual contract."*
3. *"Customer support takes 48 hours to reply to enterprise tickets."*
---
### 🎯 Our Winning Wedge
- Build a lightweight alternative with <200ms real-time sync.
- Transparent, self-serve pricing with no sales calls required.
- Publish a direct, factual comparison page highlighting local speed (`/geo-page`).
```
technical-writing8.95 KB
View saved version →
---
name: technical-writing
description: "Layered technical-writing standard: Diátaxis structure, Google developer style sentences, STE instruction rules, Global English syntax. Use for /technical-writing or when writing or reviewing docs, RFCs, readmes, PR descriptions, or commit messages."
menu-description: write docs, RFCs, readmes, PR descriptions, and commit messages to one layered standard
---
# Technical writing
Write so a tired engineer understands on the first read. Apply all four layers.
Three rules sit above the layers:
- **Cut every word that does no work.** If the sentence survives without a word, the word goes. "In order to" is "to". "It is important to note that" is nothing.
- **Use the short, everyday word.** "Use", not "utilize". "Help", not "facilitate". "Do", not "perform". A long word has to buy its length with precision.
- **When a rule makes a sentence worse, fix the sentence another way or leave it alone.** A sentence that follows every rule and sounds like a machine wrote it has failed.
The codebase is the word list. Write the real symbol, file, flag, or command name, not a synonym or a description of it.
Don't invent jargon. Use the words a developer would say out loud: "move", "delete", "a budget that only decreases", not "evacuate", "ratchet", or "endgame". A named pattern is fine when the doc says what it means the first time. Propose a new offender and its replacement as an addition to `unslop`'s abstract-metaphor rule in your reply, with the diff. Don't edit that skill.
## Vary the rhythm
A doc can obey every layer and still read machine-written: every sentence clipped short, no view anywhere, nothing specific.
- Mix sentence lengths on purpose. Short sentences land a point. Longer ones carry a fact with its condition or consequence.
- One thought per sentence does not mean one length per sentence. Split the sentence that carries two thoughts. Keep the long sentence that carries one.
- Have a view where the mode allows it. Explanation weighs trade-offs, so say what you make of them instead of listing pros and cons. Reference stays dry.
- Be specific over sterile. Not "schema changes can cause issues" but "a column rename fails the build".
## Pick the mode first (Diátaxis)
One document, one mode. Two questions pick it: does the content inform action (doing) or understanding (thinking), and does it serve learning or work?
- Action + learning: **tutorial**.
- Action + work: **how-to**.
- Understanding + work: **reference**.
- Understanding + learning: **explanation**.
Use the compass on a whole document or on one sentence.
**Tutorial: learning by doing.** The learner's success is your job, not theirs. Open by saying what the learner will build, not what they will "learn". Every step produces a visible result, early and often. Tell them what they should see: the expected output, the prompt change, the log line. Cut explanation to one clause and a link. Stay concrete. Write as "we", in commands: "First, do x. Now, do y."
**How-to: steps to a goal.** Solve a problem a person has, not an operation the machine can perform. Assume competence and skip teaching. Action only: no digressions, no background, no completeness for its own sake. Link those instead. Allow forks and judgment: "If you want x, do y." Name the guide by the task: "How to calibrate the radar array", not "Radar array calibration".
**Reference: facts for lookup.** Only describe. No instruction, no persuasion, no opinion. Be dry, complete, and sure. State facts, options, limits, and errors with no hedging. Mirror the structure of the thing described, so code and docs can be navigated together. Put material where readers expect it. Generate from code where possible.
**Explanation: understanding and why.** One bounded topic, readable away from the product. Each title should tolerate an implicit "About..." in front. Anchor on a real why question. Give context: design decisions, history, constraints, alternatives. Opinion is all
Preview of the first 4,000 characters. Read full instructions →
thermo-nuclear-code-quality-review13.5 KB
View saved version →
---
name: thermo-nuclear-code-quality-review
description: Run an extremely strict maintainability review for abstraction quality, giant files, and spaghetti-condition growth. Use for a thermo-nuclear code quality review, thermonuclear review, deep code quality audit, or especially harsh maintainability review.
menu-description: extremely strict maintainability audit
---
# Thermo-Nuclear Code Quality Review
Use this skill for an unusually strict review focused on implementation quality, maintainability, abstraction quality, and codebase health.
Above all, this skill should push the reviewer to be **ambitious** about code structure. Do not merely identify local cleanup opportunities. Actively search for "code judo" moves: restructurings that preserve behavior while making the implementation dramatically simpler, smaller, more direct, and more elegant.
## Core Prompt
Start from this baseline:
> Perform a deep code quality audit of the current branch's changes.
> Rethink how to structure / implement the changes to meaningfully improve code quality without impacting behavior.
> Work to improve abstractions, modularity, reduce Spaghetti code, improve succinctness and legibility.
> Be ambitious, if there is a clear path to improving the implementation that involves restructuring some of the codebase, go for it.
> Be extremely thorough and rigorous. Measure twice, cut once.
## Non-Negotiable Additional Standards
Apply the baseline prompt above, plus these explicit review rules:
0. **Be ambitious about structural simplification.**
- Do not stop at "this could be a bit cleaner."
- Look for opportunities to reframe the change so that whole branches, helpers, modes, conditionals, or layers disappear entirely.
- Prefer the solution that makes the code feel inevitable in hindsight.
- Assume there is often a "code judo" move available: a re-organization that uses the existing architecture more effectively and makes the change dramatically simpler and more elegant.
- If you see a path to delete complexity rather than rearrange it, push hard for that path.
1. **Do not let a PR push a file from under 1k lines to over 1k lines without a very strong reason.**
- Treat this as a strong code-quality smell by default.
- Prefer extracting helpers, subcomponents, modules, or local abstractions instead of letting a file sprawl past 1000 lines.
- If the diff crosses that threshold, explicitly ask whether the code should be decomposed first.
- Only waive this if there is a compelling structural reason and the resulting file is still clearly organized.
2. **Do not allow random spaghetti growth in existing code.**
- Be highly suspicious of new ad-hoc conditionals, scattered special cases, or one-off branches inserted into unrelated flows.
- If a change adds "weird if statements in random places", treat that as a design problem, not a stylistic nit.
- Prefer pushing the logic into a dedicated abstraction, helper, state machine, policy object, or separate module instead of tangling an existing path.
- Call out changes that make the surrounding code harder to reason about, even if they technically work.
3. **Bias toward cleaning the design, not just accepting working code.**
- If behavior can stay the same while the structure becomes meaningfully cleaner, push for the cleaner version.
- Do not rubber-stamp "it works" implementations that leave the codebase messier.
- Strongly prefer simplifications that remove moving pieces altogether over refactors that merely spread the same complexity around.
4. **Prefer direct, boring, maintainable code over hacky or magical code.**
- Treat brittle, ad-hoc, or "magic" behavior as a code-quality problem.
- Be skeptical of generic mechanisms that hide simple data-shape assumptions.
- Flag thin abstractions, identity wrappers, or pass-through helpers that add indirection without buying clarity.
5. **Pu
Preview of the first 4,000 characters. Read full instructions →
typescript-best-practices2.74 KB
View saved version →
---
name: typescript-best-practices
description: TypeScript best practices. Use when reading or editing any .ts or .tsx file.
paths: ["**/*.ts", "**/*.tsx"]
menu-description: ground type-system discipline in TypeScript syntax
---
# TypeScript best practices
Apply the **type-system-discipline** principle skill first.
| Rule | Summary |
|------|---------|
| Discriminated unions | Model variants with a `kind` literal discriminant so impossible states can't be represented. No optional-field bags. |
| Branded types | Brand primitives with `& { readonly __brand: "X" }` so they can't be mixed up. Validate once at the boundary. A brand comes from a verifying type guard (`input is AgentId`), never from `as`. |
| Constructive modeling | Build the shape so the illegal value can't be constructed. `[T, ...T[]]` for non-empty, `[T, T][]` for even length, `start` plus `duration` for a range. Not a runtime guard, not a wish for refinement types. |
| Simplest total type | Keep `T[]` while every operation on it stays total. Strengthen to `NonEmpty<T>` only where the loose type forces `!`, a cast, or a "should never happen" throw. |
| `unknown` over `any` | External data is `unknown`. |
| Schemas before guards | Before hand-writing a property-by-property type guard, use the repository's runtime schema library and infer the type from the schema, such as `z.infer`. |
| No `as` casts | Every `as` is a runtime crash waiting. Cast only after validation. |
| Narrowing hierarchy | Discriminant switch > `in` operator > `typeof`/`instanceof` > user-defined type guard > `as`. |
| Type guards | Must verify the claim. A lying guard is worse than `as` because the bug hides behind a name that says it's safe. Name them `isX` or `hasX`. |
| Exhaustiveness | Inline `const _exhaustive: never = x;` in default arms so the compiler errors when a new variant is added. |
| `satisfies` over `as` | Validates the value without widening literal types. |
| Boundary validation | Parse where data crosses in, into a named domain type. `Record<string, unknown>` (however spelled) stops at that parse. Trust types inside. See the **boundary-discipline** principle skill. |
| Schema-derived types | Reach for `Pick`/`Omit`/`Parameters`/`ReturnType`/`Awaited`/`typeof` before declaring a new interface. |
| Object args | Pass objects, not positional, so argument order is self-documenting. Skip on hot paths (per-frame render, tokenizers, parsers). |
| Real tests | Don't mock what you can run. Prefer the framework's real test primitives with leak/disposable checks, and verify UI in a running build. Mock only what you can't run locally. |
| Structured telemetry | Prefer structured logger diagnostics with enough context to debug from an id. No `console.log` in shipped code. |
Examples: `references/patterns.md`.
Referenced files: 1 — file references are metadata, not package contents.
unslop5.71 KB
View saved version →
---
name: unslop
description: Cut AI tells from any writing.
menu-description: clean up writing by removing AI tells
---
# Unslop
Edit text to remove AI patterns. Scan for the patterns below, then rewrite. Preserve meaning and match the intended tone.
## Patterns to detect and fix
Rule numbers are stable ids that other skills cite. A removed rule leaves a gap.
### Content
3. **Superficial -ing phrases.** "highlighting...", "ensuring...", "reflecting...", "showcasing...", "fostering...". Delete or expand with real sources.
5. **Vague attributions.** "Experts believe", "Industry reports suggest", "Some critics argue". Name the source or delete.
### Language
7. **AI vocabulary.** Additionally, crucial, delve, enduring, enhance, fostering, garner, interplay, intricate, landscape (abstract), pivotal, showcase, tapestry (abstract), testament, underscore, vibrant. Replace with plain words.
8. **Fancy ways to say "is".** "serves as", "stands as", "boasts", "features". Say "is" or "has".
9. **"Not just X, but Y."** State the point directly instead.
10. **Rule of three.** Don't force ideas into groups of three. Use the natural number.
11. **Synonym cycling.** Protagonist, main character, central figure, hero all in one paragraph. Pick one, repeat it.
12. **False ranges.** "from X to Y" where X and Y aren't on a meaningful scale. List topics directly.
### Style
13. **Em dash overuse.** Avoid em dashes entirely. Use periods or commas only (no parentheses, no en dashes, no hyphen-as-dash substitutes). If a thought needs separation, end the sentence or use a comma.
14. **Colon overuse.** Colons are fine before a list or example, not as mid-sentence connectors. "If you're coming from traditional automation: instead of registering event handlers, you describe conditions" adds nothing with the colon. Rewrite to let the point stand on its own without comparison framing. "Describing when the scheduler should fire works best as plain English." Same meaning, no crutch punctuation.
15. **Boldface overuse.** Don't bold every proper noun or acronym.
16. **Inline-header lists.** The tell is a bold label and colon that restates the line: "**Performance:** Performance improved...". Convert those to prose. A bold lead-in that ends in a period, names the item, and is followed by genuinely new detail ("**Schema in TypeScript.** Tables live in one file.") is fine, not a tell.
17. **Title case headings.** Use sentence case.
18. **Decorative emojis.** Remove from headings and bullets.
19. **Curly quotes.** Use straight quotes.
### Communication artifacts
20. **Chatbot phrases.** "I hope this helps!", "Let me know if...", "Of course!", "Certainly!", "Found the smoking gun!" Remove.
22. **Sycophantic tone.** "Great question! You're absolutely right!" Respond directly.
### Filler
23. **Filler phrases.** "In order to" becomes "To". "Due to the fact that" becomes "Because". Delete "It is important to note that".
24. **Excessive hedging.** "could potentially possibly be argued that it might" becomes "may".
25. **Generic conclusions.** "The future looks bright." State specific plans or facts.
### Jargon
26. **Abstract metaphor nouns.** Substrate (base), wedge, wedge in (add), vector (way, method), locus, vantage, nexus, primitive as a noun, harness as a metaphor, surface as in "API surface", bedrock, scaffolding as a metaphor, modality, paradigm, gold-plating (more than the job needs), ratchet as a metaphor (the mechanism's real name, or a limit that only tightens), evacuate for moving code (move out), endgame (the last phase), north star, flywheel. These read as technical but usually have a plainer concrete word. Pick the concrete word.
### Plain speech
27. **Say what it does, not how it feels.** "the database stays close at hand", "SQL you can read", "types that follow your schema" name a feeling. The fix names the mechanism or a number: "`.toSQL()` returns the exact string sent to the database", "a column rename fails the build". Ask what the sePreview of the first 4,000 characters. Read full instructions →
unslop-email3.62 KB
View saved version →
---
name: unslop-email
description: De-slop and humanize email drafts. Strips AI clichés, corporate buzzwords, robotic pleasantries, and forced enthusiasm. Injects authentic founder warmth, brevity, and conversational charm. Use for /unslop-email, "humanize this email", or cleaning up messages.
menu-description: remove AI tells and corporate buzzwords from email drafts
---
# Unslop Email
AI models write emails like a desperate corporate consultant trying to hit a word count. `unslop-email` strips away the robotic fluff and leaves behind the voice of a sharp, thoughtful human founder.
---
## The Banned Phrases & AI Tells
If any of these appear in an email draft, **delete or rewrite immediately**:
| The AI Slop | The Real Human Translation |
|---|---|
| *"I hope this email finds you well."* | Cut entirely. Start with the point. |
| *"I wanted to reach out because..."* | *"Saw your post about X..."* or just get to the point. |
| *"In today's fast-paced environment..."* | Cut entirely. |
| *"Delve into," "leverage," "seamlessly"* | *"Dig into," "use," "easily."* |
| *"Pivotal," "game-changing," "robust," "holistic"* | Name the concrete metric or feature instead. |
| *"I would love to pick your brain for 15 minutes."* | *"Curious what you think of X."* |
| *"Please let me know if you have any questions or concerns."* | *"Let me know what you think."* or *"Holler if anything breaks."* |
| *"Thrilled to announce / excited to share"* | *"Just shipped X."* |
| Em-dashes (`—`) in every paragraph | Use simple commas, periods, or parentheses. |
| Overuse of exclamation points (`!!`) | At most one `!` in the entire email, or none. |
---
## The 6 Rules of Authentic Founder Emails
1. **Rule of the Phone**:
- Would you type this with your thumbs while walking down the street? If not, it's too formal. Shorten sentences.
2. **One Idea Per Paragraph**:
- Break walls of text into 1-2 sentence bites. White space makes emails effortless to scan.
3. **Imperfect Authenticity over Glossy Polish**:
- Clean, natural phrasing beats textbook grammar. Contractions (*don't*, *we're*, *can't*) are required.
4. **Concrete Over Abstract**:
- Bad: *"Our platform enhances database performance significantly."*
- Good: *"It dropped query latency from 80ms to 4ms for Acme's Postgres cluster."*
5. **Clear, Low-Friction Ask**:
- Never end with a vague *"Let's connect soon."*
- End with a binary or single-choice next step:
- *"Does Thursday afternoon work for a 10-min screen share?"*
- *"Want me to send over the 2-minute loom video?"*
- *"Should I send you an invite to test it?"*
6. **No Fake Urgency**:
- Don't invent fake deadlines or manufactured scarcity. Real founders win on product quality and genuine responsiveness.
---
## Before & After Transformation
### Before (AI Slop):
> Dear Michael,
>
> I hope this email finds you well. I am reaching out to introduce our cutting-edge developer tool, which seamlessly empowers engineering organizations to streamline their CI/CD pipelines and foster unparalleled productivity in today's fast-paced tech landscape.
>
> We would be thrilled to schedule a brief 15-minute introductory call at your earliest convenience to delve into how we can add immense value to your workflows.
>
> Best regards,
> Fabio
### After (Unslopped):
> Hey Michael,
>
> Saw your tweet about GitHub Actions flaking on monorepo builds.
>
> We built a small caching tool that cut build times from 14 minutes to 90 seconds for teams running large TypeScript repos. Zero config—just one line in your workflow YAML.
>
> Want me to send over a 2-minute demo video to see if it's relevant for your setup?
>
> Best,
> Fabio
what-did-i-get-done1.09 KB
View saved version →
---
name: what-did-i-get-done
description: Summarize authored commits over a user-specified time period into a concise update
menu-description: summarize authored commits over a user-chosen period
---
# What did I get done
## Trigger
Need a short, high-signal summary of work completed in a specific time range (for example: yesterday, last 3 days, or last week).
## Workflow
1. Resolve the requested time window into concrete dates.
2. Read commits authored by the current git user email within that range.
3. Exclude merge commits and uncommitted changes.
4. Synthesize the most important shipped changes into a concise status update.
5. Include the actual date range used in the final summary.
## Guardrails
- Be extremely concise and information-dense.
- Prioritize substantial behavior or architecture changes.
- Omit cosmetic-only changes (formatting, imports, minor renames).
- Do not infer intent or motivation. Describe changes functionally.
## Output
- One short summary suitable for a status update
- Real date range
- Optional 2-5 bullets for major changes only
why8.98 KB
View saved version →
---
name: why
description: "Use for 'why does X work this way', 'why we picked Y', design rationale, regressions, postmortems, or data-backed thresholds. Discovers available MCPs and queries each evidence category (source control, issue tracker, long-form docs, real-time chat, infrastructure observability, error tracking, product analytics warehouse) in parallel, then returns a cited read on decisions and tradeoffs. Use how for runtime behavior."
menu-description: investigate why something was built this way (parallel multi-MCP evidence)
---
# Why
Investigate the motivation and intent behind code. The companion `how` skill answers what the code does and how it works. `why` answers what forces led to its shape.
Each spawn below names a role line in the `fstack-models` rule (`~/.cursor/rules/fstack-models.mdc` or `~/.claude/fstack-models.md`) and a default role in `models.json`. Set `model` to that line's value, or to the default if the rule or the line is missing. Leave `model` unset when the value is `auto` or `inherit-parent`. If the Task tool rejects a slug, use the default and say so. If it rejects the default, use the closest valid slug of the same family from its error message. Pick each subagent's reasoning level and fast or standard speed for the job, per the Subagents section of the **engineer-mode** skill.
Every spawn is `generalPurpose` with `readonly: false` (agent mode). **Do not use readonly/Ask mode.** It strips MCP access, which disables the MCP-backed investigators and the synthesizer's citation spot-checks. Investigators still shouldn't write anything.
## Operating Posture
Operate as a **careful, cautious, and precise investigator**. Be honest about what you know vs what you're inferring. Read `references/epistemics.md` for the full confidence framework and phrasing guide. The synthesizer must follow it.
## Step 1. Understand the Target and the Question
The **target** is usually a chunk of code, a pattern, a feature, or a named design decision. The **question** is usually a design rationale, a tradeoff, a motivating edge case, an external constraint, dead code, or a broad history sweep.
If the target is vague ("why do we do it this way?" with no clear referent), make your best guess from conversation context (open files, recent edits, cursor location, what was just discussed). State your interpretation briefly so the user can redirect if you're off, then proceed.
## Step 2. Establish the Code Anchor
Before spawning investigators, build the seed context inline: file paths and line ranges, key symbols (functions, classes, constants), the last few commits touching the target, PR numbers from merge commits (pattern `(#1234)` in the subject line), and any linked ticket IDs. Run `git blame -L <start>,<end> <file>` for last-touch commits, `git log --follow -p -- <file>` for full history with patches through renames, `git log --oneline -20 -- <file>` for recent commits with PR numbers visible, and `git log -1 --format=%B <commit>` to extract PR numbers. Then pull the PR bodies and discussion for any substantive commit: `gh pr view <number> --json title,body,author,createdAt,mergedAt,labels,closingIssuesReferences,comments,reviews`. This anchor goes to every investigator and to the synthesizer.
## Step 3. Spawn Parallel Investigators
**Default to the full parallel investigation.** The goal is a complete coverage map, not a minimal one. Document the null, don't skip the search.
### Discovery
Before spawning investigators, list the available MCPs from the Cursor environment. Use the available-tools map when present. Otherwise inspect the `mcps/` directory Cursor exposes for enabled MCP servers.
Map each available MCP to one evidence category:
1. Source control history
2. Issue / ticket tracker
3. Long-form documents
4. Real-time team chat
5. Infrastructure observability
6. Error / exception tracking
7. Product analytics warehouse
Source control is always available through git and `gh`. For the other sixPreview of the first 4,000 characters. Read full instructions →
Referenced files: 12 — file references are metadata, not package contents.