用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tools-only/X-Skills --skill atac命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | atac |
| description | DSL and CLI for building and running Agentic Trajectories (ATaC). |
ATaC enables building automated "trajectories" (workflows) that combine MCP tools and Bash commands with standard programming logic (loops, conditionals).
init <file> --name <str> --description <str>
Creates a new trajectory file.
Example: atac init my_task.yaml --name "Search & Log" --description "Iterate via Amap"
add-input <file> --name <n> --type [string|integer|boolean|float|list|object] [--default <json>]
Defines parameters users pass at runtime.
Example (List): atac add-input task.yaml --name cities --type list --default '["Beijing", "Shanghai"]'
add-variable <file> --name <n> --type <t> [--value <json>]
Defines initial runtime variables (state).
schema
Prints the full JSON schema of the ATaC trajectory.
Use this to understand the valid YAML structure for direct editing.
add-for <file> --in <expr> --item <name> [--at <path>]
Iterates over a list expression.
Example: atac add-for task.yaml --in '${inputs.cities}' --item city
add-if <file> --condition <expr> [--at <path>]
Branches based on a Jinja2 expression.
Example: atac add-if task.yaml --condition "${city == 'Beijing'}" --at 0
add-set <file> --var <key=val> [--at <path>]
Assigns or updates a variable.
Example: atac add-set task.yaml --var "status=processed" --at 0.2.then
add-action <file> --id <id> --action <url> [--args <json>] [--output-to <var>] [--at <path>]
Invokes an MCP tool (mcp://server/method) or Bash command (bash://run).
Example (MCP): atac add-action t.yaml --id geo --action "mcp://amap-maps/maps_geo" --args '{"address": "${city}"}' --at 0
Example (Kimi): atac add-action t.yaml --id fetch --action "kimi://web/fetch" --args '{"url": "https://example.com"}'ATaC integrates Kimi-CLI built-in tools via the kimi:// scheme. These provide robust capabilities without requiring external MCP servers if Kimi-CLI is installed locally.
kimi://web/fetch: Robust web fetching with text extraction (local mode).kimi://file/read: Read files with line numbers and offsets.kimi://file/write: Write content to local files.kimi://file/glob / file/grep: Powerful file system search.Use atac show <file> to view current step indices. The --at flag targets where to insert or delete steps:
None: Root level (append).
0: Inside the body of step index 0 (if it's a loop).
0.2.then: Step 0 (Loop) -> Step 2 (If) -> inside then branch.
rm <file> --at <path>
Deletes a specific step by its index path.
Example: atac rm task.yaml --at 0.2.then.1
Build a workflow that geocodes a list of cities and logs results:
# 1. Setup
atac init demo.yaml --name "Amap Demo" --description "Geocode loop"
atac add-input demo.yaml --name cities --type list --default '["北京市", "成都市"]'
# 2. Add For-Loop (Index 0)
atac add-for demo.yaml --in '${inputs.cities}' --item city
# 3. Add Geocode Action inside loop (at path 0)
atac add-action demo.yaml --id geo --action "mcp://amap-maps/maps_geo" \
--args '{"address": "${city}"}' --at 0
# 4. Extract location to a variable (at path 0)
# Reference: content[0].text is the standard MCP output structure
atac add-set demo.yaml --var 'pos=${geo.output.content[0].text.return[0].location}' --at 0
# 5. Log via Bash (at path 0)
atac add-action demo.yaml --id log --action "bash://run" \
--args '{"command": "echo City: ${city} is at ${pos}"}' --at 0
# 6. Execute (ensure MCP_CONFIG is set)
atac run demo.yaml
You can use bash://run to invoke another ATaC trajectory natively, enabling modular and nested workflows. Ensure the environment has the correct configurations (like ATAC_MCP_SERVER_CONFIGS) since the nested command runs in a sub-shell.
atac add-action wrapper.yaml --id nested_call --action "bash://run" \
--args '{"command": "atac run inner_task.yaml --input param=val"}'
${inputs.key}${key} (shorthand for ${variables.key})${step_id.output}
${id.output.content[0].text.key}.${id.output.stdout}.atac run, repeated IDs (like those in loops) are returned as lists containing every result.While CLI commands ensure structural safety, agents can edit the YAML trajectory directly for speed or bulk changes.
atac schema to see the expected structure (e.g., specific field names for loops/ifs).atac show <file> to verify if the structure is still correctly parsed.