Add agent target

From sampleXbro/agentsmesh · View interactive version

Add agent target is an AI agent skill from the GitHub repository sampleXbro/agentsmesh. Use when adding support for a new AI agent target to agentsmesh. Covers official format research, canonical mapping, importer/generator/linter work, realistic fixtures, unit/integration/e2e coverage, matrix/docs updates, and final verification. Includes both project and global mode from day one.

How to use this skill

Skill file

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

Do Not Use This Skill For

Non-Negotiable Rules

MUST

MUST NOT

Workflow (detailed in `docs/add-new-target-playbook.md`)

  1. Research — §1 of the playbook. Answer every research-checklist item from primary sources before writing code.
  2. Scaffold — §2 of the playbook. Run pnpm exec agentsmesh target scaffold <id>, then register the id in the three catalog files listed there.
  3. Constants and capabilities — §3. Fill in paths and capability levels for both project and global scope.
  4. Conversion eligibility — For each feature marked none in capabilities, check if the target supports skills (native or embedded). If so, add supportsConversion to the descriptor for those features, register defaults in src/config/core/conversions.ts, and omit lint warnings for those features (they become embedded via skill projection). Only emit lint warnings for features that are truly dropped with no fallback.
  5. Tests first — §4. Add realistic fixtures under tests/e2e/fixtures/<id>-project/ and write failing unit/integration/e2e tests.
  6. Implement generators, importers, and reference maps — §5. Feature-by-feature, using existing targets as reference implementations.
  7. Global mode — §6. Fill in descriptor.global, rewriteGeneratedPath, and any skillMirror or sharedArtifacts needs.
  8. Plugin packaging — §7. Only if shipping as an external plugin rather than a built-in.
  9. Matrix and docs — §8. Run pnpm schemas:generate && pnpm matrix:generate and update website/src/content/docs/reference/supported-tools.mdx.
  10. Verification — §9. Run the full stack (see below). All must pass.

Refer to ./references/target-addition-checklist.md for the concrete audit list of touchpoints, tests, fixtures, and edge cases.

Required Verification

Before claiming completion, every command must pass:

If a narrower command is useful during iteration, run it first, but do not skip the full stack at the end.

Completion Standard

The task is not done until all of the following are true:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.