agentleFS
MicrosoftKnown publishermicrosoft/github-agent-mode-webinar/.github/copilot-instructions.md

github-agent-mode-webinar

Copilot instructions19 starsChanged 12 months agoMITView on GitHub

These are repository-wide guidelines. Path‑scoped files in .github/instructions/*.instructions.md provide focused guidance for specific areas (frontend, API, database). TypeScript monorepo with: - api/ Express REST API (SQLite persistence, repository pattern, Swagger docs) - frontend/ React + Vite + Tailwind UI - Shared demo + infra docs under docs/ and deployment scripts under infra/ Refer to docs/architecture.md and docs/sqlite-integration.md for deeper details. Avoid restating them in reviews and link instead.

The file

We split this copilot-instructions.md into the rules it gives an agent

7 rules. About 0 are common, 6 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Prefer incremental, minimal diffs.

    line 16
  2. Distinctive:

    Ensure error handling uses existing custom error types where appropriate (e.g., NotFound, Validation, Conflict) and propagates consistent …

    line 20
  3. Distinctive:

    Prefer environment variable driven configuration.

    line 23
  4. Distinctive:

    Keep PRs scoped: code + tests + docs (architecture or build notes) when behavior changes.

    line 28
  5. Distinctive:

    Update related instruction files if new folders or architectural slices are introduced.

    line 29
  6. Distinctive:

    Do not inline full API route or component files in review feedback unless absolutely necessary: quote only the lines requiring change.

    line 32
  7. Very specific:

    If new subsystems are added (e.g., mobile/, worker/), create a new *.instructions.md with applyTo globs instead of bloating this file.

    line 46

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

OctoCAT Supply Chain Management Application – General Copilot Instructions

These are repository-wide guidelines. Path‑scoped files in .github/instructions/*.instructions.md provide focused guidance for specific areas (frontend, API, database).

High-Level Architecture

TypeScript monorepo with:

  • api/ Express REST API (SQLite persistence, repository pattern, Swagger docs)
  • frontend/ React + Vite + Tailwind UI
  • Shared demo + infra docs under docs/ and deployment scripts under infra/

Refer to docs/architecture.md and docs/sqlite-integration.md for deeper details. Avoid restating them in reviews and link instead.

General Review Guidance

When generating suggestions:

  1. Prefer incremental, minimal diffs; preserve existing style and naming.
  2. Surface security, correctness, and data integrity issues before micro-optimizations.
  3. Encourage type safety (no any unless justified). Suggest adding/refining model or DTO types when gaps appear.
  4. Flag duplicate logic that belongs in a shared utility or repository method.
  5. Ensure error handling uses existing custom error types where appropriate (e.g., NotFound, Validation, Conflict) and propagates consistent HTTP status codes via middleware.
  6. Encourage tests: request unit tests for new repository logic and component tests (or at least React Testing Library coverage) for critical UI paths.
  7. For performance concerns, highlight N+1 query patterns, unnecessary data loading, or large bundle additions.
  8. Prefer environment variable driven configuration; avoid hard‑coded paths/secrets.

Monorepo Workflow

  • Build frequently: npm run build --workspace=api or --workspace=frontend (root build runs both)
  • Keep PRs scoped: code + tests + docs (architecture or build notes) when behavior changes.
  • Update related instruction files if new folders or architectural slices are introduced.

Do Not Repeat

Do not inline full API route or component files in review feedback unless absolutely necessary: quote only the lines requiring change. Summarize low‑impact nits.

Escalation Order for Suggestions

  1. Security / data integrity
  2. Logical / functional correctness
  3. Performance / scalability
  4. Maintainability / duplication
  5. Readability / consistency
  6. Style / minor formatting

Tone & Feedback Style

Be concise, actionable, and cite a rationale ("because" clause) for non-trivial recommendations. Offer one preferred solution; optionally a lightweight alternative.


If new subsystems are added (e.g., mobile/, worker/), create a new *.instructions.md with applyTo globs instead of bloating this file.

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.