docs/plans/2026-05-25-docs-creator-goal-template-migration.md
Objective:
Migrate Plate docs workflow so non-trivial docs work uses a dedicated docs goal
template. The durable outcome is a reusable docs/plans/templates/docs.md,
source rules that route docs work through it, generated skill mirrors refreshed
from source, and verification proving agents can create and check the template.
Goal plan: docs/plans/2026-05-25-docs-creator-goal-template-migration.md
Template: docs/plans/templates/task.md
Task source:
pnpm install,
and verify the workflow.Completion threshold:
docs/plans/templates/docs.md exists and contains concrete docs lifecycle,
start gates, checklist, completion gates, docs lane fields, and closeout
evidence fields..agents/rules/docs-creator.mdc creates docs goals with
node .agents/rules/autogoal/scripts/create-goal-scratchpad.mjs --template docs --title "<short docs title>"
for non-trivial docs work and explicitly exempts tiny copy/link edits..agents/rules/docs-plugin.mdc delegates goal lifecycle to docs-creator and
keeps only plugin-page-specific checks..agents/rules/task.mdc tells agents to choose --template docs for
docs-heavy work and the normal task template for other normal work..agents/skills/**/SKILL.md mirrors are refreshed with
pnpm install.Verification surface:
pnpm install in /Users/zbeyens/git/plate-2 after .agents/rules/**
edits to refresh generated skills.node .agents/rules/autogoal/scripts/create-goal-scratchpad.mjs --template docs --title "smoke docs template" --path docs/plans/2026-05-25-smoke-docs-template.md.node .agents/rules/autogoal/scripts/check-complete.mjs docs/plans/2026-05-25-smoke-docs-template.md
and confirm it rejects the unfilled plan.rg audits across source rules, generated
skills, and templates.node --check for autogoal helper scripts.pnpm lint:fix.node .agents/rules/autogoal/scripts/check-complete.mjs docs/plans/2026-05-25-docs-creator-goal-template-migration.md.Constraints:
.agents/skills/**/SKILL.md directly; edit source
.agents/rules/** and run pnpm install.Boundaries:
.agents/rules/docs-creator.mdc,
.agents/rules/docs-plugin.mdc, .agents/rules/task.mdc,
docs/plans/templates/task.md, and the new docs goal template.docs/plans/templates/docs.md,
docs/plans/templates/task.md, generated skill mirrors refreshed by
pnpm install, and this goal plan.Blocked condition:
Blocked only if pnpm install, the autogoal smoke command, lint, or the final
goal checker cannot run in this checkout after one concrete retry path. No such
blocker remains.
Task state:
Current verdict:
Completion rule:
Start Gates:
| Gate | Applies | Evidence |
|---|---|---|
| Skill analysis before edits | Yes | Loaded autogoal, docs-creator, docs-plugin, autoreview, and agent-native-reviewer instructions. |
| Active goal checked or created | Yes | Active goal created for docs-creator goal-template migration. |
| Source of truth read before edits | Yes | Read docs-creator, docs-plugin, task rules, task template, and existing generated mirrors before editing. |
| Tracker comments and attachments read | No | No issue, PR, Linear task, or attachment was provided. |
| Video transcript evidence required | No | No video or screen recording was provided. |
docs/solutions checked for non-trivial existing-code work | No | Agent workflow/template migration; no product code behavior was changed. |
| TDD decision before behavior change or bug fix | No | No runtime behavior bug or package logic changed. |
| Branch decision for code-changing task | Yes | No branch/PR action because the user did not ask for PR or commit. |
| Release artifact decision | Yes | N/A: no package behavior, exports, or public API changed. |
| Browser tool decision for browser surface | Yes | N/A: no browser surface changed. |
| PR expectation decision | Yes | N/A: no PR requested. |
| Tracker sync expectation decision | Yes | N/A: no tracker source exists. |
Work Checklist:
<video-transcripts> XML, or marked N/A with reason./Users/zbeyens/git/plate-2..agents/** workflow changes.Completion Gates:
| Gate | Applies | Required action | Evidence |
|---|---|---|---|
| Named verification threshold | Yes | Run the proof commands named above. | pnpm install, docs smoke create/reject, focused rg, node --check, pnpm lint:fix, scoped review, and final checker are recorded here. |
| Bug reproduced before fix | No | Record N/A. | N/A: workflow migration, not a reported runtime bug. |
| Targeted behavior verification | Yes | Prove the docs template can be created and checked. | Smoke docs plan generated; unfilled smoke plan rejected by check-complete as expected. |
| TypeScript or typed config changed | No | Record N/A. | N/A: markdown/rule text only. |
| Package exports or file layout changed | No | Record N/A. | N/A: no package exports or moved public files. |
| Package manifests, lockfile, or install graph changed | No | Record N/A. | N/A: pnpm install was used for Skiller sync, not dependency graph changes. |
| Agent rules or skills changed | Yes | Run pnpm install and verify generated skill sync. | pnpm install completed after source-rule edits and regenerated docs-creator, docs-plugin, and task skill mirrors. |
| Workspace authority proof | Yes | Run verification in owning checkout. | All commands ran with cwd /Users/zbeyens/git/plate-2. |
| Browser surface changed | No | Record N/A. | N/A: no app route, UI, or browser-visible docs page changed. |
| Browser final proof | No | Record N/A. | N/A: markdown templates and agent rules only. |
| CI-controlled template output changed | No | Record N/A. | N/A: no templates/** registry output changed. |
| Package behavior or public API changed | No | Record N/A. | N/A: no changeset needed. |
| Registry-only component work changed | No | Record N/A. | N/A: no registry component work. |
| Docs or content changed | Yes | Use docs workflow evidence and source-backed audits. | Added docs goal template and updated docs workflow rules; smoke and rg audits prove routing. |
| High-risk mini gate | Yes | Record failure mode, proof plan, and boundary. | Failure mode: agents keep using task template for docs work or docs-plugin owns lifecycle. Proof: source/generated rg for --template docs, docs-plugin delegation, and task success criteria. Boundary: docs-creator owns shared docs doctrine. |
| Agent-native review for agent/tooling changes | Yes | Load reviewer and close actionable issues. | Agent-native reviewer loaded; scoped manual review inspected touched rules, generated mirrors, and templates. |
| Local install corruption suspected | No | Record N/A. | N/A: no React/node_modules/env-rot failure shape. |
| Autoreview for non-trivial implementation changes | Yes | Run autoreview or record blocker with fallback. | Autoreview local mode failed before review because dirty checkout bundle was 2,640,551 chars over the 1,048,576 limit; scoped manual review found and fixed the stale task success criterion. |
| PR create or update | No | Record N/A. | N/A: no PR requested. |
| PR proof image hosting | No | Record N/A. | N/A: no PR or image proof. |
| Tracker sync-back | No | Record N/A. | N/A: no tracker item. |
| Final handoff contract | Yes | Fill handoff fields. | Fields below are complete. |
| Final lint | Yes | Run pnpm lint:fix. | pnpm lint:fix completed: checked 3419 files, no fixes applied. |
| Goal plan complete | Yes | Run node .agents/rules/autogoal/scripts/check-complete.mjs docs/plans/2026-05-25-docs-creator-goal-template-migration.md. | Final checker command recorded in verification evidence. |
| Knowledge extraction | No | Record N/A. | N/A: repo skill change is self-contained; memory already has docs-skill ownership precedent. |
Phase / pass table:
| Phase | Status | Evidence | Next |
|---|---|---|---|
| Intake and source read | complete | Read source rules, generated mirrors, templates, and relevant memory. | implementation |
| Implementation | complete | Added docs template and updated docs-creator, docs-plugin, task, and task template. | verification |
| Verification | complete | Ran install sync, smoke proof, focused audits, helper checks, lint, and scoped review. | closeout |
| PR / tracker sync | skipped | N/A: no PR or tracker requested. | final response |
| Closeout | complete | Final plan evidence prepared and checker run. | final response |
Findings:
docs-plugin is the wrong owner for shared docs lifecycle; it should remain a
plugin-page checklist layered under docs-creator.docs-creator needed a dedicated docs template because task template gates
are too generic for docs lanes, MDX/parser proof, source-backed claims, links,
previews, and plugin-page specifics.pnpm build:contentlayer wording was the wrong command shape for
this repo; the template now records pnpm --filter www build:contentlayer.--template task; it now says use the right goal template and calls out
--template docs for non-trivial docs work.Decisions and tradeoffs:
docs/plans/templates/docs.md.--template <name> mechanism
already supports this migration.Implementation notes:
docs/plans/templates/docs.md..agents/rules/docs-creator.mdc with docs goal creation, scope,
exemptions, and corrected contentlayer command..agents/rules/docs-plugin.mdc so plugin docs start through
docs-creator and --template docs..agents/rules/task.mdc so task intake chooses task or docs
template based on work type.docs/plans/templates/task.md with a docs/content completion gate.pnpm install to refresh generated skill mirrors.Review fixes:
--template task" to "used the
right goal template" and added an explicit docs-heavy success criterion.Error attempts:
| Error / failed attempt | Count | Next different move | Resolution |
|---|---|---|---|
Negative rg pattern was first run with shell-expanded backticks. | 1 | Rerun with single quotes. | Clean rerun had no output. |
| Autoreview local bundle exceeded model input limit because of unrelated dirty checkout size. | 1 | Inspect helper options, then do scoped manual review of touched files. | Manual review found and fixed one stale criterion. |
Verification evidence:
pnpm install completed after source-rule edits and synced generated skills.--template docs.check-complete and rejected as incomplete,
proving docs-specific gates are active.rg found Docs lane:, Plugin page specifics,
pnpm --filter www build:contentlayer, and --template docs in source and
generated outputs.rg found no stale pnpm build:contentlayer, no
planning-with-files, and no stale "use only --template task" routing.node --check .agents/rules/autogoal/scripts/create-goal-scratchpad.mjs
passed.node --check .agents/rules/autogoal/scripts/check-complete.mjs passed.pnpm lint:fix completed with "Checked 3419 files in 5s. No fixes applied."Final handoff contract:
Final handoff / sync:
Timeline:
pnpm install to refresh generated skills.Reboot status:
| Question | Answer |
|---|---|
| Where am I? | Closeout complete |
| Where am I going? | Final response |
| What is the goal? | Migrate docs-creator workflow to a dedicated docs goal template |
| What have I learned? | Docs-creator is the lifecycle owner; docs-plugin stays narrow |
| What have I done? | Added docs template, updated source rules, synced generated skills, verified routing |
Open risks: