docs/plans/2026-06-03-sync-plate-ui-skill.md
Objective: Create sync-plate-ui skill; done when source rule, generated skill, plan gates, and focused verification pass; plan docs/plans/2026-06-03-sync-plate-ui-skill.md.
Goal plan: docs/plans/2026-06-03-sync-plate-ui-skill.md
Template: docs/plans/templates/task.md
Primary template: docs/plans/templates/task.md
Applied packs:
Task source:
sync-plate-ui skill with autogoal-backed workflowsync-plate-ui rule and matching
goal template that let agents plan, review, and apply fork-aware Plate UI
component syncs into downstream repos such as ../potion; regenerate the
generated skill mirror; verify discoverability and agent-native parity.Completion threshold:
.agents/rules/sync-plate-ui.mdc exists and defines an
autogoal-backed, fork-aware downstream Plate UI sync workflow with status,
planning, review, dashboard, and apply modes.docs/plans/templates/sync-plate-ui.md exists and records
the recurring gates for that workflow..agents/skills/sync-plate-ui/SKILL.md exists after
pnpm install and contains the same discoverable command contract.check-complete.mjs pass or have explicit N/A evidence.node .agents/skills/autogoal/scripts/check-complete.mjs docs/plans/2026-06-03-sync-plate-ui-skill.md passes.Verification surface:
.agents/rules/sync-plate-ui.mdc,
.agents/skills/sync-plate-ui/SKILL.md,
docs/plans/templates/sync-plate-ui.md, and relevant command/package
routing.pnpm install in /Users/zbeyens/git/plate and post-sync
rg checks for the generated skill mirror.agent-native-reviewer pass against the new workflow; autoreview
pass for the local implementation diff.node .agents/skills/autogoal/scripts/check-complete.mjs docs/plans/2026-06-03-sync-plate-ui-skill.md.Constraints:
Boundaries:
.agents/rules/*.mdc and project templates under
docs/plans/templates/**; generated .agents/skills/**/SKILL.md is synced
output..agents/rules/sync-plate-ui.mdc,
docs/plans/templates/sync-plate-ui.md, generated skill mirrors produced by
pnpm install, and this goal plan.Output budget strategy:
sed/rg reads for rule/template/source layout. Cap generated
skill and search output. Avoid broad repo scans except file lists needed to
identify source-of-truth boundaries.Blocked condition:
pnpm install cannot regenerate skills after one concrete
repair attempt, if the repo lacks a source-owned skiller path for the new
skill, or if source/generator behavior contradicts the repo instruction not
to hand-edit generated SKILL.md files.Task state:
Current verdict:
.agents/AGENTS.md, .agents/skiller.toml, and prior repo memory.Completion rule:
update_goal(status: complete) while any required checklist item
remains unchecked. If an item does not apply, check it and add N/A: <reason>.update_goal(status: complete) until every completion threshold
above is satisfied, final handoff evidence is recorded, and
node .agents/skills/autogoal/scripts/check-complete.mjs docs/plans/2026-06-03-sync-plate-ui-skill.md passes.Start Gates:
| Gate | Applies | Evidence |
|---|---|---|
| Skill analysis before edits | yes | Loaded autogoal, task, skill-creator, sync-shadcn, and user-provided agent-native-reviewer contract before edits. |
| Active goal checked or created | yes | get_goal returned none; create_goal created active objective for this plan. |
| Source of truth read before edits | yes | Read .agents/AGENTS.md via prompt, .agents/skiller.toml, .agents/rules/sync-shadcn.mdc, and generated skill layout. |
| Tracker comments and attachments read | no | N/A: plain chat task, no tracker. |
| Video transcript evidence required | no | N/A: no video evidence. |
docs/solutions checked for non-trivial existing-code work | no | N/A: this is workflow/skill creation; relevant durable memory checked instead. |
| TDD decision before behavior change or bug fix | no | N/A: no runtime behavior or bug fix. |
| Branch decision for code-changing task | yes | Existing branch/checkouts left as-is per repo instruction; no proactive git state check. |
| Release artifact decision | yes | N/A: no package/public component release; no changeset or component changelog needed. |
| Browser tool decision for browser surface | no | N/A: no browser-visible route or UI changed. |
| PR expectation decision | no | N/A: user did not ask for PR/commit/push. |
| Tracker sync expectation decision | no | N/A: no tracker source. |
| Output budget strategy recorded | yes | See Output budget strategy above. |
| Agent-native pack selected | yes | Applied agent-native pack when creating this plan. |
| Agent-facing action surface identified | yes | New command-like skill surface: `sync-plate-ui status |
| Source rule versus generated mirror boundary identified | yes | Edit .agents/rules/sync-plate-ui.mdc; run pnpm install to generate .agents/skills/sync-plate-ui/SKILL.md. |
agent-native-reviewer loaded or waiver recorded | yes | User provided the full agent-native-reviewer contract in chat; final review will use that contract. |
Work Checklist:
.agents/AGENTS.md, .agents/skiller.toml,
.agents/rules/sync-shadcn.mdc, generated skill layout, and relevant
memory notes..agents/rules/sync-plate-ui.mdc plus reusable template
docs/plans/templates/sync-plate-ui.md; generated mirrors came from
pnpm install./Users/zbeyens/git/plate..agents/skills/autoreview/scripts/autoreview --mode local..agents/**
changed; completed with no remaining accepted findings.sed
and rg; no full registry tree or broad diff streamed..agents/rules/sync-plate-ui.mdc,
.agents/skills/sync-plate-ui/SKILL.md, .claude/skills, and AGENTS.md.pnpm install.Completion Gates:
| Gate | Applies | Required action | Evidence |
|---|---|---|---|
| Named verification threshold | yes | Run source audits, sync proof, reviewer, lint, and final plan check | pnpm install passed twice; rg source audit found rule, generated mirrors, template, and AGENTS routing; pnpm lint:fix passed; autoreview findings accepted/fixed. |
| Bug reproduced before fix | no | Record failing test/repro or N/A with reason | N/A: feature/workflow creation, not bug fix. |
| Targeted behavior verification | yes | Run focused proof for changed behavior | Source audit proved sync-plate-ui command text, state model, three-way classification, dashboard/apply payloads, and Potion example exist in rule and generated mirrors. |
| TypeScript or typed config changed | no | Run relevant typecheck | N/A: Markdown/rule/template changes only. |
| Package exports or file layout changed | no | Run pnpm brl before final verification and keep generated barrel updates | N/A: no package exports or package file layout changed. |
| Package manifests, lockfile, or install graph changed | yes | Run pnpm install and relevant package checks | pnpm install completed successfully; lockfile was already up to date; skiller applied rules. |
| Agent rules or skills changed | yes | Run pnpm install and verify generated skill sync | pnpm install generated .agents/skills/sync-plate-ui/SKILL.md and .claude/skills/sync-plate-ui/SKILL.md; rg verified source metadata. |
| Workspace authority proof | yes | Run verification in owning repo/package/app/route/tool | All commands ran in /Users/zbeyens/git/plate, the owning repo for .agents/** and templates. |
| Browser surface changed | no | Capture Browser Use proof or record explicit waiver/blocker | N/A: no browser route or UI surface changed. |
| Browser final proof | no | Attach screenshot or exact browser verification caveat when browser proof applies | N/A: no browser surface. |
| CI-controlled template output changed | no | Restore generated template output or record why intentionally kept | N/A: no templates/** output changed. |
| Package behavior or public API changed | no | Add a changeset or record why no changeset applies | N/A: no package behavior/API changed. |
| Registry-only component work changed | no | Update docs/components/changelog.mdx or record N/A | N/A: no registry component source changed. |
| Docs or content changed | no | Verify source-backed claims or record N/A | N/A: goal plan/template are workflow artifacts, not docs content. |
| High-risk mini gate | yes | Record realistic failure mode, proof plan, and chosen boundary | Failure mode: generated skill missing or agents lack discoverability. Proof: source rule, generated .agents/.claude mirrors, AGENTS entry, reviewer. Boundary: source rule plus template, not downstream Potion mutation. |
| Agent-native review for agent/tooling changes | yes | Load reviewer and close accepted/actionable findings | Loaded .agents/skills/agent-native-reviewer/SKILL.md; no remaining accepted findings after adding AGENTS discoverability and structured command/state contract. |
| Local install corruption suspected | no | Run pnpm run reinstall once, rerun exact failing command, or record N/A | N/A: no install-corruption signal. |
| Autoreview for non-trivial implementation changes | yes | Run autoreview until no accepted/actionable findings | Four autoreview runs found actionable workflow issues; all accepted and fixed. Final rerun exited clean with no accepted/actionable findings. |
| PR create or update | no | Run check before PR work and sync PR body | N/A: user did not ask for PR. |
| Task-style PR body verified | no | Verify PR body with gh pr view --json body | N/A: no PR created or updated. |
| PR proof image hosting | no | Replace local image paths with hosted URLs or record N/A | N/A: no PR/browser proof image. |
| Tracker sync-back | no | Post concise issue/Linear sync after PR exists, or record N/A/blocker | N/A: no tracker. |
| Final handoff contract | yes | Fill final handoff fields below | Filled below with local files and verification. |
| Final lint | yes | Run pnpm lint:fix or scoped equivalent | pnpm lint:fix passed; no fixes applied. |
| Output budget discipline | yes | Verify no unbounded high-volume output was streamed | Focused reads/searches only; autoreview bundle output was bounded by helper. |
| Goal plan complete | yes | Run node .agents/skills/autogoal/scripts/check-complete.mjs docs/plans/2026-06-03-sync-plate-ui-skill.md | Passed after plan closure and evidence update. |
| Agent source / generated sync | yes | Run pnpm install when .agents/rules/** changed and verify generated mirrors | pnpm install completed after rule and AGENTS edits; .agents and .claude mirrors verified. |
| Agent action discoverability | yes | Source-audit the skill/rule path an agent will read | `rg -n "sync-plate-ui |
| Agent-native review | yes | Load reviewer and close accepted findings | PASS after source review: action parity, context parity, shared workspace, primitives/artifacts, and noun coverage present. |
Phase / pass table:
| Phase | Status | Evidence | Next |
|---|---|---|---|
| Intake and source read | complete | created plan; read relevant skills, source layout, memory, Potion evidence | implementation |
| Implementation | complete | added .agents/rules/sync-plate-ui.mdc, docs/plans/templates/sync-plate-ui.md, and AGENTS discoverability | verification |
| Verification | complete | pnpm install, source audits, pnpm lint:fix, autoreview findings fixed; final rerun/check recorded below | closeout |
| PR / tracker sync | complete | N/A: no PR/tracker requested | final response |
| Closeout | complete | plan rows closed; final response after mechanical gate | final response |
Findings:
src/registry/**, app wrappers,
pinned @platejs/* packages, and existing sync scripts that are not enough
for Plate UI inbound sync.sync:plate filters @udecode packages while Potion uses
@platejs/* and platejs; the new skill correctly treats target scripts as
evidence, not authority.pnpm install / skiller, not by
editing .agents/skills/**/SKILL.md directly.sync-plate-ui to .agents/AGENTS.md and regenerating root
AGENTS.md.Decisions and tradeoffs:
sync-plate-ui planning-first. Harsh reason: downstream product repos
contain mixed local forks; direct micro-merges during planning would train
agents to overwrite product code..plate-ui-sync/** state instead of Plate-owned
docs/sync/**; downstream repos need resumable local artifacts.Implementation notes:
.agents/rules/sync-plate-ui.mdc with command parsing, target state,
source inputs, target mapping, three-way classification, planning/dashboard/
apply/review/status modes, Potion example, and agent-native requirements.docs/plans/templates/sync-plate-ui.md with recurring gates for
downstream sync planning/apply runs.sync-plate-ui.pnpm install after source rule and AGENTS edits to regenerate
.agents/skills/sync-plate-ui/SKILL.md, .claude/skills/sync-plate-ui/SKILL.md,
and root AGENTS.md.Review fixes:
sync-plate-ui to .agents/AGENTS.md and regenerating.docs/plans/templates/sync-plate-ui.md.{{CREATED_AT}}.check-complete.mjs and recording
concrete evidence.Error attempts:
| Error / failed attempt | Count | Next different move | Resolution |
|---|---|---|---|
| Initial autoreview found actionable findings | 1 | Fix accepted template/plan issues, rerun review | Template Autoreview gate added; active plan closed with evidence. |
| Second autoreview found template placeholder and open phase rows | 1 | Fix placeholder and close phase table, rerun review | Template uses {{CREATED_AT}}; phase table is complete. |
| Third autoreview found bootstrap blocker contradiction | 1 | Align template blocked condition with skill bootstrap mode, rerun review | Unknown base now starts bootstrap planning; it blocks only apply mode without accepted baseline or unmappable evidence. |
| Fourth autoreview found stale final-gate wording | 1 | Run mechanical plan check, record result, rerun review | check-complete.mjs passed and stale future-work wording was removed. |
Verification evidence:
pnpm install in /Users/zbeyens/git/plate completed successfully and ran
bun x skiller@latest apply.rg -n "sync-plate-ui|source: .agents/rules/sync-plate-ui.mdc|template sync-plate-ui|\\.plate-ui-sync|Agent-Native Requirements" ...
verified source rule, generated .agents/.claude mirrors, AGENTS entry,
and template.pnpm lint:fix in /Users/zbeyens/git/plate passed; Biome checked 3239
files and applied no fixes..agents/skills/autoreview/scripts/autoreview --mode local first run found
two P2 findings, both accepted and fixed..agents/skills/autoreview/scripts/autoreview --mode local second run found
one P2 and one P3 finding, both accepted and fixed..agents/skills/autoreview/scripts/autoreview --mode local third run found
one P2 finding, accepted and fixed..agents/skills/autoreview/scripts/autoreview --mode local fourth run found
one P2 finding, accepted and fixed..agents/skills/autoreview/scripts/autoreview --mode local final rerun
exited clean with no accepted/actionable findings.node .agents/skills/autogoal/scripts/check-complete.mjs docs/plans/2026-06-03-sync-plate-ui-skill.md
passed after final clean autoreview in /Users/zbeyens/git/plate.Final handoff contract:
pnpm install, source audits, pnpm lint:fix, autoreview fixes,
final plan check.sync-plate-ui is a generated skill with source rule, template,
AGENTS discoverability, and fork-aware downstream sync contract..agents/rules/sync-plate-ui.mdc plus
docs/plans/templates/sync-plate-ui.md.SKILL.md files are mirrors and would drift.Task-style PR body contract:
<!-- auto-release:start --> block. If a changeset is
part of the diff and repo policy expects auto release, include that block.๐ Fixes #123 or ๐ Fixes โ N/A, then
an emoji confidence line like ๐ข 95-100% confidence.| Phase | ๐งช Tests | ๐ Browser |.Reproduced and Verified rows. Mark passing proof with ๐ข, repro or
failing proof with ๐ด, and non-applicable cells with โ N/A.**โ
Outcome**, **โ ๏ธ Caveat**,
**๐๏ธ Design**, and **๐งช Verified**.Summary / Verification PR body, an
adaptive prose body from a git helper skill, plain ## Outcome sections, or
an unrelated generated badge footer unless the caller or repo template
explicitly asks for it.gh pr view --json body output or a concise source-backed summary
of that output.Final handoff / sync:
Timeline:
pnpm install regenerated skills after source rule creation..agents/AGENTS.md.pnpm install regenerated skills and root AGENTS after
discoverability fix.pnpm lint:fix passed.check-complete.mjs passed for this plan.Reboot status:
| Question | Answer |
|---|---|
| Where am I? | Goal complete and ready for final response |
| Where am I going? | Final response |
| What is the goal? | Create sync-plate-ui skill with generated mirrors and verified agent-native workflow |
| What have I learned? | Source rule plus template is the right boundary; downstream direct mutation belongs to later accepted apply runs |
| What have I done? | Created rule/template, regenerated mirrors, added discoverability, fixed review findings |
Open risks: