forge

forge is a skill for Claude Code from cukas/claudes-ai-buddies. It costs 22 tokens per session (2,604 once invoked), scanned C, original, MIT.

A tool that asks three AI systems to implement the same coding task, tests their solutions, and combines the strongest ideas.

In plain words
What is it for?
Use it for tricky algorithms, scoring rules, data transformations, and concurrency bugs where several valid implementations may exist.
Why use it?
It compares multiple approaches on automated tests and uses critique to refine the selected solution.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: mentions Codex; built for aider.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the claudes-ai-buddies plugin — 12 skills, 1 command, 1 hook shipped together

Good fit Use it for tricky algorithms, scoring rules, data transformations, and concurrency bugs where several valid implementations may exist.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add cukas/claudes-ai-buddies
Claude Code
/plugin install claudes-ai-buddies

Made for: Claude Code.

Or install claudes-ai-buddies, the plugin that ships this one along with the rest of its 12 skills, 1 command, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for forge

README.md
[![agentmods](https://agentmods.dev/badge/skills/cukas/claudes-ai-buddies/forge/github.svg)](https://agentmods.dev/skills/cukas/claudes-ai-buddies/forge)
Your own site
<a href="https://agentmods.dev/skills/cukas/claudes-ai-buddies/forge"><img src="https://agentmods.dev/badge/skills/cukas/claudes-ai-buddies/forge/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for forge

Your own site · 80×15
<a href="https://agentmods.dev/skills/cukas/claudes-ai-buddies/forge"><img src="https://agentmods.dev/badge/skills/cukas/claudes-ai-buddies/forge.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,604 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00022 $0.02604
Opus 5 $0.00011 $0.01302
Sonnet 5 $0.00004 $0.00521
Haiku 4.5 $0.00002 $0.00260

Measured 9d ago against content hash 7afd450fc396, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade C, and why

forge scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf "$FORGE_DIR"
skills/forge/SKILL.md · 266 lines

How it starts

The opening of the file, as written. The whole thing — 266 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/forge — Evolutionary Multi-AI Code Forge (v2)

Three AI engines independently implement the same task, compete on automated fitness tests, then the best solution is refined through critique-based synthesis. Claude is a pure orchestrator — it dispatches, scores, and judges but never competes.

How to invoke

Direct forge — user specifies a focused task:

/forge "Add NaN guard to scoring" --fitness "npx jest"

Optional flags:

  • --timeout SECS — override the safety cap (default: 600s from config key forge_timeout)
  • --async — run in background, continue conversation
  • --engines claude,codex — limit which engines compete (default: all available)
  • --starter codex — override which engine runs first

Using forge inside existing planning workflows

/forge works as a tool within any plan/build-guard, /plan-guarded, plan mode, or any task list.

The [forge] tag

When building a plan, Claude can tag tasks:

  • [forge] — algorithmic, tricky, multiple valid approaches
  • No tag or [direct] — straightforward, Claude handles normally

What to tag [forge]

  • Algorithms, scoring logic, data transformations
  • Race condition fixes, concurrency patterns
  • Performance-critical code paths
  • Anything with multiple valid approaches where three perspectives help

What NOT to tag [forge]

  • Types, imports, config, UI layout, wiring
  • Boilerplate, glue code — one obvious answer
  • Anything without a runnable fitness test

Step-by-step workflow

Phase 0: Setup

  1. Parse args. Extract the task, --fitness command, optional --timeout, --async, --engines, --starter.
  2. Detect engines. Source lib.sh and use the dynamic registry:
source "${CLAUDE_PLUGIN_ROOT}/hooks/lib.sh"
AVAILABLE=$(ai_buddies_available_buddies)  # CSV: "claude,codex,gemini,aider,..."
FORGE_TIMEOUT=$(ai_buddies_forge_timeout)

Any registered buddy with an installed binary will participate.

  1. Create forge directory:
FORGE_ID="$(date +%s)-${RANDOM}"
FORGE_DIR="/tmp/ai-buddies-${CLAUDE_SESSION_ID:-default}/forge-${FORGE_ID}"
mkdir -p "$FORGE_DIR"

Read the full file on GitHub · 266 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 266 lines · 22 tokens per session scan C 7afd450fc396

Subscribe to this mod's changes

forge is a skill published in the GitHub repository cukas/claudes-ai-buddies (9 stars, last pushed 4mo ago), licensed MIT. It adds 22 tokens to every session and 2,604 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

laravel-tdd

Test-driven development for Laravel with PHPUnit and Pest, factories, database testing, fakes, and coverage targets.

hashgraph-online/awesome-codex-plugins · 27 tokens

browser-qa

A browser-based quality check for deployed web pages and user flows. It uses browser automation to test rendering, navigation, forms, interactions, responsive behaviour, and accessibility-related issues.

hashgraph-online/awesome-codex-plugins · 58 tokens

eval-harness

An evaluation framework for AI-assisted development that defines pass/fail criteria, measures pass@k reliability, and runs regression checks. Eval-driven development means testing an agent's expected behavior before and after changes, much like tests for software.

hashgraph-online/awesome-codex-plugins · 43 tokens

live-preview

Mid-build visual verification loop. Takes screenshots of components during construction, not just after. Catches visual regressions and invisible features before they compound. Requires Playwright or similar screenshot tool.

SethGammon/Citadel · 40 tokens

session-rag-eval

Run and debug Chatbox session attachment RAG model evaluation with synthetic and real long-file fixtures.

chatboxai/chatbox · 25 tokens

brooks-sweep

Full-sweep mode: runs a unified analysis across all quality dimensions — code decay, architecture, tech debt, and test quality — then applies fixes directly to the codebase. Safe changes are auto-applied; risky changes are confirmed before execution. Drawing on twelve classic engineering books. Triggers when: user…

hyhmrright/brooks-lint · 178 tokens