跳到正文
FunCoding

efficient-execution

Star
969
分类
其他
许可证
GPL-3.0
最近提交
2026年11月8日

agent_os/default_skills/efficient-execution/SKILL.md

在 GitHub 上查看

Efficient Execution

Reduce token waste and task completion time by choosing the simplest tool for each job.

When to Use

Apply these rules to every task. This is a standing discipline, not a situational skill. Review the hierarchy below before each tool call.

Approach

Tool selection hierarchy (simplest first)

Pick the first option that works. Do not escalate without a reason.

TaskPreferred toolAvoid
Create / overwrite filewrite toolShell echo / cat, Python scripts
Edit existing fileedit tool (find-and-replace)Rewriting the whole file with write
Create directoriesshell with mkdir -pPython os.makedirs
Quick fact lookupbrowser(action="search", query="...")Fetching full pages first
Read a known URLbrowser(action="fetch", url="...")Full browser navigation
Data processingshell with standard unix tools (jq, awk, sort, cut)Writing a Python script
Complex logicPython via shell only when unix tools are insufficient—

Token-saving rules

  1. Do not explain your reasoning unless the user asks "why."
  2. Do not echo back the user's request before acting.
  3. Do not read files you just wrote. You already know the contents.
  4. Batch related operations into a single tool call when possible (e.g., one shell call with &&-chained commands).
  5. Omit confirmation messages like "Sure, I can do that." Just act.

One-shot execution

If a task can be completed in one tool call, use one tool call. Common examples:

  • Creating a config file: one write call, not three shell commands.
  • Renaming a file: one shell call with mv, not read + write + delete.
  • Searching for a pattern: one browser(action="search") call, not navigating to Google and typing into the search box.

Anti-patterns

  • Do NOT write a Python script to create a CSV. Use the write tool with the CSV content directly.
  • Do NOT use shell to write files (echo "..." > file). Use the write tool.
  • Do NOT fetch a full web page when a search query would answer the question in fewer tokens.
  • Do NOT read a file, copy its contents, then write a new file just to rename it. Use shell with mv.
  • Do NOT narrate each step ("First I'll read the file, then I'll...") before doing it. Just do it.

相似的 Skill

software-factory

MAmattpocock/skills318k近 7 天新增 9,301 个 star

claude-handoff

MAmattpocock/skills318k近 7 天新增 9,301 个 star

bengali-nlp

AFaffaan-m/ECC299k近 7 天新增 5,106 个 star

agent-self-evaluation

AFaffaan-m/ECC299k近 7 天新增 5,106 个 star

agent-payment-x402

AFaffaan-m/ECC299k近 7 天新增 5,106 个 star

ponytail-gain

DIDietrichGebert/ponytail186k近 7 天新增 4,868 个 star