docs/plans/2026-05-25-move-goal-rule-source.md
Objective:
Keep goal as a Skiller .mdc source, remove the attempted nested skill
source, regenerate .agents/skills/goal/SKILL.md, and verify no stale nested
source references remain.
Goal plan: docs/plans/2026-05-25-move-goal-rule-source.md
Template: docs/plans/templates/task.md
Task source:
goal.mdc and generated skill references.agents/rules/goal.mdc exists..agents/skills/goal/SKILL.md is generated by pnpm install.Completion threshold:
.agents/rules/goal.mdc..agents/rules/goal.mdc.pnpm install completes without the Skiller unmanaged-goal warning.node .agents/rules/goal/scripts/check-complete.mjs docs/plans/2026-05-25-move-goal-rule-source.md passes.Verification surface:
pnpm install.rg stale-path audit.Constraints:
.agents/rules/*.mdc source model..agents/skills/*/SKILL.md except through sync.Boundaries:
.agents/rules/goal.mdc, generated
.agents/skills/goal/SKILL.md, generated AGENTS.md/CLAUDE.md sync,
package.json restoration, removal of the temporary sync script, and this
plan.Blocked condition:
pnpm install cannot regenerate Skiller output from
.agents/rules/goal.mdc.Task state:
Current verdict:
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/rules/goal/scripts/check-complete.mjs docs/plans/2026-05-25-move-goal-rule-source.md passes.Start Gates:
| Gate | Applies | Evidence |
|---|---|---|
| Skill analysis before edits | yes | Used goal because repo rules require goal for measurable durable work; inspected Skiller behavior from local package. |
| Active goal checked or created | yes | Active goal was created before the user corrected the direction; this plan records the corrected target. |
| Source of truth read before edits | yes | Read user correction: restore goal.mdc, no nested SKILL.md, references through generated goal skill. |
| Tracker comments and attachments read | no | N/A: no tracker. |
| Video transcript evidence required | no | N/A: no video. |
docs/solutions checked for non-trivial existing-code work | no | N/A: small agent-source cleanup, no product-code behavior. |
| TDD decision before behavior change or bug fix | no | N/A: no runtime behavior change. |
| Branch decision for code-changing task | no | N/A: user did not request branch/PR. |
| Release artifact decision | no | N/A: no package release change. |
| Browser tool decision for browser surface | no | N/A: no browser surface. |
| PR expectation decision | no | N/A: no PR requested. |
| Tracker sync expectation decision | no | N/A: no tracker. |
Work Checklist:
<video-transcripts> XML, or marked N/A with reason./Users/zbeyens/git/plate-2.pnpm install proved the restored .mdc path removes the warning..agents/skills/agent-native-reviewer/SKILL.md; no UI/tool parity issue
applies because this only changes agent instructions/source sync.Completion Gates:
| Gate | Applies | Required action | Evidence |
|---|---|---|---|
| Named verification threshold | yes | Run path checks, pnpm install, stale-path audit, completion check | Path checks and pnpm install passed; completion check recorded below. |
| Bug reproduced before fix | no | Record failing test/repro or N/A with reason | N/A: user corrected a source-layout choice. |
| Targeted behavior verification | yes | Verify generated skill source metadata and stale refs | sed confirmed metadata source .agents/rules/goal.mdc; rg found no nested-source refs. |
| TypeScript or typed config changed | no | Run relevant typecheck | N/A: no TS/config behavior. |
| Package exports or file layout changed | no | Run pnpm brl before final verification | N/A: no package exports/barrels. |
| Package manifests, lockfile, or install graph changed | yes | Run pnpm install | pnpm install passed after restoring package prepare. |
| Agent rules or skills changed | yes | Run pnpm install and verify generated skill sync | pnpm install regenerated .agents/skills/goal/SKILL.md. |
| Workspace authority proof | yes | Run verification in owning repo | All commands ran in /Users/zbeyens/git/plate-2. |
| Browser surface changed | no | Capture browser proof or record waiver | N/A. |
| Browser final proof | no | Attach screenshot or caveat | N/A. |
| CI-controlled template output changed | no | Restore generated template output or record why kept | N/A. |
| Package behavior or public API changed | no | Add changeset or record why none | N/A. |
| Registry-only component work changed | no | Update docs components changelog or record N/A | N/A. |
| High-risk mini gate | yes | Record failure mode, proof plan, chosen boundary | Failure mode was Skiller not owning nested rule source; restored .mdc boundary and proved pnpm install clean. |
| Agent-native review for agent/tooling changes | yes | Load reviewer and close findings or record N/A | Loaded reviewer; no action parity gap applies to instruction-source cleanup. |
| Local install corruption suspected | no | Run reinstall or N/A | N/A. |
| Autoreview for non-trivial implementation changes | no | Run autoreview or N/A | N/A: trivial cleanup of abandoned approach. |
| PR create or update | no | Run check before PR work | N/A: no PR requested. |
| PR proof image hosting | no | Host proof images or N/A | N/A. |
| Tracker sync-back | no | Post issue/Linear sync or N/A | N/A. |
| Final handoff contract | yes | Fill final handoff fields | Filled below. |
| Final lint | no | Run pnpm lint:fix or scoped equivalent | N/A: markdown/generated instruction cleanup; pnpm install is the relevant sync gate. |
| Goal plan complete | yes | Run node .agents/rules/goal/scripts/check-complete.mjs docs/plans/2026-05-25-move-goal-rule-source.md | Pending final run. |
| Knowledge extraction | no | Evaluate ce-compound | N/A: no reusable new pattern beyond correcting local source layout. |
Phase / pass table:
| Phase | Status | Evidence | Next |
|---|---|---|---|
| Intake and source read | complete | User correction read; Skiller source model inspected. | implementation |
| Implementation | complete | Restored .agents/rules/goal.mdc; removed nested SKILL.md source and temporary sync script. | verification |
| Verification | complete | pnpm install, path checks, generated skill inspection, stale-path audit. | closeout |
| PR / tracker sync | complete | N/A: no PR/tracker requested. | final response |
| Closeout | complete | Plan completion check pending final command. | final response |
Findings:
.agents/rules/*.mdc; the
nested skill-source path caused bad ownership behavior.Decisions and tradeoffs:
.agents/rules/goal.mdc as source
provenance; not rewriting old records.Implementation notes:
.agents/rules/goal.mdc.package.json prepare to bun x skiller@latest apply..agents/skills/goal/SKILL.md with pnpm install.Review fixes:
Error attempts:
| Error / failed attempt | Count | Next different move | Resolution |
|---|---|---|---|
| Nested goal skill source not recognized by Skiller ownership | 1 | Restore .mdc source | Restored goal.mdc; pnpm install clean. |
Verification evidence:
pnpm install: passed; Skiller apply completed successfully without
unmanaged-goal warning..agents/rules/goal.mdc and
.agents/skills/goal/SKILL.md exist.sed -n '1,18p' .agents/skills/goal/SKILL.md: confirmed
metadata.skiller.source: .agents/rules/goal.mdc..agents docs package.json AGENTS.md CLAUDE.md .codex: no abandoned nested source path or temporary sync-script references.Final handoff contract:
goal.mdc source restored; generated skill present..agents/rules/goal.mdc because that
is correct provenance..agents/rules/*.mdc source.SKILL.md hand edits would be overwritten.pnpm install, path checks, stale-path audit, generated metadata.Final handoff / sync:
Timeline:
goal/SKILL.md approach tested and found bad:
Skiller emitted unmanaged-goal warning.goal.mdc, no nested
SKILL.md..agents/rules/goal.mdc, removed temporary
sync script, ran pnpm install, and verified generated goal skill.Reboot status:
| Question | Answer |
|---|---|
| Where am I? | Closeout |
| Where am I going? | Final response |
| What is the goal? | Restore canonical goal .mdc source and generated skill references |
| What have I learned? | Skiller local sources are .agents/rules/*.mdc; nested source was wrong |
| What have I done? | Restored source, regenerated skill, verified no stale nested source refs |
Open risks: