Coding Agent Plugins
knowledge skill
Writes executable code to extend agent capabilities via plugin manifests and implementation files. It produces a structured directory containing a manifest.json file and the corresponding source code for the plugin logic.
Worked examples
- {"input": {"plugin_purpose": "Fetch real-time stock prices from Alpha Vantage", "api_endpoints": ["https://www.alphavantage.co/query"], "target_language": "python"}, "output": {"manifest_json": "{\"name\": \"stock_fetcher\", \"description\": \"Gets stock prices\", \"functions\": [{\"name\": \"get_price\", \"parameters\": {\"symbol\": \"string\"}}]}", "source_code": "import requests\ndef get_price(symbol):\n r = requests.get(f'https://www.alphavantage.co/query?function=GLOBAL_QUOTE&symbol={symbol}&apikey=KEY')\n return r.json()", "installation_steps": "pip install requests && cp plugin.py /agents/plugins/"}}
- {"input": {"plugin_purpose": "Convert Markdown files to HTML", "api_endpoints": [], "target_language": "javascript"}, "output": {"manifest_json": "{\"name\": \"md_converter\", \"description\": \"MD to HTML\", \"functions\": [{\"name\": \"convert\", \"parameters\": {\"text\": \"string\"}}]}", "source_code": "const marked = require('marked');\nexports.convert = (text) => marked.parse(text);", "installation_steps": "npm install marked && node install_plugin.js"}}
Input
- plugin_purpose: string: The specific functional goal of the plugin
- api_endpoints: array: List of external API URLs to be integrated
- target_language: string: The programming language for the implementation
Output
- manifest_json: string: The configuration file defining plugin metadata and schemas
- source_code: string: The complete implementation logic for the plugin functions
- installation_steps: string: Shell commands to deploy the plugin
Details
- Skill type: knowledge skill
- Safety level: safe_public_research
- Version: 1.0.0