CodeForge
CLAUDE.md0 starsChanged 5 months agoMITView on GitHub
AI coding toolkit for Claude Code. Installable as a Claude Code plugin. review secure arch tdd agentic docs refine eval standards Each skill has agents/openai.yaml for Codex/OpenAI cross-platform use. codeforge-reviewer codeforge-architect codeforge-analyst Validate: claude plugin validate . Must pass 101/101 before any commit. Run from repo root. Run before every release. The CI job for this is best-effort (CLI auth is flaky in headless CI), local validation is authoritative. Never commit as Claude Code or any other author. - .claude/settings.local.json…
- Reads credentials
- Commits and pushes
The file
Show its rules and text
We split this CLAUDE.md into the rules it gives an agent
20 rules. About 0 are common, 11 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 40
Prefer MCP over custom integrations.
- Distinctive: line 41
Prefer agents over giant context windows.
- Distinctive: line 43
Never hardcode secrets: use environment variables.
- Distinctive: line 88
Must pass 101/101 before any commit.
- Distinctive: line 96
Run before every release. The CI job for this is best-effort (CLI auth is flaky in headless CI), local validation is authoritative.
- Distinctive: line 108
Never commit as Claude Code or any other author.
- Very specific: line 117
Create releases manually at https://github.com/Prashantxo/CodeForge/releases/new or refresh auth: gh auth refresh -h github.com -s …
- Very specific: line 122
Update CHANGELOG.md with a new ## [x.y.z] - YYYY-MM-DD section at the top.
- Very specific: line 123
Run bash tests/validate-structure.sh.
- Very specific: line 124
Run claude plugin validate ..
- Distinctive: line 125
Commit with correct author.
- Very specific: line 128
Create release at https://github.com/Prashantxo/CodeForge/releases/new:
- Very specific: line 181
Never interpolate user-controlled strings into python3 -c "...".
- Distinctive: line 186
All platform config files exist
- Distinctive: line 187
All 8 commands, 9 skills, 3 agents present
- Very specific: line 188
All SKILL.md files have name:, description:, allowed-tools: frontmatter
- Distinctive: line 190
All JSON files are valid
- Distinctive: line 191
All hook scripts have shebangs
- Very specific: line 192
No hardcoded secrets (patterns: sk-, AKIA, ghp_)
- Very specific: line 195
No stale > Source rules/model-adapter.md lines in skill files
≈ “Common” is an estimate: at least 1 in 5 of the 28,633 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CodeForge
AI coding toolkit for Claude Code. Installable as a Claude Code plugin.
Install
npx claudepluginhub install codeforge
claude plugin install <your-github-username>/codeforgeCommands
| Command | What It Does |
/codeforge:review | Code + security review on current diff or PR |
/codeforge:secure | OWASP Top 10 security audit |
/codeforge:arch | Architecture review or design |
/codeforge:tdd | TDD cycle: failing tests first |
/codeforge:docs | Generate documentation |
/codeforge:refine | Simplify changed code without behavior change |
/codeforge:eval | Define or run evals for AI features |
/codeforge:standards | Coding standards review |
Skills
review secure arch tdd agentic docs refine eval standards
Each skill has agents/openai.yaml for Codex/OpenAI cross-platform use.
Agents
codeforge-reviewer codeforge-architect codeforge-analyst
Principles
- Tests before code: no feature without a failing test first.
- Evals before LLM changes: define pass/fail criteria before touching prompts.
- Plan before implementation: no code without a design.
- Prefer MCP over custom integrations.
- Prefer agents over giant context windows.
- Security review before every release.
- Never hardcode secrets: use environment variables.
- Observability built in: structured logs, trace IDs from day one.
Workflow
DISCOVER → DESIGN → TEST (failing) → IMPLEMENT → EVAL → REVIEW → REFINE → DOCS → RELEASECoding Standards
- Strong typing: no
any, no untyped returns - Kebab-case for files and directories
- One responsibility per module
- Structured logging with trace IDs
- Error messages carry context: what failed, with what input, why
Plugin Development
skills/<name>/SKILL.md # skill instructions
skills/<name>/agents/openai.yaml # cross-platform metadata
agents/codeforge-<name>.md # agent definition
commands/<name>.md # slash commandValidate: claude plugin validate .
Environment Variables
| Variable | Used By | Purpose |
GITHUB_TOKEN | MCP github server | GitHub API access |
CODEFORGE_TIER | All commands | Override model tier: max, standard, fast |
Local Development
Running tests
bash tests/validate-structure.shMust pass 101/101 before any commit. Run from repo root.
Validate plugin manifest
claude plugin validate .Run before every release. The CI job for this is best-effort (CLI auth is flaky in headless CI), local validation is authoritative.
Git setup
- Working branch:
fresh-main - Remote:
https://github.com/Prashantxo/CodeForge.git - Push:
git push origin fresh-main:main - All commits must use author
Prashant Tomar <mythd2000@gmail.com>
Never commit as Claude Code or any other author.git commit --author="Prashant Tomar <mythd2000@gmail.com>" -m "..."
Secrets / tokens
.claude/settings.local.jsonis gitignored. It holds session-scoped tokens and must never be committed.- GitHub tokens shared in chat should be revoked immediately after use.
- The
ghCLI uses an OAuth token (gho_) that hasrepo+workflowscopes but notcontents:write, so it cannot create GitHub releases. Create releases manually at https://github.com/Prashantxo/CodeForge/releases/new or refresh auth:gh auth refresh -h github.com -s write:packages,contents
Release process
- Update
CHANGELOG.mdwith a new## [x.y.z] - YYYY-MM-DDsection at the top. - Run
bash tests/validate-structure.sh. Must be 0 failures. - Run
claude plugin validate .. Must pass. - Commit with correct author.
- Push:
git push origin fresh-main:main - Tag:
git tag vX.Y.Z && git push origin vX.Y.Z - Create release at https://github.com/Prashantxo/CodeForge/releases/new:
- Tag:
vX.Y.Z(already pushed) - Title:
vX.Y.Z - <one-line summary> - Body: what changed, security fixes, upgrade instructions
- Tag:
- Bump
versionin.claude-plugin/plugin.jsonand.codex-plugin/plugin.json.
Versioning
Follows Semantic Versioning:
PATCH(x.y.Z): bug fixes, CI fixes, doc correctionsMINOR(x.Y.0): new skill, command, or agent; backward-compatibleMAJOR(X.0.0): breaking change to plugin format or skill API
CI pipeline structure
6 jobs in .github/workflows/ci.yml:
| Job | Depends on | Blocks merge |
validate-json | n/a | Yes |
security-check | n/a | Yes |
test-structure | validate-json | Yes |
validate-platforms | validate-json | Yes |
validate-content | validate-json | Yes |
validate-claude-plugin | validate-json | No (best-effort) |
ci-gate | all above except plugin | Yes, branch protection target |
For branch protection: require CI gate (all required checks) to pass.
Platform files
Each AI editor reads different config. All must be kept in sync:
| Editor | Files |
| Claude Code | .claude-plugin/plugin.json, CLAUDE.md, hooks/hooks.json |
| OpenAI Codex | .codex-plugin/plugin.json, AGENTS.md |
| Gemini CLI | .gemini/GEMINI.md |
| Cursor | .cursor/hooks.json |
| Windsurf | .windsurfrules, .windsurf/rules/codeforge.md (needs trigger:) |
| Zed | .rules |
| Kiro | .kiro/steering/codeforge.md (needs inclusion:), .kiro/hooks/ |
| Cline | .clinerules/codeforge.md, .clinerules/hooks/PreToolUse + PostToolUse |
| Aider | .aider.conf.yml |
AGENTS.md is the cross-platform fallback. Codex, Zed, Aider, and Cline
all read it. Keep it accurate.
Security constraints for hook scripts
- All
.shfiles must have#!/usr/bin/env bashshebang. post-write-validate.shmustexit 1(not 0) when a secret is detected.- Hook scripts must not be world-writable (checked by CI).
- Never interpolate user-controlled strings into
python3 -c "...". Pass file paths as arguments or via stdin.
What the test suite checks (101 checks)
- All platform config files exist
- All 8 commands, 9 skills, 3 agents present
- All SKILL.md files have
name:,description:,allowed-tools:frontmatter - All
openai.yamlfiles haveinterface:andpolicy:blocks - All JSON files are valid
- All hook scripts have shebangs
- No hardcoded secrets (patterns:
sk-,AKIA,ghp_) - Verdict enum
BLOCK | REQUEST CHANGES | APPROVE WITH NOTES | APPROVEconsistent acrossskills/review/SKILL.md,commands/review.md,agents/codeforge-reviewer.md - No stale
> Source rules/model-adapter.mdlines in skill files
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

