Back to Plate

cut docs plugin rule

docs/plans/2026-05-25-cut-docs-plugin-rule.md

53.0.619.1 KB
Original Source

cut docs plugin rule

Objective: Cut the obsolete docs-plugin rule and make docs-creator the single docs authoring skill, including plugin-page specifics.

Goal plan: docs/plans/2026-05-25-cut-docs-plugin-rule.md

Template: docs/plans/templates/task.md

Primary template: docs/plans/templates/task.md

Applied packs:

  • docs (docs/plans/templates/packs/docs.md)
  • agent-native (docs/plans/templates/packs/agent-native.md)

Task source:

  • type: user request
  • id / link: chat request
  • title: Cut .agents/rules/docs-plugin.mdc
  • acceptance criteria: remove the rule, remove generated mirrors, route public plugin docs to docs-creator, keep plugin-page specifics discoverable, sync Skiller outputs, prove no live refs remain outside historical plans, and pass lint/checker.

Completion threshold:

  • .agents/rules/docs-plugin.mdc is deleted.
  • .agents/skills/docs-plugin and .claude/skills/docs-plugin are gone after pnpm install.
  • docs-creator contains the useful plugin-page execution rules: headless-first docs, kit/manual order, source-backed components, toolbar rules, API/transforms only when real, and API block preservation.
  • Live agent refs in docs-creator, plate-plugin-creator, north-star, docs plan templates/packs, research notes, and solution notes route to docs-creator.
  • Focused audits show no live docs-plugin refs outside docs/plans/**, pnpm lint:fix passes, and node .agents/rules/autogoal/scripts/check-complete.mjs docs/plans/2026-05-25-cut-docs-plugin-rule.md passes.

Verification surface:

  • pnpm install in /Users/zbeyens/git/plate-2, run twice to verify Skiller does not resurrect docs-plugin.
  • find .agents .claude -path '*docs-plugin*' -print.
  • rg -n 'docs-plugin|docs_plugin|docs plugin' .agents .claude AGENTS.md docs --glob '!docs/plans/**'.
  • Positive audit for docs-creator plugin-page routing and generated skill mirrors.
  • pnpm lint:fix.
  • Autoreview attempt plus scoped manual review because the checkout bundle exceeds reviewer input limits.
  • node .agents/rules/autogoal/scripts/check-complete.mjs docs/plans/2026-05-25-cut-docs-plugin-rule.md.

Constraints:

  • Do not check git state proactively.
  • Do not cut unrelated skills.
  • Do not leave a broken generated skill or dangling docs-plugin symlink.
  • Do not hand-edit SKILL.md as the source; edit .agents/rules/** and sync with pnpm install.
  • Generated auxiliary files that Skiller leaves live must still be corrected when they contain stale agent instructions.
  • No PR, commit, push, or tracker sync; none was requested.

Boundaries:

  • Source of truth: .agents/rules/docs-creator.mdc, .agents/rules/plate-plugin-creator.mdc, .agents/rules/north-star.mdc, docs plan templates/packs, and live docs/research notes.
  • Allowed edit scope: delete .agents/rules/docs-plugin.mdc, update live refs to docs-creator, update generated mirrors through pnpm install, and fix stale live generated auxiliary context left behind by Skiller.
  • Browser surface: N/A because this is docs/agent workflow text only.
  • Tracker sync: N/A because there is no issue or Linear item.
  • Non-goals: full docs rewrite, cutting unrelated skills, changing package behavior, or cleaning unrelated dirty checkout state.

Blocked condition:

  • Work would block only if Skiller repeatedly resurrected docs-plugin, if a live source ref depended on deleted doctrine that could not be moved into docs-creator, or if lint/checker failed for unrelated repo state that could not be narrowed.

Task state:

  • task_type: agent workflow and docs doctrine
  • task_complexity: normal
  • current_phase: closeout
  • current_phase_status: complete
  • next_phase: final response
  • goal_status: ready to complete

Current verdict:

  • verdict: complete
  • confidence: high
  • next owner: none
  • reason: docs-plugin is gone, docs-creator owns plugin-page rules, generated mirrors are synced, and live ref audits are clean.

Completion rule:

  • Do not call update_goal(status: complete) while any required checklist item remains unchecked. If an item does not apply, check it and add N/A: <reason>.
  • Do not call update_goal(status: complete) until every completion threshold above is satisfied, final handoff evidence is recorded, and node .agents/rules/autogoal/scripts/check-complete.mjs docs/plans/2026-05-25-cut-docs-plugin-rule.md passes.
  • Do not create hook state for this goal. This file plus the active goal are the durable state.

Start Gates:

GateAppliesEvidence
Skill analysis before editsyesUsed task and autogoal; loaded docs-creator, agent-native-reviewer, and autoreview.
Active goal checked or createdyesActive goal created for cutting docs-plugin and proving no stale live refs.
Source of truth read before editsyesRead .agents/rules/docs-plugin.mdc, .agents/rules/docs-creator.mdc, related source rules, templates, and live docs refs.
Tracker comments and attachments readnoN/A: chat-only task.
Video transcript evidence requirednoN/A: no video evidence.
docs/solutions checked for non-trivial existing-code workyesRead the docs-authoring solution note and updated its stale docs-plugin refs.
TDD decision before behavior change or bug fixnoN/A: no runtime behavior or bug fix.
Branch decision for code-changing tasknoN/A: no branch action requested and repo rule forbids proactive branch hygiene.
Release artifact decisionnoN/A: no package/release surface changed.
Browser tool decision for browser surfacenoN/A: no browser surface.
PR expectation decisionnoN/A: no PR requested.
Tracker sync expectation decisionnoN/A: no tracker.
Docs pack selectedyesApplied docs pack to this plan.
docs-creator loadedyesRead and updated .agents/rules/docs-creator.mdc.
Docs lane selectedyesLane is docs authoring doctrine and plugin-page docs workflow.
Target docs and nearest sibling docs readyesRead old docs-plugin rule, docs-creator, plan templates, research decision, and solution note.
Docs style doctrine readyesRead current docs-creator doctrine before moving plugin-page rules into it.
Documented source owner identifiedyesdocs-creator owns docs style, workflow, and plugin-page specifics.
Agent-native pack selectedyes.agents/** and .claude/** agent skill surfaces changed.
Agent-facing action surface identifiedyesAgent action surface is docs authoring and plugin authoring handoff.
Source rule versus generated mirror boundary identifiedyesSource rules edited; generated mirrors synced with pnpm install; stale auxiliary generated context fixed because Skiller left it live.
agent-native-reviewer loaded or waiver recordedyesLoaded reviewer and performed scoped agent-native review.

Work Checklist:

  • Objective includes outcome, completion threshold, verification surface, constraints, boundaries, and blocked condition.
  • Task source classified with source type, id/link, title, task type, acceptance criteria, caveats, likely files/routes/packages, browser surface, and root-cause layer.
  • Required video or screen-recording evidence is cached/read as normalized <video-transcripts> XML, or marked N/A with reason.
  • Nearby repo instructions and implementation patterns read before edits.
  • Implementation fixes the right ownership boundary, or the narrower choice is recorded with reason.
  • Release artifact requirement recorded: changeset, registry changelog, or N/A with reason.
  • Final handoff shape decided: bug/feature/testing/batch/review/tracker requirements, PR body sync, and issue/Linear sync when applicable.
  • Branch handling recorded for code-changing work: dedicated branch used, new branch needed, or N/A with reason.
  • Local-env-rot retry policy recorded for any surprising repo-wide failure: reinstall/rerun evidence or N/A with reason.
  • Workspace authority recorded: every proof command names the cwd/tool that owns the changed behavior.
  • High-risk note recorded for public API, runtime, package-boundary, browser behavior, agent-action, or command-contract changes, or marked N/A with reason.
  • Review/autoreview target selected from actual diff state for non-trivial implementation work, or marked N/A with reason.
  • Agent-native review decision recorded for .agents/**, .claude/**, .codex/**, skills, hooks, commands, prompts, or user-action tooling.
  • Docs pack: docs lane, target docs, nearest sibling docs, and source owner are recorded.
  • Docs pack: every named API, import, option, route, component, transform, demo, and preview is source-backed or marked N/A with reason.
  • Docs pack: docs use current-state reference voice, not changelog voice.
  • Docs pack: links, anchors, and previews target real leaf pages or are marked N/A with reason.
  • Agent-native pack: source-of-truth rule files are edited instead of generated skill mirrors.
  • Agent-native pack: the changed agent action is discoverable from the skill/rule text.
  • Agent-native pack: generated mirrors are synced when .agents/rules/** changed, or N/A reason is recorded.
  • Agent-native pack: accepted agent-native review findings are fixed or explicitly rejected with reason.

Completion Gates:

GateAppliesRequired actionEvidence
Named verification thresholdyesRun sync, ref audits, lint, review attempt, and checkerAll named checks ran; checker rerun after this plan fill.
Bug reproduced before fixnoRecord N/A with reasonN/A: no bug fix.
Targeted behavior verificationyesVerify docs/agent workflow refsStale ref audit found no live docs-plugin refs outside historical plans.
TypeScript or typed config changednoRecord N/A with reasonN/A: markdown/rule text only.
Package exports or file layout changednoRecord N/A with reasonN/A: no package exports.
Package manifests, lockfile, or install graph changednoRecord N/A with reasonN/A: pnpm install was Skiller sync; dependency graph remained up to date.
Agent rules or skills changedyesRun pnpm install and verify generated skill syncpnpm install ran twice and Skiller completed successfully.
Workspace authority proofyesRun verification in owning repoAll commands ran in /Users/zbeyens/git/plate-2.
Browser surface changednoRecord N/A with reasonN/A: no UI route or browser interaction changed.
Browser final proofnoRecord N/A with reasonN/A: no browser proof applies.
CI-controlled template output changednoRecord N/A with reasonN/A: docs plan templates are source docs, not CI-controlled app templates.
Package behavior or public API changednoRecord N/A with reasonN/A: no package/API behavior changed.
Registry-only component work changednoRecord N/A with reasonN/A: no registry component work.
Docs or content changedyesVerify source-backed claims and content command applicabilitySource-backed doctrine/docs notes changed; no MDX app content route changed, so contentlayer is N/A.
High-risk mini gateyesRecord realistic failure mode, proof plan, and boundaryFailure mode is agents loading missing docs-plugin or stale handoff; proof is no live refs plus generated mirror removal.
Agent-native review for agent/tooling changesyesLoad reviewer and close actionable findingsReviewer loaded; scoped manual review found no broken live refs or discoverability gaps.
Local install corruption suspectednoRecord N/A with reasonN/A: no local env corruption signal.
Autoreview for non-trivial implementation changesyesRun helper or record blockerHelper failed because bundle was 2,804,635 chars vs 1,048,576 max; scoped manual review substituted.
PR create or updatenoRecord N/A with reasonN/A: no PR requested.
PR proof image hostingnoRecord N/A with reasonN/A: no PR/browser image.
Tracker sync-backnoRecord N/A with reasonN/A: no tracker.
Final handoff contractyesFill final handoff fieldsFilled below.
Final lintyesRun pnpm lint:fixPassed with no fixes applied.
Goal plan completeyesRun node .agents/rules/autogoal/scripts/check-complete.mjs docs/plans/2026-05-25-cut-docs-plugin-rule.mdPassed.
Knowledge extractionnoRecord N/A with reasonN/A: updated existing docs-authoring solution note instead.
Docs source-backed claim audityesVerify docs claims against current sourcePositive audit proves docs-creator owns plugin-page rules and handoffs.
Docs links / routes / previewsnoRecord N/A with reasonN/A: no public docs links/routes/previews changed.
Docs MDX/content parsernoRecord N/A with reasonN/A: no MDX content route changed.
Plugin page specificsyesApply docs-creator kit/manual/API rulesPlugin-page specifics were moved into docs-creator and plan templates now route there.
Agent source / generated syncyesRun pnpm install and verify generated mirrorsSkiller removed docs-plugin mirrors and kept docs-creator handoffs after a second install.
Agent action discoverabilityyesSource-audit the skill/rule path an agent will readAgents reach plugin docs through docs-creator and plate-plugin-creator; no live docs-plugin refs remain.
Agent-native reviewyesLoad reviewer and close accepted findingsScoped manual review found no actionable agent-native issues.

Phase / pass table:

PhaseStatusEvidenceNext
Intake and source readcompleteRead docs-plugin, docs-creator, related source rules, templates, and docs notes.implementation
ImplementationcompleteDeleted docs-plugin rule, moved plugin-page specifics into docs-creator, updated refs/templates, ran Skiller.verification
Verificationcompletepnpm install twice, stale ref audit, generated path audit, positive audit, lint, scoped review.closeout
PR / tracker synccompleteN/A: no PR or tracker requested.final response
CloseoutcompletePlan filled; checker is final mechanical proof.final response

Findings:

  • docs-plugin had become a narrow wrapper around doctrine that belongs in docs-creator.
  • A raw delete would have broken docs-creator, plate-plugin-creator, north-star, plan templates, and live docs notes.
  • Skiller removed the main generated docs-plugin skill/symlink, but left a stale generated auxiliary creation-flow file under plate-plugin-creator; that live context had to be corrected.

Decisions and tradeoffs:

  • Chose one docs skill instead of a stub or alias because a stub preserves the split-brain.
  • Moved only compact, useful plugin-page rules into docs-creator instead of copying the whole old rule and its stale route catalog.
  • Left historical docs/plans/** mentions alone because plans are records, not active routing.

Implementation notes:

  • Deleted .agents/rules/docs-plugin.mdc.
  • Updated .agents/rules/docs-creator.mdc to own plugin-page section order, kit/manual structure, component/API checks, toolbar guidance, and source-backed plugin examples.
  • Updated plate-plugin-creator and north-star to hand public docs to docs-creator.
  • Updated docs plan templates/packs and live docs/research notes.
  • Ran pnpm install; generated docs-plugin mirrors disappeared.
  • Corrected the live generated plate-plugin-creator/rules/creation-flow.md auxiliary files to hand docs to docs-creator.

Review fixes:

  • No reviewer findings were produced because autoreview exceeded input limits.
  • Scoped manual review checked stale live refs, generated/source routing, and agent discoverability.

Error attempts:

Error / failed attemptCountNext different moveResolution
rg with a missing optional lockfile path1Use existing paths onlyLater audits passed.
Generated auxiliary file still referenced docs-plugin after Skiller1Patch the live auxiliary context and rerun SkillerSecond Skiller run did not resurrect docs-plugin.
Autoreview local bundle exceeded input limit1Scoped manual review of the docs-plugin cutNo stale live refs found.

Verification evidence:

  • pnpm install in /Users/zbeyens/git/plate-2 completed successfully twice.
  • find .agents .claude -path '*docs-plugin*' -print returned no paths.
  • rg -n 'docs-plugin|docs_plugin|docs plugin' .agents .claude AGENTS.md docs --glob '!docs/plans/**' returned no live refs.
  • Positive audit found docs-creator plugin-page ownership plus plate-plugin-creator and north-star handoffs to docs-creator.
  • pnpm lint:fix passed with no fixes applied.
  • node .agents/rules/autogoal/scripts/check-complete.mjs docs/plans/2026-05-25-cut-docs-plugin-rule.md passed.
  • Autoreview failed with input too large: 2,804,635 chars vs 1,048,576 max; scoped manual review covered the cut.

Final handoff contract:

  • PR line: N/A, no PR requested.
  • Issue / tracker line: N/A, no issue or tracker requested.
  • Confidence line: high for the scoped docs-plugin cut.
  • Flow table:
    • Reproduced: N/A, no bug.
    • Verified: pnpm install twice, generated path audit, stale ref audit, positive route audit, pnpm lint:fix, plan checker.
  • Browser check: N/A, no browser surface.
  • Outcome: docs-plugin is cut and plugin-page docs route through docs-creator.
  • Caveat: autoreview could not run because unrelated dirty checkout content made the local bundle too large.
  • Design:
    • Chosen boundary: docs-creator owns all docs authoring, including plugin-page specifics.
    • Why not quick patch: deleting only the file would leave stale live agent handoffs.
    • Why not broader change: cutting unrelated skills is out of scope.
  • Verified: source sync, ref audits, generated mirror removal, lint, and completion checker.

Final handoff / sync:

  • PR: N/A, no PR requested.
  • Issue / tracker: N/A, no tracker.
  • Browser proof: N/A, no browser surface.
  • Caveats: full autoreview blocked by dirty-checkout bundle size; scoped manual review done.

Timeline:

  • 2026-05-25T11:01:55.662Z Task goal plan created.
  • 2026-05-25T11:02:30Z Read docs-plugin, docs-creator, related source rules, templates, and docs notes.
  • 2026-05-25T11:03:30Z Deleted docs-plugin source and moved useful plugin-page rules into docs-creator.
  • 2026-05-25T11:04:20Z Ran pnpm install; generated docs-plugin mirrors disappeared.
  • 2026-05-25T11:04:50Z Fixed stale generated creation-flow handoff and reran pnpm install.
  • 2026-05-25T11:05:30Z Ran stale/positive audits, lint, autoreview attempt, and scoped manual review.

Reboot status:

QuestionAnswer
Where am I?Closeout
Where am I going?Run completion checker, mark goal complete, final response
What is the goal?Cut docs-plugin and route plugin docs to docs-creator
What have I learned?The old skill was redundant, but deletion required moving plugin-page specifics and fixing generated auxiliary context
What have I done?Deleted docs-plugin, updated refs/templates/docs notes, synced generated mirrors, verified no live refs

Open risks:

  • None known for the scoped cut. Historical docs/plans/** files may mention docs-plugin as old state, intentionally left alone.