apex-accelerator python.instructions.md

Coding rules for Python programs used to create architecture diagrams, run tooling, and provide MCP servers.

In plain words
What is it for?
It guides Python 3.14 code, package management with uv, diagram scripts, Ruff formatting and linting, imports, type hints, and dependencies.
Why use it?
It gives Python files a consistent style and helps checks catch formatting, import, typing, and code-quality problems.

Instructions file for GitHub Copilot

Install

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.

agentmods
npx agentmods add instructions/jonathan-vella/apex-accelerator/python
Clone the repo
git clone --depth 1 https://github.com/jonathan-vella/apex-accelerator

Made for: GitHub Copilot.

Per session 559 This file is loaded in full into every session.
When invoked 559 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00559 $0.00559
Opus 5 $0.00280 $0.00280
Sonnet 5 $0.00112 $0.00112
Haiku 4.5 $0.00056 $0.00056

Measured 2d ago against content hash 33b12b828b3e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

apex-accelerator python.instructions.md 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 2d 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.

.github/instructions/python.instructions.md · 69 lines

How it starts

The opening of the file, as written. The whole thing — 69 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Python Guidelines

Instructions for writing clean, consistent Python in this repository. Target Python 3.14 (latest stable) with Ruff for linting and formatting.

Project Context

Python is used for two purposes in this repo:

  1. Architecture diagramsdiagrams library scripts in agent-output/ and .github/skills/
  2. Utility scripts — validation tooling and diagram verification

Style & Formatting

  • Formatter: Ruff (ruff format) — double quotes, space indentation
  • Linter: Ruff with rules: E, W, F, I, B, C4, UP, SIM
  • Line length: 120 characters (matches project-wide setting)
  • Imports: sorted by isort rules via Ruff — stdlib, third-party, first-party
  • Quotes: double quotes for strings
  • Type hints: use for function signatures; pyproject.toml sets basic type checking

Package Management

  • Use uv (Astral) as the package manager — installed in devcontainer
  • Root dependencies in requirements.txt: diagrams, matplotlib, pillow, pytest, ruff

Diagram Scripts

Follow the existing pattern for architecture diagram generation:

"""Brief description of what the diagram shows."""

from diagrams import Cluster, Diagram
from diagrams.azure.compute import AppServices
from diagrams.azure.network import FrontDoors

with Diagram("Diagram Title", show=False, filename="output-name", direction="TB"):
    with Cluster("Resource Group"):
        # Resources...
        pass
  • Always set show=False to prevent auto-opening
  • Use direction="TB" (top-to-bottom) for consistency
  • Group resources in Cluster blocks matching Azure resource groups
  • Set explicit filename parameter to control output location

Conventions

  • Use snake_case for functions, variables, and modules
  • Use PascalCase for classes
  • Use UPPER_SNAKE_CASE for constants
  • Prefer f-strings over .format() or % formatting
  • Use pathlib Path for new code — existing scripts may use os.path
  • Use context managers (with) for file and network operations

Read the full file on GitHub · 69 lines

Changes

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.

  1. 2d ago First seen · 69 lines · 559 tokens per session scan A 33b12b828b3e

Subscribe to this mod's changes

apex-accelerator python.instructions.md is an instructions file published in the GitHub repository jonathan-vella/apex-accelerator (50 stars, last pushed 5d ago), licensed MIT. It adds 559 tokens to every session, about $0.0028 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-30.

Related

Other instructions, from other repositories

squad copilot-instructions.md

Instructions for bradygaster/squad, covering copilot coding agent — squad instructions, ⚠️ identity lock — read this first, 🚦 route before you act — generic copilot sessions, adversarial input handling and team context.

bradygaster/squad · 1,349 tokens

vscode-unify-chat-provider AGENTS.md

Instructions for smallmain/vscode-unify-chat-provider, a project described as: Integrate multiple LLM API providers into VS Code's GitHub Copilot Chat using the Language Model API. One-click use of your Claude Code, Gemini CLI, Antigravity, Github Copilot, OpenAI Codex (ChatGPT Plus/Pro), xAI Grok (SuperGrok / X…

smallmain/vscode-unify-chat-provider · 271 tokens

PlatformPlatform AGENTS.md

Instructions for platformplatform/PlatformPlatform, covering behavioral guidelines, build, test, and format, product management tool, auto memory and source of truth.

platformplatform/PlatformPlatform · 805 tokens

PromptKit copilot-instructions.md

Instructions for microsoft/PromptKit, covering promptkit — copilot instructions, how to use this repository, what this repository is, architecture and component conventions.

microsoft/PromptKit · 1,144 tokens

agent-rules testing.instructions.md

Instructions for lirantal/agent-rules, covering testing guidelines for node.js applications, general testing principles, guiding principles, descriptive test naming (three-part structure) and structure tests by the aaa pattern.

lirantal/agent-rules · 6,713 tokens

github-azure-agentic-journeys AGENTS.md

Instructions for DanWahlin/github-azure-agentic-journeys, covering agents and skills, journeys, prerequisites, agent & skill system and available agents.

DanWahlin/github-azure-agentic-journeys · 2,944 tokens