python-backend-dev

python-backend-dev is an agent for Claude Code from PacktPublishing/Agentic-Coding-with-Claude-Code. It costs 239 tokens per session (926 once invoked), scanned A, original, MIT.

A Python development specialist for backend services, web APIs, data-processing pipelines, and automated tests. It emphasizes type hints and Google-style documentation in the code.

In plain words
What is it for?
Use it to build REST or GraphQL APIs, microservices, data pipelines, and unit or integration tests with pytest. Python is a programming language; an API is a defined way for software to communicate.
Why use it?
It helps structure common backend work in Python and reduces gaps in input validation, error handling, tests, and code documentation.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

Good fit Use it to build REST or GraphQL APIs, microservices, data pipelines, and unit or integration tests with pytest. Python is a programming language; an API is a defined way for software to communicate.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/packtpublishing/agentic-coding-with-claude-code/python-backend-dev
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/PacktPublishing/Agentic-Coding-with-Claude-Code

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for python-backend-dev

README.md
[![agentmods](https://agentmods.dev/badge/agents/packtpublishing/agentic-coding-with-claude-code/python-backend-dev/github.svg)](https://agentmods.dev/agents/packtpublishing/agentic-coding-with-claude-code/python-backend-dev)
Your own site
<a href="https://agentmods.dev/agents/packtpublishing/agentic-coding-with-claude-code/python-backend-dev"><img src="https://agentmods.dev/badge/agents/packtpublishing/agentic-coding-with-claude-code/python-backend-dev/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for python-backend-dev

Your own site · 80×15
<a href="https://agentmods.dev/agents/packtpublishing/agentic-coding-with-claude-code/python-backend-dev"><img src="https://agentmods.dev/badge/agents/packtpublishing/agentic-coding-with-claude-code/python-backend-dev.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 239 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 926 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00239 $0.00926
Opus 5.5 $0.00096 $0.00370
Sonnet 5.5 $0.00048 $0.00185
Haiku 4.5 $0.00024 $0.00093

Measured 1mo ago against content hash f2aa257fb90b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

python-backend-dev scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Chapter02/hookhub2/.claude/agents/python-backend-dev.md · 53 lines

How it starts

The opening of the file, as written. The whole thing — 53 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a Python Backend Development Specialist, an expert in creating production-ready Python applications with emphasis on backend services, APIs, data processing, and comprehensive testing. Your expertise spans modern Python development practices with a focus on documentation excellence and type safety.

Core Responsibilities

Backend API Development: Design and implement RESTful APIs, GraphQL endpoints, and microservices using frameworks like FastAPI, Django REST, or Flask. Focus on proper HTTP status codes, request/response validation, and API versioning strategies.

Data Processing & Analysis: Build robust data pipelines, ETL processes, and analytical tools. Handle various data formats (JSON, CSV, Parquet, databases) with proper validation, transformation, and error recovery mechanisms.

Testing Excellence: Implement comprehensive testing strategies including unit tests, integration tests, and API testing. Use pytest with fixtures, mocking, and parametrized tests. Include performance testing for data processing workflows.

Documentation Standards: Every function, class, and module must include complete Google-style docstrings with Args, Returns, Raises, and Examples sections. Document complex algorithms and business logic thoroughly.

Technical Standards

Modern Type Hints: Use Python 3.13+ native type hints exclusively. Implement type aliases for complex types, use Union and Optional appropriately, and leverage generic types for reusable components. Always include return type annotations.

Error Handling: Implement specific exception classes with meaningful error messages. Use proper exception hierarchies and include context in error messages. Handle edge cases gracefully with appropriate fallback strategies.

Resource Management: Always use pathlib.Path for file operations, implement context managers for resource cleanup, and use async/await patterns for I/O operations when appropriate.

Code Architecture: Follow SOLID principles, implement dependency injection patterns, use dataclasses or Pydantic models for data structures, and maintain clear separation of concerns.

Read the full file on GitHub · 53 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 53 lines · 0 tokens per session scan A f2aa257fb90b

Subscribe to this mod's changes

python-backend-dev is an agent published in the GitHub repository PacktPublishing/Agentic-Coding-with-Claude-Code (204 stars, last pushed 4mo ago), licensed MIT. It adds 239 tokens to every session and 926 once invoked, about $0.0010 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.

Related

Other agents, from other repositories

Salesforce Apex & Triggers Development

Implement Salesforce business logic using Apex classes and triggers with production-quality code following Salesforce best practices.

github/awesome-copilot · 26 tokens

nestjs-testing-expert

NestJS testing specialist that provides unit tests, integration tests, end-to-end tests, test database setup, mocking strategies, and testing best practices. Use proactively when writing tests for NestJS applications, setting up testing infrastructure, creating test fixtures, mocking dependencies, or implementing…

giuseppe-trisciuoglio/developer-kit · 65 tokens

nestjs-unit-testing-expert

Expert in unit testing with NestJS, Jest, and testing utilities that provides comprehensive test strategies, test architecture, and testing best practices for TypeScript applications. Use PROACTIVELY for writing unit tests, improving test coverage, or reviewing testing strategies in NestJS applications.

giuseppe-trisciuoglio/developer-kit · 60 tokens

implement-agent

Orchestrates full feature implementation across models, controllers, views, and tests following 37signals conventions. WHEN: Implementing a full feature end-to-end, coordinating multi-layer changes, building new CRUD resources. WHEN NOT: Reviewing existing code (use review-agent), refactoring legacy patterns (use…

ThibautBaissac/rails_ai_agents · 74 tokens

test-fixtures-preparer

Ensures /conftest.py defines messaging handler fixtures and the makeeventenvelope helper for message-handler tests. Invoke with: @test-fixtures-preparer.

voro6yov/spec-driven-development · 58 tokens

nestjs-tester

Testing expert for comprehensive NestJS testing with Jest, covering unit, integration, and E2E tests.

smicolon/ai-kit · 24 tokens