refactor(projman): extract skills and consolidate commands

Major refactoring of projman plugin architecture:

Skills Extraction (17 new files):
- Extracted reusable knowledge from commands and agents into skills/
- branch-security, dependency-management, git-workflow, input-detection
- issue-conventions, lessons-learned, mcp-tools-reference, planning-workflow
- progress-tracking, repo-validation, review-checklist, runaway-detection
- setup-workflows, sprint-approval, task-sizing, test-standards, wiki-conventions

Command Consolidation (17 → 12 commands):
- /setup: consolidates initial-setup, project-init, project-sync (--full/--quick/--sync)
- /debug: consolidates debug-report, debug-review (report/review modes)
- /test: consolidates test-check, test-gen (run/gen modes)
- /sprint-status: absorbs sprint-diagram via --diagram flag

Architecture Cleanup:
- Remove plugin-level mcp-servers/ symlinks (6 plugins)
- Remove plugin README.md files (12 files, ~2000 lines)
- Update all documentation to reflect new command structure
- Fix documentation drift in CONFIGURATION.md, COMMANDS-CHEATSHEET.md

Commands are now thin dispatchers (~20-50 lines) that reference skills.
Agents reference skills for domain knowledge instead of inline content.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-30 15:02:16 -05:00
parent 8fe685037e
commit 2e65b60725
70 changed files with 3450 additions and 8887 deletions

View File

@@ -248,58 +248,25 @@ done
echo "✓ All file references validated"
# v3.0.0: Validate MCP server symlinks
# Validate MCP servers and configuration
echo ""
echo "=== Validating MCP Server Symlinks (v3.0.0+) ==="
echo "=== Validating MCP Servers ==="
# Check shared MCP servers exist
if [[ ! -d "$ROOT_DIR/mcp-servers/gitea" ]]; then
echo "ERROR: Shared gitea MCP server not found at mcp-servers/gitea/"
exit 1
fi
echo "✓ Shared gitea MCP server exists"
if [[ ! -d "$ROOT_DIR/mcp-servers/netbox" ]]; then
echo "ERROR: Shared netbox MCP server not found at mcp-servers/netbox/"
exit 1
fi
echo "✓ Shared netbox MCP server exists"
if [[ ! -d "$ROOT_DIR/mcp-servers/data-platform" ]]; then
echo "ERROR: Shared data-platform MCP server not found at mcp-servers/data-platform/"
exit 1
fi
echo "✓ Shared data-platform MCP server exists"
# Check symlinks for plugins that use MCP servers
check_mcp_symlink() {
local plugin_name="$1"
local server_name="$2"
local symlink_path="$ROOT_DIR/plugins/$plugin_name/mcp-servers/$server_name"
if [[ -L "$symlink_path" ]]; then
# Verify symlink resolves correctly
if [[ -d "$symlink_path" ]]; then
echo "$plugin_name -> $server_name symlink valid"
else
echo "ERROR: $plugin_name -> $server_name symlink broken (does not resolve)"
exit 1
fi
else
echo "ERROR: Missing symlink at plugins/$plugin_name/mcp-servers/$server_name"
for server in gitea netbox data-platform viz-platform contract-validator; do
if [[ ! -d "$ROOT_DIR/mcp-servers/$server" ]]; then
echo "ERROR: Shared $server MCP server not found at mcp-servers/$server/"
exit 1
fi
}
echo "✓ Shared $server MCP server exists"
done
# Plugins with gitea MCP dependency
check_mcp_symlink "projman" "gitea"
check_mcp_symlink "pr-review" "gitea"
# Plugins with netbox MCP dependency
check_mcp_symlink "cmdb-assistant" "netbox"
# Plugins with data-platform MCP dependency
check_mcp_symlink "data-platform" "data-platform"
# Check .mcp.json exists at root
if [[ ! -f "$ROOT_DIR/.mcp.json" ]]; then
echo "ERROR: .mcp.json not found at repository root"
exit 1
fi
echo "✓ .mcp.json configuration exists"
echo ""
echo "=== All validations passed ==="