agentleFS
event4u-appevent4u-app/agent-config/.github/copilot-instructions.md

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
  1. Very specific:

    pytest: test suite under tests/.

    line 20
  2. Very specific:

    No application source code — no framework app code (Laravel, Symfony, Next.js, Express, etc.), no JavaScript runtime deps.

    line 22
  3. Distinctive:

    Do not introduce architectural changes unless explicitly requested.

    line 28
  4. Distinctive:

    Do not replace existing patterns with alternatives.

    line 29
  5. Distinctive:

    Do not suggest new libraries unless explicitly requested.

    line 30
  6. Very specific:

    Never edit generated tool outputs: .claude/, .cursor/, .clinerules/, .windsurfrules, GEMINI.md.

    line 47
  7. Very specific:

    Prefer dataclasses or typing.NamedTuple over untyped dicts.

    line 55
  8. Very specific:

    Use pathlib.Path, not string paths.

    line 56
  9. Very specific:

    No third-party runtime dependencies in scripts/ — stdlib only.

    line 57
  10. Distinctive:

    Keep linters exit-code driven (0 = clean, 1 = violations, 3 = internal error).

    line 59
  11. Very specific:

    Start every script with set -euo pipefail.

    line 63
  12. Very specific:

    Use [[ … ]] for tests (bash builtin), not [ … ].

    line 65
  13. Distinctive:

    Prefer functions with local variables over global state.

    line 66
  14. Distinctive:

    Check for required tools up front and exit with an actionable hint if missing.

    line 67
  15. Very specific:

    Every .md file under .agent-src.uncondensed/ authoring layer.

    line 71
  16. Very specific:

    Every new script under scripts/ should come with a test file tests/test_<name>.py.

    line 84
  17. Distinctive:

    If Copilot reviews a PR that fails any of these, reference the specific task.

    line 93
  18. Very specific:

    Do NOT commit regenerated files (.claude/, .cursor/, .windsurfrules, GEMINI.md) as separate commits — they belong with the source change.

    line 99
  19. Distinctive:

    Do NOT suggest improvements to unmodified code in the same file.

    line 105
  20. Distinctive:

    Do NOT nitpick style issues that linters / formatters auto-fix.

    line 106
  21. Distinctive:

    Never create duplicate comments — one comment per concern per location.

    line 110
  22. Distinctive:

    Never re-raise rejected suggestions.

    line 111
  23. Distinctive:

    Commit messages: English, Conventional Commits.

    line 118

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
copilot-instructions.md

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) 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.

✅ What this repo contains

  • Bash scripts under src/scripts/install.sh and src/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/, root AGENTS.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, or agents/ 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 run task sync (or task 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 dataclasses or typing.NamedTuple over 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 .md file under .agent-src.uncondensed/ authoring layer.
  • Skills must declare YAML frontmatter (name, description, optionally source, 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 .md files in .augment/ must be English.

✅ Testing

  • pytest tests/ for Python. Aim for fast, isolated tests — no network, no filesystem side effects outside tmp_path.
  • bash tests/test_install.sh for installer end-to-end.
  • Every new script under scripts/ should come with a test file tests/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/ .md files: 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 by src/scripts/condense.py. The condensed dist/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: package in skill frontmatter — required marker, do not remove.
  • disable-model-invocation: true on 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).

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.