测试安装
- 作者仓库星标 15
- 作者更新于 实时读取
- 作者仓库 agentsmesh
- 领域
- 文档
- 兼容 Agent
-
- Claude Code
- Cursor
- Cline
- Codex
- Windsurf
- Gemini CLI
- +20
- 信任分
- 88 / 100 · 社区维护
- 作者 / 版本 / 许可
- @sampleXbro · 未声明 license
- Token 消耗评级
- 低消耗
- 接入复杂程度
- 即装即用
- 是否需要外部 API Key
- 不需要
- 兼容的系统
- 未声明(默认跨平台)
- 底层运行要求
- 无特殊要求
- 文件与系统权限
-
- 只读
- 允许写入 / 修改
- 网络行为
- 仅限本地
- 安装命令数
- 26 条
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
---
name: add-global-mode-target
description: Use when adding global mode support for one existing agentsmesh target from a target-structure/g…
category: 文档
runtime: 无特殊运行时
---
# add-global-mode-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-global-mode-target
description: Use when adding global mode support for one existing agentsmesh target from a target-structure/g…
category: 文档
source: sampleXbro/agentsmesh
---
# add-global-mode-target
## 什么时候使用
- add-global-mode-target 是文档方向的技能,对外说明 适合处理README、PRD、RFC、教程和知识库文档,核心价值是把输入、判断、执行、验证和交付边界固定下来,避免 Agent 泛泛回答。 把任务拆成可执行、可检…
- 面向PRD、RFC、README、项目说明或知识库整理,优先处理能明确输入、步骤和验收标准的工作。
## 需要提供什么
- 目标材料、目录范围、期望结果和不可改动内容。
- 是否允许联网、执行命令、读写文件或调用外部服务。
## 执行规则
- 围绕「Purpose / When To Use / Do Not Use This Skill For」组织步骤,不把推断写成作者事实。
- 读取文件、写入/修改文件;主要在本地完成;通常不需要额外 API Key。
- 先跑小样例,确认结果可检查后再扩大任务范围。
## 输出要求
- 给出最终产物、关键证据、验证方式和下一步动作。
- 信息不足时标记 unknown,不编造命令、平台或依赖。 作者原文负责流程事实;仓库文件负责来源和命令;流狐只补充适用场景、限制和质量判断。
skill "add-global-mode-target" {
输入层 -> 用户目标 + 目标文件 + 禁止范围 + 验收标准
上下文层 -> Purpose / When To Use / Do Not Use This Skill For
规则层 -> SKILL.md 触发条件 / 执行顺序 / 输出格式
运行层 -> 无特殊运行时 | 读取文件、写入/修改文件 | 主要在本地完成
安全层 -> 通常不需要额外 API Key + 小任务验证 + diff / 日志复核
输出层 -> 可复制结果 + 检查清单 + 下一步迭代
} 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
- The target already exists in
src/targets/<target>/ - You have a target doc with native global paths or global behavior
- The repository-wide global-mode foundation already exists (
init|install|generate|import|diff|lint|watch|check|merge|matrix --global) - The work is scoped to one target at a time
Do Not Use This Skill For
- Adding a brand-new target from scratch
- Defining the shared global-mode architecture for the first time
- Guessing a target's global behavior without a concrete doc or official source
Use add-agent-target for new targets. Use this skill only for the per-target global-mode pass.
Non-Negotiable Rules
MUST
- Start from the target doc and verify it against the live target implementation.
- Treat current code as the source of truth for project-mode behavior; preserve it unless the target doc requires a change.
- Write failing tests first for every new global-mode behavior.
- Keep the change target-scoped. Do not scatter new target-specific branches through shared code if descriptor metadata can carry the behavior.
- Add or update
descriptor.globaland keep project/global layout semantics explicit. - Verify link rewriting and import normalization for the target's global paths, not just generation paths.
- Test unsupported global features explicitly. If the target has no meaningful native global support, encode that and test the skip/warning behavior.
- Update docs if the supported-tools matrix, README, or global-mode docs change.
- Run the full verification stack before claiming completion.
MUST NOT
- Do not infer global paths from project-mode paths.
- Do not hardcode the target's global paths in shared cleanup or reference code when descriptor metadata can own them.
- Do not stop at “files generate”; global import, reference rewriting, and stale cleanup must also be checked when applicable.
- Do not silently mark a target as globally supported if only a subset of features work natively.
Workflow
Extract the contract from the doc.
- Record the target's native global root.
- Record which features are globally supported: rules, commands, agents, skills, MCP, hooks, ignore, permissions.
- Record root-instruction behavior, fallback paths, legacy paths, and any GUI-only/unsupported areas.
- Record whether import from global files is meaningful and lossless.
Cross-check the live target implementation.
- Read
src/targets/<target>/index.ts,constants.ts,generator.ts,importer.ts, andlinter.ts. - Identify the current project layout in
descriptor.project. - Identify where global behavior can reuse the same structure and where it cannot.
- Read
Write failing tests first.
- Add unit tests for target layout metadata (
descriptor.global, supported/unsupported features). - Add generation tests for global paths and root artifacts.
- Add import/reference-rewrite tests if the target can import from global files.
- Add stale-cleanup coverage if managed outputs differ from project mode.
- Add command/integration coverage that proves the existing
--globalCLI surface works for the new target where applicable.
- Add unit tests for target layout metadata (
Implement the target-global layout.
- Prefer target metadata over shared branching.
- Fill
descriptor.globalfor supported targets. - Keep managed outputs, root instruction paths, and path resolvers explicit.
- If only some features are global, encode that precisely and keep unsupported ones absent or skipped.
Wire shared behavior only where necessary.
- Update shared scope-aware path or import code only if the target truly needs it.
- Keep shared changes generic and descriptor-driven.
- If the target doc reveals a shared architectural gap, fix the gap once rather than adding one-off target branches.
- Do not re-architect CLI scope handling unless the target proves a real shared gap.
Update docs and matrix surfaces.
- Update
README.mdandwebsite/src/content/docs/reference/supported-tools.mdxif support levels or notes change. - Update
docs/plan-global-mode.mdif the target behavior clarifies the implementation contract.
- Update
Verify and QA.
- Run targeted tests during iteration.
- Run the full verification stack at the end.
- Apply the local
post-feature-qaskill before marking the work done.
Required Touchpoints
- Target descriptor and layout metadata:
src/targets/<target>/index.ts - Shared target lookup/path helpers:
src/targets/catalog/builtin-targets.tssrc/core/reference/map-targets.tssrc/core/reference/map.ts - If the target imports or rewrites links in global scope:
src/core/reference/rewriter.tssrc/core/reference/output-source-map.tssrc/core/reference/import-rewriter.tssrc/core/reference/import-map-builders.ts - If managed output ownership changes:
src/core/generate/stale-cleanup.ts - If the target needs command-surface proof:
tests/unit/cli/commands/*.test.tstests/integration/*global*.test.ts
Read the checklist reference for the full test and review matrix.
Required Verification
pnpm lintpnpm typecheckpnpm buildpnpm test
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:
- The target's global contract is derived from the provided doc and encoded in code, not left implicit.
descriptor.globalis either implemented correctly or omitted intentionally for unsupported targets.- Global generation paths are tested.
- Global import and reference rewriting are tested when the target supports them.
- Managed outputs and stale cleanup are correct for the target's global footprint.
- Docs and support matrix entries are current.
- Full verification passes.
先判断是否适合
作者设计意图
作者的方法与取舍
边界和复核