Best for
- Editing .github/copilot-instructions.md to improve Copilot behavior
- Dealing with Copilot PR review comments (via /fix-pr-comments)
- Analyzing Copilot's review patterns to identify recurring false positives
event4u-app/agent-config/src/skills/copilot-config/SKILL.md
Tune the GitHub Copilot AI — `copilot-instructions.md`, PR-review patterns, suggestion behavior, output verbosity. NOT for dev-environment setup (use `devcontainer`).
Decision brief
Tune the GitHub Copilot AI — `copilot-instructions. md`, PR-review patterns, suggestion behavior, output verbosity.
Compatibility matrix
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/event4u-app/agent-config --skill "src/skills/copilot-config"Inspect the Agent Skill "copilot-config" from https://github.com/event4u-app/agent-config/blob/0adf49a8ae84b0ff6e2de8759eea43257e020eff/src/skills/copilot-config/SKILL.md at commit 0adf49a8ae84b0ff6e2de8759eea43257e020eff. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
1. Inspect current Copilot config — Read .github/copilot-instructions.md (if any) and the What Copilot Can and Cannot Read table below to confirm Copilot Code Review vs. Chat scope. 2. Decide self-contained scope — Identify which rules must live in copilot-instructions.md (PR-re…
Copilot is configured with strict comment behavior rules:
When updating .github/copilot-instructions.md:
Use this skill when: - Editing .github/copilot-instructions.md to improve Copilot behavior - Dealing with Copilot PR review comments (via /fix-pr-comments) - Analyzing Copilot's review patterns to identify recurring false positives - Tuning Copilot's code suggestions for the pro…
.github/copilot-instructions.md — the single source of truth for Copilot behavior.
Permission review
No configured static risk pattern was detected
This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.
Evidence record
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 93/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 7 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Use this skill when:
.github/copilot-instructions.md to improve Copilot behavior/fix-pr-comments)Do NOT use when:
.github/copilot-instructions.md (if any) and the What Copilot Can and Cannot Read table below to confirm Copilot Code Review vs. Chat scope.copilot-instructions.md (PR-review-relevant) vs. .augment/ (agent-only).copilot-instructions.md with coding-standards, review-comment rules, and any new conventions; keep it self-contained..github/copilot-instructions.md — the single source of truth for Copilot behavior.
| Context | Copilot Code Review (PR bot) | Copilot Chat (IDE) |
|---|---|---|
.github/copilot-instructions.md | ✅ Reads automatically | ✅ Reads automatically |
.augment/rules/ | ❌ Cannot access | ✅ Can read if referenced |
.augment/skills/ | ❌ Cannot access | ✅ Can read if referenced |
.augment/guidelines/ | ❌ Cannot access | ✅ Can read if referenced |
AGENTS.md | ❌ Cannot access | ✅ Can read if referenced |
agents/ | ❌ Cannot access | ✅ Can read if referenced |
Key implication: copilot-instructions.md must be self-contained for PR reviews.
It cannot reference .augment/ files and expect Copilot Code Review to follow them.
For Copilot Chat users, a hint at the top of the file points to .augment/ for deeper context.
| Area | How |
|---|---|
| Code suggestions | Follows coding standards, PHP 8.2 patterns, Laravel conventions |
| PR reviews | Reviews only modified lines + direct dependencies |
| Comment behavior | Deduplication rules, reply handling, scope control |
| Language | English code comments, bilingual PR comments (EN + DE) |
.augment/copilot-instructions.md and .augment/ serve different audiences:
copilot-instructions.md | .augment/ | |
|---|---|---|
| Audience | GitHub Copilot (bot + chat) | Augment Agent |
| Scope | Coding standards, review rules | Full agent infrastructure |
| Self-contained? | Yes (must be) | Yes (skills reference each other) |
| Duplication | Intentional — Copilot can't read .augment/ | No duplication needed |
When updating coding rules, check if both files need the change:
.augment/ (Copilot doesn't use these)copilot-instructions.md (Augment uses /fix-pr-* commands)Copilot is configured with strict comment behavior rules:
Before creating a comment, Copilot must:
| Developer response | Copilot action |
|---|---|
| Accepted suggestion | Acknowledge briefly or resolve |
| Rejected with reason | Accept the decision, do NOT re-raise |
| Asked a question | Answer with analysis and examples |
| Dismissed without explanation | Move on, do NOT re-raise |
One comment per concern per location. Never duplicate, never re-raise rejected suggestions.
When the user asks to fix Copilot's PR review comments (via /fix-pr-comments):
For each Copilot comment, determine:
| Category | Action |
|---|---|
| Valid and actionable | Fix the code as suggested |
| Valid but already handled | Reply explaining it's already addressed (e.g., by ECS/Rector) |
| False positive | Reply explaining why the suggestion doesn't apply |
| Style nitpick | Reply that ECS/Rector handles this automatically |
| Out of scope | Reply that the comment is outside the PR's change scope |
When replying to Copilot comments on behalf of the user:
{English explanation}
---
🇩🇪 {German translation}
Copilot frequently suggests things that conflict with project conventions:
| Copilot suggests | Project convention | Response |
|---|---|---|
Add null !== $var with is_string() | is_string() already excludes null | False positive — redundant check |
| Register events manually | Laravel 11 uses event discovery | Not needed since Laravel 11 |
Use float for money | Use Math helper class | Project uses BCMath via Math::*() |
| Add PHPDoc repeating signature | Only add PHPDoc when types are insufficient | Redundant documentation |
Suggest array() syntax | Short syntax [] enforced by ECS | Auto-fixed by ECS |
Add final to mocked classes | Classes mocked by Mockery can't be final | Would break tests |
When updating .github/copilot-instructions.md:
## ✅ {Title}✅ Correct / ❌ Wrong pattern| Trigger | Action |
|---|---|
| Copilot repeatedly makes the same wrong suggestion | Add to "Known Issues" section |
| New project convention introduced | Add to the relevant section |
| Copilot ignores scope control | Strengthen "Code Review Scope" section |
| Copilot creates duplicate comments | Strengthen "Comment Behavior" section |
AGENTS.md content (Copilot doesn't read AGENTS.md)| Tool | Role | Config |
|---|---|---|
| Copilot | IDE suggestions + PR reviews | .github/copilot-instructions.md |
| Augment | Agent workflows + deep analysis | .augment/ + agents/ |
| Greptile | PR review bot (if enabled) | Separate config |
| ECS | Code style auto-fix | ecs.php (project root) |
| Rector | Code refactoring auto-fix | rector.php (project root) |
| PHPStan | Static analysis | phpstan.neon (project root) |
Copilot and Augment complement each other:
.github/copilot-instructions.md — Copilot configuration/fix-pr-comments — fix all review comments (bot + human)code-review — PR review process and conventions