Skip to content

Commit 8eec013

Browse files
committed
feat(agent): instructions
1 parent 4867684 commit 8eec013

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

copilot-instructions.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
# Instructions
1+
# Repository assistant instructions
2+
3+
Primary rule
4+
- Do not run automated security scans (for example: CodeQL, semgrep, trivy, or any other static analysis / code-scanning tools) unless a repository maintainer or the repository owner explicitly requests and authorizes the scan.
25

36
Purpose
47
- Help contributors and code-assistants make focused, minimal, and correct changes to the codebase.
@@ -7,12 +10,12 @@ Purpose
710
General guidance
811
- Always write and explain code in English.
912
- When adding comments in code, limit them to describing implementation details and intent. Do not use comments to introduce new features or design changes.
10-
- Avoid implementing security checks or validations unless the maintainer explicitly requests them.
13+
- Avoid implementing security scans, checks or validations unless the maintainer explicitly requests them.
1114
- Do not create or modify test files; tests and migrations are not to be generated.
1215
- All changes that interact with persistent data (database reads/writes/migrations) must be implemented inside the repository's existing database modules or clearly designated DB files (e.g., app/db.py, app/database/, or equivalent). Do not embed DB operations in handlers, controllers, or utility files unless that is the project's established pattern.
1316

1417
Python-specific guidance
15-
- Follow PEP 8 formatting and idiomatic Python practices (use typing where helpful), ignore linting tools from py.
18+
- Follow PEP 8 formatting and idiomatic Python practices (use typing where helpful), ignore linting tools from pyproject.toml.
1619
- Keep functions and modules small and focused.
1720
- Prefer composing behavior via modules and functions already present in the repo rather than adding new top-level packages or modules unless necessary.
1821
- Use existing configuration and dependency-loading patterns in the project; do not introduce new secrets or env-loading systems.

0 commit comments

Comments
 (0)