Version standardization: - Move version to main README.md title: "Claude Code Marketplace - v2.2.0" - Remove version from plugins/projman/README.md title - Remove version from plugins/projman/CONFIGURATION.md title - Remove version from plugin listings in README.md - Remove "Key Features (v2.2.0)" -> "Key Features" - Remove Version section from plugins/projman/README.md - Remove version references from CLAUDE.md structure comments Added versioning rule to CLAUDE.md: - Version displayed ONLY in main README.md title - Do NOT add versions to plugin docs or config guides - Version history maintained in CHANGELOG.md only Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
6.9 KiB
CLAUDE.md
This file provides guidance to Claude Code when working with code in this repository.
Project Overview
Repository: support-claude-mktplace Version: 2.2.0 Status: Production Ready
A Claude Code plugin marketplace containing:
| Plugin | Description | Version |
|---|---|---|
projman |
Sprint planning and project management with Gitea integration | 2.2.0 |
claude-config-maintainer |
CLAUDE.md optimization and maintenance | 1.0.0 |
cmdb-assistant |
NetBox CMDB integration for infrastructure management | 1.0.0 |
project-hygiene |
Post-task cleanup automation via hooks | 0.1.0 |
Quick Start
# Validate marketplace compliance
./scripts/validate-marketplace.sh
# Run projman commands (in a target project with plugin installed)
/sprint-plan # Start sprint planning
/sprint-status # Check progress
/review # Pre-close code quality review
/test-check # Verify tests before close
/sprint-close # Complete sprint
Repository Structure
support-claude-mktplace/
├── .claude-plugin/
│ └── marketplace.json # Marketplace manifest
├── plugins/
│ ├── projman/ # Sprint management
│ │ ├── .claude-plugin/plugin.json
│ │ ├── .mcp.json
│ │ ├── mcp-servers/gitea/ # Bundled MCP server
│ │ ├── commands/ # 8 commands
│ │ │ ├── sprint-plan.md, sprint-start.md, sprint-status.md
│ │ │ ├── sprint-close.md, labels-sync.md, initial-setup.md
│ │ │ └── review.md, test-check.md
│ │ ├── agents/ # 4 agents
│ │ │ ├── planner.md, orchestrator.md, executor.md
│ │ │ └── code-reviewer.md
│ │ └── skills/label-taxonomy/
│ ├── claude-config-maintainer/
│ ├── cmdb-assistant/
│ └── project-hygiene/
├── scripts/
│ ├── setup.sh, post-update.sh
│ └── validate-marketplace.sh # Marketplace compliance validation
└── docs/
├── CANONICAL-PATHS.md # Single source of truth for paths
└── references/
CRITICAL: Rules You MUST Follow
File Operations
- NEVER create files in repository root unless listed in "Allowed Root Files"
- NEVER modify
.gitignorewithout explicit permission - ALWAYS use
.scratch/for temporary/exploratory work - ALWAYS verify paths against
docs/CANONICAL-PATHS.mdbefore creating files
Plugin Development
- plugin.json MUST be in
.claude-plugin/directory (not plugin root) - Every plugin MUST be listed in marketplace.json
- MCP servers MUST use venv python path:
${CLAUDE_PLUGIN_ROOT}/mcp-servers/{name}/.venv/bin/python - CLI tools forbidden - Use MCP tools exclusively (never
tea,gh, etc.)
Hooks (Valid Events Only)
PreToolUse, PostToolUse, UserPromptSubmit, SessionStart, SessionEnd, Notification, Stop, SubagentStop, PreCompact
INVALID: task-completed, file-changed, git-commit-msg-needed
Allowed Root Files
CLAUDE.md, README.md, LICENSE, CHANGELOG.md, .gitignore, .env.example
Allowed Root Directories
.claude/, .claude-plugin/, .claude-plugins/, .scratch/, docs/, hooks/, plugins/, scripts/
Architecture
Four-Agent Model
| Agent | Personality | Responsibilities |
|---|---|---|
| Planner | Thoughtful, methodical | Sprint planning, architecture analysis, issue creation, lesson search |
| Orchestrator | Concise, action-oriented | Sprint execution, parallel batching, Git operations, lesson capture |
| Executor | Implementation-focused | Code implementation, branch management, MR creation |
| Code Reviewer | Thorough, practical | Pre-close quality review, security scan, test verification |
MCP Server Tools (Gitea)
| Category | Tools |
|---|---|
| Issues | list_issues, get_issue, create_issue, update_issue, add_comment |
| Labels | get_labels, suggest_labels, create_label |
| Milestones | list_milestones, get_milestone, create_milestone, update_milestone |
| Dependencies | list_issue_dependencies, create_issue_dependency, get_execution_order |
| Wiki | list_wiki_pages, get_wiki_page, create_wiki_page, create_lesson, search_lessons |
| Validation | validate_repo_org, get_branch_protection |
Hybrid Configuration
| Level | Location | Purpose |
|---|---|---|
| System | ~/.config/claude/gitea.env |
Credentials (GITEA_URL, GITEA_TOKEN, GITEA_ORG) |
| Project | .env in project root |
Repository specification (GITEA_REPO) |
Branch-Aware Security
| Branch Pattern | Mode | Capabilities |
|---|---|---|
development, feat/* |
Development | Full access |
staging |
Staging | Read-only code, can create issues |
main, master |
Production | Read-only, emergency only |
Label Taxonomy
43 labels total: 27 organization + 16 repository
Organization: Agent/2, Complexity/3, Efforts/5, Priority/4, Risk/3, Source/4, Type/6 Repository: Component/9, Tech/7
Sync with /labels-sync command.
Lessons Learned System
Stored in Gitea Wiki under lessons-learned/sprints/.
Workflow:
- Orchestrator captures at sprint close via MCP tools
- Planner searches at sprint start using
search_lessons - Tags enable cross-project discovery
Common Operations
Adding a New Plugin
- Create
plugins/{name}/.claude-plugin/plugin.json - Add entry to
.claude-plugin/marketplace.json - Create
README.mdandclaude-md-integration.md - Run
./scripts/validate-marketplace.sh - Update
CHANGELOG.md
Adding a Command to projman
- Create
plugins/projman/commands/{name}.md - Update
plugins/projman/README.md - Update marketplace description if significant
Validation
./scripts/validate-marketplace.sh # Validates all manifests
Path Verification Protocol
Before creating any file:
- Read
docs/CANONICAL-PATHS.md - List all paths to be created/modified
- Verify each against canonical paths
- If not in canonical paths, STOP and ask
Documentation Index
| Document | Purpose |
|---|---|
docs/CANONICAL-PATHS.md |
Single source of truth for paths |
docs/UPDATING.md |
Update guide for the marketplace |
plugins/projman/CONFIGURATION.md |
Projman setup guide |
plugins/projman/README.md |
Projman full documentation |
Versioning Rule
The marketplace version is displayed ONLY in the main README.md title.
- Format:
# Claude Code Marketplace - vX.Y.Z - Do NOT add version numbers to individual plugin documentation titles
- Do NOT add version numbers to configuration guides
- Version history is maintained in
CHANGELOG.md - When releasing a new version, update ONLY the main README.md title
Last Updated: 2026-01-20