snippy
Copilot instructions114 starsChanged 19 months agoMITView on GitHub
The file
Show its rules and text
We split this copilot-instructions.md into the rules it gives an agent
13 rules. About 0 are common, 4 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 2
Always target Azure Functions Python v2 (azure-functions >= 1.23, blueprint model).
- Very specific: line 3
Create the global app = func.FunctionApp() once and call app.register_blueprint(bp).
- Very specific: line 4
Durable orchestrators: must be def (sync) and use yield + context.task_all(...).
- Very specific: line 5
Activity functions: should be async def and return JSON-serialisable data.
- Distinctive: line 6
Use type hints throughout and a one-line Google-style docstring summary.
- Very specific: line 7
Use logging (level INFO) instead of print.
- Very specific: line 9
Default to Python 3.11 features (e.g., match statements are allowed).
- Very specific: line 10
When calling Azure SDKs, prefer their async variants (BlobServiceClient.from_connection_string, etc.).
- Distinctive: line 18
Keep test payloads small; embed them inline rather than external files.
- Very specific: line 21
Verify no synchronous APIs are accidentally awaited.
- Distinctive: line 22
Ensure every orchestrator is registered in a blueprint and yields on tasks.
- Distinctive: line 23
Check for missing logging, un-handled exceptions, or secret leakage.
- Very specific: line 28
Follow Conventional Commits (feat:, fix:, test:, chore: …).
≈ “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
👉 Code-generation instructions
- Always target Azure Functions Python v2 (
azure-functions >= 1.23, blueprint model). - Create the global
app = func.FunctionApp()once and callapp.register_blueprint(bp). - Durable orchestrators must be
def(sync) and useyield+context.task_all(...). - Activity functions should be
async defand return JSON-serialisable data. - Use type hints throughout and a one-line Google-style docstring summary.
- Use
logging(level INFO) instead ofprint. - Access secrets via
os.environ[...]; never commit literals. - Default to Python 3.11 features (e.g.,
matchstatements are allowed). - When calling Azure SDKs, prefer their async variants (
BlobServiceClient.from_connection_string, etc.). - Return HTTP results with
azure.functions.HttpResponseand do notawaitsync methods (req.get_json(),client.create_check_status_response()).
👉 Test-generation instructions
- Use pytest + pytest-asyncio.
- Mark async tests with
@pytest.mark.asyncio. - Patch Azure SDK calls with
unittest.mock.AsyncMock / MagicMock. - Aim for 100 % branch coverage of orchestrator fan-out/fan-in paths.
- Keep test payloads small; embed them inline rather than external files.
👉 Code-review instructions
- Verify no synchronous APIs are accidentally
awaited. - Ensure every orchestrator is registered in a blueprint and yields on tasks.
- Check for missing logging, un-handled exceptions, or secret leakage.
- Confirm environment-variable names match those used in
local.settings.json. - Flag any direct network calls inside orchestrators (should be in activities).
👉 Commit-message generation instructions
- Follow Conventional Commits (
feat:,fix:,test:,chore:…). - First line ≤ 72 chars, present-tense imperative.
- Include a short body describing why and reference issues
(fixes #123).
👉 Pull-request title/description instructions
- Title: Imperative, ≤ 60 chars (e.g., “feat: add Cosmos vector search”).
- Description:
- What & why (one paragraph).
- “### Changes” bullet list.
- “### Testing” explaining manual/automated tests.
- “### Notes” for env vars, breaking changes, or deployment steps.
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.

