claude-code-forge CLAUDE.md

claude-code-forge CLAUDE.md is an instructions file for coding agents from XRenSiu/claude-code-forge. It costs 2,896 tokens per session, scanned B, original, MIT.

Repository rules for a Claude Code plugin marketplace, where plugins contain reusable skills, agents, and rules.

In plain words
What is it for?
Adding or changing plugins, skills, and agents while updating semantic versions and local plugin settings correctly.
Why use it?
They prevent version information from becoming inconsistent across plugin files and the marketplace catalogue.

Instructions file

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/xrensiu/claude-code-forge/claude-md
Clone the repo
git clone --depth 1 https://github.com/XRenSiu/claude-code-forge

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 claude-code-forge CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/xrensiu/claude-code-forge/claude-md.svg)](https://agentmods.dev/instructions/xrensiu/claude-code-forge/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/xrensiu/claude-code-forge/claude-md"><img src="https://agentmods.dev/badge/instructions/xrensiu/claude-code-forge/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,896 This file is loaded in full into every session.
When invoked 2,896 The same file — it is already loaded in full.
Security scan B 1 finding. Scan, not verified.
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 $0.02896 $0.02896
Opus 5 $0.01448 $0.01448
Sonnet 5 $0.00579 $0.00579
Haiku 4.5 $0.00290 $0.00290

Measured 3d ago against content hash bca42a7a3301, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

claude-code-forge CLAUDE.md scanned grade B 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 3d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

4. **本机启用**:在 `~/.claude/settings.json` 的 `enabledPlugins` 字典加一条:
CLAUDE.md · 177 lines

How it starts

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

Claude Code Forge - 项目规范

这是 Claude Code 插件市场项目。结构:.claude-plugin/marketplace.jsonplugins/<name>/ → skills / agents / rules。

版本管理

使用语义化版本 (SemVer)。三处版本必须同步:

文件 作用
plugins/<name>/skills/<skill>/SKILL.md frontmatter version Skill 自身版本
plugins/<name>/.claude-plugin/plugin.json version 插件版本(源头)
.claude-plugin/marketplace.json 对应插件的 version 市场注册表(与 plugin.json 同步)

什么时候 bump

变更类型 Skill 版本 Plugin 版本 示例
修复 typo / 格式调整 patch (+0.0.1) patch (+0.0.1) 1.0.0 → 1.0.1
功能增强 / 流程变更 minor (+0.1.0) minor (+0.1.0) 1.0.0 → 1.1.0
不兼容变更 / 重大重构 major (+1.0.0) major (+1.0.0) 1.0.0 → 2.0.0
新增 skill / agent minor (+0.1.0) 1.1.0 → 1.2.0

修改文件后的同步清单

修改 skill 内容时,必须同时更新:

  1. 该 skill 的 SKILL.md frontmatter version
  2. plugins/<name>/.claude-plugin/plugin.jsonversion
  3. .claude-plugin/marketplace.json 中对应插件的 version

新增 skill / agent 时,更新第 2、3 项。

新建插件(plugin)的额外步骤

新增整个 plugin(不是给已存在 plugin 加 skill/agent)时,除上面三处外还要做:

  1. 本机启用:在 ~/.claude/settings.jsonenabledPlugins 字典加一条:
    "enabledPlugins": {
      "<plugin-name>@claude-code-forge": true
    }
    
  2. 重启 Claude Code 会话——Skill 工具的可用列表在 session 启动时定型,运行中改 settings.json 不会热加载。

第 4-5 步是用户级、不入 git 的本机配置,但它决定了你能不能调用新 plugin 的 skill。漏了它就会得到 Unknown skill 报错,且本会话无法补救(必须新开 session)。

历史 bug:bespoke-design-system v1.8.0 完整注册到 marketplace.json 但漏了 enabledPlugins,导致用户调 /bespoke-design-system 时 Skill 工具找不到。详见 ~/.claude/projects/.../memory/feedback_plugin_enable_required.md

Commit 规范

遵循 Conventional Commits:

  • feat: 新功能(新 skill / agent)
  • fix: 修复
  • refactor: 重构
  • docs: 文档
  • chore: 维护(版本 bump、配置变更)

版本 bump 单独提交:chore: bump <plugin> to v<version> with <description>

项目结构

claude-code-forge/
├── .claude-plugin/marketplace.json   # 市场注册表
├── plugins/
│   └── <plugin-name>/
│       ├── .claude-plugin/plugin.json  # 插件清单
│       ├── agents/                     # Agent 定义 (*.md)
│       ├── skills/                     # Skill 定义 (<name>/SKILL.md),也作为斜杠命令入口
│       ├── rules/                      # 约束规则 (*.md)
│       ├── hooks/hooks.json            # 事件钩子
│       └── docs/                       # 阶段文档
├── CONTRIBUTING.md
└── README.md

Read the full file on GitHub · 177 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. 3d ago First seen · 177 lines · 2,896 tokens per session scan B bca42a7a3301

Subscribe to this mod's changes

claude-code-forge CLAUDE.md is an instructions file published in the GitHub repository XRenSiu/claude-code-forge (2 stars, last pushed 1mo ago), licensed MIT. It adds 2,896 tokens to every session, about $0.0145 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,345 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

next.js AGENTS.md

Instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens