microsoft/typespec/test-unbranded-emitter
Claude Code and agent skill by microsoft/typespec
- vendor
Checking that the SKILL.md file is still in the repository.
Build and test the @typespec/http-client-python emitter. Use this skill whenever the user wants to test their local changes to the emitter, run the generator test suite, check if their http-client-python changes are passing, or validate a fix. Triggers on phrases like "test the emitter", "run tests", "check if my changes pass", "run test:generator", "run CI", or any mention of testing/validating changes in the emitter package.
Install
npx vskill@latest install microsoft/typespec/test-unbranded-emitterSKILL.md
The same SKILL.md was published earlier as microsoft/typespec/test-unbranded-emitter.
Test Emitter Skill
Builds and tests @typespec/http-client-python to validate local changes. Automatically regenerates if the generated code is stale.
Paths
All paths are relative to the http-client-python package root: ~/Desktop/github/typespec/packages/http-client-python
| Item | Path | |
|---|---|---|
| Package root | ~/Desktop/github/typespec/packages/http-client-python | |
| Emitter source | emitter/src | |
| Generated (unbranded) | generator/test/unbranded/generated | |
| Generated (azure) | generator/test/azure/generated | |
| Regenerate marker | .last-regenerate |
Workflow
Step 1: Build the emitter
Check for TypeScript compilation errors. If the build fails, report the errors to the user and stop — do not proceed to testing.
Step 2: Check if regeneration is needed
Regeneration is needed if ANY of these conditions are true:
- Generated folder doesn't exist or is empty:
```bash cd ~/Desktop/github/typespec/packages/http-client-python
if [ ! -d "generator/test/unbranded/generated" ] \
echo "Unbranded generated folder is empty - regeneration needed" fi
if [ ! -d "generator/test/azure/generated" ] \
echo "Azure generated folder is empty - regeneration needed" fi ```
- No regenerate marker file exists:
``bash if [ ! -f ".last-regenerate" ]; then echo "No regenerate marker - regeneration needed" fi ``
- Emitter source files are newer than the marker:
``bash if [ -n "$(find emitter/src -newer .last-regenerate -type f 2> /dev/null | head -1)" ]; then echo "Emitter source changed since last regenerate - regeneration needed" fi ``
Step 3: Regenerate if needed
If any condition from Step 2 is true:
After successful regeneration, update the marker:
If regeneration fails, report the error and stop.
If regeneration is NOT needed, inform the user:
"Generated code is up to date (source unchanged since last regeneration). Skipping regenerate."
Step 4: Run the generator test suite
This runs:
test:emitter- vitest unit tests for the emitterci:generator- pytest tests against generated code
The full CI can take several minutes. Keep the user informed that it's running.
Step 5: Report results
- If tests pass: Confirm success and summarize any notable output (warnings, skipped tests, etc.)
- If tests fail: Show the failing test names and error messages clearly.
Offer to help debug or investigate specific failures.
Integration with diff-upstream
Both skills share the regeneration marker system:
diff-upstreamalways regenerates and updates.last-regeneratetest-unbranded-emitterchecks this marker and skips regeneration if fresh
Efficient workflow:
The second command will skip regeneration since diff-upstream just did it.
Standalone workflow:
Will regenerate only if source changed since last run.
Notes
Regeneration takes time
npm run regenerate can take 2-3 minutes. The staleness check avoids this delay when the user is iterating on test fixes (not emitter changes).
Test types
| Command | What it runs | Duration | |
|---|---|---|---|
npm run test:emitter | vitest unit tests only | ~5 seconds | |
npm run test:generator | pytest only (no vitest) | ~2 minutes | |
npm run ci | vitest + pytest (full CI) | ~2-3 minutes |
This skill runs npm run ci (full CI). If the user wants just unit tests or just pytest, they can ask specifically.
Known flaky test
The test server teardown sometimes fails with ProcessLookupError - this is a pre-existing infrastructure issue, not a test failure. All actual tests may pass even if you see this error at the end.
Force regeneration
If the user suspects stale generated code despite the marker, they can force regeneration:
Then run the skill again.
Gitignore
Ensure this entry is in the package's .gitignore:
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 26 Oct 2026.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpackages/http-client-python/.github/skills/test-unbranded-emitter/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. Refreshed 23 Mar 2026, 8 months ago.
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/test-unbranded-emitter)