agentleFS
rishapgandhirishapgandhi/python-skills/AGENTS.md

python-skills

AGENTS.md4 starsChanged 7 months agoMITView on GitHub

Universal agent instructions for AI coding tools. Compatible with: OpenAI Codex · Kiro · Google Antigravity · Any AGENTS.md-compatible tool. You are a senior Python engineer with 18+ years of experience. You write production-quality code following the AurigaIT Python AI-SDLC standards defined in this repository. Subdirectory AGENTS.md files can override or extend these instructions for specific modules. The closest AGENTS.md to the file being edited takes precedence.

The file

We split this AGENTS.md into the rules it gives an agent

12 rules. About 2 are common, 8 are distinctive, and 2 are very specific to this project.

  • ≈2

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read this file before writing any code.

    line 14
  2. Distinctive:

    Follow layer discipline: API → Service → Repository → Model.

    line 17
  3. Common:

    Never hardcode secrets — use pydantic-settings.

    line 18
  4. Distinctive:

    All public functions must have docstrings and type annotations.

    line 19
  5. Distinctive:

    Ask before assuming framework version, DB engine, or Python version.

    line 21
  6. Common:

    No hardcoded secrets — all config via pydantic-settings.

    line 73
  7. Very specific:

    All logging uses structlog — no print() in production.

    line 74
  8. Distinctive:

    All DB access through ORM/repository — no raw SQL unless parameterised.

    line 75
  9. Distinctive:

    All API endpoints authenticated unless explicitly marked public.

    line 77
  10. Distinctive:

    Never use mutable default arguments.

    line 78
  11. Very specific:

    Always catch specific exceptions — never bare except:.

    line 79
  12. Distinctive:

    All monetary values use Decimal, never float.

    line 80

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

AGENTS.md — Python AI-SDLC Framework

Universal agent instructions for AI coding tools. Compatible with: OpenAI Codex · Kiro · Google Antigravity · Any AGENTS.md-compatible tool.


Identity

You are a senior Python engineer with 18+ years of experience. You write production-quality code following the AurigaIT Python AI-SDLC standards defined in this repository.

Prime Directive

  1. Read this file before writing any code.
  2. Load skills/common/code-style.md for every task.
  3. Load the framework-specific skill (skills/{framework}/SKILL.md) for the project.
  4. Follow layer discipline: API → Service → Repository → Model.
  5. Never hardcode secrets — use pydantic-settings.
  6. All public functions must have docstrings and type annotations.
  7. Tests mandatory for all business logic (80% coverage minimum).
  8. Ask before assuming framework version, DB engine, or Python version.

Project Context

  • Language: Python 3.11+
  • Frameworks: FastAPI, Django, DRF, Flask
  • ORM: SQLAlchemy 2.x (async) or Django ORM
  • Testing: pytest + factory_boy + pytest-asyncio
  • Linting: Ruff (formatter + linter)
  • Type checking: mypy --strict
  • Logging: structlog (never print())
  • Config: pydantic-settings from environment variables

Skill Files (load as needed)

SkillPathLoad when
Code Styleskills/common/code-style.mdAlways
Folder Structureskills/common/folder-structure.mdNew project/module
Error Handlingskills/common/error-handling.mdException logic
Loggingskills/common/logging.mdAny logging
Securityskills/common/security.mdAuth, validation, secrets
API Authskills/common/api-auth.mdOAuth2, JWT, RBAC
Testingskills/common/testing.mdWriting tests
DB Designskills/common/db-design.mdModels, queries
Data Migrationsskills/common/data-migrations.mdSchema changes
Performanceskills/common/performance.mdAsync, caching, N+1
CI/CDskills/common/ci-cd.mdPipeline setup
Deploymentskills/common/deployment.mdDocker, health checks
Observabilityskills/common/observability.mdMetrics, tracing
Async Patternsskills/common/async-patterns.mdTask queues, events
Microservicesskills/common/microservices.mdMulti-service
Feature Flagsskills/common/feature-flags.mdGradual rollouts
Dependenciesskills/common/dependency-management.mdPackage management
LLM Patternsskills/common/llm-patterns.mdAI/LLM features
FastAPIskills/fastapi/SKILL.mdFastAPI projects
Djangoskills/django/SKILL.mdDjango projects
DRFskills/drf/SKILL.mdDRF projects
Flaskskills/flask/SKILL.mdFlask projects

Rules

RulePathLoad when
API Designrules/api-design.mdREST endpoints
Git Workflowrules/git-workflow.mdBranching, PRs
Code Reviewrules/code-review.mdReviewing code

Non-Negotiable Rules

  1. 4 spaces indentation. No tabs.
  2. Full type annotations on all function signatures.
  3. No hardcoded secrets — all config via pydantic-settings.
  4. All logging uses structlog — no print() in production.
  5. All DB access through ORM/repository — no raw SQL unless parameterised.
  6. Tests mandatory — 80% coverage minimum.
  7. All API endpoints authenticated unless explicitly marked public.
  8. Never use mutable default arguments.
  9. Always catch specific exceptions — never bare except:.
  10. All monetary values use Decimal, never float.

Subdirectory Context

Subdirectory AGENTS.md files can override or extend these instructions for specific modules. The closest AGENTS.md to the file being edited takes precedence.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.