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.
- License 许可
- MIT
- 最近更新
- 2026-10-17
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- palette-record
- description
- 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.
03 SKILL.md 正文
<!-- slate-agent-kit:common -->
palette-record
Records why a decision was made and what it changes, in the project's RFC and ADR families, and keeps the maintained documents describing only what the source implements.
RFC or ADR
- An RFC records a consequential decision: module boundaries, public contracts, lifetime or concurrency invariants, project-wide policy.
- An ADR records a durable local choice inside boundaries an RFC or the existing design already set; its
Withinnames them. - A routine fix needs neither, unless it establishes a lasting choice.
Writing the record
With the palette server, palette_record_create allocates the number and writes the template; palette_template shows the fields and sections. Without it, copy the template from palette-init/templates/ and take the next free number of that family.
- Evidence goes into the record itself: the current code or document state when it exists, the basis in earlier records when nothing exists yet, and research findings, each with its source and date. Do not leave evidence in a separate file.
- Links point only to older records.
Dependslists the records whose contract this one uses directly, each with what it uses; do not list what those records depend on. Implementation,Verification,ImplementersandRevisedare written by the server's tools; set their initial values only when writing by hand.Implementationisin-progresswhile work is under way,partialwhen a part landed and nothing is under way,abandonedwhen it will not land,unassessedwhen an inherited claim has not been re-verified; onlycompleteis complete.Supersedesnames a whole record (RFC-0104 (<what is replaced>), its status becomesSuperseded) or a part (RFC-0104 (in part: <what is replaced>), its status stays; the tools takepartial: true).Amendsis a relation of older records that no new record writes; the contributing document'sRecordssection (:Amends: none | until <date>) bounds it.- No development stages, no task plan, no list of files to edit; the record explains the decision well enough to be understood without the conversation that produced it.
Graduate the state entry once the record exists (palette-state).
Changesets
Changes lists the documents a record changes: design/<topic>.rst or spec/<topic>.rst with their sections (or created), principles.rst, glossary.rst or contributing.rst with their sections, and any other project document by its path (AGENTS.md (<what changes>), .md or .rst only). Source files do not belong there.
When an accepted record changes documents that the source does not implement yet, its changeset holds the edits (palette_changeset_edit). A target is a design or spec document, principles.rst, glossary.rst or contributing.rst, or any other .rst under the document root (the folder that holds the staging folder) by its project-relative path; .md documents, records, indexes, staging and work documents are edited directly or not at all. An edit replaces a section (Replace:, which takes the section's subsections with it), replaces only its heading and body (Replace body:, which keeps the subsections), inserts after or into a section, deletes one, or creates a new design or spec document. The edit text reads as the maintained document will read, without record numbers. Staging, the maintained documents with every accepted changeset applied, is generated by the server.
When the implementation lands, palette_changeset_promote merges the implemented edits into the maintained documents and updates the record's Implementation, Implementers and Verification in the same step.
After acceptance
An accepted record's body is frozen. A mechanical correction (a broken link, a renamed file) is a clarification and gets a Revised entry; a change of contract is a new record that supersedes the old one.
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`.