refactor: move Claude Code plugin to dedicated subdirectory (GH#985)
Move all plugin content to claude-plugin/ subdirectory for cleaner separation from core beads functionality: - claude-plugin/.claude-plugin/plugin.json - plugin manifest - claude-plugin/commands/ - all slash commands - claude-plugin/agents/ - task-agent (now in correct location) - claude-plugin/skills/beads/ - beads skill with resources Root .claude-plugin/ now only contains marketplace.json pointing to ./claude-plugin. Note: After updating, users may need to clear plugin cache: rm -rf ~/.claude/plugins/cache/beads-marketplace/ Fixes #985 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> Executed-By: beads/crew/dave Rig: beads Role: crew
This commit is contained in:
committed by
Steve Yegge
parent
0777bb907c
commit
f03c754df1
@@ -0,0 +1,86 @@
|
||||
# Beads Skill Maintenance Guide
|
||||
|
||||
## Architecture Decisions
|
||||
|
||||
ADRs in `adr/` document key decisions. These are NOT loaded during skill invocation—they're reference material for maintainers making changes.
|
||||
|
||||
| ADR | Decision |
|
||||
|-----|----------|
|
||||
| [ADR-0001](adr/0001-bd-prime-as-source-of-truth.md) | Use `bd prime` as CLI reference source of truth |
|
||||
|
||||
## Key Principle: DRY via bd prime
|
||||
|
||||
**NEVER duplicate CLI documentation in SKILL.md or resources.**
|
||||
|
||||
- `bd prime` outputs AI-optimized workflow context
|
||||
- `bd <command> --help` provides specific usage
|
||||
- Both auto-update with bd releases
|
||||
|
||||
**SKILL.md should only contain:**
|
||||
- Decision frameworks (bd vs TodoWrite)
|
||||
- Prerequisites (install verification)
|
||||
- Resource index (progressive disclosure)
|
||||
- Pointers to `bd prime` and `--help`
|
||||
|
||||
## Keeping the Skill Updated
|
||||
|
||||
### When bd releases new version:
|
||||
|
||||
1. **Check for new features**: `bd --help` for new commands
|
||||
2. **Update SKILL.md frontmatter**: `version: "X.Y.Z"`
|
||||
3. **Add resources for conceptual features** (agents, gates, chemistry patterns)
|
||||
4. **Don't add CLI reference** — that's `bd prime`'s job
|
||||
|
||||
### What belongs in resources:
|
||||
|
||||
| Content Type | Belongs in Resources? | Why |
|
||||
|--------------|----------------------|-----|
|
||||
| Conceptual frameworks | ✅ Yes | bd prime doesn't explain "when to use" |
|
||||
| Decision trees | ✅ Yes | Cognitive guidance, not CLI reference |
|
||||
| Advanced patterns | ✅ Yes | Depth beyond `--help` |
|
||||
| CLI command syntax | ❌ No | Use `bd <cmd> --help` |
|
||||
| Workflow checklists | ❌ No | `bd prime` covers this |
|
||||
|
||||
### Resource update checklist:
|
||||
|
||||
```
|
||||
[ ] Check if bd prime now covers this content
|
||||
[ ] If yes, remove from resources (avoid duplication)
|
||||
[ ] If no, update resource for new bd version
|
||||
[ ] Update version compatibility in README.md
|
||||
```
|
||||
|
||||
## File Roles
|
||||
|
||||
| File | Purpose | When to Update |
|
||||
|------|---------|----------------|
|
||||
| SKILL.md | Entry point, resource index | New features, version bumps |
|
||||
| README.md | Human docs, installation | Structure changes |
|
||||
| CLAUDE.md | This file, maintenance guide | Architecture changes |
|
||||
| adr/*.md | Decision records | When making architectural decisions |
|
||||
| resources/*.md | Deep-dive guides | New conceptual content |
|
||||
|
||||
## Testing Changes
|
||||
|
||||
After skill updates:
|
||||
|
||||
```bash
|
||||
# Verify SKILL.md is within token budget
|
||||
wc -w skills/beads/SKILL.md # Target: 400-600 words
|
||||
|
||||
# Verify links resolve
|
||||
# (Manual check: ensure all resource links in SKILL.md exist)
|
||||
|
||||
# Verify bd prime still works
|
||||
bd prime | head -20
|
||||
```
|
||||
|
||||
## Attribution
|
||||
|
||||
Resources adapted from other sources should include attribution header:
|
||||
|
||||
```markdown
|
||||
# Resource Title
|
||||
|
||||
> Adapted from [source]
|
||||
```
|
||||
Reference in New Issue
Block a user