agent-config
Copilot instructions11 starsChanged 3 months agoMITView on GitHub
This repository is the event4u/agent-config package: shared agent configuration (skills, rules, commands, guidelines, templates) for AI coding tools. It is a distribution package, not an application of any framework (Laravel, Symfony, Next.js, etc.). For Copilot Chat users: Rich context lives in .augment/ (rules, skills, guidelines) and AGENTS.md at the repo root. Ask Copilot Chat to read those files. The instructions below are self-contained for Copilot Code Review, which cannot follow links. - Bash scripts under src/scripts/install.sh and src/scripts/condense.sh. - Python…
The file
Show its rules and text
We split this copilot-instructions.md into the rules it gives an agent
23 rules. About 0 are common, 12 are distinctive, and 11 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈12
Distinctive · estimate
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 20
pytest: test suite under tests/.
- Very specific: line 22
No application source code — no framework app code (Laravel, Symfony, Next.js, Express, etc.), no JavaScript runtime deps.
- Distinctive: line 28
Do not introduce architectural changes unless explicitly requested.
- Distinctive: line 29
Do not replace existing patterns with alternatives.
- Distinctive: line 30
Do not suggest new libraries unless explicitly requested.
- Very specific: line 47
Never edit generated tool outputs: .claude/, .cursor/, .clinerules/, .windsurfrules, GEMINI.md.
- Very specific: line 55
Prefer dataclasses or typing.NamedTuple over untyped dicts.
- Very specific: line 56
Use pathlib.Path, not string paths.
- Very specific: line 57
No third-party runtime dependencies in scripts/ — stdlib only.
- Distinctive: line 59
Keep linters exit-code driven (0 = clean, 1 = violations, 3 = internal error).
- Very specific: line 63
Start every script with set -euo pipefail.
- Very specific: line 65
Use [[ … ]] for tests (bash builtin), not [ … ].
- Distinctive: line 66
Prefer functions with local variables over global state.
- Distinctive: line 67
Check for required tools up front and exit with an actionable hint if missing.
- Very specific: line 71
Every .md file under .agent-src.uncondensed/ authoring layer.
- Very specific: line 84
Every new script under scripts/ should come with a test file tests/test_<name>.py.
- Distinctive: line 93
If Copilot reviews a PR that fails any of these, reference the specific task.
- Very specific: line 99
Do NOT commit regenerated files (.claude/, .cursor/, .windsurfrules, GEMINI.md) as separate commits — they belong with the source change.
- Distinctive: line 105
Do NOT suggest improvements to unmodified code in the same file.
- Distinctive: line 106
Do NOT nitpick style issues that linters / formatters auto-fix.
- Distinctive: line 110
Never create duplicate comments — one comment per concern per location.
- Distinctive: line 111
Never re-raise rejected suggestions.
- Distinctive: line 118
Commit messages: English, Conventional Commits.
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Copilot Repository Instructions — event4u/agent-config
This repository is the event4u/agent-config package: shared agent configuration (skills, rules, commands, guidelines, templates) for AI coding tools. It is a distribution package, not an application of any framework (Laravel, Symfony, Next.js, etc.).
For Copilot Chat users: Rich context lives in
.augment/(rules, skills, guidelines) andAGENTS.mdat the repo root. Ask Copilot Chat to read those files. The instructions below are self-contained for Copilot Code Review, which cannot follow links.
✅ What this repo contains
- Bash scripts under
src/scripts/install.shandsrc/scripts/condense.sh. - Python 3.10+ tooling under
scripts/— condensation driver, linters (skills, references, portability, readme), installer bridge. - Markdown content under
.agent-src.uncondensed/(authoring layer) and.augment/(generated output). Edit the former, never the latter. - pytest test suite under
tests/.
No application source code — no framework app code (Laravel, Symfony, Next.js, Express, etc.), no JavaScript runtime deps. If you see framework-specific suggestions in a PR touching this repo, they are wrong.
✅ Scope Control
- Do not introduce architectural changes unless explicitly requested.
- Do not replace existing patterns with alternatives.
- Do not suggest new libraries unless explicitly requested.
- Stay within the established structure.
✅ Portability rules for this package
- Never reference a specific consumer project (project names, domains,
internal tools, customers) in
.augment/,.agent-src.uncondensed/, rootAGENTS.md, or.github/copilot-instructions.md. Everything here must work in any consumer project. - Project-specific behavior belongs in a consumer's own
.agent-settings.yml,AGENTS.md, oragents/directory — not in this package. - The portability checker (
src/scripts/check_portability.py) enforces this in CI.
✅ Editing .augment/ — source-of-truth rule
- Never edit files under
.augment/directly. It is generated output. - Edit
.agent-src.uncondensed/and runtask sync(ortask ci). - Never edit generated tool outputs:
.claude/,.cursor/,.clinerules/,.windsurfrules,GEMINI.md.
✅ Python coding standards
- Python 3.10+ syntax. Use
from __future__ import annotations,|unions, built-in generics (list[str],dict[str, Any]). - Type hints on public functions and dataclass fields.
- Prefer
dataclassesortyping.NamedTupleover untyped dicts. - Use
pathlib.Path, not string paths. - No third-party runtime dependencies in
scripts/— stdlib only. Tests MAY use pytest; pytest is the only dev dependency. - Keep linters exit-code driven (0 = clean, 1 = violations, 3 = internal error).
✅ Bash coding standards
- Start every script with
set -euo pipefail. - Quote variables:
"$var", not$var. - Use
[[ … ]]for tests (bash builtin), not[ … ]. - Prefer functions with local variables over global state.
- Check for required tools up front and exit with an actionable hint if missing.
✅ Markdown / content standards
- Every
.mdfile under.agent-src.uncondensed/authoring layer. - Skills must declare YAML frontmatter (
name,description, optionallysource,disable-model-invocation,skills). - Size budgets enforced by linter: skills compact, rules focused, commands step-by-step.
- Skill descriptions must use trigger words that help routing — "Use when …".
- All
.mdfiles in.augment/must be English.
✅ Testing
pytest tests/for Python. Aim for fast, isolated tests — no network, no filesystem side effects outsidetmp_path.bash tests/test_install.shfor installer end-to-end.- Every new script under
scripts/should come with a test filetests/test_<name>.py.
✅ CI checks (must all pass)
task ci runs: sync-check, check-condensation, sync, generate-tools, consistency
(git clean), check-condensation, check-refs, check-portability, lint-skills, test
(bash + pytest), lint-readme.
If Copilot reviews a PR that fails any of these, reference the specific task.
✅ Commit and PR behavior
- Conventional Commits:
feat,fix,docs,chore,refactor,test,ci. - Squash-merge title must also follow Conventional Commits.
- Do NOT commit regenerated files (
.claude/,.cursor/,.windsurfrules,GEMINI.md) as separate commits — they belong with the source change.
✅ Code Review Scope
- Review only the actually modified lines and their direct dependencies.
- Do NOT suggest improvements to unmodified code in the same file.
- Do NOT nitpick style issues that linters / formatters auto-fix.
✅ Comment Behavior
- Never create duplicate comments — one comment per concern per location.
- Never re-raise rejected suggestions.
- Answer questions concisely; do not argue.
- Resolve conversations once the issue is addressed.
✅ Language
- Code comments: English.
- Commit messages: English, Conventional Commits.
- User-facing prose in
.agent-src.uncondensed/.mdfiles: English. - PR comments: English.
✅ Known False Positives — Do NOT Flag
The repo ships agent-config rules and skills under .augment/,
dist/agent-src/, and (during authoring) .agent-src.uncondensed/.
Cross-references inside those trees resolve via the delivered
.augment/ layout — not via raw git checkout. Copilot's static
checker walks the git tree, so it sees broken paths where there are
none. Intentional, not a bug. The patterns below are correct by
design:
- Relative cross-references inside markdown rules / skills /
commands like
[x](../docs/guidelines/foo.md)or[y](../contexts/bar.md). The base resolves from the file's delivered location (e.g..augment/rules/<rule>.md) — these paths are valid via the.augment/tree, even when the file is symlinked into.claude/rules/,.cursor/rules/, or.clinerules/. path_prefix:triggers containing.agent-src.uncondensed/in YAML frontmatter. This is a literal match pattern for the host's router, not a file reference — source-of-truth meta-rules (source-of-truth,augment-portability,skill-quality,docs-sync,rule-type-governance) legitimately match against the authoring tree.- Symlinked rule / skill / command files under
.claude/,.cursor/,.clinerules/. Targets resolve into.augment/rules/,.augment/skills/,.augment/commands/via installer-managed symlinks. Missing-file reports here are renderer artifacts. - Body-link forms
../docs/guidelines/...(single-up). This is the post-rewrite shape produced bysrc/scripts/condense.py. The condenseddist/agent-src/rules/tree is one level deeper than the source.agent-src.uncondensed/rules/, so the rewriter collapses../../docs/...to../docs/.... Both forms are expected — one in source, one in condensed output. source: packagein skill frontmatter — required marker, do not remove.disable-model-invocation: trueon commands — required marker, do not remove.
What TO flag: code defects, security issues, broken tests, type
errors, and any new .agent-src.uncondensed/ substring introduced
into dist/agent-src/rules/ body content (the check-condensed-paths
task gates this — flag it as a regression if it slips through).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

