npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

python-expert-agent

v0.0.4

Published

Python Expert Agent pack for OpenCode - 10 skills, 4 subagents, production-ready FastAPI patterns

Readme

Python Expert Agent for OpenCode

npm version License: MIT

A comprehensive Python agent pack for OpenCode with 10 skills, 4 subagents, and production-ready FastAPI patterns.

Features

  • 1 Primary Agent - python-expert with intelligent skill loading
  • 4 Specialized Subagents - Code generation, review, testing, and exploration
  • 10 On-Demand Skills - FastAPI, SQLAlchemy, pytest, asyncio, and more
  • 3 Context Files - Standards, patterns, and security guidelines
  • 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)
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 will be automatically detected.

  4. Use skills on-demand:

    skill(name="python-fastapi")
    skill(name="python-backend")

Components

Primary Agent

| Agent | Description | |-------|-------------| | python-expert | Main agent with skill loading protocol, keyword detection, and task delegation |

Subagents

| Subagent | Type | Purpose | |----------|------|---------| | python-coder | general | Code generation and feature implementation | | python-reviewer | general | Code quality and security review | | python-tester | general | Test writing with pytest patterns | | python-scout | explore | Context discovery and file finding |

Skills

| Skill | Triggers | Purpose | |-------|----------|---------| | python-fundamentals | *.py, python, dataclass | Core Python 3.13+ patterns | | python-fundamentals-313 | 3.13, jit, free-threading | Python 3.13+ specific features | | python-fastapi | fastapi, pydantic, endpoint | FastAPI production patterns | | python-backend | sqlalchemy, database, orm | SQLAlchemy 2.0 async patterns | | python-testing-general | pytest, test, mock | pytest fundamentals | | python-testing-deep | hypothesis, property-based | Advanced testing techniques | | python-asyncio | async, await, asyncio | Async/await patterns | | python-type-hints | typing, mypy, pyright | Type system and validation | | python-package-management | uv, pip, pyproject | UV package manager | | python-tooling | docker, ci, cd | DevOps and CI/CD |

Usage Examples

Creating a FastAPI Endpoint

skill(name="python-fastapi")

Create a user registration endpoint with:
- Email validation
- Password hashing with bcrypt
- JWT token generation

Writing Tests

skill(name="python-testing-general")

Write tests for the UserService class with:
- Happy path scenarios
- Edge cases
- Error conditions

Database Work

skill(name="python-backend")

Create an async SQLAlchemy model for:
- User entity with relationships
- Alembic migration
- Repository pattern

Project Structure

.opencode/
├── config.json              # Agent selection
├── opencode.json            # Schema reference
├── agent/
│   └── python-expert.md     # Primary agent definition
├── subagents/
│   ├── python-coder.md      # Code generation
│   ├── python-reviewer.md   # Code review
│   ├── python-tester.md     # Test writing
│   └── python-scout.md      # Context discovery
├── skills/                  # 10 Python skills
│   ├── python-fundamentals/
│   ├── python-fastapi/
│   ├── python-backend/
│   └── ...
├── context/
│   ├── navigation.md        # Quick reference
│   └── python/
│       ├── standards.md     # Code quality standards
│       ├── patterns.md      # Common patterns
│       └── security.md      # Security patterns
├── config/
│   └── agent-metadata.json  # Agent registry
└── docs/                    # Documentation

CLI Commands

python-expert-agent init [path]    # Install to project
python-expert-agent init --global  # Install globally
python-expert-agent init --force   # Overwrite existing
python-expert-agent --version      # Show version
python-expert-agent --help         # Show help

Technology Stack

| Layer | Technology | Version | |-------|-----------|---------| | Language | Python | 3.13+ | | Web Framework | FastAPI | 0.115+ | | Data Validation | Pydantic | 2.7+ | | ORM | SQLAlchemy | 2.0 (async) | | Database | PostgreSQL | 16 | | Testing | pytest | latest | | Package Manager | UV | latest | | Linting | ruff, mypy | latest |

Documentation

Full documentation is available in .opencode/docs/:

Requirements

  • OpenCode CLI
  • Node.js 18+ (for CLI installer)
  • Python 3.11+ (for projects using this agent)

Contributing

Contributions are welcome! Please feel free to submit issues and pull requests.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

MIT License - see LICENSE file for details.

Links

Acknowledgments

  • OpenCode - The amazing AI coding agent
  • Agentic - Reference for CLI structure