refactor: adopt tredl two-tier plugin layout - #3
Merged
Conversation
Separate the build/distribution repo (root) from the shippable plugin payload
(plugin/), mirroring tredl's layout.
- Move plugin.json, skills/, src/, hooks/ under plugin/ (git mv, history kept).
${CLAUDE_PLUGIN_ROOT} already resolves to the plugin root, so internal command
paths are unchanged.
- Add root .claude-plugin/marketplace.json (source: ./plugin) so the template is
actually installable via the marketplace flow.
- Add full dev scaffolding: pyproject.toml (ruff+pytest), .github CI/release
workflows + PR template, tests/ (manifest resolution + client smoke), CHANGELOG,
CONTRIBUTING.
- Update README/CLAUDE.md for the new paths and verify-before-done.
- Dedupe the duplicate speckit/tredl .gitignore block; add dev caches.
Verified: ruff check + format clean, pytest 3 passed.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
This template was flat —
.claude-plugin/plugin.json,skills/,src/example/,hooks/all at the repo root with nomarketplace.json, so it wasn't actually installable via the marketplace flow. This adopts tredl's two-tier layout: the repo root builds/tests/distributes the plugin; everything underplugin/is the shippable payload that installs.Changes
plugin/(git mv, history preserved):plugin/.claude-plugin/plugin.json,plugin/skills/,plugin/src/example/,plugin/hooks/.${CLAUDE_PLUGIN_ROOT}already resolves to the plugin root, so internal command paths are unchanged..claude-plugin/marketplace.json(source: ./plugin) — makes the template installable; entry name must equal the plugin name (guarded by a test).pyproject.toml(ruff+pytest),.github/workflows/{ci,release}.yml+ PR template,tests/(manifest resolution + clientdescribesmoke),CHANGELOG.md,CONTRIBUTING.md.README.md+CLAUDE.mdupdated for new paths, marketplace manifest, verify-before-done..gitignore: deduped the duplicate speckit/tredl block; added dev caches.Verification
🤖 Generated with Claude Code