agentleFS
PrashantxoPrashantxo/CodeForge/CLAUDE.md

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
  1. Distinctive:

    Prefer MCP over custom integrations.

    line 40
  2. Distinctive:

    Prefer agents over giant context windows.

    line 41
  3. Distinctive:

    Never hardcode secrets: use environment variables.

    line 43
  4. Distinctive:

    Must pass 101/101 before any commit.

    line 88
  5. Distinctive:

    Run before every release. The CI job for this is best-effort (CLI auth is flaky in headless CI), local validation is authoritative.

    line 96
  6. Distinctive:

    Never commit as Claude Code or any other author.

    line 108
  7. Very specific:

    Create releases manually at https://github.com/Prashantxo/CodeForge/releases/new or refresh auth: gh auth refresh -h github.com -s …

    line 117
  8. Very specific:

    Update CHANGELOG.md with a new ## [x.y.z] - YYYY-MM-DD section at the top.

    line 122
  9. Very specific:

    Run bash tests/validate-structure.sh.

    line 123
  10. Very specific:

    Run claude plugin validate ..

    line 124
  11. Distinctive:

    Commit with correct author.

    line 125
  12. Very specific:

    Create release at https://github.com/Prashantxo/CodeForge/releases/new:

    line 128
  13. Very specific:

    Never interpolate user-controlled strings into python3 -c "...".

    line 181
  14. Distinctive:

    All platform config files exist

    line 186
  15. Distinctive:

    All 8 commands, 9 skills, 3 agents present

    line 187
  16. Very specific:

    All SKILL.md files have name:, description:, allowed-tools: frontmatter

    line 188
  17. Distinctive:

    All JSON files are valid

    line 190
  18. Distinctive:

    All hook scripts have shebangs

    line 191
  19. Very specific:

    No hardcoded secrets (patterns: sk-, AKIA, ghp_)

    line 192
  20. Very specific:

    No stale > Source rules/model-adapter.md lines in skill files

    line 195

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

CodeForge

AI coding toolkit for Claude Code. Installable as a Claude Code plugin.

Install

npx claudepluginhub install codeforge
claude plugin install <your-github-username>/codeforge

Commands

CommandWhat It Does
/codeforge:reviewCode + security review on current diff or PR
/codeforge:secureOWASP Top 10 security audit
/codeforge:archArchitecture review or design
/codeforge:tddTDD cycle: failing tests first
/codeforge:docsGenerate documentation
/codeforge:refineSimplify changed code without behavior change
/codeforge:evalDefine or run evals for AI features
/codeforge:standardsCoding 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

  1. Tests before code: no feature without a failing test first.
  2. Evals before LLM changes: define pass/fail criteria before touching prompts.
  3. Plan before implementation: no code without a design.
  4. Prefer MCP over custom integrations.
  5. Prefer agents over giant context windows.
  6. Security review before every release.
  7. Never hardcode secrets: use environment variables.
  8. Observability built in: structured logs, trace IDs from day one.

Workflow

DISCOVER → DESIGN → TEST (failing) → IMPLEMENT → EVAL → REVIEW → REFINE → DOCS → RELEASE

Coding 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 command

Validate: claude plugin validate .

Environment Variables

VariableUsed ByPurpose
GITHUB_TOKENMCP github serverGitHub API access
CODEFORGE_TIERAll commandsOverride model tier: max, standard, fast

Local Development

Running tests

bash tests/validate-structure.sh

Must 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>
    git commit --author="Prashant Tomar <mythd2000@gmail.com>" -m "..."
    Never commit as Claude Code or any other author.

Secrets / tokens

  • .claude/settings.local.json is gitignored. It holds session-scoped tokens and must never be committed.
  • GitHub tokens shared in chat should be revoked immediately after use.
  • The gh CLI uses an OAuth token (gho_) that has repo + workflow scopes but not contents: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

  1. Update CHANGELOG.md with a new ## [x.y.z] - YYYY-MM-DD section at the top.
  2. Run bash tests/validate-structure.sh. Must be 0 failures.
  3. Run claude plugin validate .. Must pass.
  4. Commit with correct author.
  5. Push: git push origin fresh-main:main
  6. Tag: git tag vX.Y.Z && git push origin vX.Y.Z
  7. 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
  8. Bump version in .claude-plugin/plugin.json and .codex-plugin/plugin.json.

Versioning

Follows Semantic Versioning:

  • PATCH (x.y.Z): bug fixes, CI fixes, doc corrections
  • MINOR (x.Y.0): new skill, command, or agent; backward-compatible
  • MAJOR (X.0.0): breaking change to plugin format or skill API

CI pipeline structure

6 jobs in .github/workflows/ci.yml:

JobDepends onBlocks merge
validate-jsonn/aYes
security-checkn/aYes
test-structurevalidate-jsonYes
validate-platformsvalidate-jsonYes
validate-contentvalidate-jsonYes
validate-claude-pluginvalidate-jsonNo (best-effort)
ci-gateall above except pluginYes, 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:

EditorFiles
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 .sh files must have #!/usr/bin/env bash shebang.
  • post-write-validate.sh must exit 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.yaml files have interface: and policy: 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 | APPROVE consistent across skills/review/SKILL.md, commands/review.md, agents/codeforge-reviewer.md
  • No stale > Source rules/model-adapter.md lines in skill files

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.