1 nook-slides
This skill builds slide decks by filling approved templates. It is not a free-design slide generator.
The Agent may understand content, split pages, recommend page forms, choose approved components, fill schema fields, and run validation. The Agent must not choose coordinates, font sizes, colors, spacing, connectors, shadows, or ad-hoc layouts. Visual presentation belongs to maintained template packages and deterministic renderers.
1.1 Current Production Mode
Use this current mode before any older note, gallery, or process draft.
- Current visual systems are three Chinese systems only:
duotone-zine/ 双色独立刊物风.oriental-dark-yaji/ 东方暗调雅集风.bright-street-dance/ 明亮街舞贴纸风.
- The old English theme gallery is retired from production triggering. Do not present it as a current choice.
- Current executable contract is
assets/schemas/deck-plan-v1.schema.jsonplusscripts/plan_contract.py. - Current interaction contract is
references/interaction-contract.mdplusscripts/validate_interaction_state.py. - The top-level component contract is global and theme-independent. Every production visual system must implement the same 13 approved components with the same relative structural skeletons. A theme may change color, font choices, corner radius, line style, texture, image treatment, and decorative language; it must not add, remove, rename, or rearrange component slots.
- Theme component libraries for visual-system development must be generated from the
duotone-zinecomponent source by runningassets/templates/extract_duotone_component_skeleton.py, thenassets/templates/generate_theme_component_libraries.py. Do not hand-write the global skeleton or hand-draw a separate 13-page library for each theme. - Real editable PPTX rendering currently uses the deterministic
duotone-zinerenderer inscripts/build_deck.py. oriental-dark-yajiandbright-street-dancemay be used for schema planning and visual-system development only until their deterministic PPTX renderers are approved. If the user chooses one of them for final editable PPTX, stop and report the missing renderer.- A generated deck is a fill-in-the-blanks artifact: final locked copy + selected visual system + approved component/variant + named slots.
1.2 Startup Self-Check
Before doing deck work, answer these internally. If any answer is unknown, read the referenced files before proceeding.
- Visual systems: exactly three Chinese systems from
references/visual-systems.md. - Component contract: approved
zine.*components and variants fromassets/schemas/deck-plan-v1.schema.jsonandreferences/component-contract.md. - Rendering mode: schema-only, sample review, or editable PPTX.
- Renderer availability: editable PPTX is currently allowed only for
duotone-zine. - Agent authority: content planning and schema filling only; no visual layout authority.
- Interaction state: read
references/interaction-contract.md; create or updatenotes/interaction-state.json; validate it withscripts/validate_interaction_state.pybefore every gate transition. - Question policy: default to choices, ask at most three intake questions per round, and do not ask a long open-ended briefing form.
- Text lock: Gate 2 may micro-adjust visible copy for page-form fit; once Gate 2 is confirmed, visible text is locked for actual PPT production.
If a user asks for a one-shot final deck, still follow the gates unless they explicitly says to skip confirmation. If confirmation is skipped, write a prototype plan, mark plan_status: "prototype", and do not claim the copy is accepted.
1.3 Production Workflow
Follow this sequence for every deck.
- Read
references/workflow.mdandreferences/interaction-contract.md. - Collect source material, purpose, audience, target outcome, length, density, and available assets.
- Create a project folder for the deck with
brief.md,content/,assets/,data/,output/, andnotes/. - Create
notes/interaction-state.jsonfromassets/schemas/interaction-state-v1.schema.jsonshape. Keep it current throughout the run. - Gate 1: draft-lock content. Confirm slide count and a first complete visible-copy draft.
- Before leaving Gate 1, update
notes/interaction-state.jsonand runpython scripts/validate_interaction_state.py path/to/notes/interaction-state.json. - Gate 2: lock page form. First provide an agent-recommended default plan that can be accepted with one confirmation. If the user wants refinement, or says they are not satisfied and want to decide pages themselves, switch to choice-based decision cards. Ask at most four cards per round. Do not require row-by-row open-ended feedback. Page-form decisions may trigger local copy revisions.
- Before leaving Gate 2, save
content/accepted-copy.mdandcontent/visible-copy.json, setlocks.text_locked: trueandlocks.locked_after_gate: "gate2_page_forms"innotes/interaction-state.json, then validate it. - Gate 3: choose one of the three Chinese visual systems. Do not invent a style.
- Before leaving Gate 3, update and validate
notes/interaction-state.json; for editable PPTX, non-duotone themes must fail as blocked until their deterministic renderers are approved. - Gate 4: plan assets. Mark each screenshot, real image, chart, illustration, logo, and placeholder. Factual images such as software UI, product screenshots, real charts, logos, and evidence photos must use user-provided assets or approved placeholders. Decorative images such as covers, icons, abstract illustrations, and non-factual atmosphere images should be generated when the user has not provided better assets.
- Before leaving Gate 4, update and validate
notes/interaction-state.json. - Verify the Gate 2 text lock, update and validate
notes/interaction-state.json, then filldeck_plan.jsonusing only approved fields. - Run
python scripts/validate_plan.py path/to/deck_plan.json. - For editable PPTX with
duotone-zine, runpython scripts/build_deck.py --plan path/to/deck_plan.json --out path/to/deck.pptx. - Run
scripts/validate_deck.pyandscripts/diagnose_deck.pyafter PPTX generation. - Deliver local paths and a concise build note. Report any missing renderer/template as a blocking issue, not as a design choice.
1.4 Hard Prohibitions
- Do not use retired English themes as current production choices.
- Do not free-design a slide.
- Do not generate coordinates, CSS layout rules, DrawingML geometry, font sizes, colors, shadows, connector paths, or spacing during deck generation.
- Do not create temporary components because a page is hard to fit.
- Do not treat a new visual system as a new component taxonomy. New themes skin the global 13 components; they do not invent theme-only components.
- Do not edit visible text after Gate 2 is confirmed. Gate 2 may micro-adjust copy before confirmation; after
locks.text_locked=true, any text change reopens Gate 2 or Gate 1. - Do not trim arrays, shorten confirmed copy, normalize punctuation, or switch variants silently to pass validation.
- Do not put construction notes, component IDs, slot IDs, file paths, warnings, or build labels on slide canvas.
- Do not fake factual screenshots, product UI, charts, logos, or brand evidence with AI images.
- Do not leave decorative image slots empty when the deck needs visual weight; generate non-factual decorative assets or ask for a different asset strategy.
- Do not claim
oriental-dark-yajiorbright-street-danceeditable PPTX is production-ready before their deterministic renderers exist. - Do not make the user manage extra process review files just to approve gates; keep gate decisions in chat unless the artifact is part of the final build contract.
- Do not treat "continue", "继续", "可以", "好的", "差不多", or general encouragement as gate approval.
- Do not ask all intake questions at once. Ask at most three intake questions per round, prefer 2-4 choices, and use reasonable defaults when possible.
- Do not cross a gate without updating
notes/interaction-state.jsonand passingscripts/validate_interaction_state.py. - Do not infer confirmed workflow state from memory or chat if
notes/interaction-state.jsonis missing or contradicts the chat.
1.5 Reference Loading
Load only what the current step requires.
- Always read
references/workflow.mdfor deck work. - Always read
references/interaction-contract.mdfor deck work. - Read
references/constraint-architecture.mdbefore changing or explaining constraints, schemas, rendering authority, or failure modes. - Read
references/visual-systems.mdbefore discussing style choices. - Read
references/component-contract.mdbefore content/page-form confirmation or schema filling. - Read
references/template-driven-pptx.mdbefore any editable PPTX generation. - Read
references/duotone-zine-data-contract.mdandreferences/duotone-zine-component-registry.mdbefore creating aduotone-zineaccepted plan. - Read
references/validation-checklist.mdbefore final delivery.
1.6 Output Discipline
Use this folder shape for deck artifacts:
YYMMDD-deck-slug/
├── brief.md
├── content/
│ ├── source.md
│ ├── accepted-copy.md
│ └── visible-copy.json
├── assets/
│ └── assets_manifest.yml
├── data/
│ └── deck_plan.json
├── output/
│ ├── deck.pptx
│ ├── deck-component-map.json
│ └── deck-build-log.md
└── notes/
├── interaction-state.json
└── build-log.md
Accepted plans must include content_lock hashes from the final visible-copy lock. Prototype plans may omit them, but must not be presented as final accepted decks.