docs/plans/2026-06-02-rewrite-performance-skill.md
Objective:
Rewrite the performance skill into a docs-creator-shaped operational review contract and regenerate the generated skill copy.
Goal plan: docs/plans/2026-06-02-rewrite-performance-skill.md
Template: docs/plans/templates/docs.md
Docs source:
.agents/rules/performance.mdcDocs lane:
.agents/rules/performance.mdc, .agents/skills/performance/SKILL.md.agents/rules/performance.mdc.agents/rules/docs-creator.mdcCompletion threshold:
pnpm install.node .agents/skills/autogoal/scripts/check-complete.mjs docs/plans/2026-06-02-rewrite-performance-skill.md passes.Verification surface:
pnpm installsed -n '1,260p' .agents/skills/performance/SKILL.mdrg -n "Vercel React Rules Already Covered|Required Output|Plate Example: Huge Document 10k|previously|now supports|has been removed" .agents/rules/performance.mdc .agents/skills/performance/SKILL.mdnode .agents/skills/autogoal/scripts/check-complete.mjs docs/plans/2026-06-02-rewrite-performance-skill.mdConstraints:
pnpm install.performance/rules/* files.Boundaries:
.agents/rules/performance.mdc.Blocked condition:
pnpm install fails to regenerate the skill or the generated skill does not reflect .agents/rules/performance.mdc.Docs state:
Current verdict:
Start Gates:
| Gate | Applies | Evidence |
|---|---|---|
docs-creator loaded | yes | Read .agents/rules/docs-creator.mdc and used owner map / quick path / anti-slop rules. |
| Active goal checked or created | yes | Created this docs goal plan with create-goal-scratchpad.mjs. |
| Docs lane selected | yes | Classified as spec/law / behavior for an agent skill contract. |
| Target docs read | yes | Read .agents/rules/performance.mdc. |
| Nearest sibling docs read | yes | Read .agents/rules/docs-creator.mdc. |
| Docs style doctrine read | yes | Applied docs-creator structure and anti-slop rules. |
| Documented source code read | N/A | Skill text has no package code API surface. |
| Ownership map drafted | yes | Added ## Owner Map. |
| Plugin-page rules decision | N/A | Not a plugin page. |
| Browser/render proof decision | N/A | Agent skill text only. |
| PR/tracker expectation decision | yes | No tracker or PR action requested for this follow-up. |
Work Checklist:
docs-creator was read before writing.Completion Gates:
| Gate | Applies | Required action | Evidence |
|---|---|---|---|
| Named verification threshold | yes | Run source audit and sync proof | pnpm install; sed; rg audit. |
| Docs lane shape satisfied | yes | Check against docs-creator | Owner map, quick pass, blockers, rule map, example, no stale catalog. |
| Source-backed claim audit | yes | Verify referenced rule names and source/generated sync | Existing performance/rules/* links preserved; generated skill inspected. |
| Ownership map verified | yes | Confirm ownership claims against loaded skill list and rule source | Owner map delegates to existing skills and keeps this skill's unique scope. |
| MDX/content parser | N/A | Record N/A | Agent skill text only, no MDX route. |
| Links/routes/previews verified | yes | Check touched skill links are rule-relative | Preserved ./rules/*.md links in generated skill. |
| Plugin page specifics | N/A | Record N/A | Not a plugin page. |
| Browser/render surface changed | N/A | Record N/A | No public route or UI changed. |
| Package/API behavior changed | N/A | Record N/A | No package/API code changed. |
| Agent rules or skills changed | yes | Run pnpm install and verify generated skill sync | pnpm install completed; generated skill inspected. |
| Autoreview for non-trivial docs changes | N/A | Record N/A | Local skill doc rewrite, verified by sync and anti-slop audit. |
| Final lint | N/A | Record N/A | Markdown skill text only; pnpm install generated copies. |
| Goal plan complete | yes | Run check-complete | node .agents/skills/autogoal/scripts/check-complete.mjs docs/plans/2026-06-02-rewrite-performance-skill.md passed. |
Phase / pass table:
| Phase | Status | Evidence | Next |
|---|---|---|---|
| Intake and source read | complete | Read performance and docs-creator rules. | writing |
| Writing | complete | Rewrote .agents/rules/performance.mdc. | verification |
| Verification | complete | Ran pnpm install; inspected generated skill; ran anti-slop grep. | closeout |
| PR / tracker sync | N/A | User asked local follow-up only. | final response |
| Closeout | complete | This plan records final evidence. | final response |
Findings:
performance skill buried its unique performance-lane contract under a full Vercel rule catalog.Decisions and tradeoffs:
performance/rules/* links because those are this skill's real source value.Implementation notes:
pnpm install.Review fixes:
Error attempts:
| Error / failed attempt | Count | Next different move | Resolution |
|---|---|---|---|
| None | 0 | N/A | N/A |
Verification evidence:
pnpm install completed and skiller applied rules for Claude Code and Codex.sed -n '1,260p' .agents/skills/performance/SKILL.md showed the generated skill contains ## Owner Map, ## Required Output, ## Quick Pass, ## Blockers, ## Vercel Rule Selection, ## Extra Rules Owned Here, and ## Plate Example: Huge Document 10k.rg anti-slop audit found expected section headings and no stale Vercel catalog heading or changelog voice in touched skill files.node .agents/skills/autogoal/scripts/check-complete.mjs docs/plans/2026-06-02-rewrite-performance-skill.md passed.Final handoff contract:
performance/rules/* files were rewritten.pnpm install, generated skill inspection, anti-slop grep, goal check.Final handoff / sync:
Timeline:
pnpm install and inspected generated skill.Reboot status:
| Question | Answer |
|---|---|
| Where am I? | Closeout complete. |
| Where am I going? | Final response. |
| What is the goal? | Rewrite and regenerate the performance skill. |
| What have I learned? | The skill needed an operational contract, not a stale rule catalog. |
| What have I done? | Rewrote source, regenerated generated copy, recorded verification. |
Open risks: