add-agent-target

add-agent-target is a skill for Claude Code, Codex from sampleXbro/agentsmesh. It costs 62 tokens per session (1,880 once invoked), scanned A, original, MIT.

A procedure for adding support for a completely new AI-agent target to Agentsmesh. A target is one agent or tool whose files and configuration the repository can import, generate, or check.

In plain words
What is it for?
Use it to add a built-in or external target, including its canonical mappings, importer, generator, linter, fixtures, unit tests, integration tests, end-to-end tests, global mode, documentation, and final verification.
Why use it?
It prevents incomplete support caused by overlooking the target's file format, project and global locations, tests, documentation, or matrix listings. It requires researching the target's official format and verifying the implementation with realistic examples.

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

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 add-agent-target

README.md
[![agentmods](https://agentmods.dev/badge/skills/samplexbro/agentsmesh/add-agent-target.svg)](https://agentmods.dev/skills/samplexbro/agentsmesh/add-agent-target)
Your own site
<a href="https://agentmods.dev/skills/samplexbro/agentsmesh/add-agent-target"><img src="https://agentmods.dev/badge/skills/samplexbro/agentsmesh/add-agent-target.svg" alt="Measured on agentmods" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,880 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.00062 $0.01880
Opus 5 $0.00031 $0.00940
Sonnet 5 $0.00012 $0.00376
Haiku 4.5 $0.00006 $0.00188

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

Security

Grade A, and why

add-agent-target 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.

.agents/skills/add-agent-target/SKILL.md · 103 lines

How it starts

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

Purpose

Add Agent Target

Use this skill when the task is to add a brand-new supported agent target to this repository (built-in) or as an external plugin package.

Primary reference: docs/add-new-target-playbook.md is the step-by-step workflow (phases 1–9, file templates, verification gates). Open it first and follow it. This skill file is the contract — the non-negotiable rules, touchpoints, and completion bar. The playbook is how; this file is what and why.

Companion skill: add-global-mode-target — use only when extending global-mode support into an existing target that was built before global was a first-class contract. For new targets, global mode is part of this skill (scaffold wires it automatically).

When To Use

  • The task is to add a tool not currently in src/targets/catalog/target-ids.ts
  • Scope covers both project and global modes unless the target has no meaningful global surface
  • Delivery is either built-in (in this repo) or external plugin (standalone npm package)

Do Not Use This Skill For

  • Extending global-mode coverage on an existing target — use add-global-mode-target
  • Changing capability levels for an existing target — update the target's descriptor directly
  • Plugin feature work that doesn't add a new target id

Non-Negotiable Rules

MUST

  • Search the internet for the target's current official file structure, config files, and example content before changing code.
  • Prefer official docs and other primary sources. Use vendor examples or source code only when official docs are incomplete, and call that out explicitly.
  • Separate the target product from the current assistant runtime before making format decisions. Do not confuse a generated target like codex-cli with Codex desktop/chat, or local CLI MCP config with app-managed connectors.
  • Capture the target's real capability map for every canonical feature: rules, additionalRules, commands, agents, skills, mcp, hooks, ignore, permissions.
  • Fill in the descriptor metadata block (displayName, category, officialUrl, shortDescription). This is required at compile time and drives every auto-generated tool list in README + website. The scaffold leaves TODO(agentsmesh-scaffold) markers — replace them with the values from your Phase 1 research before commit.
  • When a feature is none but skills is native or embedded, evaluate whether supportsConversion should project that feature as skills. If the target reads skill bundles, commands and agents with no native surface should be projected as skills via supportsConversion: { commands: true, agents: true } and registered in src/config/core/conversions.ts with DEFAULT_*_TO_SKILLS. Do not add lint warnings for features that are projected as skills — only warn for features that are truly dropped.
  • Start from agentsmesh target scaffold <id> when building a built-in target. Do not hand-write the 10 skeleton files the scaffold produces.
  • Write failing tests first for every new behavior. Do not implement first and backfill later.
  • Add unit, integration, and e2e coverage for the complete import and generate flow, including global scope when applicable.
  • Add rich and realistic fixtures for the new target. Fixtures must resemble real projects, not toy placeholders.
  • Cover all edge cases for the new target, including legacy paths, fallbacks, malformed files, partial support, and unsupported features.
  • Wire descriptor capabilities for both project and global scope. New targets must include global mode unless the target has no global config surface at all, and that absence must be documented.
  • Update every affected command surface and user-facing document so the new target is discoverable and accurately described.
  • Update the compatibility matrix to reflect native, embedded, partial, or unsupported features. The matrix auto-builds from descriptor capabilities; pnpm matrix:verify must pass. The same script auto-generates the import-targets table, homepage tool list, and README tool list from descriptor metadata — no manual edits to those tables.
  • Update init detection and import empty-state messaging for the new target when native files exist.
  • Reuse existing capability-focused tests where possible; extend them instead of duplicating assertions across multiple files.
  • Preserve the canonical .agentsmesh/ contract. If the target cannot represent a feature natively, model that explicitly instead of inventing fake native output.
  • Ensure every internal file link or reference inside generated or imported Markdown artifacts is convertible through the shared reference-rewrite pipeline, just like the existing targets. Do not ship a new target unless canonical .agentsmesh/ references round-trip cleanly across that target's Markdown surfaces.
  • Run the full verification stack, including the packaging gates (pnpm attw, pnpm publint, pnpm consumer-smoke), before claiming completion.
  • Run the post-feature-qa skill before marking the task done.

Read the full file on GitHub · 103 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 · 103 lines · 62 tokens per session scan A 10f960dcc40b

Subscribe to this mod's changes

add-agent-target is a skill published in the GitHub repository sampleXbro/agentsmesh (24 stars, last pushed 4d ago), licensed MIT. It adds 62 tokens to every session and 1,880 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-30.

Related

Other skills, from other repositories

auth-web-cloudbase

CloudBase Web Authentication Quick Guide for frontend integration after auth-tool has already been checked. Provides concise and practical Web authentication solutions with multiple login methods and complete user management.

TencentCloudBase/CloudBase-AI-Toolkit · 38 tokens

browse-and-evaluate

Use when exploring the ai-agent-skills catalog to find, compare, and evaluate skills before installing. Always use --fields to limit output size and --dry-run before committing to an install.

MoizIbnYousaf/Ai-Agent-Skills · 43 tokens

telnyx-messaging-hosted-curl

Set up hosted SMS numbers, toll-free verification, and RCS messaging. Use when migrating numbers or enabling rich messaging features. This skill provides REST API (curl) examples.

team-telnyx/ai · 45 tokens

render-airdrop-carousel

Assemble a viral iOS "AirDrop" notification-carousel video ad (≈6–8s, 9:16) from a brand line plus 6–16 real product photos — a native AirDrop share-sheet card ("Brand would like to share a · Decline / Accept") springs up and its preview window CYCLES through the products, landing on a range/lineup payoff with an…

gooseworks-ai/goose-skills · 207 tokens

render-3d-product-showcase

Assemble a premium 3D product-showcase ad from a config — four beat clips (an orbiting hero rotation, a macro push-in, a physics reveal, a typographic close) normalized to the brand-color canvas, hard-concatenated in order, closed on a deterministic Playwright brand end card, and mixed under one instrumental bed at…

gooseworks-ai/goose-skills · 159 tokens

Accessibility Manual Audit

Teach agents to guide manual accessibility audits for keyboard, screen reader, zoom, reflow, focus, and WCAG 2.2 criteria that scanners miss.

PramodDutta/qaskills · 36 tokens