
OpenCode Python 专家代理工具
概览
该软件包属于实验性质,非常适合本地项目使用。 这个代理包为OpenCode提供了深厚的Python专业知识: 每次都要解释FastAPI模式、Pydantic模式、JWT认证、异步数据库。 - - 拥有智能技能加载的Python专家 - - 代码生成、审查、测试和探索 - - FastAPI、SQLAlchemy、pytest、asyncio等 - - 标准、模式、安全性和导航 - - 目标包括Python 3.13+、FastAPI、Pydantic v2、SQLAlchemy 2.0 复制 .opencode 目录并 AGENTS.md 到你的项目根。 - : 通过技能加载(name=“...”) - 无自动加载 - : 复杂任务从侦查开始进行上下文发现 - : 所有代码遵循加载的技能模式 - : 类型检查、打印、测试自动运行 完整文档可在 .opencode/docs/ 中获取: OpenCode 是通用的。
概述(AI 翻译)
** 一个全面的 Python 代理工具,适用于 OpenCode,拥有 10 项技能、4 个子代理和生产准备的 FastAPI 模式。**
注: 该软件包属于实验性质,非常适合本地项目使用。
为什么要用这个?
别再重复自己了。 这个代理包为OpenCode提供了深厚的Python专业知识:
| 你能得到什么 | 福利 |
|---|---|
| 10项专业技能 | 按需加载专业知识(FastAPI、SQLAlchemy、pytest等) |
| 4个子代理 | 将编码、审查、测试、探索委托给专家 |
| 生产模式可扩展的代码,而不仅仅是可行的代码 | |
| 零配置 | 安装并开始编码 |
之前: 每次都要解释FastAPI模式、Pydantic模式、JWT认证、异步数据库。
之后:
特色
- 1 主代理 -
python-expert智能技能加载 - 4 专业子代理 - 代码生成、审查、测试和探索
- 10 按需技能 - FastAPI、SQLAlchemy、pytest、asyncio 等
- 4 上下文文件 - 标准、模式、安全性与导航
- 生产准备 - 目标是 Python 3.13+、FastAPI、Pydantic v2、SQLAlchemy 2.0
安装
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Python Expert Agent for OpenCode
A comprehensive Python agentic tool for OpenCode with 10 skills, 4 subagents, and production-ready FastAPI patterns.
Note: This package is experimental and works great for local project-based use.
Why Use This?
Stop repeating yourself. This agent pack gives OpenCode deep Python expertise:
| What You Get | Benefit |
|---|---|
| 10 specialized skills | Load expertise on-demand (FastAPI, SQLAlchemy, pytest, etc.) |
| 4 subagents | Delegate to specialists for coding, review, testing, exploration |
| Production patterns | Code that scales, not just code that works |
| Zero-config | Install and start coding |
Before: Explain FastAPI patterns, Pydantic schemas, JWT auth, async database every time.
After:
skill(name="python-fastapi")
Create a login endpoint
Features
- 1 Primary Agent -
python-expertwith intelligent skill loading - 4 Specialized Subagents - Code generation, review, testing, and exploration
- 10 On-Demand Skills - FastAPI, SQLAlchemy, pytest, asyncio, and more
- 4 Context Files - Standards, patterns, security, and navigation
- Production Ready - Targets Python 3.13+, FastAPI, Pydantic v2, SQLAlchemy 2.0
Installation
From npm (Recommended)
# Install globally
npm install -g python-expert-agent
# Install to current project
python-expert-agent init
# Install globally (for all projects, experimental)
python-expert-agent init --global
Using npx (No install needed)
npx python-expert-agent init
Manual Installation
Copy the .opencode directory and AGENTS.md to your project root.
Quick Start
# 1. Install the agent pack
npm install -g python-expert-agent
python-expert-agent init
# 2. Start OpenCode in your Python project
cd /path/to/your/python/project
opencode
# 3. The python-expert agent is automatically detected
# 4. Use skills on-demand
skill(name="python-fastapi")
skill(name="python-backend")
Common Use Cases
Create a REST API Endpoint
skill(name="python-fastapi")
Create a POST /api/users endpoint with:
- Email validation
- Password hashing (bcrypt)
- JWT token generation
Add Tests to Existing Code
skill(name="python-testing-general")
Write tests for src/services/user.py:
- Unit tests for create_user, get_user
- Mock the database
- Test edge cases (empty input, duplicates)
推荐工具
换一个关键词,或者移除筛选条件。
安装
npx skillfish add amrahman90/python-expert-agent