agentleFS
MicrosoftKnown publishermicrosoft/learn-ai-native-dev/.github/copilot-instructions.md

learn-ai-native-dev

Copilot instructions20 starsChanged 7 months agoMITView on GitHub

This is an AI-Native Development Tutorial website. After structural changes (paths, modules, diagrams, custom markdown syntax, or any file under .github/{instructions,prompts,skills,agents,hooks}/), run @docs-auditor to catch drift in docs/.

The file

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

4 rules. About 0 are common, 0 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    After structural changes (paths, modules, diagrams, custom markdown syntax, or any file under …

    line 9
  2. Very specific:

    Import via @/ alias (e.g., @/components/ui/button)

    line 17
  3. Very specific:

    Prefer shadcn/ui components from src/components/ui/

    line 19
  4. Very specific:

    Use cn() from @/lib/utils for conditional classes

    line 20

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

GitHub Copilot Instructions

This is an AI-Native Development Tutorial website.

  • Project context, tech stack, structure, and dev commands → AGENTS.md.
  • Website-as-product design spec (principles, IA, components, per-part design) → docs/.
  • Build harness (instructions, prompts, skills, agents, hooks) → this folder (.github/). See docs/harness.md for the map.

After structural changes (paths, modules, diagrams, custom markdown syntax, or any file under .github/{instructions,prompts,skills,agents,hooks}/), run @docs-auditor to catch drift in docs/.

Code Generation Rules

  • TypeScript with proper type annotations; no any
  • Functional components with hooks; named exports
  • Import via @/ alias (e.g., @/components/ui/button)
  • Tailwind CSS only — no inline styles or CSS modules
  • Prefer shadcn/ui components from src/components/ui/
  • Use cn() from @/lib/utils for conditional classes

Security

Never Generate

  • Hardcoded API keys, tokens, or secrets
  • eval() or Function() with dynamic input
  • dangerouslySetInnerHTML with unsanitized content

Always Include

  • Input validation for user-provided data
  • Proper error handling with try/catch
  • HTTPS for external resources

Before Completing Code

  1. npm run build succeeds (no TypeScript errors)
  2. Imports are correct
  3. Responsive design considered
  4. Accessibility basics present (labels, alt text, ARIA)

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.