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.
npx skills add darellchua2/opencode-config-template --skill python-backend-skillgit clone --depth 1 https://github.com/darellchua2/opencode-config-templateWrote 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.
[](https://agentmods.dev/skills/darellchua2/opencode-config-template/python-backend-skill)<a href="https://agentmods.dev/skills/darellchua2/opencode-config-template/python-backend-skill"><img src="https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/python-backend-skill.svg" alt="Measured on agentmods" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 6 findings, up to high
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- high Privilege Escalation · line 142 Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
- high Privilege Escalation · line 187 Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
- medium Rogue Agent · line 464 Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
- medium Data Exfiltration · line 744 Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
- medium Data Exfiltration · line 748 Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
- medium Data Exfiltration · line 752 Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00034 | $0.07697 |
| Opus 5 | $0.00017 | $0.03848 |
| Sonnet 5 | $0.00007 | $0.01539 |
| Haiku 4.5 | $0.00003 | $0.00770 |
Grade A, and why
python-backend-skill 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 4d 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.
How it starts
The opening of the file, as written. The whole thing — 972 lines — stays where its author put it; the contents beside it link to each section on GitHub.
What I do
I help you scaffold and structure Python backend projects following industry best practices:
- Project Scaffolding: Create well-organized project structures for FastAPI, Django, or Flask
- Dependency Management: Configure pyproject.toml, requirements files, and virtual environments
- Configuration Management: Environment-based config with pydantic-settings
- Dependency Injection: Wire up DI containers for testability
- Application Factory: Implement the factory pattern for app initialization
- Project Standards: Linting, formatting, type checking, and CI configuration
- OpenCode LSP Integration: Generate project-level
opencode.jsonenabling pyright LSP for real-time type diagnostics fed to the agent
When to use me
Use this skill when:
- Starting a new Python backend project
- Restructuring an existing Python project for better organization
- Setting up FastAPI, Django, or Flask with production-ready patterns
- Configuring pyproject.toml and dependency management
- Implementing environment-based configuration
- Setting up Python project standards (ruff, mypy, pytest)
- Migrating between Python frameworks
- Debugging SQLAlchemy session errors (detached instances, cross-session mutations)
- Implementing SSE/streaming endpoints with proper backpressure
Related Skills
- python-pytest-creator-skill: Generate tests for Python projects using these structures
- python-ruff-linter-skill: Lint and format Python code following these standards
- nextjs-standard-setup-skill: The Next.js equivalent of this Python scaffolding skill
- database-migration-skill: Alembic/Django migration workflows for Python backends
Step 1: Choose Your Framework
| Framework | Best For | Async | ORM Agnostic | Admin UI |
|---|---|---|---|---|
| FastAPI | APIs, microservices, async | Native | Yes | No |
| Django | Full-stack web apps, CMS | ASGI support | Django ORM | Yes |
| Flask | Simple APIs, microservices | Via extensions | Yes | No |
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.
- 4d ago First seen · 972 lines · 34 tokens per session scan A 9eb43aa93f77
python-backend-skill is a skill published in the GitHub repository darellchua2/opencode-config-template (6 stars, last pushed yesterday), licensed Apache-2.0. It adds 34 tokens to every session and 7,697 once invoked, about $0.0002 per session on Opus 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-03.
Other skills, from other repositories
stripe-projects
Use after E2B sandbox/API access has been provisioned through Stripe Projects and the user needs to use the resulting E2B API key with the E2B CLI, JavaScript SDK, Python SDK, or Code Interpreter SDK.
azure-mgmt-botservice-py
Azure Bot Service Management SDK for Python. Use for creating, managing, and configuring Azure Bot Service resources. Triggers: "azure-mgmt-botservice", "AzureBotService", "bot management", "conversational AI", "bot channels".
azure-messaging-webpubsubservice-py
Azure Web PubSub Service SDK for Python. Use for real-time messaging, WebSocket connections, and pub/sub patterns. Triggers: "azure-messaging-webpubsubservice", "WebPubSubServiceClient", "real-time", "WebSocket", "pub/sub".
fastapi-app
Bootstrap a new FastAPI backend with async SQLAlchemy 2.0, asyncpg, Alembic, Pydantic v2, and no deprecated APIs. Use when the user wants to start, scaffold, or set up a new FastAPI service, a Python REST API, an async backend, or asks to "create a new fastapi app" or "new python backend". Handles JWT auth, layered…
backend
Python server code, APIs, async, strict typing.
azure-appconfiguration-py
Centralized configuration management with feature flags and dynamic settings.