Thanks for your interest in contributing!
# Clone
git clone https://github.com/sungurerdim/ClaudeCodeOptimizer.git
cd ClaudeCodeOptimizer| Tool | Version | Purpose |
|---|---|---|
| Go | 1.23+ | Build installer and statusline binaries |
| golangci-lint | v2.1+ | Linting (optional — CI runs it) |
# Installer binary
cd extras/installer && go build -o cco .
# Statusline binary
cd extras/statusline && go build -o cco-statusline .# Both modules
cd extras/installer && go test -race -count=1 ./...
cd extras/statusline && go test -race -count=1 ./...# Requires golangci-lint v2
golangci-lint run --config ../../.golangci.yml ./...CI runs on every PR to main:
| Job | What It Checks |
|---|---|
| Validate | YAML frontmatter in all skill/agent files |
| Manifest Sync | extras/installer/manifest.go matches repo files |
| Go | golangci-lint + go test -race for both modules |
All three checks must pass before merge.
| Type | Pattern | Location |
|---|---|---|
| Skills | cco-{name}/SKILL.md |
skills/ |
| Agents | cco-agent-{name}.md |
agents/ |
| Rules | cco-rules.md |
rules/ |
- Edit
rules/cco-rules.md(single source of truth) - Update
docs/rules.mdto reflect changes
Rule categories: Scope Control, Code Integrity, Production Standards, Output Brevity, Verification, Uncertainty Protocol, Session Resilience, Process Discipline, CCO Operations.
- Create
skills/cco-{name}/SKILL.mdwith YAML frontmatter - Update
extras/installer/manifest.go— add toskillFilesslice (canonical source of truth) - CI
manifest-syncjob validates this automatically on push - Update
docs/skills.mdanddocs/agents.mdif applicable
Keep counts in sync when adding/removing files:
# Verify counts (cross-platform: use Glob in Claude Code)
# Skills: 9 (optimize, align, commit, research, docs, blueprint, pr, update, repo)
# Agents: 3 (analyze, apply, research)Update README.md and docs/ if counts change.
-
Run validation before submitting:
Windows: Use Git Bash or WSL for verification commands.
# Verify all files exist ls rules/cco-rules.md ls skills/cco-*/SKILL.md | wc -l # Should be 9 ls agents/cco-agent-*.md | wc -l # Should be 3
-
One feature per PR — keep changes focused
-
Update docs if adding skills, agents, or rules
-
Follow existing patterns — check similar files for conventions
- Markdown: CommonMark, ATX headers (
#not===) - YAML frontmatter for skills and agents
- Tables for structured data
- No trailing whitespace
- CI validates file structure, frontmatter, and version consistency
- Go code in
extras/is built and tested in CI - All checks must pass before merge
Open an issue at github.com/sungurerdim/ClaudeCodeOptimizer/issues