spec-to-agents
Copilot instructions115 starsChanged 13 months agoMITView on GitHub
This document provides context-aware guidance for GitHub Copilot when working in this codebase. This is a Python project using Microsoft Agent Framework to build a multi-agent event planning workflow with the following agents: - Event Coordinator (orchestrates overall planning) - Venue Specialist (researches and recommends venues) - Budget Analyst (manages costs and financial constraints) - Catering Coordinator (handles food and beverage planning) - Logistics Manager (coordinates schedules and resources) Important: Each agent/workflow must have an __init__.py that exports the required…
- Reads credentials
The file
Show its rules and text
We split this copilot-instructions.md into the rules it gives an agent
21 rules. About 0 are common, 14 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈14
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 38
Use uv for all Python operations:
- Very specific: line 51
Use modern built-in type hints: dict[str, int], list[str], tuple[int, ...]
- Very specific: line 52
Use | for unions: str | None instead of Optional[str]
- Distinctive: line 53
Prefer composition over large monolithic modules
- Distinctive: line 54
Keep modules focused on single responsibility
- Distinctive: line 59
Use numpy-style docstrings for functions, classes, and modules
- Distinctive: line 60
Document WHY and HOW, not WHAT (code shows what it does)
- Very specific: line 85
Write tests in tests/ directory using pytest
- Distinctive: line 86
Use pytest-mock for mocking dependencies
- Distinctive: line 87
Never create throwaway test scripts - use proper test suite
- Distinctive: line 88
Test critical paths and edge cases (empty inputs, invalid types, large datasets)
- Distinctive: line 93
Write highly modular code that separates concerns:
- Distinctive: line 99
Keep modules focused with clear boundaries and minimal public APIs.
- Distinctive: line 104
Use Managed Identity for Azure resources (no API key authentication)
- Very specific: line 109
Create specification files in specs/ directory
- Very specific: line 113
Update specs/README.md with links to new specs
- Distinctive: line 118
When working with agents:
- Very specific: line 121
Use Agent Framework DevUI (uv run app) for testing workflows end-to-end
- Distinctive: line 126
Ask for clarification on unclear design decisions (human-in-the-loop)
- Distinctive: line 128
Use existing libraries - avoid reinventing the wheel
- Distinctive: line 129
Prefer incremental changes with clear progress tracking
≈ “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 Instructions
This document provides context-aware guidance for GitHub Copilot when working in this codebase.
Project Overview
This is a Python project using Microsoft Agent Framework to build a multi-agent event planning workflow with the following agents:
- Event Coordinator (orchestrates overall planning)
- Venue Specialist (researches and recommends venues)
- Budget Analyst (manages costs and financial constraints)
- Catering Coordinator (handles food and beverage planning)
- Logistics Manager (coordinates schedules and resources)
Technology Stack
- Python 3.11+ with modern type hints and features
- Pydantic for data validation and settings
- Microsoft Agent Framework for building and orchestrating agents
- uv for dependency management (NOT pip/poetry/conda)
- pytest for testing with pytest-mock for mocking
- Microsoft Foundry for infrastructure (Managed Identity, no API keys)
Project Structure
src/spec_to_agents/
├── agents/ # Agent definitions (budget_analyst.py, venue_specialist.py, etc.)
├── prompts/ # System prompts for each agent
├── tools/ # Reusable tool definitions
├── workflow/ # Workflow orchestration logic
└── clients.py # Shared AI Foundry client codeImportant: Each agent/workflow must have an __init__.py that exports the required variable (agent or workflow) to be discovered by DevUI.
Development Commands
Use uv for all Python operations:
uv sync --dev- Install/sync dependenciesuv add <package>- Add a dependencyuv run pytest- Run testsuv run ruff .- Run linting/formattinguv run mypy .- Type checkinguv run app- Start Agent Framework DevUI
Never activate virtual environments manually - always prefix commands with uv run.
Code Style Guidelines
Python Code
- Use modern built-in type hints:
dict[str, int],list[str],tuple[int, ...] - Use
|for unions:str | Noneinstead ofOptional[str] - Prefer composition over large monolithic modules
- Keep modules focused on single responsibility
- Break complex functions into smaller, manageable pieces
Documentation
- Documentation = docstrings + type hints in code (NOT separate markdown files)
- Use numpy-style docstrings for functions, classes, and modules
- Document WHY and HOW, not WHAT (code shows what it does)
- Skip docstrings for trivial/obvious functions
- Focus on edge cases, non-obvious behavior, and design decisions
Example docstring:
def calculate_area(radius: float) -> float:
"""
Calculate the area of a circle given the radius.
Parameters
----------
radius : float
The radius of the circle.
Returns
-------
float
The area of the circle, calculated as π * radius**2.
"""
import math
return math.pi * radius ** 2Testing
- Write tests in
tests/directory using pytest - Use pytest-mock for mocking dependencies
- Never create throwaway test scripts - use proper test suite
- Test critical paths and edge cases (empty inputs, invalid types, large datasets)
- Include comments explaining edge cases and expected behavior
Modularity Principles
Write highly modular code that separates concerns:
- Testability: Each module can be tested in isolation
- Reusability: Modules can be used independently
- Maintainability: Changes are localized to specific modules
- Readability: Clear separation of concerns
Keep modules focused with clear boundaries and minimal public APIs.
Configuration
.envcontains Azure OpenAI config (refer to.env.exampleif missing)- Use Managed Identity for Azure resources (no API key authentication)
ExecPlans
For complex features or significant refactors:
- Create specification files in
specs/directory - Follow
specs/PLANS.mdformat
Thespecs/PLANS.mdformat typically includes: a summary, problem statement, goals/non-goals, proposed solution/architecture, implementation steps, and acceptance criteria. Seespecs/PLANS.mdfor a detailed template. - For multiple specs, create a master ExecPlan linking to individual specs
- Update
specs/README.mdwith links to new specs - Skip ExecPlans for straightforward tasks (~25% easiest)
Agent Framework Patterns
When working with agents:
- Each agent has associated tools and system prompts
- Tools include: Bing Search with Grounding, Weather, Calendar (ICal), Code Interpreter (Python REPL)
- Use Agent Framework DevUI (
uv run app) for testing workflows end-to-end - Agents are organized in a multi-agent workflow architecture
General Development Guidelines
- Ask for clarification on unclear design decisions (human-in-the-loop)
- Explain plan before implementing large refactors
- Use existing libraries - avoid reinventing the wheel
- Prefer incremental changes with clear progress tracking
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.

