agentleFS
JeremyDev87JeremyDev87/codingbuddy/.github/copilot-instructions.md

codingbuddy

Copilot instructions31 starsChanged 8 months agoMITView on GitHub

The file

Show its rules and text

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈18

    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:

    Check for hardcoded secrets, API keys, or credentials

    line 11
  2. Distinctive:

    Look for SQL injection and XSS vulnerabilities

    line 12
  3. Distinctive:

    Verify proper input validation and sanitization

    line 13
  4. Distinctive:

    Check for command injection in shell executions

    line 14
  5. Distinctive:

    Ensure authentication/authorization is properly implemented

    line 15
  6. Distinctive:

    Verify dependencies don't have known vulnerabilities

    line 16
  7. Very specific:

    Prefer const over let, never use var

    line 21
  8. Distinctive:

    Use explicit return types for public functions

    line 22
  9. Distinctive:

    Ensure proper null/undefined handling with strict null checks

    line 23
  10. Distinctive:

    Prefer pure functions over impure ones (separate files for pure/impure)

    line 24
  11. Distinctive:

    No deeply nested code (max 3-4 levels)

    line 29
  12. Distinctive:

    No magic numbers — use named constants

    line 30
  13. Distinctive:

    Remove dead code and unused imports

    line 31
  14. Distinctive:

    Keep methods small and focused

    line 33
  15. Distinctive:

    No mocking — test real behavior with actual implementations

    line 40
  16. Distinctive:

    Test edge cases and error paths

    line 42
  17. Distinctive:

    No circular dependencies between modules

    line 47
  18. Distinctive:

    Follow NestJS module pattern (Module → Controller/Gateway → Service)

    line 53
  19. Distinctive:

    Use dependency injection properly

    line 54

≈ “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 Code Review Instructions

Review Priority Levels

  • 🔴 CRITICAL (Block merge): Security vulnerabilities, logic errors, breaking changes, data loss risks
  • 🟡 IMPORTANT (Requires discussion): Code quality issues, missing tests, performance bottlenecks, architectural deviations
  • 🟢 SUGGESTION (Non-blocking): Readability improvements, minor optimizations, best practice refinements

Security Review

  • Check for hardcoded secrets, API keys, or credentials
  • Look for SQL injection and XSS vulnerabilities
  • Verify proper input validation and sanitization
  • Check for command injection in shell executions
  • Ensure authentication/authorization is properly implemented
  • Verify dependencies don't have known vulnerabilities

TypeScript Standards

  • No any type usage — use unknown or specific types with strict mode
  • Prefer const over let, never use var
  • Use explicit return types for public functions
  • Ensure proper null/undefined handling with strict null checks
  • Prefer pure functions over impure ones (separate files for pure/impure)

Code Quality

  • Functions should follow Single Responsibility Principle (10-20 lines max)
  • No deeply nested code (max 3-4 levels)
  • No magic numbers — use named constants
  • Remove dead code and unused imports
  • DRY: No duplicated logic across files
  • Keep methods small and focused

Testing Standards

  • Core logic (entities, shared/utils, hooks) MUST have tests (TDD approach)
  • UI components (features, widgets) should have test-after coverage
  • Target 90%+ test coverage
  • No mocking — test real behavior with actual implementations
  • Use Arrange-Act-Assert pattern
  • Test edge cases and error paths

Architecture

  • Layer dependency: app → widgets → features → entities → shared
  • No circular dependencies between modules
  • Server Components as default, Client Components only when necessary
  • Pure/impure function separation (different files)

NestJS Patterns (MCP Server)

  • Follow NestJS module pattern (Module → Controller/Gateway → Service)
  • Use dependency injection properly
  • Validate DTOs with class-validator decorators
  • Handle errors with proper NestJS exception filters

Commit & PR Standards

  • Conventional commits format (feat:, fix:, refactor:, test:, docs:, chore:)
  • Each PR should be focused on a single concern
  • PR description must explain "why", not just "what"

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.