Skip to content

Instantly share code, notes, and snippets.

@rapfaria
rapfaria / agents.md
Created October 12, 2025 02:30 — forked from QINGCHARLES/agents.md
My agents.md/copilot-instructions.md for .Net 10 coding

What AI agents should know about me

C# / ASP.NET Core developer (Razor Pages + Windows Forms) targeting .NET 8–10.

Coding standards & conventions

  • Strong explicit typing; avoid var unless the type is truly obvious or required.
  • PascalCase every identifier (types, members, variables, parameters, generics, Razor artifacts, generated names like App/Builder).
  • Exception: simple loop counters (i, j, k, w, h, x, y, z).
  • Tabs for indentation; opening brace on its own line.
@rapfaria
rapfaria / pre-commit
Created August 27, 2022 01:35 — forked from kcjpop/pre-commit
Git pre-commit hook to run php lint and php-cs-fixer
#!/usr/bin/php
<?php
/**
* .git/hooks/pre-commit
*
* This pre-commit hooks will check for PHP error (lint), and make sure the code
* is PSR compliant.
*
* Dependecy: PHP-CS-Fixer (https://github.com/fabpot/PHP-CS-Fixer)
*