/forge:creating-agent-extensionsfrom Forge
Use when creating or updating a skill, MCP definition, or combined agent extension that must work from one canonical source across Codex, Claude Code, and Antigravity. Triggers: "에이전트 확장 생성", "공통 스킬", "여러 에이전트", "MCP 만들기", "cross-agent skill", "portable MCP".
Ships in Forge. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Respond to the user in the user's language. This skill file stays in English.
Create or update one agent-neutral source under .agent-extensions/, then render the native discovery and MCP configuration required by Codex, Claude Code, and Antigravity. Native authoring capabilities produce content candidates; this skill alone owns scope, canonical paths, adapter formats, collision policy, ownership state, and the final validation verdict.
This is an authoring workflow, not a distribution workflow. It does not create Marketplace entries, release packages, versions, publications, or remote pushes.
ONE CANONICAL SOURCE; NATIVE ENTRIES ARE ADAPTERS, NEVER COPIES.
NO NATIVE WRITE BEFORE A COMPLETE PREVIEW.
NO PROVIDER MAY OWN PATHS, MERGES, COLLISIONS, OR THE VALIDATION VERDICT.
NO COMPLETION CLAIM BEFORE VALIDATION AND A REALISTIC SCENARIO TEST.
Use this skill when:
bundle with shared ownership and drift detection.Do not use this skill when:
adapters/<agent>/ or make it a separate scope; do not call it portable.Reuse the work checklist for canonical content, preview, rendering, and verification. Read references/layout-contract.md when creating or changing extension structure, and references/authoring-providers.md when selecting a content provider. Reuse unchanged inspected context.
Record all of these before creating a canonical file:
repository or user.skill, mcp, or bundle.references/, scripts/, or assets/.stdio or http transport, command or URL, tools it supports, and environment variable names.If a skill example, trigger, MCP transport, or credential boundary is unknown, stop authoring and resolve that input. Do not hide missing decisions in generated prose.
Use exactly one root:
| Scope | Canonical root |
|---|---|
repository | <repo>/.agent-extensions/<extension-name>/ |
user | ~/.agent-extensions/<extension-name>/ |
Normalize names before staging. Names use lowercase letters, digits, and hyphens, begin and end with an alphanumeric character, and stay below 64 characters.
Inventory the official, system, bundled, and installed authoring capabilities visible in the current agent. Select by capability, not by a hard-coded name:
Prefer a suitable native provider. If none is available, use the Bundled fallback in references/authoring-providers.md. Provider absence never blocks the common structure.
Stage candidates under .forge/scratch/agent-extensions/<extension-name>/ or another disposable directory. The provider may create:
SKILL.md and its references/, scripts/, and assets/ siblings.servers.json candidate.The provider must not write .agent-extensions/, .agents/skills/, .claude/skills/, .gemini/config/skills/, or any native MCP configuration. Isolate the provider-authored diff, preserve unrelated preexisting content, and remove only the provider's unowned edits outside staging before continuing.
Apply the common contract before canonical creation:
name and description in canonical skill frontmatter.envVars or headersFromEnv environment variable names.mcp/<server-name>/; the provider does not choose that destination.planResolve this skill's installed directory and set MANAGER to its scripts/manage_extension.py. Run --help when the interface is unfamiliar. For a concrete bundle:
python3 "$MANAGER" plan \
--scope repository \
--base-dir /path/to/repository \
--name example-extension \
--description "Example extension for confirmed workflows." \
--profile bundle \
--skill-source /path/to/staging/example-skill/SKILL.md \
--mcp-source /path/to/staging/servers.json
Repeat --skill-source for multiple skills. For skill, omit --mcp-source; for mcp, omit skill sources. Review canonicalWrites, nativeTargets, collisions, credentialRequirements, and requiresConfirmation. A non-empty collision list stops creation until the user chooses rename, adopt, or merge; this workflow does not make that choice.
For user scope, show the complete plan JSON plus any staged MCP implementation and shared-resource destination that the manager cannot infer. Ensure this preview is covered by user approval before passing --confirm-user-write to init or copying any candidate into the user canonical root.
For every user-scope write, compare the complete preview with the concrete scope already approved. Reuse prior approval across init, canonical updates, and render only when targets, content, credentials, and effects match; obtain confirmation for a new or changed decision before writing.
Repository scope uses the repository change authorization already given for the task. Do not interpret it as release or push authority.
initRun init with the same source arguments used for the reviewed plan. Add --confirm-user-write only when covered by approval of the complete user-scope preview.
The manager copies each staged skill plus its references/, scripts/, and assets/, writes canonical MCP JSON, and creates extension.json. After init, the orchestrator may copy approved MCP implementation candidates into mcp/<server-name>/ and shared files into shared/. Keep every such write inside the previewed root.
For an existing owned extension, do not run init again. Run validate before editing, preview the canonical diff and its native effects, apply only canonical content/resource changes covered by task authorization and any required user-scope approval, then continue to adapter rendering. Component removal, rename, or ownership adoption requires an explicit user decision.
For repository scope:
python3 "$MANAGER" render --extension /path/to/repository/.agent-extensions/example-extension
For user scope, first run render without confirmation. Its expected E_CONFIRMATION response includes canonicalSources, entry-level changes, nativeTargets, credentialRequirements, and collisions without writing. Compare it with the approved scope using step 7. Once covered by approval, run:
python3 "$MANAGER" render \
--extension /home/user/.agent-extensions/example-extension \
--confirm-user-write
Never bypass E_COLLISION or E_DRIFT. A same-name native entry without matching ownership state belongs to someone else. An owned entry whose live hash changed requires the user to choose how to reconcile it.
python3 "$MANAGER" validate --extension /path/to/.agent-extensions/example-extension
Validation must return status: PASS. It checks manifest shape, canonical paths and resources, unfinished markers, raw credential fields, ownership state, canonical hash, native entry hashes, and adapter parity. Do not edit state to make a failure disappear; repair the canonical or live owner mismatch and render again.
Test the actual request, not only file existence. Match the scenario set to what changed:
Record the scenarios run and the evidence reused. If a required service or target agent is unavailable and no valid evidence covers it, keep that gate pending and report the limitation; do not claim completion of the required set or tested native support. A simulated scenario cannot prove native integration, and structural validation cannot replace a behavior test.
| Purpose | Path |
|---|---|
| Repository canonical source | <repo>/.agent-extensions/<extension-name>/ |
| User canonical source | ~/.agent-extensions/<extension-name>/ |
| Disposable provider staging | .forge/scratch/agent-extensions/<extension-name>/ |
| Deterministic manager | scripts/manage_extension.py in this skill |
| Layout and native target contract | references/layout-contract.md in this skill |
| Provider and fallback contract | references/authoring-providers.md in this skill |
| Code | Meaning | Required response |
|---|---|---|
E_CONFIRMATION | user-scope write lacks reviewed confirmation | show payload, compare with prior approval or obtain confirmation, rerun only if covered |
E_COLLISION | same native name is not owned by this extension | stop for rename, adopt, or merge decision |
E_DRIFT | canonical, state, or live native entry no longer matches | identify owner and target; reconcile before rendering |
E_PROFILE_INPUT | profile and staged sources disagree | fix the request contract and rerun plan |
E_MCP_SCHEMA | canonical MCP fields or transport are invalid | normalize the staged definition |
E_SECRET | a raw credential field or value was found | remove it and use an environment variable name |
After manager validation and realistic scenario tests pass, use the forge verifying-work skill against the required verification set for the current work class. Use affected statements and regression evidence for a partial change to an implemented baseline; do not invent a Spec for spec-free work. Release and push remain separate actions requiring explicit authority.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub hope1026/aiagent-plugins --plugin forge12 skills in this plugin
/executing-plansUse when executing or resuming an existing plan whose dependencies, coordination, or recovery state need attention. Triggers: "계획 실행", "구현 진행", "다음 태스크", "중단 작업 재개", execute the plan./marketing-toneUse when writing or revising marketing, product, landing page, launch, campaign, social, sales, or positioning copy that should sound confident, factual, and trustworthy. Triggers: "마케팅", "랜딩페이지", "제품 소개", "카피", "캠페인", "SNS", "출시", "프로모션", marketing copy, product copy, launch copy./operations-toneUse when writing or revising customer support, operations updates, incident replies, GitHub issue responses, support emails, bug status notices, release/update replies, or service status messages that should sound trustworthy and clear. Triggers: "운영", "고객 답변", "고객 응대", "지원 답변", "이슈 답변", "장애 안내", "수정 예정", support reply, incident update, customer response.Other plugins' skills for the same job