Agent助手
- 作者仓库星标 15
- 作者更新于 实时读取
- 作者仓库 agentsmesh
- 领域
- 文档
- 兼容 Agent
-
- Claude Code
- Cursor
- Cline
- Codex
- Windsurf
- Gemini CLI
- +20
- 信任分
- 88 / 100 · 社区维护
- 作者 / 版本 / 许可
- @sampleXbro · 未声明 license
- Token 消耗评级
- 低消耗
- 接入复杂程度
- 需简单配置
- 是否需要外部 API Key
- 不需要
- 兼容的系统
- macOS · Linux · Windows
- 底层运行要求
- 无特殊要求
- 文件与系统权限
-
- 只读
- 允许写入 / 修改
- Shell 执行
- 网络行为
- 仅限本地
- 安装命令数
- 26 条
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
---
name: add-agent-target
description: Use when adding support for a new AI agent target to agentsmesh. Covers official format research…
category: 文档
runtime: 无特殊运行时
---
# add-agent-target 输出预览
## PART A: 任务判断
- 适用问题:PRD、RFC、README、项目说明或知识库整理。
- 输入要求:目标材料、限制条件、期望输出和验收方式。
- 证据边界:围绕“Purpose / When To Use / Do Not Use This Skill For”读取原文规则,不把推断写成作者承诺。
## PART B: 执行结果
- **01** 任务判断:确认你的需求是否属于PRD、RFC、README、项目说明或知识库整理,并标出输入、限制和预期结果。
- **02** 执行计划:优先按“Purpose / When To Use / Do Not Use This Skill For”拆成步骤,说明每一步会读取什么、修改什么、产出什么。
- **03** 交付结果:给出可复制的命令、文件改动、检查清单或内容草稿,并说明如何继续迭代。
- **04** 风险边界:结合 读取文件、写入/修改文件、执行终端命令、主要在本地完成、通常不需要额外 API Key 给出执行前确认项。
## Running Rules
- 读取文件、写入/修改文件、执行终端命令;主要在本地完成;通常不需要额外 API Key。
- 先小样例验证,再放大到真实任务。
- 交付时同时给结果、检查口径和下一步迭代建议。 原文没有稳定的斜杠命令要求。安装验证后通常全局生效,直接在对话里点名这个 Skill 并描述任务即可。
告诉 Agent 目标文件或材料、期望结果、不可改范围、是否允许联网或执行命令。本 Skill 的权限画像是:读取文件、写入/修改文件、执行终端命令。
先用一个小任务确认它会围绕“Purpose / When To Use / Do Not Use This Skill For”工作;涉及文件或命令时,先看 diff、日志、预览或测试结果。
检查最终产物是否包含明确结果、必要证据和下一步动作;如果输出泛泛而谈,就补充输入、边界和验收标准后重跑。
---
name: add-agent-target
description: Use when adding support for a new AI agent target to agentsmesh. Covers official format research…
category: 文档
source: sampleXbro/agentsmesh
---
# add-agent-target
## 什么时候使用
- add-agent-target 是文档方向的技能,对外说明 适合处理README、PRD、RFC、教程和知识库文档,核心价值是把输入、判断、执行、验证和交付边界固定下来,避免 Agent 泛泛回答。 把任务拆成可执行、可检查、可继续迭…
- 面向PRD、RFC、README、项目说明或知识库整理,优先处理能明确输入、步骤和验收标准的工作。
## 需要提供什么
- 目标材料、目录范围、期望结果和不可改动内容。
- 是否允许联网、执行命令、读写文件或调用外部服务。
## 执行规则
- 围绕「Purpose / When To Use / Do Not Use This Skill For」组织步骤,不把推断写成作者事实。
- 读取文件、写入/修改文件、执行终端命令;主要在本地完成;通常不需要额外 API Key。
- 先跑小样例,确认结果可检查后再扩大任务范围。
## 输出要求
- 给出最终产物、关键证据、验证方式和下一步动作。
- 信息不足时标记 unknown,不编造命令、平台或依赖。 作者原文负责流程事实;仓库文件负责来源和命令;流狐只补充适用场景、限制和质量判断。
skill "add-agent-target" {
输入层 -> 用户目标 + 目标文件 + 禁止范围 + 验收标准
上下文层 -> Purpose / When To Use / Do Not Use This Skill For
规则层 -> SKILL.md 触发条件 / 执行顺序 / 输出格式
运行层 -> 无特殊运行时 | 读取文件、写入/修改文件、执行终端命令 | 主要在本地完成
安全层 -> 通常不需要额外 API Key + 小任务验证 + diff / 日志复核
输出层 -> 可复制结果 + 检查清单 + 下一步迭代
} 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
projectandglobalmodes 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-cliwith 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
metadatablock (displayName,category,officialUrl,shortDescription). This is required at compile time and drives every auto-generated tool list in README + website. The scaffold leavesTODO(agentsmesh-scaffold)markers — replace them with the values from your Phase 1 research before commit. - When a feature is
nonebutskillsisnativeorembedded, evaluate whethersupportsConversionshould project that feature as skills. If the target reads skill bundles, commands and agents with no native surface should be projected as skills viasupportsConversion: { commands: true, agents: true }and registered insrc/config/core/conversions.tswithDEFAULT_*_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:verifymust pass. The same script auto-generates the import-targets table, homepage tool list, and README tool list from descriptormetadata— 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-qaskill before marking the task done.
MUST NOT
- Do not infer the target format from old fixtures, README text, or memory alone.
- Do not add placeholder fixtures with
SYNTHETICmarkers or obviously fake content. - Do not add shallow smoke tests as a substitute for feature coverage.
- Do not silently skip unsupported features; document and test the chosen behavior.
- Do not leave commands, schema enums, init detection, matrix output, or docs partially updated.
- Do not hardcode target-specific branches in shared code when a descriptor field can carry the behavior.
Workflow (detailed in docs/add-new-target-playbook.md)
- Research — §1 of the playbook. Answer every research-checklist item from primary sources before writing code.
- Scaffold — §2 of the playbook. Run
pnpm exec agentsmesh target scaffold <id>, then register the id in the three catalog files listed there. - Constants and capabilities — §3. Fill in paths and capability levels for both project and global scope.
- Conversion eligibility — For each feature marked
nonein capabilities, check if the target supports skills (nativeorembedded). If so, addsupportsConversionto the descriptor for those features, register defaults insrc/config/core/conversions.ts, and omit lint warnings for those features (they becomeembeddedvia skill projection). Only emit lint warnings for features that are truly dropped with no fallback. - Tests first — §4. Add realistic fixtures under
tests/e2e/fixtures/<id>-project/and write failing unit/integration/e2e tests. - Implement generators, importers, and reference maps — §5. Feature-by-feature, using existing targets as reference implementations.
- Global mode — §6. Fill in
descriptor.global,rewriteGeneratedPath, and anyskillMirrororsharedArtifactsneeds. - Plugin packaging — §7. Only if shipping as an external plugin rather than a built-in.
- Matrix and docs — §8. Run
pnpm schemas:generate && pnpm matrix:generateand updatewebsite/src/content/docs/reference/supported-tools.mdx. - Verification — §9. Run the full stack (see below). All must pass.
Refer to .agentsmesh/skills/add-agent-target/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:
pnpm typecheckpnpm lintpnpm testpnpm test:e2epnpm matrix:verifypnpm publintpnpm attwpnpm consumer-smoke
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:
- The target appears in
agentsmesh matrixCLI output and passespnpm matrix:verify. - Import and generate behavior are both covered for every supported feature, in both project and global scope where applicable.
- Unsupported or lossy features are documented in
website/src/content/docs/reference/supported-tools.mdxand tested. - Fixtures under
tests/e2e/fixtures/<id>-project/are rich enough to exercise real parsing branches (rules, skills, MCP, hooks, ignore as applicable). - Round-trip import → generate preserves content byte-for-byte where the format permits.
- README matrix and website supported-tools page are in sync.
- All verification commands listed above pass.
post-feature-qaskill has been applied and any gaps closed.
先判断是否适合
作者设计意图
作者的方法与取舍
边界和复核