refactor-design vs claude-api
Side-by-side comparison of two Claude Agent Skills. Pick the right one for Claude Code or Claude Desktop.
perf-prof 项目内的模块抽取 / 分层重构流程(仅用于改动本仓库源码)。先出接口稿、由独立审查员按 AGENTS.md「模块边界设计准则」审查、人只确认分层与头文件,再实现、拆提交、复盘补充准则。触发场景:把多个 profiler 里重复的机制抽成公共模块(如…
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
Comparison
| Feature | refactor-design | claude-api |
|---|---|---|
| Bundled scripts | no | no |
| Allowed tools | any | any |
| Install scope | personal | personal |
| Category | coding | coding |
| Verified | — | |
| License | — | Complete terms in LICENSE.txt |
| Author | duanery | Anthropic |
| Repo | duanery/perf-prof | anthropics/skills |
When to pick refactor-design
perf-prof 项目内的模块抽取 / 分层重构流程(仅用于改动本仓库源码)。先出接口稿、由独立审查员按 AGENTS.md「模块边界设计准则」审查、人只确认分层与头文件,再实现、拆提交、复盘补充准则。触发场景:把多个 profiler 里重复的机制抽成公共模块(如 src/filter/event_filter.c 的 event_filter / pid_filter)、重画模块边界、给 lib/ 或框架层加新抽象、用户说"重构""抽出来""共用""分层"。不用于:单文件内的小改、bug 修复、新增分析器(见 AGENTS.md「开发新分析器」)。
When to pick 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).
Looking for something else? Browse all skills.