[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79ZVK7YNDP5W69C53J3B2ZW":3,"skill-same:01M79ZVK7YNDP5W69C53J3B2ZW":76},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":53,"commitSha":54,"skillDirectory":55,"forksCount":56,"repositoryHtmlUrl":57,"repositoryHomepageUrl":58,"ownerHtmlUrl":59,"ownerBlogUrl":6,"ownerDescription":60,"updatedAt":61,"install":62,"resources":75},"01M79ZVK7YNDP5W69C53J3B2ZW","a0-development",null,"Development guide for extending and building features for the Agent Zero AI framework. Covers architecture, tools, extensions, API endpoints, agent profiles, projects, prompts, and skills — with correct paths, imports, and patterns matching the current codebase.","Gen-Verse\u002FPAST-Bench","Gen-Verse","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F197493814?v=4","01M79ZTVVJS24KDA4RF6Y4BCZD","01M79ZTVW4PBQ3G7XMH1KN5BW7",37,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FGen-Verse\u002FPAST-Bench\u002Fblob\u002Fmain\u002Fagents\u002Fagent-zero\u002Fskills\u002Fa0-development\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: a0-development\ndescription: Development guide for extending and building features for the Agent Zero AI framework. Covers architecture, tools, extensions, API endpoints, agent profiles, projects, prompts, and skills — with correct paths, imports, and patterns matching the current codebase.\nversion: 1.0.0\nauthor: Agent Zero Team\ntags: [\"development\", \"framework\", \"agent-zero\", \"extending\", \"tools\", \"extensions\", \"skills\", \"api\", \"agents\", \"prompts\"]\ntrigger_patterns:\n  - \"extend agent zero\"\n  - \"agent zero development\"\n  - \"build agent zero feature\"\n  - \"create agent zero tool\"\n  - \"add extension\"\n  - \"framework development\"\n  - \"agent zero architecture\"\n  - \"how does agent zero work\"\n  - \"create agent zero extension\"\n  - \"add api endpoint\"\n  - \"create agent profile\"\n  - \"agent zero internals\"\n  - \"how does the agent loop work\"\n  - \"extension hook points\"\n  - \"prompt system\"\n  - \"agent profile\"\n---\n\n# Agent Zero Development Guide\n\nThis skill provides comprehensive, accurate guidance for extending and building features for Agent Zero. Use it when you need to:\n\n- Understand the **architecture** and project layout\n- Create new **Tools** for agent capabilities\n- Add **Extensions** to hook into the framework lifecycle\n- Build **API Endpoints** for the Web UI\n- Create **Agent Profiles** (subordinates) with custom prompts\n- Understand and extend the **Prompt System**\n- Create **Skills** (see the dedicated `create-skill` skill for the full wizard)\n- Work with **Projects** and workspace configuration\n\n> **Path convention:** Throughout this guide, `\u002Fa0\u002F` refers to the framework root — this is `\u002Fa0\u002F` inside Docker, or your local repository root in development. All paths are relative to this root.\n\n> [!IMPORTANT]\n> **Plugins are the primary way to extend Agent Zero.** Most new tools, extensions, and prompts should be packaged as plugins. For all plugin tasks (create, review, manage, debug, contribute), load the `a0-plugin-router` skill which routes to the appropriate specialist. This guide covers the underlying framework patterns that plugins build upon.\n\nRelated skills: `a0-plugin-router` (plugin tasks) | `create-skill` (skill creation wizard) | `a0-create-plugin` | `a0-review-plugin` | `a0-manage-plugin` | `a0-contribute-plugin` | `a0-debug-plugin`\n\n---\n\n## Architecture Overview\n\n### Project Layout\n\n```\n\u002Fa0\u002F                              # Framework root\n├── agent.py                      # Core Agent + AgentContext + AgentConfig classes\n├── initialize.py                 # Agent initialization logic\n├── models.py                     # Model definitions\n├── run_ui.py                     # Web UI entry point\n│\n├── tools\u002F                        # Core tools (search, response, browser, etc.)\n├── extensions\u002F\n│   ├── python\u002F                   # Python lifecycle extensions\n│   │   ├── \u003Chook_point>\u002F         # e.g., agent_init\u002F, system_prompt\u002F, etc.\n│   │   │   └── _NN_name.py       # Numbered extension files\n│   │   └── _functions\u002F           # Implicit @extensible decorator extensions\n│   └── webui\u002F                    # JavaScript WebUI extensions\n│       └── \u003Chook_point>\u002F         # e.g., json_api_call_before\u002F\n│           └── name.js\n├── api\u002F                          # Flask API endpoint handlers\n├── helpers\u002F                      # Framework utilities and base classes\n│   ├── tool.py                   # Tool + Response base classes\n│   ├── extension.py              # Extension base class + @extensible decorator\n│   ├── api.py                    # ApiHandler base class\n│   ├── files.py                  # File operations + prompt reading\n│   ├── plugins.py                # Plugin system manager\n│   ├── print_style.py            # Console output formatting\n│   └── ...                       # Many more utility modules\n│\n├── prompts\u002F                      # Core prompt fragments (system, tools, framework)\n├── agents\u002F                       # Agent profiles (subordinate specializations)\n│   ├── default\u002F                  # Base profile (inherited by others)\n│   ├── agent0\u002F                   # Main user-facing agent\n│   ├── developer\u002F                # Developer subordinate\n│   ├── hacker\u002F                   # Security subordinate\n│   ├── researcher\u002F               # Research subordinate\n│   └── _example\u002F                 # Example profile with tool + extension samples\n│\n├── plugins\u002F                      # Core plugins (tools, extensions, prompts)\n│   ├── _code_execution\u002F          # Terminal\u002FPython\u002FNode.js execution\n│   ├── _memory\u002F                  # Persistent memory system\n│   ├── _text_editor\u002F             # File read\u002Fwrite\u002Fpatch\n│   ├── _model_config\u002F            # LLM model selection\n│   ├── _infection_check\u002F         # Prompt injection safety\n│   └── ...                       # More core plugins\n│\n├── skills\u002F                       # Core skills (SKILL.md bundles)\n├── knowledge\u002F                    # Knowledge base files\n├── webui\u002F                        # Web UI frontend\n├── docs\u002F                         # Documentation\n│\n└── usr\u002F                          # User-space (survives updates)\n    ├── agents\u002F                   # User-created agent profiles\n    ├── plugins\u002F                  # User-installed plugins\n    ├── skills\u002F                   # User-created skills\n    ├── knowledge\u002F                # User knowledge base files\n    ├── extensions\u002F               # Standalone user extensions (created on demand; prefer plugins instead)\n    ├── projects\u002F                 # Project workspaces (created on demand when user adds projects via UI)\n    └── workdir\u002F                  # Default working directory\n```\n\n### Key Architecture Patterns\n\n1. **Plugin-first design** — Most capabilities (tools, extensions, prompts) are delivered via plugins in `\u002Fa0\u002Fplugins\u002F` (core) or `\u002Fa0\u002Fusr\u002Fplugins\u002F` (user).\n2. **Extensions execute in numeric order** — Files named `_10_*.py`, `_20_*.py`, etc. run sequentially within each hook point.\n3. **Tools inherit from `Tool`** — All tools implement the `execute()` method returning a `Response`.\n4. **Shared `AgentContext`** — Enables state persistence across agents in a conversation.\n5. **Async\u002Fawait throughout** — All tool execution, extensions, and API handlers are async.\n6. **Prompt fragments compose** — System prompts are assembled from named fragments with includes and variable substitution.\n7. **Profile inheritance** — Agent profiles inherit from `default\u002F` and override specific prompt fragments.\n8. **User-space separation** — Everything under `\u002Fa0\u002Fusr\u002F` survives framework updates.\n\n### Agent Loop\n\nThe core execution cycle works as follows:\n\n1. **User message** arrives (via UI or API)\n2. **System prompt assembly** — prompt fragments are composed with includes and variable substitution\n3. **LLM call** — the assembled prompt + conversation history is sent to the model\n4. **Response parsing** — the framework parses the LLM response looking for JSON tool calls\n5. **Tool execution** — if tool calls are found, each tool's `execute()` method is called and the result is appended to history\n6. **Loop continues** — steps 3-5 repeat until the agent produces a `response` tool call (which ends the loop) or a loop limit is reached\n\nExtensions fire at each stage (e.g., `monologue_start`, `before_main_llm_call`, `tool_execute_before`, etc.), allowing plugins to observe and modify behavior at every point.\n\n---\n\n## Creating Tools\n\nTools are how agents interact with the world. Each tool inherits from the `Tool` base class.\n\n### Import Path\n\n```python\nfrom helpers.tool import Tool, Response\n```\n\n### Tool Base Class\n\n```python\n# \u002Fa0\u002Fhelpers\u002Ftool.py\n\n@dataclass\nclass Response:\n    message: str              # Text response shown to agent\n    break_loop: bool          # True = stop agent message loop\n    additional: dict[str, Any] | None = None  # Extra metadata for history\n\nclass Tool:\n    def __init__(self, agent: Agent, name: str, method: str | None,\n                 args: dict[str,str], message: str,\n                 loop_data: LoopData | None, **kwargs) -> None:\n        self.agent = agent\n        self.name = name\n        self.method = method   # For tools with sub-methods (e.g., \"skills_tool:load\")\n        self.args = args\n        self.loop_data = loop_data\n        self.message = message\n\n    async def execute(self, **kwargs) -> Response:\n        pass  # Override this\n\n    # Lifecycle hooks (called automatically):\n    async def before_execution(self, **kwargs): ...\n    async def after_execution(self, response: Response, **kwargs): ...\n```\n\n### Where Tools Live\n\n| Location | Purpose |\n|---|---|\n| `\u002Fa0\u002Ftools\u002F` | Core framework tools (search, response, call_subordinate, etc.) |\n| `\u002Fa0\u002Fplugins\u002F\u003Cplugin>\u002Ftools\u002F` | Plugin-provided tools (code_execution, memory, text_editor) |\n| `\u002Fa0\u002Fagents\u002F\u003Cprofile>\u002Ftools\u002F` | Profile-specific tool overrides |\n| `\u002Fa0\u002Fusr\u002Fplugins\u002F\u003Cplugin>\u002Ftools\u002F` | User plugin tools |\n\n### Example: Creating a Tool\n\nBased on the actual `_example` profile in `\u002Fa0\u002Fagents\u002F_example\u002Ftools\u002Fexample_tool.py`:\n\n```python\n# my_tool.py\nfrom helpers.tool import Tool, Response\n\nclass MyTool(Tool):\n    async def execute(self, **kwargs):\n        # Get arguments — kwargs contains the tool_args from the agent's JSON\n        input_data = kwargs.get(\"input\", \"\")\n\n        # Do something\n        result = f\"Processed: {input_data}\"\n\n        # Return response\n        return Response(\n            message=result,        # Shown to the agent\n            break_loop=False,      # Don't stop the agent loop\n        )\n```\n\n> [!IMPORTANT]\n> Every tool needs a corresponding **prompt fragment** so the agent knows how to use it. Create a file named `agent.system.tool.\u003Ctool_name>.md` in the appropriate `prompts\u002F` directory. See the [Prompt System](#prompt-system) section.\n\n### Tool Best Practices\n\n- Always handle errors gracefully — return error messages in `Response`, don't crash\n- Access agent context via `self.agent.context`\n- Use `self.method` to support sub-methods (e.g., `my_tool:action1`, `my_tool:action2`)\n- Use `kwargs.get()` to read arguments with defaults\n- For long operations, use `self.set_progress()` or `self.add_progress()` to show status\n- Access `self.loop_data` for loop state (iteration count, timing, etc.) — this is the `LoopData` instance passed during tool dispatch\n\n---\n\n## Creating Extensions\n\nExtensions hook into specific lifecycle points in the agent framework.\n\n### Import Path\n\n```python\nfrom helpers.extension import Extension\n```\n\n### Extension Base Class\n\n```python\nclass Extension:\n    def __init__(self, agent: \"Agent | None\", **kwargs):\n        self.agent: \"Agent | None\" = agent\n        self.kwargs = kwargs\n\n    def execute(self, **kwargs) -> None | Awaitable[None]:\n        pass  # Override this — kwargs are hook-point-specific\n```\n\n> Extensions can be sync or async. If `execute()` returns an `Awaitable`, the framework will `await` it automatically. The `agent` parameter is nullable because some hook points (like `startup_migration` or `banners`) fire before an agent exists.\n\n### Extension File Location\n\nExtensions live in directories named by their hook point. The path structure is:\n\n```\nextensions\u002Fpython\u002F\u003Chook_point>\u002F_NN_name.py\n```\n\nWhere `_NN_` is a numeric prefix controlling execution order (e.g., `_10_`, `_20_`, `_50_`).\n\n| Source | Path |\n|---|---|\n| Core extensions | `\u002Fa0\u002Fextensions\u002Fpython\u002F\u003Chook_point>\u002F` |\n| Plugin extensions | `\u002Fa0\u002Fplugins\u002F\u003Cplugin>\u002Fextensions\u002Fpython\u002F\u003Chook_point>\u002F` |\n| User extensions | `\u002Fa0\u002Fusr\u002Fextensions\u002Fpython\u002F\u003Chook_point>\u002F` |\n| Agent profile extensions | `\u002Fa0\u002Fagents\u002F\u003Cprofile>\u002Fextensions\u002F\u003Chook_point>\u002F` |\n| User plugin extensions | `\u002Fa0\u002Fusr\u002Fplugins\u002F\u003Cplugin>\u002Fextensions\u002Fpython\u002F\u003Chook_point>\u002F` |\n\n### Python Extension Hook Points\n\nComplete list of available hook points:\n\n| Hook Point | When It Fires | Common Use |\n|---|---|---|\n| `agent_init` | Agent is initialized | Load configs, set defaults |\n| `system_prompt` | System prompt is being assembled | Inject prompt content |\n| `monologue_start` | Agent monologue begins | Pre-processing, state setup |\n| `message_loop_start` | Before message processing loop | Pre-loop setup |\n| `message_loop_prompts_before` | Before prompt assembly in loop | Modify prompt inputs |\n| `message_loop_prompts_after` | After prompt assembly in loop | Add context (memory recall lives here) |\n| `before_main_llm_call` | Before the LLM API call | Modify prompts, add context |\n| `util_model_call_before` | Before utility model calls | Modify utility prompts |\n| `response_stream` | When response streaming begins | Initialize stream handlers |\n| `response_stream_chunk` | Per response chunk received | Transform output, collect data |\n| `response_stream_end` | Response streaming complete | Finalize, analyze full response |\n| `reasoning_stream` | Reasoning\u002Fthinking stream begins | Monitor reasoning |\n| `reasoning_stream_chunk` | Per reasoning chunk | Collect reasoning data |\n| `reasoning_stream_end` | Reasoning stream complete | Analyze reasoning |\n| `tool_execute_before` | Before a tool runs | Validation, logging, safety checks |\n| `tool_execute_after` | After a tool runs | Post-process results |\n| `hist_add_before` | Before adding to history | Modify history entries |\n| `hist_add_tool_result` | After tool result added to history | Log tool results |\n| `message_loop_end` | After message processing loop | Post-loop cleanup |\n| `monologue_end` | Agent monologue complete | Memorization, cleanup |\n| `process_chain_end` | Entire processing chain done | Final cleanup |\n| `job_loop` | Background job loop tick | Periodic background tasks |\n| `error_format` | Error is being formatted | Custom error messages |\n| `startup_migration` | Framework startup | Data migrations |\n| `banners` | Startup banners displayed | Add custom banners |\n| `embedding_model_changed` | Embedding model changed | Reload vector stores (fired programmatically, not a directory-based hook) |\n| `user_message_ui` | User message from UI | Pre-process user input |\n| `webui_ws_connect` | WebSocket client connects | Session setup |\n| `webui_ws_disconnect` | WebSocket client disconnects | Session cleanup |\n| `webui_ws_event` | WebSocket event received | Handle custom WS events |\n\n### The `@extensible` Decorator (Implicit Extension Points)\n\nAny framework function decorated with `@extensible` automatically gets two extension points:\n\n```\n_functions\u002F\u003Cmodule_path>\u002F\u003Cqualname_path>\u002Fstart\n_functions\u002F\u003Cmodule_path>\u002F\u003Cqualname_path>\u002Fend\n```\n\nThe path mapping converts Python module paths and qualified names using `\u002F` separators:\n- Module `agent.py` → `agent`\n- Class method `Agent.handle_exception` → `Agent\u002Fhandle_exception`\n- Full path: `_functions\u002Fagent\u002FAgent\u002Fhandle_exception\u002Fstart`\n\nFor nested modules like `helpers.history`, a method `History.add` would map to `_functions\u002Fhelpers\u002Fhistory\u002FHistory\u002Fadd\u002Fstart`.\n\nFor example, a function `Agent.handle_exception` in module `agent` creates:\n- `_functions\u002Fagent\u002FAgent\u002Fhandle_exception\u002Fstart`\n- `_functions\u002Fagent\u002FAgent\u002Fhandle_exception\u002Fend`\n\nExtensions in these directories receive a `data` dict with:\n- `data[\"args\"]` — positional args (mutable)\n- `data[\"kwargs\"]` — keyword args (mutable)\n- `data[\"result\"]` — set this to short-circuit the function\n- `data[\"exception\"]` — set to a `BaseException` to force-raise\n\nThis is used by plugins like `_error_retry` to wrap core agent methods.\n\n### WebUI Extensions (JavaScript)\n\nClient-side extensions live under `extensions\u002Fwebui\u002F\u003Chook_point>\u002F`:\n\n| Hook Point | When It Fires |\n|---|---|\n| `json_api_call_before` | Before a JSON API request |\n| `json_api_call_after` | After a JSON API response |\n| `fetch_api_call_before` | Before a fetch API request |\n| `fetch_api_call_after` | After a fetch API response |\n| `get_message_handler` | Register custom message renderers |\n| `set_messages_before_loop` | Before messages are rendered |\n| `set_messages_after_loop` | After messages are rendered |\n| `webui_ws_push` | WebSocket push to client |\n\n### Example: Creating an Extension\n\nBased on the actual `_example` profile in `\u002Fa0\u002Fagents\u002F_example\u002Fextensions\u002Fagent_init\u002F_10_example_extension.py`:\n\n```python\n# extensions\u002Fpython\u002Fagent_init\u002F_15_my_extension.py\nfrom helpers.extension import Extension\n\nclass MyExtension(Extension):\n    async def execute(self, **kwargs):\n        # Access the agent\n        agent = self.agent\n        context = agent.context\n\n        # Extension logic — kwargs content depends on the hook point\n        agent.agent_name = \"CustomAgent\" + str(agent.number)\n```\n\n### Extension Execution Order\n\nExtensions execute in numeric order based on filename prefix:\n\n```\n_10_first.py      # Runs first\n_20_second.py     # Runs second\n_50_third.py      # Runs third\n```\n\nUse 10-number increments to leave room for future extensions.\n\n---\n\n## Creating API Endpoints\n\nAPI endpoints serve the Web UI and external clients using Flask.\n\n### Import Path\n\n```python\nfrom helpers.api import ApiHandler\nfrom flask import Request, Response\n```\n\n### ApiHandler Base Class\n\n```python\nclass ApiHandler:\n    def __init__(self, app: Flask, thread_lock: ThreadLockType):\n        self.app = app\n        self.thread_lock = thread_lock\n\n    # Override these class methods to configure behavior:\n    @classmethod\n    def requires_loopback(cls) -> bool: return False   # Restrict to localhost\n    @classmethod\n    def requires_api_key(cls) -> bool: return False     # Require API key\n    @classmethod\n    def requires_auth(cls) -> bool: return True         # Require auth session\n    @classmethod\n    def get_methods(cls) -> list[str]: return [\"POST\"]   # HTTP methods\n    @classmethod\n    def requires_csrf(cls) -> bool: return cls.requires_auth()  # CSRF protection\n\n    # Implement this:\n    async def process(self, input: dict, request: Request) -> dict | Response:\n        pass\n\n    # Utility: get or create an agent context\n    def use_context(self, ctxid: str, create_if_not_exists: bool = True) -> AgentContext:\n        ...\n```\n\n### Where API Endpoints Live\n\n| Location | Purpose |\n|---|---|\n| `\u002Fa0\u002Fapi\u002F` | Core API endpoints |\n| `\u002Fa0\u002Fplugins\u002F\u003Cplugin>\u002Fapi\u002F` | Plugin API endpoints |\n| `\u002Fa0\u002Fusr\u002Fplugins\u002F\u003Cplugin>\u002Fapi\u002F` | User plugin API endpoints |\n\nEndpoints are auto-discovered by filename. The route is derived from the filename (e.g., `my_endpoint.py` -> `\u002Fapi\u002Fmy_endpoint`).\n\n### Example: API Endpoint\n\n```python\n# api\u002Fmy_endpoint.py\nfrom helpers.api import ApiHandler\nfrom flask import Request, Response\nfrom agent import AgentContext\n\nclass MyEndpoint(ApiHandler):\n    @classmethod\n    def get_methods(cls) -> list[str]:\n        return [\"GET\", \"POST\"]\n\n    async def process(self, input: dict, request: Request) -> dict:\n        param = input.get(\"param\", \"default\")\n\n        # Get or create agent context\n        ctxid = input.get(\"context\", \"\")\n        context = self.use_context(ctxid)\n\n        return {\n            \"result\": f\"processed {param}\",\n            \"context\": context.id,\n        }\n```\n\n---\n\n## Creating Agent Profiles\n\nAgent profiles define specialized subordinates with custom prompts and behaviors.\n\n### Profile Directory Structure\n\n```\nagents\u002F\u003Cprofile-name>\u002F\n+-- agent.yaml                    # Required: profile metadata\n+-- prompts\u002F                      # Optional: prompt overrides\n|   +-- agent.system.main.role.md         # Role definition (most common override)\n|   +-- agent.system.main.communication.md # Communication style\n|   +-- agent.system.tool.\u003Cname>.md       # Tool-specific prompts\n+-- tools\u002F                        # Optional: profile-specific tools\n|   +-- my_tool.py\n+-- extensions\u002F                   # Optional: profile-specific extensions\n    +-- \u003Chook_point>\u002F\n        +-- _NN_extension.py\n```\n\n### agent.yaml Format\n\nThe actual format is simple YAML with only three fields:\n\n```yaml\ntitle: Developer\ndescription: Agent specialized in complex software development.\ncontext: Use this agent for software development tasks, including writing code,\n  debugging, refactoring, and architectural design.\n```\n\n| Field | Purpose |\n|---|---|\n| `title` | Display name shown in UI and agent selection |\n| `description` | Brief description of the agent's specialization |\n| `context` | Instructions for when to delegate to this profile |\n\n> [!NOTE]\n> There is **no** per-profile model configuration, temperature, or allowed_tools in the profile YAML. Model configuration is managed by the `_model_config` plugin. Tool availability is controlled by plugin activation.\n\n### Where Profiles Live\n\n| Location | Purpose |\n|---|---|\n| `\u002Fa0\u002Fagents\u002F` | Core profiles (default, agent0, developer, hacker, researcher) |\n| `\u002Fa0\u002Fusr\u002Fagents\u002F` | User-created profiles (survives updates) |\n\n### Prompt Override Mechanism\n\nProfiles inherit all prompts from the `default\u002F` profile. To customize behavior, place prompt files with the **same name** in your profile's `prompts\u002F` directory. The framework searches profile-specific prompts first, then falls back to the default.\n\nThe most common override is `agent.system.main.role.md` which defines the agent's role and specialization.\n\n### Example: Creating a Profile\n\n```yaml\n# \u002Fa0\u002Fusr\u002Fagents\u002Fdata-analyst\u002Fagent.yaml\ntitle: Data Analyst\ndescription: Agent specialized in data analysis, visualization, and statistical modeling.\ncontext: Use this agent for data analysis tasks, creating visualizations, statistical\n  analysis, and working with datasets in Python.\n```\n\n```markdown\n\u003C!-- \u002Fa0\u002Fusr\u002Fagents\u002Fdata-analyst\u002Fprompts\u002Fagent.system.main.role.md -->\n\n## Your role\nYou are a specialized data analysis agent.\nYour expertise includes:\n- Python data analysis (pandas, numpy, scipy)\n- Data visualization (matplotlib, seaborn, plotly)\n- Statistical modeling and hypothesis testing\n- SQL queries and database analysis\n- Data cleaning and preprocessing\n\n## Process\n1. Understand the data and the question\n2. Choose appropriate tools and methods\n3. Execute analysis with code_execution_tool\n4. Visualize results when applicable\n5. Provide clear interpretation of findings\n```\n\n### Reference: The `_example` Profile\n\nThe framework includes a complete example profile at `\u002Fa0\u002Fagents\u002F_example\u002F` that demonstrates:\n- Custom tool: `\u002Fa0\u002Fagents\u002F_example\u002Ftools\u002Fexample_tool.py`\n- Custom extension: `\u002Fa0\u002Fagents\u002F_example\u002Fextensions\u002Fagent_init\u002F_10_example_extension.py`\n- Tool prompt: `\u002Fa0\u002Fagents\u002F_example\u002Fprompts\u002Fagent.system.tool.example_tool.md`\n- Role prompt: `\u002Fa0\u002Fagents\u002F_example\u002Fprompts\u002Fagent.system.main.role.md`\n\n---\n\n## Prompt System\n\nAgent Zero assembles system prompts from **named fragments** using includes and variable substitution.\n\n### Prompt File Naming Convention\n\nPrompt files follow a dot-separated naming scheme:\n\n```\nagent.system.main.md            # Main system prompt (entry point)\nagent.system.main.role.md       # Role definition\nagent.system.main.communication.md  # Communication style\nagent.system.tool.\u003Cname>.md     # Tool usage instructions\nagent.system.tools.md           # Tools overview\nagent.system.projects.main.md   # Project system\nagent.system.secrets.md         # Secret handling\nagent.system.skills.md          # Skills listing\nagent.system.datetime.md        # Current date\u002Ftime\nagent.context.extras.md         # Context extras\nfw.*.md                         # Framework messages (errors, hints, etc.)\n```\n\n### Where Prompts Live\n\n| Location | Priority | Purpose |\n|---|---|---|\n| `\u002Fa0\u002Fagents\u002F\u003Cprofile>\u002Fprompts\u002F` | Highest | Profile-specific overrides |\n| `\u002Fa0\u002Fusr\u002Fagents\u002F\u003Cprofile>\u002Fprompts\u002F` | High | User profile overrides |\n| `\u002Fa0\u002Fplugins\u002F\u003Cplugin>\u002Fprompts\u002F` | Normal | Plugin-provided prompts |\n| `\u002Fa0\u002Fusr\u002Fplugins\u002F\u003Cplugin>\u002Fprompts\u002F` | Normal | User plugin prompts |\n| `\u002Fa0\u002Fprompts\u002F` | Base | Core framework prompts |\n\nThe framework searches directories in priority order and uses the **first match** found.\n\n### Include Mechanism\n\nPrompts can include other fragments using double-brace `include` directives.\n\nThe syntax uses opening double-brace, the keyword, and closing double-brace:\n\n| Directive | Purpose |\n|---|---|\n| `{{include \"agent.system.main.role.md\"}}` | Include a named prompt fragment |\n| `{{include \"agent.system.main.communication.md\"}}` | Include another fragment |\n| `{{include original}}` | Include the same file from the next lower-priority directory |\n\nThe `include original` directive is particularly useful for **extending** rather than fully **replacing** a prompt — your override can include the base version and add to it.\n\n### Variable Substitution\n\nPrompts support `{{variable_name}}` placeholders that are replaced at render time with values passed from the framework or plugin configuration.\n\n### Conditional Blocks\n\nPrompts support conditional rendering based on variables.\n\n### Reading Prompts in Code\n\n```python\n# From within an Agent method:\ncontent = self.read_prompt(\"fw.some_message.md\", variable1=\"value1\")\n\n# From helpers:\nfrom helpers.files import read_prompt_file\ncontent = read_prompt_file(\"template.md\", _directories=[...], var=\"value\")\n```\n\n---\n\n## Creating Skills\n\nSkills are reusable instruction bundles that the agent loads on demand via the `skills_tool`. Each skill lives in a directory containing a `SKILL.md` file with YAML frontmatter.\n\n| Location | Purpose |\n|---|---|\n| `\u002Fa0\u002Fskills\u002F` | Core skills (shipped with framework) |\n| `\u002Fa0\u002Fusr\u002Fskills\u002F` | User-created skills (survives updates) |\n\nThe agent interacts with skills through JSON tool calls:\n\n```json\n{\"tool_name\": \"skills_tool:list\", \"tool_args\": {}}\n{\"tool_name\": \"skills_tool:load\", \"tool_args\": {\"skill_name\": \"my-skill\"}}\n```\n\n> For the complete skill creation wizard — including SKILL.md format, frontmatter fields, directory structure, best practices, and examples — load the `create-skill` skill.\n\n---\n\n## Working with Projects\n\nProjects provide isolated workspaces with custom configuration.\n\n> Projects are typically created and managed via the Web UI. The `.a0proj\u002F` directory and `project.json` are auto-generated when you create a project through the UI.\n\n### Project Structure\n\n```\n\u002Fa0\u002Fusr\u002Fprojects\u002F\u003Cproject-name>\u002F\n+-- .a0proj\u002F\n|   +-- project.json          # Project configuration\n|   +-- agents.json           # Per-project agent overrides\n|   +-- variables.env         # Non-sensitive variables\n|   +-- secrets.env           # Encrypted secrets\n|   +-- memory\u002F               # Project-specific memory\n|       +-- index.faiss\n|       +-- index.pkl\n|       +-- embedding.json\n+-- \u003Cproject-files>\u002F          # Your project files (working directory)\n```\n\n### project.json Format\n\n```json\n{\n    \"title\": \"My Project\",\n    \"description\": \"Project description\",\n    \"instructions\": \"Markdown instructions for the agent when this project is active\",\n    \"color\": \"#3a86ff\",\n    \"git_url\": \"\",\n    \"memory\": \"own\",\n    \"file_structure\": {\n        \"enabled\": true,\n        \"max_depth\": 5,\n        \"max_files\": 20,\n        \"max_folders\": 20,\n        \"max_lines\": 250,\n        \"gitignore\": \".a0proj\u002F\\nvenv\u002F\\n**\u002F__pycache__\u002F\\n**\u002Fnode_modules\u002F\\n**\u002F.git\u002F\\n\"\n    }\n}\n```\n\n| Field | Purpose |\n|---|---|\n| `title` | Display name |\n| `description` | Brief description |\n| `instructions` | Markdown injected into agent system prompt when project is active |\n| `color` | UI accent color (hex) |\n| `git_url` | Optional Git repository URL |\n| `memory` | `\"own\"` for project-specific memory, or shared |\n| `file_structure` | Controls the working directory tree shown to the agent |\n\n---\n\n## Plugin System Overview\n\nPlugins are the **primary extension mechanism** in Agent Zero. A plugin can bundle tools, extensions, prompts, API endpoints, helpers, and UI components into a self-contained package.\n\n> For all plugin tasks — creating, reviewing, managing, contributing, or debugging plugins — load the `a0-plugin-router` skill, which routes to the appropriate specialist skill.\n\n### Core Plugins\n\nThe framework ships with these core plugins in `\u002Fa0\u002Fplugins\u002F`:\n\n| Plugin | Purpose |\n|---|---|\n| `_code_execution` | Terminal, Python, Node.js code execution |\n| `_memory` | Persistent vector memory system |\n| `_text_editor` | File read\u002Fwrite\u002Fpatch with line numbers |\n| `_model_config` | LLM model selection and configuration |\n| `_browser_agent` | Browser automation and web interaction |\n| `_infection_check` | Prompt injection safety checks |\n| `_error_retry` | Retry on critical exceptions |\n| `_email_integration` | Email communication via IMAP\u002FSMTP |\n| `_telegram_integration` | Telegram bot integration |\n| `_chat_branching` | Branch chats from any message |\n| `_promptinclude` | Persistent behavioral rules (*.promptinclude.md) |\n| `_plugin_installer` | Install plugins from ZIP\u002FGit\u002FHub |\n| `_plugin_scan` | Security scanning for plugins |\n| `_plugin_validator` | Plugin manifest and code validation |\n\n---\n\n## Common Patterns Reference\n\n### Accessing Agent Context\n\n```python\n# Shared across all agents in a conversation\ncontext = self.agent.context\ndata = context.data  # dict-like shared state\n\n# Store data\ndata[\"my_key\"] = my_value\n\n# Retrieve data\nvalue = data.get(\"my_key\", default)\n```\n\n### Using File Helpers\n\n```python\nfrom helpers import files\n\n# File operations\ncontent = files.read_file(\"path\u002Fto\u002Ffile\")\nfiles.write_file(\"path\u002Fto\u002Ffile\", content)\nexists = files.exists(\"path\u002Fto\u002Ffile\")\n\n# Read and render a prompt file\ncontent = files.read_prompt_file(\"template.md\", _directories=[...], var=\"value\")\n```\n\n### Console Output\n\n```python\nfrom helpers.print_style import PrintStyle\n\nPrintStyle.hint(\"Informational message\")\nPrintStyle.warning(\"Warning message\")\nPrintStyle.error(\"Error message\")\nPrintStyle(font_color=\"#85C1E9\").print(\"Custom styled output\")\n```\n\n### Error Handling\n\n```python\nfrom helpers.tool import Response\n\ntry:\n    result = await risky_operation()\nexcept Exception as e:\n    PrintStyle.error(f\"Operation failed: {e}\")\n    return Response(message=f\"Error: {e}\", break_loop=False)\n```\n\n---\n\n## Development Workflow\n\nWhen building features for Agent Zero:\n\n### 1. Choose Your Extension Point\n\n| Want to... | Use |\n|---|---|\n| Add a new agent capability | **Tool** (in a plugin) |\n| Hook into agent lifecycle | **Extension** (in a plugin) |\n| Add Web UI functionality | **API endpoint** + **WebUI extension** |\n| Create a specialized agent | **Agent profile** |\n| Bundle reusable instructions | **Skill** |\n| Package everything together | **Plugin** (recommended) |\n\n### 2. Develop in User Space\n\n- New plugins -> `\u002Fa0\u002Fusr\u002Fplugins\u002F\u003Cname>\u002F`\n- New profiles -> `\u002Fa0\u002Fusr\u002Fagents\u002F\u003Cname>\u002F`\n- New skills -> `\u002Fa0\u002Fusr\u002Fskills\u002F\u003Cname>\u002F`\n- New extensions -> `\u002Fa0\u002Fusr\u002Fextensions\u002Fpython\u002F\u003Chook_point>\u002F`\n\n### 3. Test and Iterate\n\n- **Local dev**: Run `python run_ui.py` (default port 50001 at `http:\u002F\u002Flocalhost:50001`)\n- **Docker**: Restart the container or use the UI restart button; check logs with `docker logs -f \u003Ccontainer_name>`\n- Test with minimal input first\n- Verify in the Web UI\n\n### 4. Contributing\n\nFor contribution guidelines, see `\u002Fa0\u002Fdocs\u002Fcontribution.md`. For plugin contributions to the community Plugin Index, load the `a0-contribute-plugin` skill.\n\n---\n\n## Best Practices\n\n### DO\n- Use the **plugin system** for new features (see `a0-create-plugin` skill)\n- Follow existing code patterns and conventions\n- Write clear docstrings and comments\n- Handle errors gracefully in tools and extensions\n- Create prompt fragments for every tool (`agent.system.tool.\u003Cname>.md`)\n- Develop in `\u002Fa0\u002Fusr\u002F` directories to survive updates\n- Test with the `_example` profile as a reference\n- Use `from helpers.*` imports (not `from python.helpers.*`)\n\n### DON'T\n- Modify files in `\u002Fa0\u002Fplugins\u002F` or `\u002Fa0\u002Ftools\u002F` directly (use usr\u002F space)\n- Hardcode paths or configuration values\n- Skip creating prompt files for tools\n- Ignore the plugin system (it's the intended extension mechanism)\n- Mix sync and async code carelessly\n- Access internal structures when helpers exist\n\n---\n\n## Quick Reference: Key Files\n\n| File | Purpose |\n|---|---|\n| `\u002Fa0\u002Fagent.py` | Core `Agent`, `AgentContext`, `AgentConfig` classes |\n| `\u002Fa0\u002Fhelpers\u002Ftool.py` | `Tool` + `Response` base classes |\n| `\u002Fa0\u002Fhelpers\u002Fextension.py` | `Extension` base + `@extensible` decorator |\n| `\u002Fa0\u002Fhelpers\u002Fapi.py` | `ApiHandler` base class |\n| `\u002Fa0\u002Fhelpers\u002Ffiles.py` | File ops + prompt reading |\n| `\u002Fa0\u002Fhelpers\u002Fplugins.py` | Plugin system manager |\n| `\u002Fa0\u002Fhelpers\u002Fprint_style.py` | Console output formatting |\n| `\u002Fa0\u002Fagents\u002F_example\u002F` | Reference example profile with tool + extension |\n| `\u002Fa0\u002Fprompts\u002Fagent.system.main.md` | Main system prompt entry point |","# Agent Zero Development Guide\n\nThis skill provides comprehensive, accurate guidance for extending and building features for Agent Zero. Use it when you need to:\n\n- Understand the **architecture** and project layout\n- Create new **Tools** for agent capabilities\n- Add **Extensions** to hook into the framework lifecycle\n- Build **API Endpoints** for the Web UI\n- Create **Agent Profiles** (subordinates) with custom prompts\n- Understand and extend the **Prompt System**\n- Create **Skills** (see the dedicated `create-skill` skill for the full wizard)\n- Work with **Projects** and workspace configuration\n\n> **Path convention:** Throughout this guide, `\u002Fa0\u002F` refers to the framework root — this is `\u002Fa0\u002F` inside Docker, or your local repository root in development. All paths are relative to this root.\n\n> [!IMPORTANT]\n> **Plugins are the primary way to extend Agent Zero.** Most new tools, extensions, and prompts should be packaged as plugins. For all plugin tasks (create, review, manage, debug, contribute), load the `a0-plugin-router` skill which routes to the appropriate specialist. This guide covers the underlying framework patterns that plugins build upon.\n\nRelated skills: `a0-plugin-router` (plugin tasks) | `create-skill` (skill creation wizard) | `a0-create-plugin` | `a0-review-plugin` | `a0-manage-plugin` | `a0-contribute-plugin` | `a0-debug-plugin`\n\n---\n\n## Architecture Overview\n\n### Project Layout\n\n```\n\u002Fa0\u002F                              # Framework root\n├── agent.py                      # Core Agent + AgentContext + AgentConfig classes\n├── initialize.py                 # Agent initialization logic\n├── models.py                     # Model definitions\n├── run_ui.py                     # Web UI entry point\n│\n├── tools\u002F                        # Core tools (search, response, browser, etc.)\n├── extensions\u002F\n│   ├── python\u002F                   # Python lifecycle extensions\n│   │   ├── \u003Chook_point>\u002F         # e.g., agent_init\u002F, system_prompt\u002F, etc.\n│   │   │   └── _NN_name.py       # Numbered extension files\n│   │   └── _functions\u002F           # Implicit @extensible decorator extensions\n│   └── webui\u002F                    # JavaScript WebUI extensions\n│       └── \u003Chook_point>\u002F         # e.g., json_api_call_before\u002F\n│           └── name.js\n├── api\u002F                          # Flask API endpoint handlers\n├── helpers\u002F                      # Framework utilities and base classes\n│   ├── tool.py                   # Tool + Response base classes\n│   ├── extension.py              # Extension base class + @extensible decorator\n│   ├── api.py                    # ApiHandler base class\n│   ├── files.py                  # File operations + prompt reading\n│   ├── plugins.py                # Plugin system manager\n│   ├── print_style.py            # Console output formatting\n│   └── ...                       # Many more utility modules\n│\n├── prompts\u002F                      # Core prompt fragments (system, tools, framework)\n├── agents\u002F                       # Agent profiles (subordinate specializations)\n│   ├── default\u002F                  # Base profile (inherited by others)\n│   ├── agent0\u002F                   # Main user-facing agent\n│   ├── developer\u002F                # Developer subordinate\n│   ├── hacker\u002F                   # Security subordinate\n│   ├── researcher\u002F               # Research subordinate\n│   └── _example\u002F                 # Example profile with tool + extension samples\n│\n├── plugins\u002F                      # Core plugins (tools, extensions, prompts)\n│   ├── _code_execution\u002F          # Terminal\u002FPython\u002FNode.js execution\n│   ├── _memory\u002F                  # Persistent memory system\n│   ├── _text_editor\u002F             # File read\u002Fwrite\u002Fpatch\n│   ├── _model_config\u002F            # LLM model selection\n│   ├── _infection_check\u002F         # Prompt injection safety\n│   └── ...                       # More core plugins\n│\n├── skills\u002F                       # Core skills (SKILL.md bundles)\n├── knowledge\u002F                    # Knowledge base files\n├── webui\u002F                        # Web UI frontend\n├── docs\u002F                         # Documentation\n│\n└── usr\u002F                          # User-space (survives updates)\n    ├── agents\u002F                   # User-created agent profiles\n    ├── plugins\u002F                  # User-installed plugins\n    ├── skills\u002F                   # User-created skills\n    ├── knowledge\u002F                # User knowledge base files\n    ├── extensions\u002F               # Standalone user extensions (created on demand; prefer plugins instead)\n    ├── projects\u002F                 # Project workspaces (created on demand when user adds projects via UI)\n    └── workdir\u002F                  # Default working directory\n```\n\n### Key Architecture Patterns\n\n1. **Plugin-first design** — Most capabilities (tools, extensions, prompts) are delivered via plugins in `\u002Fa0\u002Fplugins\u002F` (core) or `\u002Fa0\u002Fusr\u002Fplugins\u002F` (user).\n2. **Extensions execute in numeric order** — Files named `_10_*.py`, `_20_*.py`, etc. run sequentially within each hook point.\n3. **Tools inherit from `Tool`** — All tools implement the `execute()` method returning a `Response`.\n4. **Shared `AgentContext`** — Enables state persistence across agents in a conversation.\n5. **Async\u002Fawait throughout** — All tool execution, extensions, and API handlers are async.\n6. **Prompt fragments compose** — System prompts are assembled from named fragments with includes and variable substitution.\n7. **Profile inheritance** — Agent profiles inherit from `default\u002F` and override specific prompt fragments.\n8. **User-space separation** — Everything under `\u002Fa0\u002Fusr\u002F` survives framework updates.\n\n### Agent Loop\n\nThe core execution cycle works as follows:\n\n1. **User message** arrives (via UI or API)\n2. **System prompt assembly** — prompt fragments are composed with includes and variable substitution\n3. **LLM call** — the assembled prompt + conversation history is sent to the model\n4. **Response parsing** — the framework parses the LLM response looking for JSON tool calls\n5. **Tool execution** — if tool calls are found, each tool's `execute()` method is called and the result is appended to history\n6. **Loop continues** — steps 3-5 repeat until the agent produces a `response` tool call (which ends the loop) or a loop limit is reached\n\nExtensions fire at each stage (e.g., `monologue_start`, `before_main_llm_call`, `tool_execute_before`, etc.), allowing plugins to observe and modify behavior at every point.\n\n---\n\n## Creating Tools\n\nTools are how agents interact with the world. Each tool inherits from the `Tool` base class.\n\n### Import Path\n\n```python\nfrom helpers.tool import Tool, Response\n```\n\n### Tool Base Class\n\n```python\n# \u002Fa0\u002Fhelpers\u002Ftool.py\n\n@dataclass\nclass Response:\n    message: str              # Text response shown to agent\n    break_loop: bool          # True = stop agent message loop\n    additional: dict[str, Any] | None = None  # Extra metadata for history\n\nclass Tool:\n    def __init__(self, agent: Agent, name: str, method: str | None,\n                 args: dict[str,str], message: str,\n                 loop_data: LoopData | None, **kwargs) -> None:\n        self.agent = agent\n        self.name = name\n        self.method = method   # For tools with sub-methods (e.g., \"skills_tool:load\")\n        self.args = args\n        self.loop_data = loop_data\n        self.message = message\n\n    async def execute(self, **kwargs) -> Response:\n        pass  # Override this\n\n    # Lifecycle hooks (called automatically):\n    async def before_execution(self, **kwargs): ...\n    async def after_execution(self, response: Response, **kwargs): ...\n```\n\n### Where Tools Live\n\n| Location | Purpose |\n|---|---|\n| `\u002Fa0\u002Ftools\u002F` | Core framework tools (search, response, call_subordinate, etc.) |\n| `\u002Fa0\u002Fplugins\u002F\u003Cplugin>\u002Ftools\u002F` | Plugin-provided tools (code_execution, memory, text_editor) |\n| `\u002Fa0\u002Fagents\u002F\u003Cprofile>\u002Ftools\u002F` | Profile-specific tool overrides |\n| `\u002Fa0\u002Fusr\u002Fplugins\u002F\u003Cplugin>\u002Ftools\u002F` | User plugin tools |\n\n### Example: Creating a Tool\n\nBased on the actual `_example` profile in `\u002Fa0\u002Fagents\u002F_example\u002Ftools\u002Fexample_tool.py`:\n\n```python\n# my_tool.py\nfrom helpers.tool import Tool, Response\n\nclass MyTool(Tool):\n    async def execute(self, **kwargs):\n        # Get arguments — kwargs contains the tool_args from the agent's JSON\n        input_data = kwargs.get(\"input\", \"\")\n\n        # Do something\n        result = f\"Processed: {input_data}\"\n\n        # Return response\n        return Response(\n            message=result,        # Shown to the agent\n            break_loop=False,      # Don't stop the agent loop\n        )\n```\n\n> [!IMPORTANT]\n> Every tool needs a corresponding **prompt fragment** so the agent knows how to use it. Create a file named `agent.system.tool.\u003Ctool_name>.md` in the appropriate `prompts\u002F` directory. See the [Prompt System](#prompt-system) section.\n\n### Tool Best Practices\n\n- Always handle errors gracefully — return error messages in `Response`, don't crash\n- Access agent context via `self.agent.context`\n- Use `self.method` to support sub-methods (e.g., `my_tool:action1`, `my_tool:action2`)\n- Use `kwargs.get()` to read arguments with defaults\n- For long operations, use `self.set_progress()` or `self.add_progress()` to show status\n- Access `self.loop_data` for loop state (iteration count, timing, etc.) — this is the `LoopData` instance passed during tool dispatch\n\n---\n\n## Creating Extensions\n\nExtensions hook into specific lifecycle points in the agent framework.\n\n### Import Path\n\n```python\nfrom helpers.extension import Extension\n```\n\n### Extension Base Class\n\n```python\nclass Extension:\n    def __init__(self, agent: \"Agent | None\", **kwargs):\n        self.agent: \"Agent | None\" = agent\n        self.kwargs = kwargs\n\n    def execute(self, **kwargs) -> None | Awaitable[None]:\n        pass  # Override this — kwargs are hook-point-specific\n```\n\n> Extensions can be sync or async. If `execute()` returns an `Awaitable`, the framework will `await` it automatically. The `agent` parameter is nullable because some hook points (like `startup_migration` or `banners`) fire before an agent exists.\n\n### Extension File Location\n\nExtensions live in directories named by their hook point. The path structure is:\n\n```\nextensions\u002Fpython\u002F\u003Chook_point>\u002F_NN_name.py\n```\n\nWhere `_NN_` is a numeric prefix controlling execution order (e.g., `_10_`, `_20_`, `_50_`).\n\n| Source | Path |\n|---|---|\n| Core extensions | `\u002Fa0\u002Fextensions\u002Fpython\u002F\u003Chook_point>\u002F` |\n| Plugin extensions | `\u002Fa0\u002Fplugins\u002F\u003Cplugin>\u002Fextensions\u002Fpython\u002F\u003Chook_point>\u002F` |\n| User extensions | `\u002Fa0\u002Fusr\u002Fextensions\u002Fpython\u002F\u003Chook_point>\u002F` |\n| Agent profile extensions | `\u002Fa0\u002Fagents\u002F\u003Cprofile>\u002Fextensions\u002F\u003Chook_point>\u002F` |\n| User plugin extensions | `\u002Fa0\u002Fusr\u002Fplugins\u002F\u003Cplugin>\u002Fextensions\u002Fpython\u002F\u003Chook_point>\u002F` |\n\n### Python Extension Hook Points\n\nComplete list of available hook points:\n\n| Hook Point | When It Fires | Common Use |\n|---|---|---|\n| `agent_init` | Agent is initialized | Load configs, set defaults |\n| `system_prompt` | System prompt is being assembled | Inject prompt content |\n| `monologue_start` | Agent monologue begins | Pre-processing, state setup |\n| `message_loop_start` | Before message processing loop | Pre-loop setup |\n| `message_loop_prompts_before` | Before prompt assembly in loop | Modify prompt inputs |\n| `message_loop_prompts_after` | After prompt assembly in loop | Add context (memory recall lives here) |\n| `before_main_llm_call` | Before the LLM API call | Modify prompts, add context |\n| `util_model_call_before` | Before utility model calls | Modify utility prompts |\n| `response_stream` | When response streaming begins | Initialize stream handlers |\n| `response_stream_chunk` | Per response chunk received | Transform output, collect data |\n| `response_stream_end` | Response streaming complete | Finalize, analyze full response |\n| `reasoning_stream` | Reasoning\u002Fthinking stream begins | Monitor reasoning |\n| `reasoning_stream_chunk` | Per reasoning chunk | Collect reasoning data |\n| `reasoning_stream_end` | Reasoning stream complete | Analyze reasoning |\n| `tool_execute_before` | Before a tool runs | Validation, logging, safety checks |\n| `tool_execute_after` | After a tool runs | Post-process results |\n| `hist_add_before` | Before adding to history | Modify history entries |\n| `hist_add_tool_result` | After tool result added to history | Log tool results |\n| `message_loop_end` | After message processing loop | Post-loop cleanup |\n| `monologue_end` | Agent monologue complete | Memorization, cleanup |\n| `process_chain_end` | Entire processing chain done | Final cleanup |\n| `job_loop` | Background job loop tick | Periodic background tasks |\n| `error_format` | Error is being formatted | Custom error messages |\n| `startup_migration` | Framework startup | Data migrations |\n| `banners` | Startup banners displayed | Add custom banners |\n| `embedding_model_changed` | Embedding model changed | Reload vector stores (fired programmatically, not a directory-based hook) |\n| `user_message_ui` | User message from UI | Pre-process user input |\n| `webui_ws_connect` | WebSocket client connects | Session setup |\n| `webui_ws_disconnect` | WebSocket client disconnects | Session cleanup |\n| `webui_ws_event` | WebSocket event received | Handle custom WS events |\n\n### The `@extensible` Decorator (Implicit Extension Points)\n\nAny framework function decorated with `@extensible` automatically gets two extension points:\n\n```\n_functions\u002F\u003Cmodule_path>\u002F\u003Cqualname_path>\u002Fstart\n_functions\u002F\u003Cmodule_path>\u002F\u003Cqualname_path>\u002Fend\n```\n\nThe path mapping converts Python module paths and qualified names using `\u002F` separators:\n- Module `agent.py` → `agent`\n- Class method `Agent.handle_exception` → `Agent\u002Fhandle_exception`\n- Full path: `_functions\u002Fagent\u002FAgent\u002Fhandle_exception\u002Fstart`\n\nFor nested modules like `helpers.history`, a method `History.add` would map to `_functions\u002Fhelpers\u002Fhistory\u002FHistory\u002Fadd\u002Fstart`.\n\nFor example, a function `Agent.handle_exception` in module `agent` creates:\n- `_functions\u002Fagent\u002FAgent\u002Fhandle_exception\u002Fstart`\n- `_functions\u002Fagent\u002FAgent\u002Fhandle_exception\u002Fend`\n\nExtensions in these directories receive a `data` dict with:\n- `data[\"args\"]` — positional args (mutable)\n- `data[\"kwargs\"]` — keyword args (mutable)\n- `data[\"result\"]` — set this to short-circuit the function\n- `data[\"exception\"]` — set to a `BaseException` to force-raise\n\nThis is used by plugins like `_error_retry` to wrap core agent methods.\n\n### WebUI Extensions (JavaScript)\n\nClient-side extensions live under `extensions\u002Fwebui\u002F\u003Chook_point>\u002F`:\n\n| Hook Point | When It Fires |\n|---|---|\n| `json_api_call_before` | Before a JSON API request |\n| `json_api_call_after` | After a JSON API response |\n| `fetch_api_call_before` | Before a fetch API request |\n| `fetch_api_call_after` | After a fetch API response |\n| `get_message_handler` | Register custom message renderers |\n| `set_messages_before_loop` | Before messages are rendered |\n| `set_messages_after_loop` | After messages are rendered |\n| `webui_ws_push` | WebSocket push to client |\n\n### Example: Creating an Extension\n\nBased on the actual `_example` profile in `\u002Fa0\u002Fagents\u002F_example\u002Fextensions\u002Fagent_init\u002F_10_example_extension.py`:\n\n```python\n# extensions\u002Fpython\u002Fagent_init\u002F_15_my_extension.py\nfrom helpers.extension import Extension\n\nclass MyExtension(Extension):\n    async def execute(self, **kwargs):\n        # Access the agent\n        agent = self.agent\n        context = agent.context\n\n        # Extension logic — kwargs content depends on the hook point\n        agent.agent_name = \"CustomAgent\" + str(agent.number)\n```\n\n### Extension Execution Order\n\nExtensions execute in numeric order based on filename prefix:\n\n```\n_10_first.py      # Runs first\n_20_second.py     # Runs second\n_50_third.py      # Runs third\n```\n\nUse 10-number increments to leave room for future extensions.\n\n---\n\n## Creating API Endpoints\n\nAPI endpoints serve the Web UI and external clients using Flask.\n\n### Import Path\n\n```python\nfrom helpers.api import ApiHandler\nfrom flask import Request, Response\n```\n\n### ApiHandler Base Class\n\n```python\nclass ApiHandler:\n    def __init__(self, app: Flask, thread_lock: ThreadLockType):\n        self.app = app\n        self.thread_lock = thread_lock\n\n    # Override these class methods to configure behavior:\n    @classmethod\n    def requires_loopback(cls) -> bool: return False   # Restrict to localhost\n    @classmethod\n    def requires_api_key(cls) -> bool: return False     # Require API key\n    @classmethod\n    def requires_auth(cls) -> bool: return True         # Require auth session\n    @classmethod\n    def get_methods(cls) -> list[str]: return [\"POST\"]   # HTTP methods\n    @classmethod\n    def requires_csrf(cls) -> bool: return cls.requires_auth()  # CSRF protection\n\n    # Implement this:\n    async def process(self, input: dict, request: Request) -> dict | Response:\n        pass\n\n    # Utility: get or create an agent context\n    def use_context(self, ctxid: str, create_if_not_exists: bool = True) -> AgentContext:\n        ...\n```\n\n### Where API Endpoints Live\n\n| Location | Purpose |\n|---|---|\n| `\u002Fa0\u002Fapi\u002F` | Core API endpoints |\n| `\u002Fa0\u002Fplugins\u002F\u003Cplugin>\u002Fapi\u002F` | Plugin API endpoints |\n| `\u002Fa0\u002Fusr\u002Fplugins\u002F\u003Cplugin>\u002Fapi\u002F` | User plugin API endpoints |\n\nEndpoints are auto-discovered by filename. The route is derived from the filename (e.g., `my_endpoint.py` -> `\u002Fapi\u002Fmy_endpoint`).\n\n### Example: API Endpoint\n\n```python\n# api\u002Fmy_endpoint.py\nfrom helpers.api import ApiHandler\nfrom flask import Request, Response\nfrom agent import AgentContext\n\nclass MyEndpoint(ApiHandler):\n    @classmethod\n    def get_methods(cls) -> list[str]:\n        return [\"GET\", \"POST\"]\n\n    async def process(self, input: dict, request: Request) -> dict:\n        param = input.get(\"param\", \"default\")\n\n        # Get or create agent context\n        ctxid = input.get(\"context\", \"\")\n        context = self.use_context(ctxid)\n\n        return {\n            \"result\": f\"processed {param}\",\n            \"context\": context.id,\n        }\n```\n\n---\n\n## Creating Agent Profiles\n\nAgent profiles define specialized subordinates with custom prompts and behaviors.\n\n### Profile Directory Structure\n\n```\nagents\u002F\u003Cprofile-name>\u002F\n+-- agent.yaml                    # Required: profile metadata\n+-- prompts\u002F                      # Optional: prompt overrides\n|   +-- agent.system.main.role.md         # Role definition (most common override)\n|   +-- agent.system.main.communication.md # Communication style\n|   +-- agent.system.tool.\u003Cname>.md       # Tool-specific prompts\n+-- tools\u002F                        # Optional: profile-specific tools\n|   +-- my_tool.py\n+-- extensions\u002F                   # Optional: profile-specific extensions\n    +-- \u003Chook_point>\u002F\n        +-- _NN_extension.py\n```\n\n### agent.yaml Format\n\nThe actual format is simple YAML with only three fields:\n\n```yaml\ntitle: Developer\ndescription: Agent specialized in complex software development.\ncontext: Use this agent for software development tasks, including writing code,\n  debugging, refactoring, and architectural design.\n```\n\n| Field | Purpose |\n|---|---|\n| `title` | Display name shown in UI and agent selection |\n| `description` | Brief description of the agent's specialization |\n| `context` | Instructions for when to delegate to this profile |\n\n> [!NOTE]\n> There is **no** per-profile model configuration, temperature, or allowed_tools in the profile YAML. Model configuration is managed by the `_model_config` plugin. Tool availability is controlled by plugin activation.\n\n### Where Profiles Live\n\n| Location | Purpose |\n|---|---|\n| `\u002Fa0\u002Fagents\u002F` | Core profiles (default, agent0, developer, hacker, researcher) |\n| `\u002Fa0\u002Fusr\u002Fagents\u002F` | User-created profiles (survives updates) |\n\n### Prompt Override Mechanism\n\nProfiles inherit all prompts from the `default\u002F` profile. To customize behavior, place prompt files with the **same name** in your profile's `prompts\u002F` directory. The framework searches profile-specific prompts first, then falls back to the default.\n\nThe most common override is `agent.system.main.role.md` which defines the agent's role and specialization.\n\n### Example: Creating a Profile\n\n```yaml\n# \u002Fa0\u002Fusr\u002Fagents\u002Fdata-analyst\u002Fagent.yaml\ntitle: Data Analyst\ndescription: Agent specialized in data analysis, visualization, and statistical modeling.\ncontext: Use this agent for data analysis tasks, creating visualizations, statistical\n  analysis, and working with datasets in Python.\n```\n\n```markdown\n\u003C!-- \u002Fa0\u002Fusr\u002Fagents\u002Fdata-analyst\u002Fprompts\u002Fagent.system.main.role.md -->\n\n## Your role\nYou are a specialized data analysis agent.\nYour expertise includes:\n- Python data analysis (pandas, numpy, scipy)\n- Data visualization (matplotlib, seaborn, plotly)\n- Statistical modeling and hypothesis testing\n- SQL queries and database analysis\n- Data cleaning and preprocessing\n\n## Process\n1. Understand the data and the question\n2. Choose appropriate tools and methods\n3. Execute analysis with code_execution_tool\n4. Visualize results when applicable\n5. Provide clear interpretation of findings\n```\n\n### Reference: The `_example` Profile\n\nThe framework includes a complete example profile at `\u002Fa0\u002Fagents\u002F_example\u002F` that demonstrates:\n- Custom tool: `\u002Fa0\u002Fagents\u002F_example\u002Ftools\u002Fexample_tool.py`\n- Custom extension: `\u002Fa0\u002Fagents\u002F_example\u002Fextensions\u002Fagent_init\u002F_10_example_extension.py`\n- Tool prompt: `\u002Fa0\u002Fagents\u002F_example\u002Fprompts\u002Fagent.system.tool.example_tool.md`\n- Role prompt: `\u002Fa0\u002Fagents\u002F_example\u002Fprompts\u002Fagent.system.main.role.md`\n\n---\n\n## Prompt System\n\nAgent Zero assembles system prompts from **named fragments** using includes and variable substitution.\n\n### Prompt File Naming Convention\n\nPrompt files follow a dot-separated naming scheme:\n\n```\nagent.system.main.md            # Main system prompt (entry point)\nagent.system.main.role.md       # Role definition\nagent.system.main.communication.md  # Communication style\nagent.system.tool.\u003Cname>.md     # Tool usage instructions\nagent.system.tools.md           # Tools overview\nagent.system.projects.main.md   # Project system\nagent.system.secrets.md         # Secret handling\nagent.system.skills.md          # Skills listing\nagent.system.datetime.md        # Current date\u002Ftime\nagent.context.extras.md         # Context extras\nfw.*.md                         # Framework messages (errors, hints, etc.)\n```\n\n### Where Prompts Live\n\n| Location | Priority | Purpose |\n|---|---|---|\n| `\u002Fa0\u002Fagents\u002F\u003Cprofile>\u002Fprompts\u002F` | Highest | Profile-specific overrides |\n| `\u002Fa0\u002Fusr\u002Fagents\u002F\u003Cprofile>\u002Fprompts\u002F` | High | User profile overrides |\n| `\u002Fa0\u002Fplugins\u002F\u003Cplugin>\u002Fprompts\u002F` | Normal | Plugin-provided prompts |\n| `\u002Fa0\u002Fusr\u002Fplugins\u002F\u003Cplugin>\u002Fprompts\u002F` | Normal | User plugin prompts |\n| `\u002Fa0\u002Fprompts\u002F` | Base | Core framework prompts |\n\nThe framework searches directories in priority order and uses the **first match** found.\n\n### Include Mechanism\n\nPrompts can include other fragments using double-brace `include` directives.\n\nThe syntax uses opening double-brace, the keyword, and closing double-brace:\n\n| Directive | Purpose |\n|---|---|\n| `{{include \"agent.system.main.role.md\"}}` | Include a named prompt fragment |\n| `{{include \"agent.system.main.communication.md\"}}` | Include another fragment |\n| `{{include original}}` | Include the same file from the next lower-priority directory |\n\nThe `include original` directive is particularly useful for **extending** rather than fully **replacing** a prompt — your override can include the base version and add to it.\n\n### Variable Substitution\n\nPrompts support `{{variable_name}}` placeholders that are replaced at render time with values passed from the framework or plugin configuration.\n\n### Conditional Blocks\n\nPrompts support conditional rendering based on variables.\n\n### Reading Prompts in Code\n\n```python\n# From within an Agent method:\ncontent = self.read_prompt(\"fw.some_message.md\", variable1=\"value1\")\n\n# From helpers:\nfrom helpers.files import read_prompt_file\ncontent = read_prompt_file(\"template.md\", _directories=[...], var=\"value\")\n```\n\n---\n\n## Creating Skills\n\nSkills are reusable instruction bundles that the agent loads on demand via the `skills_tool`. Each skill lives in a directory containing a `SKILL.md` file with YAML frontmatter.\n\n| Location | Purpose |\n|---|---|\n| `\u002Fa0\u002Fskills\u002F` | Core skills (shipped with framework) |\n| `\u002Fa0\u002Fusr\u002Fskills\u002F` | User-created skills (survives updates) |\n\nThe agent interacts with skills through JSON tool calls:\n\n```json\n{\"tool_name\": \"skills_tool:list\", \"tool_args\": {}}\n{\"tool_name\": \"skills_tool:load\", \"tool_args\": {\"skill_name\": \"my-skill\"}}\n```\n\n> For the complete skill creation wizard — including SKILL.md format, frontmatter fields, directory structure, best practices, and examples — load the `create-skill` skill.\n\n---\n\n## Working with Projects\n\nProjects provide isolated workspaces with custom configuration.\n\n> Projects are typically created and managed via the Web UI. The `.a0proj\u002F` directory and `project.json` are auto-generated when you create a project through the UI.\n\n### Project Structure\n\n```\n\u002Fa0\u002Fusr\u002Fprojects\u002F\u003Cproject-name>\u002F\n+-- .a0proj\u002F\n|   +-- project.json          # Project configuration\n|   +-- agents.json           # Per-project agent overrides\n|   +-- variables.env         # Non-sensitive variables\n|   +-- secrets.env           # Encrypted secrets\n|   +-- memory\u002F               # Project-specific memory\n|       +-- index.faiss\n|       +-- index.pkl\n|       +-- embedding.json\n+-- \u003Cproject-files>\u002F          # Your project files (working directory)\n```\n\n### project.json Format\n\n```json\n{\n    \"title\": \"My Project\",\n    \"description\": \"Project description\",\n    \"instructions\": \"Markdown instructions for the agent when this project is active\",\n    \"color\": \"#3a86ff\",\n    \"git_url\": \"\",\n    \"memory\": \"own\",\n    \"file_structure\": {\n        \"enabled\": true,\n        \"max_depth\": 5,\n        \"max_files\": 20,\n        \"max_folders\": 20,\n        \"max_lines\": 250,\n        \"gitignore\": \".a0proj\u002F\\nvenv\u002F\\n**\u002F__pycache__\u002F\\n**\u002Fnode_modules\u002F\\n**\u002F.git\u002F\\n\"\n    }\n}\n```\n\n| Field | Purpose |\n|---|---|\n| `title` | Display name |\n| `description` | Brief description |\n| `instructions` | Markdown injected into agent system prompt when project is active |\n| `color` | UI accent color (hex) |\n| `git_url` | Optional Git repository URL |\n| `memory` | `\"own\"` for project-specific memory, or shared |\n| `file_structure` | Controls the working directory tree shown to the agent |\n\n---\n\n## Plugin System Overview\n\nPlugins are the **primary extension mechanism** in Agent Zero. A plugin can bundle tools, extensions, prompts, API endpoints, helpers, and UI components into a self-contained package.\n\n> For all plugin tasks — creating, reviewing, managing, contributing, or debugging plugins — load the `a0-plugin-router` skill, which routes to the appropriate specialist skill.\n\n### Core Plugins\n\nThe framework ships with these core plugins in `\u002Fa0\u002Fplugins\u002F`:\n\n| Plugin | Purpose |\n|---|---|\n| `_code_execution` | Terminal, Python, Node.js code execution |\n| `_memory` | Persistent vector memory system |\n| `_text_editor` | File read\u002Fwrite\u002Fpatch with line numbers |\n| `_model_config` | LLM model selection and configuration |\n| `_browser_agent` | Browser automation and web interaction |\n| `_infection_check` | Prompt injection safety checks |\n| `_error_retry` | Retry on critical exceptions |\n| `_email_integration` | Email communication via IMAP\u002FSMTP |\n| `_telegram_integration` | Telegram bot integration |\n| `_chat_branching` | Branch chats from any message |\n| `_promptinclude` | Persistent behavioral rules (*.promptinclude.md) |\n| `_plugin_installer` | Install plugins from ZIP\u002FGit\u002FHub |\n| `_plugin_scan` | Security scanning for plugins |\n| `_plugin_validator` | Plugin manifest and code validation |\n\n---\n\n## Common Patterns Reference\n\n### Accessing Agent Context\n\n```python\n# Shared across all agents in a conversation\ncontext = self.agent.context\ndata = context.data  # dict-like shared state\n\n# Store data\ndata[\"my_key\"] = my_value\n\n# Retrieve data\nvalue = data.get(\"my_key\", default)\n```\n\n### Using File Helpers\n\n```python\nfrom helpers import files\n\n# File operations\ncontent = files.read_file(\"path\u002Fto\u002Ffile\")\nfiles.write_file(\"path\u002Fto\u002Ffile\", content)\nexists = files.exists(\"path\u002Fto\u002Ffile\")\n\n# Read and render a prompt file\ncontent = files.read_prompt_file(\"template.md\", _directories=[...], var=\"value\")\n```\n\n### Console Output\n\n```python\nfrom helpers.print_style import PrintStyle\n\nPrintStyle.hint(\"Informational message\")\nPrintStyle.warning(\"Warning message\")\nPrintStyle.error(\"Error message\")\nPrintStyle(font_color=\"#85C1E9\").print(\"Custom styled output\")\n```\n\n### Error Handling\n\n```python\nfrom helpers.tool import Response\n\ntry:\n    result = await risky_operation()\nexcept Exception as e:\n    PrintStyle.error(f\"Operation failed: {e}\")\n    return Response(message=f\"Error: {e}\", break_loop=False)\n```\n\n---\n\n## Development Workflow\n\nWhen building features for Agent Zero:\n\n### 1. Choose Your Extension Point\n\n| Want to... | Use |\n|---|---|\n| Add a new agent capability | **Tool** (in a plugin) |\n| Hook into agent lifecycle | **Extension** (in a plugin) |\n| Add Web UI functionality | **API endpoint** + **WebUI extension** |\n| Create a specialized agent | **Agent profile** |\n| Bundle reusable instructions | **Skill** |\n| Package everything together | **Plugin** (recommended) |\n\n### 2. Develop in User Space\n\n- New plugins -> `\u002Fa0\u002Fusr\u002Fplugins\u002F\u003Cname>\u002F`\n- New profiles -> `\u002Fa0\u002Fusr\u002Fagents\u002F\u003Cname>\u002F`\n- New skills -> `\u002Fa0\u002Fusr\u002Fskills\u002F\u003Cname>\u002F`\n- New extensions -> `\u002Fa0\u002Fusr\u002Fextensions\u002Fpython\u002F\u003Chook_point>\u002F`\n\n### 3. Test and Iterate\n\n- **Local dev**: Run `python run_ui.py` (default port 50001 at `http:\u002F\u002Flocalhost:50001`)\n- **Docker**: Restart the container or use the UI restart button; check logs with `docker logs -f \u003Ccontainer_name>`\n- Test with minimal input first\n- Verify in the Web UI\n\n### 4. Contributing\n\nFor contribution guidelines, see `\u002Fa0\u002Fdocs\u002Fcontribution.md`. For plugin contributions to the community Plugin Index, load the `a0-contribute-plugin` skill.\n\n---\n\n## Best Practices\n\n### DO\n- Use the **plugin system** for new features (see `a0-create-plugin` skill)\n- Follow existing code patterns and conventions\n- Write clear docstrings and comments\n- Handle errors gracefully in tools and extensions\n- Create prompt fragments for every tool (`agent.system.tool.\u003Cname>.md`)\n- Develop in `\u002Fa0\u002Fusr\u002F` directories to survive updates\n- Test with the `_example` profile as a reference\n- Use `from helpers.*` imports (not `from python.helpers.*`)\n\n### DON'T\n- Modify files in `\u002Fa0\u002Fplugins\u002F` or `\u002Fa0\u002Ftools\u002F` directly (use usr\u002F space)\n- Hardcode paths or configuration values\n- Skip creating prompt files for tools\n- Ignore the plugin system (it's the intended extension mechanism)\n- Mix sync and async code carelessly\n- Access internal structures when helpers exist\n\n---\n\n## Quick Reference: Key Files\n\n| File | Purpose |\n|---|---|\n| `\u002Fa0\u002Fagent.py` | Core `Agent`, `AgentContext`, `AgentConfig` classes |\n| `\u002Fa0\u002Fhelpers\u002Ftool.py` | `Tool` + `Response` base classes |\n| `\u002Fa0\u002Fhelpers\u002Fextension.py` | `Extension` base + `@extensible` decorator |\n| `\u002Fa0\u002Fhelpers\u002Fapi.py` | `ApiHandler` base class |\n| `\u002Fa0\u002Fhelpers\u002Ffiles.py` | File ops + prompt reading |\n| `\u002Fa0\u002Fhelpers\u002Fplugins.py` | Plugin system manager |\n| `\u002Fa0\u002Fhelpers\u002Fprint_style.py` | Console output formatting |\n| `\u002Fa0\u002Fagents\u002F_example\u002F` | Reference example profile with tool + extension |\n| `\u002Fa0\u002Fprompts\u002Fagent.system.main.md` | Main system prompt entry point |",{"name":5,"tags":23,"author":34,"version":35,"description":7,"trigger_patterns":36},[24,25,26,27,28,29,30,31,32,33],"development","framework","agent-zero","extending","tools","extensions","skills","api","agents","prompts","Agent Zero Team","1.0.0",[37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],"extend agent zero","agent zero development","build agent zero feature","create agent zero tool","add extension","framework development","agent zero architecture","how does agent zero work","create agent zero extension","add api endpoint","create agent profile","agent zero internals","how does the agent loop work","extension hook points","prompt system","agent profile","main","f8223517ae7491e776b69793d9f11e9d074ab42e","agents\u002Fagent-zero\u002Fskills\u002Fa0-development",9,"https:\u002F\u002Fgithub.com\u002FGen-Verse\u002FPAST-Bench","https:\u002F\u002Farxiv.org\u002Fabs\u002F2608.04003","https:\u002F\u002Fgithub.com\u002FGen-Verse","Research led by Ling Yang, across Princeton, Stanford, Oxford, AItonomy Foundation","2026-08-05 09:16:45",{"source":8,"skillName":5,"commands":63,"prompt":73,"zipAvailable":74},[64,67,70],{"tool":65,"command":66},"npx","npx skills add Gen-Verse\u002FPAST-Bench --skill a0-development",{"tool":68,"command":69},"bunx","bunx skills add Gen-Verse\u002FPAST-Bench --skill a0-development",{"tool":71,"command":72},"pnpm","pnpm dlx skills add Gen-Verse\u002FPAST-Bench --skill a0-development","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FGen-Verse\u002FPAST-Bench\u002Fblob\u002Fmain\u002Fagents\u002Fagent-zero\u002Fskills\u002Fa0-development\u002FSKILL.md",true,[],[77,83,89,95,101,107],{"skillNo":78,"name":79,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":18},"01M79ZYB2TKDT4WVWPHY5VBKPC","kappa_review_workflow","https:\u002F\u002Fgithub.com\u002FGen-Verse\u002FPAST-Bench\u002Fblob\u002Fmain\u002Fself-evolve-tasks-v2\u002Fproactive_information_gathering\u002FPG06_kappa_integration_review\u002F_family_seed\u002Fskills\u002Fkappa_review_workflow\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":18},"01M79ZY8F4KJCAM1HFTZ4PF4DD","change_freeze_lookup","https:\u002F\u002Fgithub.com\u002FGen-Verse\u002FPAST-Bench\u002Fblob\u002Fmain\u002Fself-evolve-tasks-v2\u002Fproactive_information_gathering\u002FPG05_change_freeze_followup\u002F_family_seed\u002Fskills\u002Fchange_freeze_lookup\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":18},"01M79ZY684WBATTYEP78X28ZX0","temporary_waiver_audit","https:\u002F\u002Fgithub.com\u002FGen-Verse\u002FPAST-Bench\u002Fblob\u002Fmain\u002Fself-evolve-tasks-v2\u002Fproactive_information_gathering\u002FPG04_temporary_waiver_audit\u002F_family_seed\u002Fskills\u002Ftemporary_waiver_audit\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":18},"01M79ZY3GJCBCD3BZKQZGY2J4Y","oncall_handoff_lookup","https:\u002F\u002Fgithub.com\u002FGen-Verse\u002FPAST-Bench\u002Fblob\u002Fmain\u002Fself-evolve-tasks-v2\u002Fproactive_information_gathering\u002FPG03_oncall_handoff_lookup\u002F_family_seed\u002Fskills\u002Foncall_handoff_lookup\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":18},"01M79ZY0R87W2R56W1ZTZJKCJE","ops_exception_desk_workflow","https:\u002F\u002Fgithub.com\u002FGen-Verse\u002FPAST-Bench\u002Fblob\u002Fmain\u002Fself-evolve-tasks-v2\u002Fproactive_information_gathering\u002FPG02_ops_exception_desk\u002F_family_seed\u002Fskills\u002Fops_exception_desk_workflow\u002FSKILL.md",[],[],{"skillNo":108,"name":109,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":18},"01M79ZXY173N2QBP1MBJG02WAT","release_followup_lookup","https:\u002F\u002Fgithub.com\u002FGen-Verse\u002FPAST-Bench\u002Fblob\u002Fmain\u002Fself-evolve-tasks-v2\u002Fproactive_information_gathering\u002FPG01_release_decision_followup\u002F_family_seed\u002Fskills\u002Frelease_followup_lookup\u002FSKILL.md",[],[]]