Add global mode target

From sampleXbro/agentsmesh · View interactive version

Add global mode target is an AI agent skill from the GitHub repository sampleXbro/agentsmesh. Use when adding global mode support for one existing agentsmesh target from a target-structure/global-path doc. Covers contract extraction from docs, descriptor.global layout wiring, generator/import/reference-rewrite touchpoints, strict tests, docs updates, and final verification for one target at

How to use this skill

Skill file

Purpose

Add Global Mode Target

Use this skill when the task is to add global mode support for one existing target after you have a target-specific document that describes the native global file paths and behavior.

Read .agentsmesh/skills/add-global-mode-target/references/global-mode-target-checklist.md before editing code. Treat it as the minimum implementation and QA checklist.

When To Use

Do Not Use This Skill For

Use add-agent-target for new targets. Use this skill only for the per-target global-mode pass.

Non-Negotiable Rules

MUST

MUST NOT

Workflow

  1. Extract the contract from the doc.
  1. Cross-check the live target implementation.
  1. Write failing tests first.
  1. Implement the target-global layout.
  1. Wire shared behavior only where necessary.
  1. Update docs and matrix surfaces.
  1. Verify and QA.

Required Touchpoints

src/targets/<target>/index.ts

src/targets/catalog/builtin-targets.ts

src/core/reference/map-targets.ts

src/core/reference/map.ts

src/core/reference/rewriter.ts

src/core/reference/output-source-map.ts

src/core/reference/import-rewriter.ts

src/core/reference/import-map-builders.ts

src/core/generate/stale-cleanup.ts

tests/unit/cli/commands/*.test.ts

tests/integration/*global*.test.ts

Read the checklist reference for the full test and review matrix.

Required Verification

Add narrower unit/integration/e2e commands while iterating, but do not skip the full stack.

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.