slice-and-ship

slice-and-ship is a cursor rule for Cursor from golid-ai/golid. It costs 21 tokens per session (1,939 once invoked), scanned A, original, MIT.

A rule for breaking a planned feature into small, independently shippable slices. Each slice covers one acceptance criterion end to end, with implementation, testing, documentation or contract updates, and closeout before the next slice begins.

In plain words
What is it for?
Use it when implementing a feature from a plan. It helps decide the smallest production-ready change, keep each slice tested and documented, and organize commits around usable user-facing layers.
Why use it?
It makes each part of a feature easier to review, verify, and roll back. It also prevents broad feature audits from hiding follow-up problems in individual pieces.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: mentions subagents.

Good fit Use it when implementing a feature from a plan. It helps decide the smallest production-ready change, keep each slice tested and documented, and organize commits around usable user-facing layers.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/golid-ai/golid/slice-and-ship
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/golid-ai/golid

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for slice-and-ship

README.md
[![agentmods](https://agentmods.dev/badge/rules/golid-ai/golid/slice-and-ship.svg)](https://agentmods.dev/rules/golid-ai/golid/slice-and-ship)
Your own site
<a href="https://agentmods.dev/rules/golid-ai/golid/slice-and-ship"><img src="https://agentmods.dev/badge/rules/golid-ai/golid/slice-and-ship.svg" alt="Measured on agentmods" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,939 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00021 $0.01939
Opus 5 $0.00010 $0.00970
Sonnet 5 $0.00004 $0.00388
Haiku 4.5 $0.00002 $0.00194

Measured 8d ago against content hash e320a429ccd3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

slice-and-ship scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/slice-and-ship.mdc · 141 lines

How it starts

The opening of the file, as written. The whole thing — 141 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Slice and Ship

Thesis: Ship one acceptance criterion end-to-end before starting the next. The slice — not the commit, not the feature — is the unit of audit and review. Most "clean up audit follow-ups" rollups exist because we audited the whole feature instead of each slice as it landed.

Refrain: Plan → Slice → Implement → Test → Sync → Closeout → Audit → Commit → Repeat

What Is a Slice

A slice is the smallest change that is independently:

  1. Mergeable — could ship to production without the next slice landing.
  2. Verifiable — has at least one test that exercises the new behavior.
  3. Documented — any contract change (spec, API, env var) is updated in the same set of commits.
  4. Bounded — typically one acceptance criterion from docs/plans/*.md. Rarely more than ~300 lines of diff total across its commits.

A slice is larger than a commit (a slice may be 2–4 atomic commits) and smaller than a feature (a feature is usually 3–8 slices).

For seed/demo work, mirror the user-facing walkthrough in the commit structure: accounts → hiring funnel → work state → money state → proof/reviews → optional secondary surfaces. Each layer should be usable and rollback-validated before the next layer lands. This preserves git archaeology: future-you can answer "why is this data shaped this way?" from the commit timeline.

The Loop

Start from the relevant docs/plans/*.md file when one exists. If execution reveals that the plan's slices are wrong, update the plan before continuing. Use module specs for implemented current-state behavior; use the plan for future intended changes.

Classify risk with workflow-routing first. T2/T3 work uses this full loop; T1 may use a scoped local closeout unless a T2 trigger appears; T0 skips slice ceremony. If new facts reveal a higher tier, stop and complete that tier's closeout before commit.

For each acceptance criterion in the plan:

  1. Read the next criterion only. Resist the urge to scan the whole plan and "implement related things." That's how slices grow into features.
  2. Implement the criterion. Backend + frontend + migration if needed — but only what this criterion requires.
  3. Write the test before declaring the criterion done. New branch needs new test. See write-tests rule, "Test Plan from Predicate."
  4. Sync the spec/docs in the same set of commits. State machine row, enum value, API surface, env var — see document-module rule, "Same-Commit Spec Sync."
  5. Run contract closeout when the diff requires it. See the checklist below before "ready to commit."
  6. Audit the slice. Run the relevant section of audit-bugs against the files this slice touched. Cite evidence. Fix findings before commit.
  7. Commit atomically — usually 2–3 commits per slice (feat:, test:, sometimes docs:). See git-commits rule, "Change Sizing."
  8. STOP. Do not start the next slice until the current one is fully audited and committed.

Read the full file on GitHub · 141 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 141 lines · 21 tokens per session scan A e320a429ccd3

Subscribe to this mod's changes

slice-and-ship is a cursor rule published in the GitHub repository golid-ai/golid (40 stars, last pushed 2mo ago), licensed MIT. It adds 21 tokens to every session and 1,939 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.