pxt
Copilot instructions2.3k starsChanged 15 months agoMITView on GitHub
Trending
Quiet since May.thin dataabout the whole repository
Who's talking about microsoft/pxt
- microsoft/pxt-microbit“New field gestures”GitHub · May 24, 2018 · 4 reactions
- microsoft/pxt-microbit“Feature: MakeCode Blocks Poster/Cheatsheet”GitHub · Jun 6, 2019 · 3 reactions
- microsoft/pxt-arcade“add pauseUntil block”GitHub · Jan 24, 2023 · 2 reactions
- microsoft/pxt-arcade“Drop bbird, -> es2017”GitHub · Mar 13, 2021 · 2 reactions
- IanMatthewHuff/pxt“indicate which provider last successfully signed in”GitHub · May 8, 2026 · 1 reactions
The biggest 5 of 5 mentions linking to the repository that our crawl found. Each line is their own headline.
The file
We split this copilot-instructions.md into the rules it gives an agent
12 rules. About 0 are common, 10 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 5
Follow TypeScript strict mode conventions
- Distinctive: line 6
Use semantic versioning for all packages
- Distinctive: line 8
Write clear, self-documenting code with JSDoc comments
- Distinctive: line 9
Follow the existing code style and patterns in each component
- Distinctive: line 21
Always include proper type annotations
- Very specific: line 22
Use export statements for public APIs
- Very specific: line 23
Prefer const over let where possible
- Distinctive: line 24
Use arrow functions for callbacks and short functions
- Distinctive: line 29
Write unit tests for new functionality
- Distinctive: line 31
Test simulator features across different browsers
- Distinctive: line 36
Update relevant README files when adding features
- Distinctive: line 38
Document breaking changes in commit messages
≈ “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
PXT Framework Development Instructions
General Guidelines
- Follow TypeScript strict mode conventions
- Use semantic versioning for all packages
- Maintain backward compatibility when possible
- Write clear, self-documenting code with JSDoc comments
- Follow the existing code style and patterns in each component
Architecture Principles
- The PXT framework follows a modular architecture with clear separation between:
- Core framework (
pxtlib/,pxtcompiler/) - Web application (
webapp/) - Simulator (
pxtsim/) - Target implementations (
pxt-microbit/,pxt-common-packages/)
- Core framework (
Code Generation Standards
- Always include proper type annotations
- Use
exportstatements for public APIs - Prefer
constoverletwhere possible - Use arrow functions for callbacks and short functions
- Include error handling for async operations
Testing Requirements
- Write unit tests for new functionality
- Include accessibility tests for UI components
- Test simulator features across different browsers
- Validate TypeScript compilation without errors
Documentation
- Update relevant README files when adding features
- Include inline documentation for complex algorithms
- Document breaking changes in commit messages
- Provide examples for new API functions
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.

