MicroHack / 01_Agentic_SDLC
Copilot instructions204 starsChanged 5 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). Refer to src/docs/architecture.md and src/docs/sqlite-integration.md for deeper details. Avoid restating them in reviews and link instead.
In this repository8 other files it gives its agents.
- 03-Azure/01-04-AI/02_Inventory_Planning_Fabric/.github/copilot-instructions.mdCopilot instructions
- 03-Azure/01-04-AI/03_Inventory_Planning_Agentic/.github/copilot-instructions.mdCopilot instructions
- 03-Azure/01-04-AI/04_Agentic_Contract_Lifecycle_Management/.github/copilot-instructions.mdCopilot instructions
- dotnet-upgradeSkill
- java-upgradeSkill
- {{skill-name-kebab-case}}Skill
- skill-creatorSkill
- frontend-designSkill
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 19
Prefer incremental, minimal diffs.
- Distinctive: line 23
Ensure error handling uses existing custom error types where appropriate (e.g., NotFound, Validation, Conflict) and propagates consistent …
- Distinctive: line 26
Prefer environment variable driven configuration.
- Distinctive: line 31
Keep PRs scoped: code + tests + docs (architecture or build notes) when behavior changes.
- Distinctive: line 32
Update related instruction files if new folders or architectural slices are introduced.
- Distinctive: line 35
Do not inline full API route or component files in review feedback unless absolutely necessary: quote only the lines requiring change.
- Very specific: line 49
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
Multi-language monorepo under src/ implementing the OctoCAT Supply Chain app. It ships FOUR interchangeable implementations of the same OctoCAT Supply API plus a shared UI and database:
src/api-tsExpress REST API in TypeScript (SQLite persistence, repository pattern, Swagger docs)src/api-csASP.NET REST API in C#src/api-pyFastAPI REST API in Pythonsrc/api-javaSpring Boot REST API in Javasrc/frontendReact + Vite + Tailwind UI (shared across all API variants)src/databaseSQLite schema —src/database/migrations/andsrc/database/seed/src/Makefileorchestrates install/build/test/dev across the languages
Refer to src/docs/architecture.md and src/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. - Reduce duplication: when the same logic appears in multiple places, suggest extracting it into 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 and test via the
src/Makefile(run targets fromsrc/):make build/make test/make devcover all variants, and per-language targets likemake build-ts,make test-ts,make dev-tsscope to one implementation. - Install dependencies with the install targets:
make install(everything) or per-languagemake install-ts,make install-cs,make install-py,make install-java,make install-frontend. - 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.

