Files
leo-claude-mktplace/plugins/projman/commands/labels-sync.md
lmiranda 9ba2e660d3 feat(marketplace): hook migration, projman commands, optimizations [BREAKING]
Remove all SessionStart and PostToolUse hooks across the marketplace,
retaining only PreToolUse safety hooks and UserPromptSubmit quality hooks.
Add /project and /adr command families, /hygiene check, /cv status.
Create 7 new projman skills for project lifecycle management.
Remove /pm-debug, /suggest-version, /proposal-status commands.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 12:28:06 -05:00

2.1 KiB

description
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                                                     ║
╚══════════════════════════════════════════════════════════════════╝