palette-init
Set up palette in a project, or move an older palette project to the current document families. Asks what the project is, where each document family should live, and seeds the backlog. Use when the user asks to start palette, accepts the offer to set it up, or has a `_palette/` folder without `layout.rst`. Does not plan a phase.
- License 许可
- MIT
- 最近更新
- 2026-10-17
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- palette-init
- description
- Set up palette in a project, or move an older palette project to the current document families. Asks what the project is, where each document family should live, and seeds the backlog. Use when the user asks to start palette, accepts the offer to set it up, or has a `_palette/` folder without `layout.rst`. Does not plan a phase.
03 SKILL.md 正文
<!-- slate-agent-kit:common -->
palette-init
Sets palette up for a project: the layout of its document families, an empty state, and a backlog seeded from a short conversation. It writes no source code and plans no phase; the palette rule takes over once _palette/layout.rst exists.
Templates for every family are in this skill's templates/ folder and through the palette_template tool. templates/house-style.rst defines the RST subset every palette document uses.
When it runs
- The user invoked it or accepted the offer: set up a new project.
_palette/exists withlayout.rst: the project is already set up; say so, point at the backlog, and stop._palette/exists withoutlayout.rst: the project uses the earlier palette format; propose the move described under Moving an earlier palette project and wait for approval.
Intake
A few questions, only what changes what gets built: what the project is, who it is for, and what platform it targets; then, only if it is not clear, why it is worth building. Ask what the project is, not how to build it: do not ask about or decide stack, storage or architecture. A technical directive the user volunteers is written into the relevant backlog item verbatim. Push back on vague terms ("simple", "standard") by asking what they mean concretely.
Placement
Every family is used; the user decides where each lives. Propose a layout, then ask:
- work families (backlog, phase, deliverable, state): internal (
_palette/, the user's personal record, not committed); - records and maintained documents (rfc, adr, changeset, staging, design, spec, principles, glossary, contributing): the project's existing documentation folder when it has one (reuse its subfolders, numbering and conventions), else
docs/; internal if the user does not want them shared; - the project's own document checker, if it has one, as the layout's
checker. When older records carryingAmendsare moved in, the contributing document'sRecordssection states:Amends: until <date>; otherwise it saysnone.
Say that internal documents are git-ignored and never committed, and that documents under a project path are committed with the change they describe.
Create
With the palette server: palette_init with the chosen placements, then one palette_backlog_add per item. Without it: write _palette/.gitignore (*), _palette/layout.rst, _palette/backlog.rst and _palette/state.rst from the templates, and create the project folders the layout names.
Seed the backlog from the intake: each discussed feature, requirement or constraint becomes one proposed item. Durable product principles, three to seven at most and never invented to fill space, go into the principles document.
Report
List what was created and where each family lives, then stop: planning the first phase is the palette loop's next step, when the user is ready.
Moving an earlier palette project
An earlier palette project has phase briefs, stories/ with an index.rst, reviews.rst and a templates/ folder. Propose the move as a list and wait for approval; apply only what the user approves, after copying _palette/ to a backup outside the repository.
phase-brief.rstbecomesphase.rst(goal, reason, assumptions, exit criteria; its scope list becomes backlog items).- Each
story-<n>-<slug>.rstbecomesdeliverables/deliverable-<n>-<slug>.rst; its checkboxes become plainDone whenoutcomes. - The status in
stories/index.rstbecomes each item's backlog status; the index is removed. reviews.rst: unresolved items become proposed backlog items with the user's consent; the rest is removed.- Decisions recorded in a state or handoff document become state entries of one line each, pointing to the record they will be written into.
templates/is removed; the templates now ship with the kit.
04 同仓库更多 Skills
palette-ux
Pull-only palette helper. Writes the screens, navigation and flow sequence of the product as a design document. Use only when the user asks, or when a phase's screens and navigation need defining before its deliverables can be written.
palette-ui
Pull-only palette helper. Writes the product's visual language — colors, typography, spacing, components, screen composition — as a design document, with an optional HTML preview. Use only when the user asks, or when a phase needs a visual language before its deliverables can be written.
palette-state
Keep a palette project's work documents current while working — record a decision, an open question or a discrepancy the moment it happens; move backlog items through their statuses; open a phase and write its deliverables once the user approves them; close a phase. Use when a decision is made, a fact is verified, the user approves or changes a phase or deliverable, or a phase finishes.
palette-spec
Pull-only palette helper. Writes the project's technical contracts — data model, APIs, storage, platform constraints — as spec and design documents, and records the technical choices behind them as ADRs or RFCs. Use only when the user asks, or when a phase needs technical decisions settled before its deliverables can be written.
palette-rules
Pull-only palette helper. Writes the conventions every deliverable of the project follows — shared components, coding patterns, architecture boundaries, accessibility baseline — as a spec document. Use only when the user asks, or when a phase needs shared conventions before its deliverables can be written.
palette-resume
Pick up a palette project at the start of a session or when the user says to continue. Reads the state within its budget, checks the documents, reports where things stand and what is open, proposes the next step, and waits for the user's direction. Use whenever work resumes in a project that has `_palette/layout.rst`.