aver005/pooprusteek/pooprusteek-add-tool
Claude Code and agent skill by aver005/pooprusteek
- community
Checking that the SKILL.md file is still in the repository.
Recipe for adding a new agent-facing Tool (bash/skill/tool_search-style) to PoopRusteek — the Tool trait, the single registration line, and the hard tools-never-touch-app boundary. Use when adding an agent tool; not for slash commands (see pooprusteek-add-slash-command).
Install
npx vskill@latest install aver005/pooprusteek/pooprusteek-add-toolSKILL.md
The same SKILL.md was published earlier as aver005/pooprusteek/pooprusteek-add-tool.
Add a PoopRusteek Agent Tool
Source of truth: src/tools/mod.rs, src/tools/registry.rs. Reference: .memories/reference/TOOLS.md.
Recipe
A new tool = implement the `Tool` trait + ONE registration line in `tools/registry.rs`.
The Tool trait (tools/mod.rs)
ToolDefinition { name, description, parameters: serde_json::Value }—parametersis a JSON
Schema object; it's what the model sees, so make description and required fields precise.
ToolResult { content: String, is_error: bool }— build withToolResult::success(&str)/
ToolResult::error(&str). Return error (don't panic) on bad/missing args.
Register it
In ToolRegistry::register_default_tools() (src/tools/registry.rs):
Platform-gate if needed (PowerShell is Windows-only; see the cfg!(windows) branch there). Semantic-backed tools (tool_search, history_search) are registered separately via register_semantic_tools, and skill via update_skills — mirror the plain path unless yours also needs the shared SemanticService handle.
Hard invariants
- The tools layer must NEVER reach into the app layer.
tools/andapp/communicate
exclusively through AppEvents — no direct calls, no shared state reaching upward. A tool that needs to affect the UI/app emits an event; it does not import or mutate App/AppState.
- No native function-calling. The DeepSeek web API has none — tool calls are parsed from raw
LLM text in 3 formats (XML <tool_use>, XML+JSON, legacy [TOOL:name] {json}) by agent/tool_parser.rs. Your tool's name must be a clean identifier the parser and dispatch (agent/runner.rs) can match; MCP tools use the mcp__{server}__{tool} prefix.
- CPU-heavy work goes on `tokio::task::spawn_blocking` — never block the async worker or the
event loop. question and task are special-cased in the agent loop before registry dispatch (they're declared as tools so the model sees them, but never run through ToolRegistry::execute); dispatch compares against QUESTION_TOOL_NAME / TASK_TOOL_NAME constants, not literals.
Minimal example (shape mirrors tools/skill.rs)
Copy-paste skeleton: assets/tool-template.rs (compile-shaped, with // AUTHOR: edit spots).
Then add pub mod mymod; in tools/mod.rs and the one self.register(...) line. Registry tests in registry.rs confirm expected tools resolve — add one if the platform gating is non-obvious.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/contributor/pooprusteek-add-tool/SKILL.md
Popularity
- Repository stars
- 6
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/aver005/pooprusteek/pooprusteek-add-tool)