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/.
In this repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- content-track-scaffolderSkill
- diagram-scaffolderSkill
- docs-syncSkill
- exercise-scaffolderSkill
- track-generatorSkill
- tutorial-content-qaSkill
- version-checkerSkill
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
- Very specific: line 9
After structural changes (paths, modules, diagrams, custom markdown syntax, or any file under …
- Very specific: line 17
Import via @/ alias (e.g., @/components/ui/button)
- Very specific: line 19
Prefer shadcn/ui components from src/components/ui/
- Very specific: line 20
Use cn() from @/lib/utils for conditional classes
≈ “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
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/). Seedocs/harness.mdfor 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/utilsfor conditional classes
Security
Never Generate
- Hardcoded API keys, tokens, or secrets
eval()orFunction()with dynamic inputdangerouslySetInnerHTMLwith unsanitized content
Always Include
- Input validation for user-provided data
- Proper error handling with try/catch
- HTTPS for external resources
Before Completing Code
npm run buildsucceeds (no TypeScript errors)- Imports are correct
- Responsive design considered
- Accessibility basics present (labels, alt text, ARIA)
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.

