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
- Distinctive: line 16
Prefer incremental, minimal diffs.
- Distinctive: line 20
Ensure error handling uses existing custom error types where appropriate (e.g., NotFound, Validation, Conflict) and propagates consistent …
- Distinctive: line 23
Prefer environment variable driven configuration.
- Distinctive: line 28
Keep PRs scoped: code + tests + docs (architecture or build notes) when behavior changes.
- Distinctive: line 29
Update related instruction files if new folders or architectural slices are introduced.
- Distinctive: line 32
Do not inline full API route or component files in review feedback unless absolutely necessary: quote only the lines requiring change.
- Very specific: line 46
If new subsystems are added (e.g., mobile/, worker/), create a new *.instructions.md with applyTo globs instead of bloating this file.
≈ “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
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 underinfra/
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:
- Prefer incremental, minimal diffs; preserve existing style and naming.
- Surface security, correctness, and data integrity issues before micro-optimizations.
- Encourage type safety (no
anyunless justified). Suggest adding/refining model or DTO types when gaps appear. - Flag duplicate logic that belongs in a shared utility or repository method.
- Ensure error handling uses existing custom error types where appropriate (e.g., NotFound, Validation, Conflict) and propagates consistent HTTP status codes via middleware.
- Encourage tests: request unit tests for new repository logic and component tests (or at least React Testing Library coverage) for critical UI paths.
- For performance concerns, highlight N+1 query patterns, unnecessary data loading, or large bundle additions.
- Prefer environment variable driven configuration; avoid hard‑coded paths/secrets.
Monorepo Workflow
- Build frequently:
npm run build --workspace=apior--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
- Security / data integrity
- Logical / functional correctness
- Performance / scalability
- Maintainability / duplication
- Readability / consistency
- 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.
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.

