Ship a plans-library skill in the plan-agent plugin that scans every HTML plan in the plans directory, reads each plan's status, type, title, and created date from its <meta> tags, and renders them into a single self-contained docs/plans/index.html gallery — filterable by status and type, searchable by title, and openable in the browser — mirroring the media-library skill from social-media-tools.
Read and implement all steps in the plan at docs/plans/add-plans-library-to-plan-agent.md — Add plans-library Skill to plan-agent. Verify against the plan's Tests, Verification, and Acceptance Criteria before reporting done. If everything passed, mark completion in docs/plans/add-plans-library-to-plan-agent.md — tick each step's [x] marker and each criterion's - [x], set status: completed — and re-render the HTML from the spec. If any check failed, leave status: in-progress and say which.
More ways to run this plan — goal & workflow prompts, file path
Achieve this goal: Add plans-library Skill to plan-agent. The plan at docs/plans/add-plans-library-to-plan-agent.md describes one approach — use it as reference, but optimize for the outcome. Verify against the plan's Tests, Verification, and Acceptance Criteria before reporting done. If everything passed, mark completion in docs/plans/add-plans-library-to-plan-agent.md — tick each step's [x] marker and each criterion's - [x], set status: completed — and re-render the HTML from the spec. If any check failed, leave status: in-progress and say which.
add-plans-library-to-plan-agent.html
docs/plans/add-plans-library-to-plan-agent.html
docs/plans/add-plans-library-to-plan-agent.md
Context
The story behind this plan — what prompted the work and why it matters now.
The plan-agent plugin now emits every plan as a self-contained .html file in docs/plans/ , each carrying machine-readable <meta> tags ( plan-status , plan-type , plan-created , plan-repo ) and a <title> . With 100+ plan files in that directory there is no way to browse or organise them without knowing exact filenames.
The sibling social-media-tools plugin already solves the identical problem for its cards: the media-library skill scans docs/media/social/*.html , parses each file, populates a static templates/gallery.html with one card per entry, writes index.html , and opens it in the browser. This plan ports that proven template-plus-skill pattern to plan-agent, adapting the data source (plan <meta> tags instead of filename parsing) and the filter dimensions (status + type instead of card type).
An existing todo plan, create-plans-index-page.html , describes a one-off bash-script index for this repo only. Per the chosen direction this plan supersedes it: instead of a repo-local script, we deliver a reusable plugin skill any plan-agent user can invoke. The old plan is marked superseded in Step 6.
Steps
The step-by-step work, in order — each step says what to do, why it matters, and how to check it worked.
Definition of done
The plan counts as done when every statement below is true — check each one off as you verify it.
Final check
One last pass to confirm the whole change works end to end.
End-to-end: Load the plugin locally with claude --plugin-dir ~/devbox/agentics/kit/plugins/plan-agent , then trigger the skill (e.g. “browse my plans”). Confirm it scans docs/plans/ , writes docs/plans/index.html , and opens it in the browser.
In the browser: Verify the card count matches ls docs/plans/*.html | grep -v index.html | wc -l ; click a completed chip and confirm only completed plans remain; click a feature chip and confirm the set narrows further; type a known plan title into the search box and confirm a single card matches; click a card and confirm the underlying plan opens.
Regression: Re-run the skill and confirm index.html is regenerated (not duplicated) and is itself excluded from the next scan. Confirm no archive/ plans appear. Confirm the marketplace-JSON validator passes after the version bump.
Wrapping up
Three gates that must all pass before this plan is marked completed.
Completion Report
No items to report — all requirements met.