clone-agent

clone-agent is a skill for Claude Code, Codex from desirecore/market. It costs 55 tokens per session (1,505 once invoked), scanned A, original, MIT.

A procedure for making an independent local copy of an existing software agent while preserving its behavior and configuration.

In plain words
What is it for?
Use it when creating a separate agent variant that keeps the original agent's persona, rules, skills, or settings without creating a repository fork.
Why use it?
It clarifies the difference between copying an existing agent and creating a new one, and calls out choices about private information and team distribution.

Skill for Claude CodeCodex

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 skills/desirecore/market/clone-agent
Any agent
npx skills add desirecore/market --skill clone-agent
Clone the repo
git clone --depth 1 https://github.com/desirecore/market

Made for: Claude Code, Codex.

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 clone-agent

README.md
[![agentmods](https://agentmods.dev/badge/skills/desirecore/market/clone-agent.svg)](https://agentmods.dev/skills/desirecore/market/clone-agent)
Your own site
<a href="https://agentmods.dev/skills/desirecore/market/clone-agent"><img src="https://agentmods.dev/badge/skills/desirecore/market/clone-agent.svg" alt="Measured on agentmods" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,505 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 $0.00055 $0.01505
Opus 5 $0.00028 $0.00753
Sonnet 5 $0.00011 $0.00301
Haiku 4.5 $0.00006 $0.00151

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

Security

Grade A, and why

clone-agent 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 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.

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.

skills/clone-agent/SKILL.md · 129 lines

How it starts

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

clone-agent Skill

L0: One-Sentence Summary

Clone an existing Agent into an independent local copy while explicitly handling private user data and team distribution impact.

L1: Overview

Use this skill when the user wants to copy an Agent or create an independent variant that keeps the source Agent's persona, principles, skills, and configuration. The clone receives a new ID and UUID. It is not an empty-template create operation and never creates a fork in GitHub, Gitee, or another code hosting account.

L2: Detailed Specification

Flow: decide whether cloning is appropriate → inspect the source Agent → confirm the clone name and private-data choices → call ManageAgent → report the clone's local and distribution properties.

1. Choose Clone or Create

  • Use clone when the user wants to retain an existing Agent's persona, rules, skills, and configuration in an independent copy or variant.
  • Use create-agent when the user wants a new Agent in a similar domain but with independently designed behavior.
  • Do not recreate an Agent merely to make it “similar”; create produces a fresh template and does not inherit the source capability package.

2. Confirm the Source

If the user did not provide an exact ID, call ManageAgent(action='list'); use ManageAgent(action='get', id) when name, status, or description needs verification.

The tool rejects these cases and they must not be bypassed:

  • The core desirecore Agent cannot be cloned.
  • An Agent whose routing was fixed by the human model selector cannot be cloned autonomously; ask the user to use the UI.
  • The source Agent does not exist.

3. Name and Private User Data

  • name is optional; the default is “Source Name (Copy)”.
  • Private user data is not copied by default. Pass copyUserData only when the user explicitly asks the clone to inherit memory, preferences, or relationship state.
  • copyUserData.memory copies private memory between the user and the source Agent.
  • copyUserData.preferences copies user preferences for the source Agent.
  • copyUserData.relationship copies the user-Agent relationship profile.

Read the full file on GitHub · 129 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 129 lines · 55 tokens per session scan A edabb617ca86

Subscribe to this mod's changes

clone-agent is a skill published in the GitHub repository desirecore/market (2 stars, last pushed 3d ago), licensed MIT. It adds 55 tokens to every session and 1,505 once invoked, about $0.0003 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.

Related

Other skills, from other repositories

skill-authoring

Author SKILL.md skills: frontmatter, validator limits, structure.

mateaix/mateclaw · 18 tokens

a0-plugin-router

Main entry point for all Agent Zero plugin tasks. Routes to specialist skills for creating, reviewing, contributing, managing, or debugging plugins. Use when the user mentions plugins, asks how the plugin system works, wants to build/install/uninstall/publish/debug a plugin, or asks about the Plugin Hub.

agent0ai/agent-zero · 65 tokens

a0-plugin-router

Main entry point for all Agent Zero plugin tasks. Routes to specialist skills for creating, reviewing, contributing, managing, or debugging plugins. Use when the user mentions plugins, asks how the plugin system works, wants to build/install/uninstall/publish/debug a plugin, or asks about the Plugin Hub.

Gen-Verse/PAST-Bench · 65 tokens

create-skill

Wizard for creating new Agent Zero skills. Guides users through creating well-structured SKILL.md files. Use when users want to create custom skills.

Gen-Verse/PAST-Bench · 33 tokens

agentskills-usage

Teaches AI agents how to use the AgentSkills Registry CLI to search, pull, and push skill bundles.

kai98k/agent-skills-registry · 26 tokens

agent-writer

Write new agent definitions, skill files, and agent configurations. Use when someone asks to "create a new agent", "write a skill", "define an agent", or needs to create reusable AI agent instructions for any platform. This is the meta-skill for creating other skills and agents in the polyagent-skills format.

gyanranjan/polyagent-skills · 69 tokens