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.
git clone --depth 1 https://github.com/golid-ai/golidWrote 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.
[](https://agentmods.dev/rules/golid-ai/golid/slice-and-ship)<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>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.
| Model | Per session | Once 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 |
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.
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:
- Mergeable — could ship to production without the next slice landing.
- Verifiable — has at least one test that exercises the new behavior.
- Documented — any contract change (spec, API, env var) is updated in the same set of commits.
- 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:
- Read the next criterion only. Resist the urge to scan the whole plan and "implement related things." That's how slices grow into features.
- Implement the criterion. Backend + frontend + migration if needed — but only what this criterion requires.
- Write the test before declaring the criterion done. New branch needs new test. See
write-testsrule, "Test Plan from Predicate." - Sync the spec/docs in the same set of commits. State machine row, enum value, API surface, env var — see
document-modulerule, "Same-Commit Spec Sync." - Run contract closeout when the diff requires it. See the checklist below before "ready to commit."
- Audit the slice. Run the relevant section of
audit-bugsagainst the files this slice touched. Cite evidence. Fix findings before commit. - Commit atomically — usually 2–3 commits per slice (
feat:,test:, sometimesdocs:). Seegit-commitsrule, "Change Sizing." - STOP. Do not start the next slice until the current one is fully audited and committed.
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.
- 8d ago First seen · 141 lines · 21 tokens per session scan A e320a429ccd3
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.
Other cursor rules, from other repositories
adapter-features
Database-specific features must be implemented in the specialized adapter only. Base adapters (postgres, mysql, etc.) must remain database-agnostic.
unit-tests-tdd
TDD required for behavior changes; ≥80% package coverage on touched packages; unit-test conventions.
integration-tests
Human-readable integration test requests; helpers vs httptest; suites/ vs per-DB placement.
state-management
Use the following stack. Do not introduce or recommend Redux or React Context for shared/global state.
backend
You are an expert in Go, Gin, Gorm, Gen, Cosy (https://cosy.uozi.org/) with a deep understanding of best practices and performance optimization techniques in these technologies.
core
Core token-efficiency and response discipline rules. Always active.