跳到正文
FunCoding

搜索

搜索文档、Skill 和 MCP

cli-anything

Wrap any command-line tool into a JSON-emitting agent skill. Use when you want to make a CLI reliably callable and parseable by an AI agent — introspect its --help, define a structured-output (--json) contract and a stable error contract, then generate a SKILL.md wrapper with verified examples. Triggers on "wrap this CLI", "make X agent-usable", "generate a skill for this command", "turn a tool into an agent skill".

扩展智能体511skills/cli-anything/SKILL.md

安装

把这段话发给 Claude Code、Codex 或 Cursor。智能体会先检查安全性,你确认后才安装。

读取 https://funcoding.ai/skills/coco-research/coco/cli-anything/install.md ,按里面的步骤帮我安装这个 Skill。

SKILL.md

cli-anything: wrap any CLI into an agent skill

Turn any command-line tool into something an AI agent can call reliably and parse. The output is a thin, well-documented wrapper contract — never a reimplementation of the tool. Use the real tool; document how to drive it.

When to use

You have a CLI (your own, or a third-party binary) and you want an agent to invoke it predictably, read structured results, and recover from errors. This skill produces a SKILL.md wrapper that encodes that contract.

Step 1 — Introspect the CLI (do not guess)

Enumerate the real surface before writing anything:

  • Run <tool> --help and <tool> <subcommand> --help for each subcommand.
  • Capture: subcommands, flags (required vs optional), positional args, exit codes, and the output format (human text vs structured).
  • If --help is thin, read the source or man page. Every claim in the wrapper must trace to observed behavior.

Step 2 — Define the output contract

  • Prefer a --json machine-readable mode for every command an agent will call. Document the exact JSON keys the agent should read (one shape per command).
  • If the tool has no JSON mode, say so honestly and document what to parse from stdout (and which token carries the answer). Do not pretend output is structured when it is not.
  • Human output stays the default; structured output is the agent path.

Step 3 — Define the error contract

  • Map exit codes to meaning (0 = success; document each non-zero class).
  • On failure, surface a parseable signal ({"error": "...", "code": N} if the tool supports it, otherwise the captured stderr) — never a bare stack trace.
  • Fail loud and parseable. Never half-succeed silently.

Step 4 — Write the SKILL.md wrapper

Standard structure so an agent can discover and drive the tool:

  • Frontmatter: name, description (include natural trigger phrases).
  • Commands — each command: purpose, exact invocation, args, and the result shape it returns.
  • Examples — 2-4 real invocations with expected output.
  • Errors — the exit-code/error contract from Step 3.
  • Notes — auth, side effects, idempotency, network egress, prerequisites.

Step 5 — Verify against reality

  • Run each documented command once; confirm the real output matches what the wrapper claims.
  • Confirm any --json shape parses.
  • A wrapper that drifts from reality is worse than none — re-introspect and fix.

Principles

  • Use the real tool; never reimplement its logic in the wrapper.
  • Deterministic and structured beats clever.
  • The wrapper is a contract: introspect, structure, document, verify.

Worked example

skills/coco-cli/SKILL.md is a wrapper produced with this pattern over the cocosuperintelligence command — note how it documents the (human-only) output contract honestly rather than inventing a JSON mode the tool lacks.

相似的 Skill

skill-creator
anthropics/skills180k

skill-creator

Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.

扩展智能体

template-skill
anthropics/skills180k

template-skill

Replace with description of the skill and when Claude should use it.

扩展智能体

mcp-builder
anthropics/skills180k

mcp-builder

Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

扩展智能体

claude-api
anthropics/skills180k

claude-api

Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER — read BEFORE opening the target file; don't skip because it "looks like a one-liner" — whenever: the prompt names Claude/Anthropic in any form (Claude, Anthropic, Fable, Opus, Sonnet, Haiku, `anthropic`, `@anthropic-ai`, `claude-*`, `us.anthropic.*`, `[1m]`); the user asks about an LLM (pricing/model choice/limits/caching) — never answer from memory; OR the task is LLM-shaped with provider unstated (agent/MCP/tool-definition/multi-agent/RAG/LLM-judge/computer-use; generate/summarize/extract/classify/rewrite/converse over NL; debugging refusals/cutoffs/streaming/tool-calls/tokens). SKIP only when another provider is being worked on (overrides all triggers): OpenAI/GPT/Gemini/Llama/Mistral/Cohere/Ollama named in the query; OR `grep -rE 'openai|langchain_openai|google.generativeai|genai|mistralai|cohere|ollama'` over the project hits (run this grep FIRST if no provider named — don't Read the file).

扩展智能体

academy-guide
anthropics/skills180k

academy-guide

Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials, and use cases from Claude Academy (academy.claude.com), Anthropic's learning hub. Trigger on: "how do I", "how can I", "getting started with", "what can Claude do", "teach me", "learn to use"; questions about artifacts, projects, skills, plugins, connectors, MCP; requests about rolling Claude out to a team, class, or organization; and any ask for training materials, onboarding content, or learning resources. Use it when the user is learning how to use a feature or product — not when they are mid-task and just want the task done. This skill composes with other skills: after consulting product documentation to answer how a Claude feature works, also check here for a matching course or tutorial — a docs-grounded answer and an Academy recommendation belong together. Only recommend on a strong match; never invent Academy content.

扩展智能体

ponytail-help
DietrichGebert/ponytail160k

ponytail-help

Quick reference for ponytail levels, skills and commands. One-shot display. Use for /ponytail-help, "ponytail help", "how do I use ponytail".

扩展智能体