Files
leo-claude-mktplace/plugins/projman/commands/labels-sync.md
lmiranda 035cd00f4b fix(projman): align command names with git-flow pattern
All projman command names now start with 'projman' prefix to match
git-flow behavior and avoid forced plugin namespace in autocomplete.

Before: /projman:sprint-plan, /projman:project-status
After: /projman sprint plan, /projman project status

This matches git-flow which shows /gitflow commit, /gitflow status.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-08 22:57:42 -05:00

57 lines
2.1 KiB
Markdown

---
name: projman 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 ║
╚══════════════════════════════════════════════════════════════════╝
```