1.6 KiB
1.6 KiB
Copilot Instructions
Read this file before starting any task. These rules apply to every task without exception.
Environment
/workspaceis the project root and a git repo- Use whatever language/runtime the project requires
- Never install packages globally unless the task explicitly asks
- Always verify installs work before reporting done
Running Services
- Check if a service manager exists (systemd, start.sh, etc.) before starting anything manually
- Use
systemctlif services are managed by systemd - Check health after starting:
curl http://localhost:<port>/healthor equivalent - Logs:
journalctl -u <service> -for check the project's log location
Git
/workspaceis a git repo — use git for file tracking- Use
git status --porcelainto check changed files - Use
git diff HEADfor full diffs - Never commit build artifacts,
__pycache__,*.pyc,node_modules, or secrets
Task Scope
- Do exactly what the task describes — nothing more, nothing less
- Do not add extra endpoints, files, dependencies, or features unless explicitly asked
- Do not refactor code from previous tasks unless asked
- If something seems wrong, flag it — don't silently fix it
Verification
- Always run the verify command specified in the task before reporting done
- Report the exact output of the verify command
- If verification fails, fix the issue first — do not report partial completion
Reporting Back
When a task is complete, report:
- What was created or changed (file list)
- The exact output of the verify command
- Any assumptions made or issues encountered