Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 31, 2026

Template-based projects require manual setup (renaming script) and knowledge of project tooling (Hatch commands, test workflows, QA tools). AI assistants working with new projects from this template lack this context.

Changes

  • Created .github/copilot-instructions.md: GitHub Copilot-recognized file containing:

    • Critical first-time setup: hatch run _wizard must run before any other work
    • Complete Hatch command reference (QA, testing, docs, pre-commit)
    • Project structure and tool configuration (ruff, mypy, pytest, 90% coverage requirement)
    • Development patterns (Google docstrings, type hints, src layout)
    • CI/CD workflows overview
  • Updated README.md: Added "For AI Assistants" section linking to copilot-instructions.md

Why .github/copilot-instructions.md

This path is specifically recognized by GitHub Copilot as repository-specific context. Alternative locations (root-level .ai-context.md, CONTRIBUTING.md) are less discoverable or conflate different purposes.

Impact

AI agents working with projects created from this template will now:

  • Know to run the renaming script immediately
  • Use correct Hatch commands instead of raw pip/pytest
  • Follow established conventions without inference
  • Maintain project standards (coverage, docstrings, type hints)

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: fschuch <37457501+fschuch@users.noreply.github.com>
@sonarqubecloud
Copy link

Copilot AI changed the title [WIP] Improve Python project template for better Copilot support Add AI agent context documentation to template Jan 31, 2026
Copilot AI requested a review from fschuch January 31, 2026 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants