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 agentmods add skills/ccoalm/ccl-skills/python-service-architecturenpx skills add ccoalm/ccl-skills --skill python-service-architecturegit clone --depth 1 https://github.com/ccoalm/ccl-skillsWrote 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/ccoalm/ccl-skills/python-service-architecture)<a href="https://agentmods.dev/skills/ccoalm/ccl-skills/python-service-architecture"><img src="https://agentmods.dev/badge/skills/ccoalm/ccl-skills/python-service-architecture.svg" alt="Measured on agentmods" height="20"></a>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.00152 | $0.06084 |
| Opus 5 | $0.00076 | $0.03042 |
| Sonnet 5 | $0.00030 | $0.01217 |
| Haiku 4.5 | $0.00015 | $0.00608 |
Grade A, and why
python-service-architecture 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 5d 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 — 162 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Python Service Architecture
Use this for new product/server architecture work in Python. For new backend products, decide the service boundary from ownership, data source of truth, runtime isolation, scaling, release cadence, and rollback needs before choosing microservice, modular monolith, worker, script, or package shape. This skill distills proven Python backend, AI-service hosting, worker, package, and data-access patterns, but must not assume any existing repository, product domain, package path, service identifier, database, or legacy service layout.
Skill Routing
- Use this skill for Python architecture decisions, microservice decomposition, service decomposition, API contract shape, storage ownership, async execution, worker/job design, observability, reliability, release readiness, and platform boundaries.
- Use
python-service-devwhen the user asks to implement, modify, scaffold, generate Python code, or apply a diagnosis/test strategy in Python code. A localized refactor (某文件/某类) also belongs topython-service-dev; only service-wide layering/boundary redesign stays here, and a multi-stage refactor delivery must re-enterproduct-rd-workflow. For root-cause debugging usedefect-diagnosisfirst; for test-layer choice usetesting-strategyfirst. - Use
product-rd-workflowfirst when the request spans product shaping, architecture, implementation, review, release, and learning loops. - Use
defect-diagnosisfirst when the task is to reproduce, isolate, instrument, fix, verify, or root-cause a backend defect, regression, repeated failure, review finding, or failing test. - Use
testing-strategywhen the main question is which unit, integration, contract, or E2E layer should prove behavior; then return here for Python architecture impact. - Use
llm-inference-integrationfor inference, RAG, prompt, model-routing, evaluation, replay, token-cost, and batch-inference design. This skill only owns the Python service boundary that hosts or calls those capabilities. - Use
go-microservice-architecturefor Go services. Do not load Go skill rules for Python work unless the task is explicitly cross-language contract design. - Use
platform-observabilityfor logs/metrics/traces/log-id propagation/dashboards/alerts/SLI-SLO design. This skill owns only the service-side observability surface (what fields the handler emits, what middleware the framework attaches, what health endpoints exist); the cross-cutting evidence stack belongs there. - Use
platform-service-connectivityfor service mesh, service discovery, mTLS, multi-environment lane routing, retry/timeout/circuit-breaker policy, and framework client/server middleware for cross-service hops. This skill defines what the service exposes (health endpoints, ctx propagation, error-code conformance); routing/policy lives there. - Use
platform-release-engineeringfor environment/lane matrix, canary/blue-green, promotion gates, rollback playbook, secret distribution, dynamic-config (config-center) vs static-config split, image build pipeline. This skill owns the service-side contracts (what the service consumes from the secret store and config center); release flow lives there. - Use codebase-specific skills only when the task is explicitly about an existing repository.
- When changing an architecture rule that implementation must obey, name the downstream execution owner before landing:
python-service-devfor code mechanics,testing-strategyfor proof layer, platform skills for runtime contracts, andproduct-rd-workflowfor cross-stage gates. If the rule also applies outside Python, route throughskill-extraction-workflowand mirror or explicitly skip sibling architecture/dev skills. - For money, billing, quota, permission, tenant/user data isolation, privacy, high-impact AI, repeated writes, async finality, or incident-explanation risk, start from
product-rd-workflowand its high-risk resilience gate before choosing Python service boundaries or fallback behavior.
What ships with it
23 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- agents/openai.yaml 338 B
- references/ai-service-integration-boundaries.md 8.3 KB
- references/api-contract-and-schema.md 10 KB
- references/api-security-boundaries.md 2.9 KB
- references/architecture-playbook.md 13 KB
- references/async-execution-model.md 3.0 KB
- references/audit-history-architecture.md 2.1 KB
- references/background-jobs-and-scheduling.md 876 B
- references/batch-and-pipeline-architecture.md 729 B
- references/config-secrets-runtime.md 1.9 KB
- references/data-modeling-and-migrations.md 7.6 KB
- references/data-platform-architecture.md 28 KB
- references/event-driven-architecture.md 49 KB
- references/multi-tenant-isolation.md 67 KB
- references/notification-architecture.md 1.8 KB
- references/observability-and-ops.md 2.3 KB
- references/packaging-runtime-readiness.md 7.3 KB
- references/redis-cache-coordination.md 4.0 KB
- references/reliability-and-error-contract.md 1.3 KB
- references/replay-comparison-architecture.md 1.9 KB
- references/source-evidence-map.md 5.0 KB
- references/web-framework-boundaries.md 3.3 KB
- references/workflow-state-architecture.md 2.8 KB
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.
- 5d ago First seen · 162 lines · 152 tokens per session scan A c4bf4b3a18c7
python-service-architecture is a skill published in the GitHub repository ccoalm/ccl-skills (6 stars, last pushed 2d ago), licensed Apache-2.0. It adds 152 tokens to every session and 6,084 once invoked, about $0.0008 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-08-31.
Other skills, from other repositories
matlab
Build, review, migrate, and safely plan MATLAB or GNU Octave numerical workflows, including arrays, tabular/time data, tests, projects, graphics, MAT files, and explicit Python interoperability.
pennylane
Hardware-agnostic quantum ML framework with automatic differentiation. Use when training quantum circuits via gradients, building hybrid quantum-classical models, or needing device portability across IBM/Google/Rigetti/IonQ. Best for variational algorithms (VQE, QAOA), quantum neural networks, and integration with…
dd-code-generation
Use pup CLI for immediate Datadog operations or generate code for integration into applications.
rocm-kernels
Provides guidance for writing and benchmarking optimized Triton kernels for AMD GPUs (MI355X, R9700) on ROCm, targeting HuggingFace diffusers (LTX-Video, SD3, FLUX) and transformers. Core kernels: RMSNorm, RoPE 3D, GEGLU, AdaLN. Includes XCD swizzle, autotune, diffusers integration patterns, and LTX-Video pipeline…
holoscan-install-wheel
Install Holoscan SDK Python wheel via pip into a venv. Use for Python installs; not for native C++/apt or Conda installs.
typing-exclusion-worker
Python typing exclusion worker: remove assigned mypy exclusion modules in small scoped batches, fix typing issues, run validation, and produce a structured completion summary. Use when running parallel typing-debt workers or when asked to remove modules from pyproject mypy exclusion overrides.