원클릭으로
ai-agent-tool-executor
Executes tools for AI agents, ensuring correct parameter formats and preventing common execution errors.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Executes tools for AI agents, ensuring correct parameter formats and preventing common execution errors.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Two-layer memory system with grep-based recall.
Get current weather and forecasts (no API key required). Use the `run_terminal_command` tool for execution.
Use this skill to get documentation for third-party APIs, SDKs or libraries before writing code that uses them to ensure you have the latest, most accurate documentation. This is a better way to find documentation than doing web search. This includes when a user asks for tasks like "use the OpenAI API", "call the Stripe API", "use the Anthropic SDK", "query Pinecone", or any other time the user asks you to write code against an external service and you need current API reference. Fetch the docs with chub before answering, rather than relying on your pre-trained knowledge, which may be outdated because of recent changes to these APIs. Be sure to use this skill when the user asks for the latest docs, latest API behavior, or explicitly mentions chub or Context Hub. Ensure `chub` is available, run `chub --help`, then follow the instructions there.
Summarize public content — articles/text, YouTube videos, or podcasts — by fetching text or transcripts.
Monitor environment health by checking URLs with 'curl -o /dev/null --max-time 5 -s -w "%{http_code}\n"' and analyzing failures with LLM.
| name | AI Agent Tool Executor |
| description | Executes tools for AI agents, ensuring correct parameter formats and preventing common execution errors. |
| metadata | {"author":"AI Systems Team","version":"1.1"} |
Use when the AI agent needs to execute external tools, such as APIs, scripts, or system commands, ensuring correct parameter formats and preventing common execution errors.
Parameter Validation: Validate all input parameters to ensure they conform to the expected formats. This validation includes:
http:// or https:// and contain no spaces.Error Handling: Implement robust error handling through:
Security Measures: Enforce security best practices by:
Logging and Monitoring: Keep detailed logs, including:
Timeouts and Resource Limits: Set strict timeouts for tool executions. Ensure:
Testing and Validation: Rigorously test any new tools or updates. This includes:
Infinite Loops: Avoid potential infinite loops due to repetitive tool calls without progress. Implement checks to detect and prevent such scenarios.
Tool Misuse: Ensure proper argument usage. Incorrect or malformed arguments can lead to failures or unexpected behavior, including potential crashes.
Security Risks: Unauthorized tool executions can introduce vulnerabilities. Always validate inputs rigorously and limit access permissions to only what is necessary.
File and Directory Access: Be aware of workspace boundaries. Accessing or writing to locations outside preconfigured directories can lead to errors.
Valid Tool Execution:
def execute_tool(tool_name, parameters):
# Validate parameters
if not validate_parameters(parameters):
raise ValueError("Invalid parameters")
# Execute the tool safely
try:
result = call_tool(tool_name, parameters)
if result.success:
return result.data
else:
handle_error(result.error)
except Exception as e:
print(f"Execution failed: {str(e)}")
Invalid Tool Execution:
def execute_tool(tool_name, parameters):
# Missing parameter validation leads to potential misuse
result = call_tool(tool_name, parameters) # This might fail unexpectedly
return result.data
Parameter Format: Clearly document the expected parameter formats for each tool. For example, URLs should be valid and follow standard conventions.
Error Messages: Use descriptive error messages to quickly guide users in understanding the issue.
Security Practices: Regularly review and update permission settings and allowed command lists to mitigate new vulnerabilities.
Resource Management: Implement monitoring to prevent excessive use and ensure balanced resource allocation.
Testing: Utilize comprehensive unit and integration tests to ensure tool functions as intended under various scenarios.
By adhering to these guidelines, you can enhance the reliability, security, and efficiency of your AI agent's tool execution capabilities while avoiding common pitfalls and security risks.