magent-add

magent-add is a command for Claude Code from gobing-ai/superskill. It costs 11 tokens per session (546 once invoked), scanned A, original, Apache-2.0.

A scaffolding command that creates a starter configuration file for a coding agent. It can target formats such as CLAUDE.md, GEMINI.md, or AGENTS.md and fill in a chosen template, description, and tool list.

In plain words
What is it for?
Use it to initialize a new agent configuration, choose a minimal or specialist template, add a purpose description, pre-populate tools, or write the file to a selected directory.
Why use it?
It removes the repetitive setup work involved in starting an agent configuration from an empty file. Options let you tailor the generated file to a platform and project.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions AGENTS.md.

Part of the cc plugin — 6 skills, 17 commands, 5 agents shipped together

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 commands/gobing-ai/superskill/magent-add
Clone the repo
git clone --depth 1 https://github.com/gobing-ai/superskill

Made for: Claude Code.

Or install cc, the plugin that ships this one along with the rest of its 6 skills, 17 commands, 5 agents.

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 magent-add

README.md
[![agentmods](https://agentmods.dev/badge/commands/gobing-ai/superskill/magent-add.svg)](https://agentmods.dev/commands/gobing-ai/superskill/magent-add)
Your own site
<a href="https://agentmods.dev/commands/gobing-ai/superskill/magent-add"><img src="https://agentmods.dev/badge/commands/gobing-ai/superskill/magent-add.svg" alt="Measured on agentmods" height="20"></a>
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 546 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.1 $0.00011 $0.00546
Opus 5 $0.00005 $0.00273
Sonnet 5 $0.00002 $0.00109
Haiku 4.5 $0.00001 $0.00055

Measured 2d ago against content hash 3f8d785b3393, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

magent-add scanned grade A with 0 findings 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 2d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/cc/commands/magent-add.md · 66 lines

What it actually says

Magent Add

Wraps cc:cc-magents skill.

Scaffold a main-agent configuration seed. Delegates to cc:cc-magents skill; the invoking agent must replace generic template prose with verified project facts.

When to Use

  • Create a new main agent config from scratch
  • Initialize a CLAUDE.md / GEMINI.md / AGENTS.md from a template

Arguments

Argument Description Default
<name> Output filename stem (CLAUDE creates CLAUDE.md) (required)
--description Free-text description of the config's purpose empty
--target Target platform claude
--output Output directory .
--template Built-in magent template (currently default) default
--tools Comma-separated tool names to pre-populate
--force Overwrite existing file false

Examples

# Scaffold CLAUDE.md in the current directory
/cc:magent-add CLAUDE --target claude --description "Project main-agent config"
# Scaffold AGENTS.md for Codex
/cc:magent-add AGENTS --target codex --output .

Delegates to cc:cc-magents skill:

Skill(skill="cc:cc-magents", args="scaffold $ARGUMENTS")

Direct CLI execution (all platforms):

superskill magent scaffold $ARGUMENTS

Discovery Discipline

Before scaffolding, inspect the active instruction load graph, project docs, package scripts, sibling configs, and prior evaluations. Ask only for missing, stable facts the repository cannot answer. After generation, delete inferred boilerplate, insert exact verified commands and boundaries, then validate and evaluate. Follow cc:cc-magents workflows § "Create Workflow"; the scaffold is not a finished config.

Use --force only when replacement was requested and the existing file was inspected.

Platform Notes

  • Claude Code: Invoke via Skill() delegation
  • Other platforms: Run superskill CLI directly via Bash tool
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. 2d ago Changed · +5 lines · +2 tokens per session 3f8d785b3393
  2. 5d ago First seen · 61 lines · 9 tokens per session scan A a6e6f7ed1d51

Subscribe to this mod's changes

magent-add is a command published in the GitHub repository gobing-ai/superskill (5 stars, last pushed 3d ago), licensed Apache-2.0. It adds 11 tokens to every session and 546 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.