Skip to content
Back to skills

Parrot Scaffold Tool

ASecurity

Scaffolds a new custom Tool class for the ai-parrot Tool platform.

  • 34 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 1, 2026
ai-agentspythonbash

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned September 1, 2026

npx -y skills add phenobarbital/ai-parrot --skill parrot-scaffold-tool --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Parrot Scaffold Tool?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Parrot Scaffold Tool
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/phenobarbital-parrot-scaffold-tool/badge)](https://www.skillsdirectory.com/skills/phenobarbital-parrot-scaffold-tool)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: parrot-tool-scaffold
description: Scaffolds a new custom Tool class for the ai-parrot Tool platform.
---

# ai-parrot Tool Scaffold Skill

This skill automates the creation of standard `AbstractTool` implementations for the ai-parrot framework.

## Guidelines

- **Inheritance**: Tools MUST inherit from `AbstractTool` (`parrot.tools.abstract`).
- **Imports**: Use relative imports for dependencies within `parrot/tools/` (e.g., `from .abstract import AbstractTool`).
- **Execution**: Implement the `async def _execute(self, ...)` method.
- **Return Value**: The `_execute` method MUST return a `ToolResult` object.
- **Schema**: Arguments are defined using Pydantic models (`ArgsSchema`).
- **Metadata**: Tool name and description are defined as class attributes.

## Instructions

1.  **Identify the Tool Name**:
    Extract the name of the tool the user wants to build (e.g., "StockPrice", "EmailSender").

2.  **Run the Scaffolder**:
    Execute the python script to generate the initial file in `parrot/tools/`.

    ```bash
    python scripts/scaffold_tool.py <ToolName>
    ```

3.  **Refine the Implementation**:
    After generation, edit the file in `parrot/tools/<tool_name>.py`:
    -   **Update `args_schema`**: Define the Pydantic model for arguments.
    -   **Implement `_execute`**: Add the actual logic. Ensure it handles exceptions and returns `ToolResult`.
    -   **Add Docstrings**: comprehensive docstrings for the class and methods.

## Example Usage

User: "Create a tool to search Wikipedia."

Agent:
1.  Runs `python scripts/scaffold_tool.py WikipediaSearch`
2.  Edits `parrot/tools/wikipedia_search.py` to implement the logic.

Files in this skill

  • SKILL.md1.6 KB
  • examples/WeatherTool.py1.3 KB
  • scripts/scaffold_tool.py2.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.