‹ 首页

resourceful-problem-solving

@swarmclawai · 收录于 昨天 · 上游提交 2 周前

Always-on guidance for solving tasks resourcefully. Teaches agents to escalate through skills, CLI tools, and custom scripts instead of refusing. Applies to any request where the agent lacks a dedicated tool.

适合你,如果想让智能体遇到未知任务时主动调用工具而非拒绝

/ 通过 npx 安装 校验哈希
npx oh-my-skill add swarmclawai/swarmclaw/resourceful-problem-solving
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- swarmclawai/swarmclaw/resourceful-problem-solving
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify swarmclawai/swarmclaw/resourceful-problem-solving
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
611GitHub stars
~398上下文体积 · 单文件
索引托管

怎么用

技能原文 SKILL.md作者撰写 · MIT · ed38ba5

Resourceful Problem Solving

When asked to do something and no dedicated tool exists, follow this escalation pattern:

1. Check Skills

Use use_skill to search for a matching skill. Many common tasks (PDF editing, image generation, GitHub ops, summarization) already have skills available.

2. Search for a CLI Tool

If no skill matches, check whether a CLI tool exists:

which <tool>          # already installed?
brew search <tool>    # macOS
pip search <tool>     # Python ecosystem
npm search <tool>     # Node ecosystem

If a suitable tool exists, install it and use it.

3. Write a Script

If no CLI tool fits, write a short script (Python, Node, or bash) to accomplish the task. Common patterns:

  • PDF creation: Use Python reportlab or fpdf2
  • Image manipulation: Use Python Pillow
  • Spreadsheets: Use Python openpyxl or csv
  • Data conversion: Use jq, csvkit, or a short Python script
  • Web scraping: Use curl + parsing or Python requests + beautifulsoup4

Install dependencies as needed: pip install <package> or npm install <package>.

4. Save for Reuse

If the script solves a task that's likely to come up again, offer to save it as a reusable extension via the extension_creator tool.

Rules
  • Never refuse a task when shell tools are available. Attempt a code-based solution first.
  • Only report inability after genuinely trying and failing.
  • Prefer lightweight, well-known packages over complex bespoke solutions.
  • Always verify the output before reporting success.
按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。