Skip to content

Plugin packaging - #1

Open
casconed wants to merge 2 commits into
originalhat:mainfrom
casconed:plugin-packaging
Open

Plugin packaging#1
casconed wants to merge 2 commits into
originalhat:mainfrom
casconed:plugin-packaging

Conversation

@casconed

@casconed casconed commented Sep 2, 2026

Copy link
Copy Markdown

I wanted this as an installable skill - happy to keep that as a fork but if you're amenable to that change, here it is!

casconed and others added 2 commits September 1, 2026 21:01
Converts the repo from a clone-and-cd workflow tool into an installable
plugin: install once, run from any project, no fixed sibling data dir.

- Add .claude-plugin/plugin.json manifest
- Add six focused skills/ (one per workflow) as thin routers that point
  at workflows/<wf>/CLAUDE.md via ${CLAUDE_PLUGIN_ROOT}
- Repath the data directory from ../greybeard-data/ to $GREYBEARD_DATA
  (default ~/.greybeard-data/) across all markdown; runnable shell
  commands use ${GREYBEARD_DATA:-$HOME/.greybeard-data} so they work
  with or without the env var set
- Repath cross-workflow references (e.g. campaign reviewer -> code-review
  lenses) to ${CLAUDE_PLUGIN_ROOT}/workflows/...
- Slim root CLAUDE.md to overview + data-dir convention + routing table
  pointing at skills; per-workflow steps stay in workflow CLAUDE.md files
- Update README with plugin install instructions, drop clone-and-cd framing

The workflows/ instruction tree (lenses, pipelines, templates, context)
is left intact as the single canonical copy; only paths inside are repathed.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude Code has no post-install hook event, so use a SessionStart hook
(idempotent mkdir -p) — runs on the first session after install, creates
$GREYBEARD_DATA/sources and the six output/ subdirs, and is a no-op once
they exist. Same ${GREYBEARD_DATA:-$HOME/.greybeard-data} expansion as
the documented manual command.

- Add hooks/hooks.json with the SessionStart hook
- Register it via the "hooks" field in .claude-plugin/plugin.json
- Note the auto-setup in CLAUDE.md and README (manual mkdir now optional)

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant