microsoft/typespec/minimal-repro
Claude Code and agent skill by microsoft/typespec
- vendor
Checking that the SKILL.md file is still in the repository.
Help create a minimal reproduction for a TypeSpec compiler or emitter bug. Use when a user provides TypeSpec source (pasted code or a GitHub URL) and describes an issue. Reproduces locally and reduces to a single-file repro.
Install
npx vskill@latest install microsoft/typespec/minimal-reproSKILL.md
The same SKILL.md was published earlier as microsoft/typespec/minimal-repro.
Minimal Reproduction
Reduce a user-reported TypeSpec bug to the smallest single .tsp file that still triggers the issue.
Inputs
- TypeSpec source (pasted or GitHub URL)
- Error description (diagnostic code, message, or incorrect emitter output)
Environment
Use packages/samples/scratch/ as the working directory — it's gitignored and the packages/samples package already depends on compiler, http, rest, openapi3, versioning, json-schema, etc.
If the repro needs packages NOT in the workspace (e.g., @azure-tools/*), use a temp folder with npm install instead.
Steps
- Reproduce — Write the user's code to
packages/samples/scratch/main.tsp, compile withnpx tsp compile main.tsp(add--emit <emitter>if relevant), and confirm the same error occurs.
- Minimize — Iteratively remove code (unused imports, models, properties, decorators, operations, namespaces) and re-compile after each removal. Keep only what's needed to trigger the same error. Undo any removal that makes the error disappear.
- Present — Show the final minimal
.tsp, the compile command, and the error output. Suggest pasting into a GitHub issue or the TypeSpec Playground.
- Cleanup — Remove scratch files (
rm -f packages/samples/scratch/*.tsp packages/samples/scratch/tspconfig.yaml && rm -rf packages/samples/scratch/tsp-output).
Tips
- Most reproductions reduce to a single file with no namespaces needed.
- Remove
@service,@server,@doc,@infoearly — they're rarely relevant. - Combine multi-file code into one file by inlining.
- If the error doesn't reproduce, check for missing
import/usingstatements.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 8 Aug 2026.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.github/skills/minimal-repro/SKILL.md
Popularity
- Repository stars
- 5,813
- Repository forks
- 381
- 7-day trend score
- 43
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/microsoft/typespec/minimal-repro)