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.
- License 许可
- MIT
- 最近更新
- 2026-10-17
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- palette-state
- description
- 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.
03 SKILL.md 正文
<!-- slate-agent-kit:common -->
palette-state
Updates the backlog, phase, deliverable and state documents at the moment something changes, so that a session ending at any point leaves them true.
Use the palette server's write tools when they are available; each one changes every affected file or none and returns the diff. Without the server, edit by hand from the templates in palette-init/templates/ and keep the same rules.
When something changes
- A decision is made by the user:
palette_state_recordas a decision, one line, with its source and the record or document it will be written into. When that record exists,palette_state_resolveit as graduated. - A question blocks an active phase: record it as an open question, without choosing an answer; a proposal is marked with who proposed it and when. When the user answers, resolve it as answered (it becomes a decision).
- Two sources disagree (a document and the code, two documents): record a discrepancy with the kind of evidence and the date. Remove it when fixed.
- Item status changes:
palette_backlog_update. Status lives only in the backlog.
Phases and deliverables
- Opening a phase follows the user's approval of its goal and items (§ 5):
palette_phase_openwith goal, reason, assumptions and exit criteria. - A deliverable is written after the user approves its boundaries and outcomes:
palette_deliverable_create. ItsDone whenstates outcomes a person can check against the contract. After approval, changing it is a deviation that needs the user's approval. - Closing a phase, once its exit criteria hold: for each item,
donewith an outcome pointer (the RFC, ADR or changelog entry where the result is recorded) ordropped; new problems become proposed items with the user's consent; lessons that are rules become proposed rule text; a broken assumption becomes a discrepancy or an item. Thenpalette_phase_closemarks the phase closed; its files stay as the record of what was approved.
What never goes in
No development stages or progress narrative (what ran when, which model, which batch), no instructions to a later session, no checkboxes, no copy of a fact another document holds. When a sentence would only record history, leave it to version control.
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-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`.
palette-record
Write a decision into an RFC or ADR with its evidence, maintain its changeset of edits to the maintained documents, and promote those edits when the implementation lands. Use when a decision in the palette state is ready to be recorded, when an accepted record's contract is implemented, or when the user asks for an RFC or ADR.