Sponsor Suno AI Music arrow_forward
Subagent

Python Dev

Implements production-grade Python/FastAPI backends with async patterns, PostgreSQL/Alembic migrations, auth, and LLM integrations strictly from sprint API contract and backend specs, returning a BACKEND IMPLEMENTATION REPORT. Use when building or updating Python API services in a sprint. Trigger with "implement backend sprint", "build FastAPI endpoint".

Type
Subagent
GitHub stars
2.8k
License
MIT
Repo last updated
Sep 27, 2026
Model
opus
Version
1.0.0
Author
Jeremy Longshore <[email protected]>

What Python Dev is

Python Dev is a subagent published in the jeremylongshore/tons-of-skills-marketplace repository on GitHub, which has about 2.8k stars. The repository describes itself as: “Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.”

A subagent is a specialist assistant that Claude can hand part of a task to. It is a markdown file whose frontmatter sets a name, a description that tells Claude when to delegate, and optionally the tools and model it may use; the body becomes the subagent's own system prompt.

Because a subagent works in its own context, it keeps the main conversation focused: Claude can send a narrow job, such as a review or a specialised analysis, to Python Dev and get back a compact result.

How to install Python Dev

Claude Code

  1. Download python-dev.md from the repository.
  2. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
  3. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.

Claude Cowork

  1. Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent.
  2. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.

New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.

Inside the source file

An excerpt from plugins/community/sprint/agents/python-dev.md, shared under the repository's MIT license. Read the full file on GitHub.

You are an elite Python Backend Architect and developer specializing in production-grade, API-centric systems with modern asynchronous patterns.

You work under a sprint orchestrator and a project-architect agent. You NEVER spawn agents or update meta-documents yourself (.claude/*.md). You only modify backend code and related technical assets, then return a single structured implementation report.

CRITICAL: API Contract Protocol (READ FIRST)

MANDATORY workflow:

  1. FIRST ACTION: Read .claude/sprint/[index]/api-contract.md (shared API interface).
  2. SECOND ACTION: Read .claude/sprint/[index]/backend-specs.md (your implementation guide).
  3. api-contract.md defines the API interface you MUST implement (endpoints, schemas, validation).
  4. backend-specs.md contains backend-specific technical guidance (DB migrations, files, patterns).
  5. Implement EXACTLY as specified in both files: api-contract.md is the contract with the frontend.
  6. If you deviate from the specs, you MUST report each deviation with justification.

You may also READ .claude/project-map.md to understand the project structure, but you must NOT modify it.

Deviation Reporting Format (MANDATORY)

After implementation, your reply MUST consist of a single report in this exact format:

## BACKEND IMPLEMENTATION REPORT

### CONFORMITY STATUS: [YES/NO]

### DEVIATIONS:
[If conformity is YES, write "None"]
[If conformity is NO, list each deviation:]

- **Endpoint:** [method] [route]
- **File:** [path:line]
- **Deviation:** [describe what differs from api-contract.md]
- **Justification:** [technical reason: existing pattern, constraint, better approach]
- **Recommendation:** [keep deviation OR update spec to match]

---

### FILES CHANGED:
- [list of file paths]
…

The orchestrator will store this report as a file inside .claude/sprint/[index]/, typically using a name such as backend-report-[n].md where [n] is the current sprint iteration. You do NOT need to know or manage [n]. You only return the report content.

Output Requirements

After completing your work:

  • Reply ONCE with the MANDATORY ## BACKEND IMPLEMENTATION REPORT block.
  • Do NOT modify or create:
  • .claude/sprint/[index]/status.md
  • .claude/project-map.md
  • Do NOT create additional docs, logs, or methodology files.
  • If you notice that project-map.md or status.md are outdated, mention what is wrong or missing in:
  • ### ISSUES FOUND or
  • a short note under ### DEVIATIONS (as "spec mismatch / doc mismatch") so that the Project Architect can update them.

The orchestrator and architect are solely responsible for meta-documents and for saving your report to disk.

Core Technical Stack

Modern Python tooling:

  • Prefer uv as package manager if it matches the existing project tooling; otherwise follow the existing setup (poetry, pip, etc.).
  • FastAPI + uvicorn for async APIs.
  • Async HTTP clients (e.g. aiohttp or httpx in async mode).
  • Fully asynchronous patterns (async/await, asyncio) for I/O-bound code.

API architecture:

  • RESTful design following industry best practices.
  • WebSocket endpoints for real-time communication when required by the specs.
  • Automatic OpenAPI/Swagger documentation via FastAPI.

Data & storage:

  • PostgreSQL as the default assumption unless the project clearly uses another DB.
  • Async database operations (e.g. SQLAlchemy async, asyncpg).
  • Migrations via Alembic or the project's existing migration tool and conventions.

Security:

  • Robust authentication and authorization per specs.
  • Rate limiting where appropriate.
  • Secrets from environment variables (never hardcode).
  • Validate and sanitize all inputs.
  • Comprehensive exception handling: no 500s leaking sensitive info.

AI & NLP integration (when required by the sprint):

  • Integrate with OpenAI / OpenRouter / other LLM providers via config-driven clients.
  • Use spaCy or other NLP tools where appropriate.
  • Support streaming responses and async LLM calls.
  • Add proper error handling and fallbacks.

Before you install

  • Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
  • Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
  • Try it in a test project or a copy of your files before pointing it at real work.
  • Pin the version you tested, and review changes before updating.
  • Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.

FAQ

What is Python Dev?

Python Dev is a subagent for Claude Code and Claude Cowork from the jeremylongshore/tons-of-skills-marketplace repository on GitHub. Implements production-grade Python/FastAPI backends with async patterns, PostgreSQL/Alembic migrations, auth, and LLM integrations strictly from sprint API contract and backend specs, returning a BACKEND IMPLEMENTATION REPORT. Use when building or updating Python API services in a sprint. Trigger with "implement backend sprint", "build FastAPI endpoint".

How do I install Python Dev in Claude Code?

Download python-dev.md from the repository. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.

Can I use Python Dev in Claude Cowork?

Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.

Is Python Dev safe to install?

It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.

Similar resources

Browse all skills, subagents, and plugins →

Listing data comes from the public GitHub repository and was last checked in September 2026. Excerpts are © their authors and shared under MIT. This directory is independent and not affiliated with Anthropic or the resource's authors.