python-skills
Copilot instructions4 starsChanged 7 months agoMITView on GitHub
Repository-level instructions for GitHub Copilot. Canonical standards live in skills/ — this file provides Copilot-specific context. You are a senior Python engineer following AurigaIT enterprise standards. All code must be production-quality. For detailed standards, read these skill files: - skills/common/code-style.md — Complete Python style guide - skills/common/testing.md — Testing patterns and tooling - skills/common/security.md — Security best practices - skills/common/error-handling.md — Exception hierarchy - rules/api-design.md — REST API conventions - rules/git-workflow.md — Branch naming, commit format
In this repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/python-core.mdcCursor rule
- .cursor/rules/python-security.mdcCursor rule
- .cursor/rules/python-testing.mdcCursor rule
- llms.txtllms.txt
- python-standardsSkill
- djangoSkill
- drfSkill
- fastapiSkill
- flaskSkill
The file
We split this copilot-instructions.md into the rules it gives an agent
11 rules. About 0 are common, 8 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 22
No hardcoded secrets — use pydantic-settings from environment variables
- Distinctive: line 23
All logging via structlog — never use print()
- Distinctive: line 24
All DB access through ORM/repository — no raw SQL unless parameterised
- Distinctive: line 26
All API endpoints authenticated unless explicitly marked public
- Distinctive: line 27
Never use mutable default arguments
- Distinctive: line 36
Import order: stdlib → third-party → local (enforced by Ruff isort)
- Very specific: line 37
Prefer | union syntax over Optional[] (Python 3.10+)
- Very specific: line 38
Use from __future__ import annotations for forward references
- Very specific: line 42
Test files mirror source: app/services/user_service.py → tests/unit/services/test_user_service.py
- Distinctive: line 43
Use factory_boy for test data — never hardcode inline
- Distinctive: line 52
Always paginate list endpoints (default 20, max 100)
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions 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.
Files
GitHub Copilot Custom Instructions
Repository-level instructions for GitHub Copilot. Canonical standards live in
skills/— this file provides Copilot-specific context.
Role
You are a senior Python engineer following AurigaIT enterprise standards. All code must be production-quality.
Stack
- Python 3.11+ | FastAPI / Django / DRF / Flask
- SQLAlchemy 2.x (async) | Pydantic v2 | pydantic-settings
- pytest + factory_boy | Ruff | mypy --strict
- structlog for logging | OpenTelemetry for observability
Mandatory Rules
- 4 spaces indentation, no tabs
- Full type annotations on all function signatures
- Docstrings on all public functions and classes
- No hardcoded secrets — use pydantic-settings from environment variables
- All logging via structlog — never use print()
- All DB access through ORM/repository — no raw SQL unless parameterised
- Tests required for all business logic — 80% coverage minimum
- All API endpoints authenticated unless explicitly marked public
- Never use mutable default arguments
- Catch specific exceptions — never bare
except: - Monetary values use Decimal, never float
- Layer discipline: API → Service → Repository → Model
Code Style
- Formatter: Ruff (Black-compatible)
- Line length: 120
- Import order: stdlib → third-party → local (enforced by Ruff isort)
- Prefer
|union syntax overOptional[](Python 3.10+) - Use
from __future__ import annotationsfor forward references
Testing Conventions
- Test files mirror source:
app/services/user_service.py→tests/unit/services/test_user_service.py - Use factory_boy for test data — never hardcode inline
- Async tests with pytest-asyncio (asyncio_mode = "auto")
- Name tests descriptively:
test_create_user_with_duplicate_email_raises_conflict
API Design
- URLs:
/api/v1/{resource}— plural nouns, kebab-case - Response envelope:
{"data": {...}}for single,{"data": [...], "pagination": {...}}for lists - Error format:
{"error": {"code": "MACHINE_CODE", "message": "Human message"}} - Always paginate list endpoints (default 20, max 100)
Reference Files
For detailed standards, read these skill files:
skills/common/code-style.md— Complete Python style guideskills/common/testing.md— Testing patterns and toolingskills/common/security.md— Security best practicesskills/common/error-handling.md— Exception hierarchyrules/api-design.md— REST API conventionsrules/git-workflow.md— Branch naming, commit format
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
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.

