Add .github/copilot-instructions.md for coding agent onboarding#73
Add .github/copilot-instructions.md for coding agent onboarding#73Copilot wants to merge 2 commits into
Conversation
Co-authored-by: mj-will <25609742+mj-will@users.noreply.github.com>
|
@copilot how should this file be maintained updated as the code changes? |
The file should be treated as living documentation and updated in the same PR as any change that affects the information it covers. Specifically:
The key discipline is: don't merge a PR that makes the instructions stale. Adding a bullet to the PR checklist (e.g. in a |
|
@copilot Could one used a weekly CI job to trigger you to check if the file needs updating? |
|
@copilot Could one used a weekly CI job to trigger you to check if the file needs updating? |
Yes. GitHub Actions supports
The only prerequisite is that your repository has the Copilot coding-agent feature enabled and the target label configured to auto-assign issues to the agent.
Yes — a scheduled workflow is a clean way to do this. Concretely: # .github/workflows/refresh-copilot-instructions.yml
on:
schedule:
- cron: '0 9 * * 1' # Every Monday 09:00 UTC
workflow_dispatch: # Allow manual runs too
jobs:
create-review-issue:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Open Copilot review issue
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh issue create \
--title "Weekly: review .github/copilot-instructions.md" \
--label "copilot" \
--body "Review \`.github/copilot-instructions.md\` against the current state of \`src/aspire/\`, \`pyproject.toml\`, and \`.github/workflows/\`. If anything is stale or missing, open a PR with the necessary updates. If everything is up to date, close this issue with a comment."The |
Adds a
copilot-instructions.mdto give a coding agent (or new contributor) enough context to work efficiently on this repo without manual exploration.What's documented
src/aspire,tests,examples, anddocsxppattern viaarray-api-compat), available array backends (numpy/JAX/torch), flow backends (zuko/flowjax), and the centralSamplesdataclass contractxp/dtypeconftest fixtures parametriseSCIPY_ARRAY_APIenv var requirement, and PyTorch default-dtype behavior✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.