agentleFS
MicrosoftKnown publishermicrosoft/AutoSaddler/.github/copilot-instructions.md

AutoSaddler

Copilot instructions236 starsChanged 3 months agoMITView on GitHub

The file

We split this copilot-instructions.md into the rules it gives an agent

12 rules. About 0 are common, 7 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Prefer these patterns (pick the most direct one):

    line 6
  2. Very specific:

    If an interactive shell is needed: uv venv && source .venv/bin/activate (or platform equivalent), then run commands.

    line 8
  3. Distinctive:

    Do not assume the env is already active.

    line 9
  4. Very specific:

    Only skip uv wrapping for common non-Python shell commands like: ls, cd, cat, echo, pwd, git ..., mkdir, rm, cp, mv, sed, awk, curl, wget …

    line 10
  5. Very specific:

    Add/remove deps using uv add <pkg> / uv remove <pkg> (or whatever standard this repo uses).

    line 23
  6. Very specific:

    If a lockfile is present, keep it updated consistently with uv workflows.

    line 24
  7. Distinctive:

    If inconsistencies are found between code and documentation, always correct them.

    line 28
  8. Distinctive:

    Keep CLI help text, config file comments, and doc examples in sync with actual implementations.

    line 29
  9. Distinctive:

    Do not consider a task complete until tests pass.

    line 33
  10. Distinctive:

    Minimize fallback logic: Do not silently swallow errors or provide default values that hide incorrect state.

    line 36
  11. Very specific:

    Prefer assertions and explicit checks: Use assert statements or raise clear exceptions (ValueError, TypeError, etc.) to enforce invariants …

    line 37
  12. Distinctive:

    When a value *must* be present or a condition *must* hold, assert it rather than falling back to a default.

    line 38

≈ “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.

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

GitHub Copilot instructions (repo-wide)

Environment & command execution (IMPORTANT)

  • This repo uses a Python environment managed by uv.
  • Before running any Python-related command (anything that invokes python, pip, pytest, ruff, mypy, alembic, django-admin, flask, uvicorn, gunicorn, mkdocs, etc.), always run it inside the uv environment.
  • Prefer these patterns (pick the most direct one):
    • uv run <command ...> (preferred for one-off commands)
    • If an interactive shell is needed: uv venv && source .venv/bin/activate (or platform equivalent), then run commands.
  • Do not assume the env is already active.
  • Only skip uv wrapping for common non-Python shell commands like: ls, cd, cat, echo, pwd, git ..., mkdir, rm, cp, mv, sed, awk, curl, wget (unless they are part of a Python workflow step).

Examples

  • ✅ uv run python -m pytest -q
  • ✅ uv run ruff check .
  • ✅ uv run python -m mypy src/
  • ✅ uv run python scripts/sync_data.py --dry-run
  • ✅ git status (no uv needed)
  • ✅ ls -la (no uv needed)
  • ❌ pytest (should be uv run pytest)
  • ❌ python script.py (should be uv run python script.py)

Dependency management

  • Add/remove deps using uv add <pkg> / uv remove <pkg> (or whatever standard this repo uses).
  • If a lockfile is present, keep it updated consistently with uv workflows.

Documentation & consistency (IMPORTANT)

  • After any code changes, always check and update relevant documentation (docs/, README.md), output-related files (docstring, config references), and log/result schemas to reflect the latest changes.
  • If inconsistencies are found between code and documentation, always correct them. If unsure how to resolve an inconsistency, ask the user before proceeding.
  • Keep CLI help text, config file comments, and doc examples in sync with actual implementations.

Testing (IMPORTANT)

  • Always run the test suite after significant code changes (uv run python -m pytest tests/ -v --tb=short).
  • Do not consider a task complete until tests pass.

Error handling & debugging (IMPORTANT)

  • Minimize fallback logic. Do not silently swallow errors or provide default values that hide incorrect state. Fallback paths easily mask bugs and make issues harder to diagnose. This applies to all code — not just error-handling paths but also normal implementation logic.
  • Prefer assertions and explicit checks. Use assert statements or raise clear exceptions (ValueError, TypeError, etc.) to enforce invariants and fail fast when assumptions are violated.
  • When a value must be present or a condition must hold, assert it rather than falling back to a default.
  • ✅ assert config is not None, "config must be loaded before use"
  • ✅ if result is None: raise ValueError("Expected a result but got None")
  • ❌ value = result or some_default # silently hides a missing result
  • ❌ try: ... except Exception: pass # swallows all errors

Git & version control (IMPORTANT)

  • NEVER commit code changes without the user approval.

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.