slice
Use when code-changing intent has emerged and there is no governing slice yet — to scope the change into a slice (scope document + metadata) before any design or implementation. Routed to from /route.
How do I install this agent skill?
npx skills add https://github.com/davidlee/doctrine --skill sliceIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill defines a workflow for project management and scoping using a specialized command-line tool. No security risks were identified.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
What does this agent skill do?
Slice
You are converting intent into a concrete, scoped unit of change. A slice is one
coherent change — not a project-global decision (that is an ADR) and not
evergreen spec material (.doctrine/spec/).
Process
-
Confirm the frame. Code-changing intent, and no governing slice already covers it. Pull the constraints first:
/canonfor ADRs and.doctrine/spec/tech/, and conventions;/retrieve-memoryfor subsystem gotchas on the surface you will touch. -
Create the slice:
doctrine slice new "<title>" [--slug <slug>]Allocates the next id and scaffolds
slice-nnn.toml(metadata, relations, lifecycle status — starts atproposed) +slice-nnn.md(scope document). -
Make scope explicit in
slice-nnn.md:- what changes, and why
- in scope vs out of scope (name the boundary)
- affected surface — concrete paths / modules
- risks, assumptions, open questions
- verification / closure intent — how "done" will be judged
Seed the affected surface as coarse
scope-relevantselectors — a rough path/glob fence on where the change lives, captured now while scope is fresh:doctrine slice selector add <id> "src/foo/**" "src/bar.rs" --intent scope-relevantThese are intentionally loose (the exact touch-set is
/design's job). They feed the audit-timeslice conformancedelta; an unfenced slice has nothing to diff git actuals against. -
Record structure in
slice-nnn.toml: metadata, lifecycle status. Honour the storage rule — structured data in TOML, prose in MD, never queried/derived data in prose. Relations are written withdoctrine link, not hand-authored rows — it validates the pair againstRELATION_RULES(the legal vocabulary;lib:reference/using-doctrine.md§ Relating entities). e.g.governed_byan ADR,specsa spec,supersedesa prior slice. -
Check the altitude. If the work is really a project-global decision →
doctrine adr new. If it is evergreen specification → author a tech spec (doctrine spec new tech) or a product spec (doctrine spec new product). Keep the slice to one shippable change; split if it sprawls.
Next
You MUST shape the design before planning: record the lifecycle move
(doctrine slice status <id> design — bare number) and hand off to /design.
Do not jump to /plan or /execute from a bare slice — /route's gate forbids
it. If genuine tradeoffs or unknowns surface while scoping, /consult.
Before /design, run the pre-design research round per /research, so the
design load-bears on a cited artefact rather than recall.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/davidlee/doctrine/slice">View slice on skillZs</a>