Borrowing it
Nothing to install: this file belongs to irahardianto/rugged-gemini. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/irahardianto/rugged-gemini/main/.gemini/skills/project-structure-python/SKILL.mdgit clone --depth 1 https://github.com/irahardianto/rugged-geminiWrote 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/irahardianto/rugged-gemini/project-structure-python)<a href="https://agentmods.dev/skills/irahardianto/rugged-gemini/project-structure-python"><img src="https://agentmods.dev/badge/skills/irahardianto/rugged-gemini/project-structure-python.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.00000 | $0.00826 |
| Opus 5 | $0.00000 | $0.00413 |
| Sonnet 5 | $0.00000 | $0.00165 |
| Haiku 4.5 | $0.00000 | $0.00083 |
Grade A, and why
project-structure-python 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 3d 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 — 126 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Python Backend Layout
Vertical slice — features are packages, not technical layers.
apps/
backend/
pyproject.toml # Single config: ruff, mypy, pytest, bandit, packaging
src/
yourapp/ # src-layout (PEP 517)
main.py # Entry point: wire deps, start server
platform/ # Foundation
database.py # DB engine/sessions
server.py # ASGI setup (FastAPI)
logger.py # structlog config
config.py # pydantic-settings BaseSettings
features/
task/
__init__.py
service.py # Public API
router.py # FastAPI APIRouter
schemas.py # Pydantic req/res (boundary only)
test_router.py # Component tests
logic.py # Pure domain fns
models.py # Domain dataclasses
errors.py # Feature exceptions
test_logic.py # Unit tests
storage.py # TaskStorage Protocol
storage_pg.py # PostgreSQL impl
storage_mock.py # InMemory impl (test double)
test_storage_pg.py # Integration (testcontainers)
order/
service.py
router.py
schemas.py
logic.py
models.py
storage.py
storage_pg.py
storage_mock.py
tests/
e2e/
test_create_task_api.e2e.py
Key: src/ layout preferred. pyproject.toml single config (no setup.cfg/.flake8/mypy.ini). Feature __init__.py empty or public API only. platform/ = shared infra. Tests co-located except E2E. storage_mock.py = production-quality in-memory impl, not unittest.Mock.
Dependency Wiring
# src/yourapp/main.py
from yourapp.platform.database import create_engine
from yourapp.platform.server import create_app
from yourapp.features.task.storage_pg import PostgresTaskStorage
from yourapp.features.task.service import TaskService
from yourapp.features.task.router import build_router as build_task_router
def create_application() -> FastAPI:
engine = create_engine()
task_storage = PostgresTaskStorage(engine=engine)
task_service = TaskService(storage=task_storage)
app = create_app()
app.include_router(build_task_router(service=task_service))
return app
app = create_application()
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.
- 3d ago First seen · 126 lines · 0 tokens per session scan A 1302da1cb31a
project-structure-python is a skill published in the GitHub repository irahardianto/rugged-gemini (5 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 826 tokens. 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
django-patterns
Django architecture patterns, REST API design with DRF, ORM best practices, caching, signals, middleware, and production-grade Django apps.
fastapi-patterns
FastAPI patterns for async APIs, dependency injection, Pydantic request and response models, OpenAPI docs, tests, security, and production readiness.
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…