用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/jeancsil/agntrick --skill agntrick-add-tool命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
List all registered agents with their configuration — MCP servers, tool categories, prompt status, and local tools. Use when you need to see what agents exist or debug agent registration issues.
End-to-end release workflow — version bump, changelog generation, git tag, build, and publish to PyPI. Invoke with /release [version]. Use semantic versioning.
Run end-to-end integration verification after code changes. Unit tests mock prompt loading, tool registration, and agent instantiation — they pass even when wiring is broken. This skill catches those gaps.
基于 SOC 职业分类
正在显示 SKILL.md
| name | agntrick-add-tool |
| description | Scaffold a new agntrick tool with tool.py, test file, and __init__.py export |
| disable-model-invocation | true |
Scaffold a new agntrick tool with all required files.
Ask the user for:
web_scraper)Create src/agntrick/tools/{name}.py using this template:
from typing import Any
from agntrick.interfaces.base import Tool
class {ClassName}Tool(Tool):
"""Tool description with Google-style docstring."""
@property
def name(self) -> str:
return "{tool_name}"
@property
def description(self) -> str:
return "Tool description for LLM consumption."
def invoke(self, input_str: str) -> Any:
"""Execute tool logic.
Args:
input_str: The input string from the LLM.
Returns:
Result string, or "Error: ..." on failure.
"""
try:
# TODO: implement tool logic
result = input_str
return str(result)
except Exception as e:
return f"Error: {e}"
Where {ClassName} is the name converted to PascalCase (e.g. web_scraper -> WebScraper).
Add the export to src/agntrick/tools/__init__.py:
from .{name} import {ClassName}Tool__all__ list: "{ClassName}Tool"Create tests/test_{name}.py with basic tests:
"""Tests for the {name} tool."""
from agntrick.tools.{name} import {ClassName}Tool
def test_tool_import():
"""Test that the tool can be imported."""
assert {ClassName}Tool is not None
def test_tool_name():
"""Test that the tool has the correct name."""
tool = {ClassName}Tool()
assert tool.name == "{tool_name}"
def test_tool_invoke_returns_string():
"""Test that invoke returns a string."""
tool = {ClassName}Tool()
result = tool.invoke("test input")
assert isinstance(result, str)
make check && make test to verify everything works.Tool ABC in interfaces/base.pyname, description properties and invoke() methodtools/__init__.py is requiredExisting tools:
CalculatorTool (example.py) — safe math evaluation via ASTWeatherTool (example.py) — mock weather toolCodeSearcher (code_searcher.py) — ripgrep wrapperGitCommandTool (git_command.py) — git operationsYouTubeTranscriptTool (youtube_transcript.py) — transcript fetcherSyntaxValidator (syntax_validator.py) — tree-sitter validationAgentInvocationTool (agent_invocation.py) — invoke other agents