Phase 1b: Rename all ~94 commands across 12 plugins to /<noun> <action> sub-command pattern. Git-flow consolidated from 8→5 commands (commit variants absorbed into --push/--merge/--sync flags). Dispatch files, name: frontmatter, and cross-reference updates for all plugins. Phase 2: Design documents for 8 new plugins in docs/designs/. Phase 3: Scaffold 8 new plugins — saas-api-platform, saas-db-migrate, saas-react-platform, saas-test-pilot, data-seed, ops-release-manager, ops-deploy-pipeline, debug-mcp. Each with plugin.json, commands, agents, skills, README, and claude-md-integration. Marketplace grows from 12→20. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
57 lines
2.1 KiB
Markdown
57 lines
2.1 KiB
Markdown
---
|
|
name: labels sync
|
|
description: Fetch and validate label taxonomy from Gitea, create missing required labels
|
|
---
|
|
|
|
# Sync Label Taxonomy
|
|
|
|
## Skills Required
|
|
|
|
- skills/mcp-tools-reference.md
|
|
- skills/repo-validation.md
|
|
- skills/label-taxonomy/labels-reference.md
|
|
|
|
## Purpose
|
|
|
|
Fetch current label taxonomy from Gitea, validate required labels exist, and create any missing ones.
|
|
|
|
## Invocation
|
|
|
|
Run `/labels sync` when setting up the plugin or after taxonomy updates.
|
|
|
|
## Workflow
|
|
|
|
1. **Detect Repository** - Parse `git remote get-url origin` to get `owner/repo`
|
|
2. **Validate Repository** - Use `validate_repo_org` to check if org-owned
|
|
3. **Fetch Labels** - Use `get_labels(repo=...)` to get org + repo labels
|
|
4. **Display Taxonomy** - Show labels grouped by category
|
|
5. **Check Required Labels** - Verify Type/*, Priority/*, Complexity/*, Effort/* exist
|
|
6. **Create Missing** - Use `create_label_smart` which auto-detects org vs repo level
|
|
7. **Report Results** - Summarize what was found and created
|
|
|
|
## Required Label Categories
|
|
|
|
| Category | Required Labels |
|
|
|----------|-----------------|
|
|
| Type/* | Bug, Feature, Refactor, Documentation, Test, Chore |
|
|
| Priority/* | Low, Medium, High, Critical |
|
|
| Complexity/* | Simple, Medium, Complex |
|
|
| Efforts/* | XS, S, M, L, XL |
|
|
| Epic/* | Database, API, Frontend, Auth, Infrastructure |
|
|
| RnD/* | Friction, Gap, Pattern, Automation |
|
|
|
|
## DO NOT
|
|
|
|
- Call MCP tools without the `repo` parameter
|
|
- Create local files - this command only interacts with Gitea
|
|
- Ask user questions - execute autonomously
|
|
|
|
## Visual Output
|
|
|
|
```
|
|
╔══════════════════════════════════════════════════════════════════╗
|
|
║ 📋 PROJMAN ║
|
|
║ Labels Sync ║
|
|
╚══════════════════════════════════════════════════════════════════╝
|
|
```
|