code-review
Skill5.9k starsChanged 4 months agoMITView on GitHub
Review TypeSpec pull requests against the project's own rules: the Tier 0-3 breaking change policy, `.chronus` changelog requirements, compiler API usage, test framework conventions, and emitter output stability. Use when reviewing a diff or pull request in this repository.
188 other projects use a version of this.
Trending
Quiet since September.about the whole repository
Most recently taken up by
- github/spec-kittheir own version, first seen Nov 23, 2026
- microsoft/vscodetheir own version, first seen Nov 12, 2026
- mattpocock/skillstheir own version, first seen Oct 8, 2026
- rafaelob/pragmatic-agent-skillstheir own version, first seen Oct 5, 2026
- Kangentic/kangentictheir own version, first seen Oct 5, 2026
- dzhng/skillstheir own version, first seen Oct 4, 2026
Who's talking about microsoft/typespec
- neovim/nvim-lspconfig“Support for typespec”GitHub · Jan 23, 2024 · 11 reactions
- github-linguist/linguist“Add TypeSpec”GitHub · Mar 27, 2024 · 9 reactions
- orval-labs/orval“Support unevaluatedProperties OpenAPI 3.1”GitHub · Jun 11, 2025 · 5 reactions
- Azure/autorest.typescript“Emitters should not crash on purpose”GitHub · Feb 20, 2025 · 2 reactions
- Azure/azure-sdk-for-java“Finalize removing JUnit, Reactor Test, and SLF4J Simple test dependencies”GitHub · Sep 25, 2024 · 2 reactions
The biggest 5 of 37 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 37
Talked about on GitHub, Bluesky and Hacker News (37 times).
On GitHub · 32
- Jan 23, 2024Support for typespec — neovim/nvim-lspconfig11 reactions · 3 comments
- Mar 27, 2024Add TypeSpec — github-linguist/linguist9 reactions · 10 comments
- Jun 11, 2025Support unevaluatedProperties OpenAPI 3.1 — orval-labs/orval5 reactions · 1 comment
- Feb 20, 2025Emitters should not crash on purpose — Azure/autorest.typescript2 reactions
- Sep 25, 2024Finalize removing JUnit, Reactor Test, and SLF4J Simple test dependencies — Azure/azure-sdk-for-java2 reactions · 1 comment
27 more on GitHub
- Sep 20, 2026deps(deps-dev): bump the lockfile-updates group in /tools/schema-sync with 4 updates — Imagine-That-Ai/BurnBar1 reaction · 5 comments
- Sep 10, 2026Design required: asynchronous messaging contracts and AsyncAPI emission — cataggar/typespec1 reaction · 1 comment
- Sep 9, 2026deps(deps-dev): bump @typespec/compiler from 1.15.0 to 1.16.0 in /tools/schema-sync — Imagine-That-Ai/BurnBar1 reaction · 5 comments
- Aug 20, 2026deps(deps-dev): bump the lockfile-updates group across 1 directory with 4 updates — Imagine-That-Ai/BurnBar1 reaction · 3 comments
- Aug 6, 2026Fix Experimental Visitor Gaps — Azure/azure-sdk-for-net1 reaction
- Jul 25, 2026deps(deps-dev): bump the lockfile-updates group across 1 directory with 4 updates — Imagine-That-Ai/BurnBar1 reaction · 9 comments
- Jul 25, 2026deps(deps-dev): bump the lockfile-updates group in /tools/schema-sync with 4 updates — Imagine-That-Ai/BurnBar1 reaction · 2 comments
- Jul 13, 2026Add AZC0002 Suppression & ForwardsClientCalls attribute for Mgmt Back Compat Methods — Azure/azure-sdk-for-net1 reaction
- May 28, 2026[Bug]: tcgc mismatched enum type names for /specs/type/file/main.tsp — Azure/typespec-azure1 reaction · 1 comment
- Apr 22, 2026Adopt Additional XML Spector Tests in Azure Generator — Azure/azure-sdk-for-net1 reaction · 1 comment
- Apr 21, 2026Adopt Spector Header Encoding Scenarios — Azure/azure-sdk-for-net1 reaction
- Mar 30, 2026Bump @typespec/http-specs in Azure Generator & Adopt New XML Spector Tests — Azure/azure-sdk-for-net1 reaction
- Mar 2, 2026Emit multiple api-versions in our metadata file for multiple services — Azure/azure-sdk-for-net1 reaction
- Mar 2, 2026[python] add test case for https://github.com/Azure/typespec-azure/pull/3923 — msyyc/typespec1 reaction
- Mar 2, 2026[python] add test case for https://github.com/Azure/typespec-azure/pull/3922 — msyyc/typespec1 reaction
- Mar 2, 2026[python] add test case for https://github.com/Azure/typespec-azure/pull/3729 — msyyc/typespec1 reaction
- Feb 26, 2026Update XML Visitor to Use XmlRequestContent for FromEnumerable helper method — Azure/azure-sdk-for-net1 reaction · 1 comment
- Feb 26, 2026[python] add test case for https://github.com/microsoft/typespec/pull/9660 — msyyc/typespec1 reaction
- Feb 17, 2026Adopt New XML Pageable Spector Scenarios — Azure/azure-sdk-for-net1 reaction
- Jan 5, 2026[spector] Add a POST long running API whose response type is `bytes` — Azure/typespec-azure1 reaction · 2 comments
- Jul 3, 2025Automation is not updating the mgmt package.json version to reference new Azure generator version — Azure/azure-sdk-for-net1 reaction
- Jul 2, 2025Add integration test cases Response.StatusCodeRange — Azure/autorest.typescript1 reaction
- May 8, 2026[http-client-csharp-mgmt] Mgmt SDK regen broken by upstream BaseModelProvider resolution change (microsoft/typespec#10600) — Azure/azure-sdk-for-net0 reactions
- Mar 27, 2026Incorrect XML ETag Deserialization in Model Properties — Azure/azure-sdk-for-net0 reactions
- Mar 11, 2026[Bug]: Error: Unimplemented: transformJsonExprForType: Enum — timotheeguerin/typespec0 reactions · 1 comment
- Mar 11, 2026[Bug]: Error: Unimplemented: transformJsonExprForType: Enum — timotheeguerin/typespec0 reactions · 1 comment
- May 13, 2024Microsoft Typespec — PrismJS/prism0 reactions · 1 comment
On Bluesky · 4
- Jan 30, 2024🔥 Hot Repo! 🔥 (100+ new stars) 📦 microsoft / typespec ⭐ 1,776 (+120) 🗒 TypeScript — @github-trending-js.bsky.social2 likes and reposts · 1 reply
- May 31, 2024📦 microsoft / typespec ⭐ 3,427 (+76) 🗒 TypeScript — @github-trending-js.bsky.social1 likes and repost
- Apr 30, 2024🔥 Hot Repo! 🔥 (100+ new stars) 📦 microsoft / typespec ⭐ 2,578 (+177) 🗒 TypeScript — @github-trending-js.bsky.social1 likes and repost · 1 reply
- Jan 26, 2024🔥 Hot Repo! 🔥 (100+ new stars) 📦 microsoft / typespec ⭐ 1,311 (+151) 🗒 TypeScript — @github-trending-js.bsky.social1 likes and repost · 1 reply
On Hacker News · 1
- Sep 20, 2024TypeSpec1 point · 1 comment
Used with
Projects with it also use starter, media-processing and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
ww-w-aiSkillstarter
Static web development guide for beginners. Covers HTML/CSS/JavaScript and Next.js App Router basics. Project initialization with "init starter". Triggers: static website, portfolio, landing page, HTML CSS, beginner, 정적 웹, 포트폴리오, 초보자, 静的サイト, 初心者, 静态网站, 初学者, sitio web estático, site statique, statische Website, sito web statico Do NOT use for: fullstack apps (use $dynamic), enterprise (use $enterprise).
Also in 4 projects that use this
mrgoonieSkillmedia-processing
Process multimedia files with FFmpeg (video/audio encoding, conversion, streaming, filtering, hardware acceleration) and ImageMagick (image manipulation, format conversion, batch processing, effects, composition). Use when converting media formats, encoding videos with specific codecs (H.264, H.265, VP9), resizing/cropping images, extracting audio from video, applying filters and effects, optimizing file sizes, creating streaming manifests (HLS/DASH), generating thumbnails, batch processing images, creating composite images, or implementing media processing pipelines. Supports 100+ formats, hardware acceleration (NVENC, QSV), and complex filtergraphs.
Also in 5 projects that use this
loulanyueSkillsetup-ts-deep-modules
Wire dependency-cruiser into a TypeScript repo so each package is a deep module — implementation hidden in subfolders, reachable only through its entry-point files. User-invoked.
Also in 15 projects that use this
mrgoonieSkillaesthetic
Create aesthetically beautiful interfaces following proven design principles. Use when building UI/UX, analyzing designs from inspiration sites, generating design images with ai-multimodal, implementing visual hierarchy and color theory, adding micro-interactions, or creating design documentation. Includes workflows for capturing and analyzing inspiration screenshots with chrome-devtools and ai-multimodal, iterative design image generation until aesthetic standards are met, and comprehensive design system guidance covering BEAUTIFUL (aesthetic principles), RIGHT (functionality/accessibility), SATISFYING (micro-interactions), and PEAK (storytelling) stages. Integrates with chrome-devtools, ai-multimodal, media-processing, ui-styling, and web-frameworks skills.
Also in 4 projects that use this
AWSSkillask-matt
Ask which skill or flow fits your situation. A router over the skills in this repo.
Also in 32 projects that use this
AWSSkillresolving-merge-conflicts
Use when you need to resolve an in-progress git merge/rebase conflict.
Also in 48 projects that use this
- +1 more from mrgoonie
- +2 more from aws
Other versions188 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 188
- mattpocock/skills★ 335ksame name
- microsoft/vscode★ 196ksame name
- github/spec-kit★ 153ksame name
- shareAI-lab/learn-claude-code★ 78ksame name
- github/awesome-copilot★ 40ksame name
- langchain-ai/deepagents★ 30ksame name
- microsoft/vcpkg★ 28ksame name
- anthropics/knowledge-work-plugins★ 26ksame name
- Donchitos/Claude-Code-Game-Studios★ 26ksame name
- microsoft/onnxruntime★ 22ksame name
178 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository13 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- packages/http-client-java/.github/copilot-instructions.mdCopilot instructions
- packages/http-client-js/.github/copilot-instructions.mdCopilot instructions
- csharp-spector-coverage-gapsSkill
- emitter-prep-for-prSkill
- http-client-python-bump-and-releaseSkill
- minimal-reproSkill
- pnpm-formatSkill
- writing-python-sdk-spector-mock-api-testsSkill
- diff-upstreamSkill
- generate-from-typespecSkill
- test-unbranded-emitterSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 2 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 174 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 79
Every package with a user-visible change needs an entry.
- Very specific: line 112
Prefer stable public APIs: Use exported helpers and TypeKits over the checker, symbols, or AST (Tier 2, see §1).
- Very specific: line 118
Every new code path, branch, diagnostic, and public API needs a test co-located in the package's test/.
- Very specific: line 124
Assert diagnostics with the helpers: Use expectDiagnostics / expectDiagnosticEmpty from @typespec/compiler/testing, not hand-rolled checks …
- Very specific: line 131
Verify imports resolve: If a test imports a helper from src, confirm that symbol is actually exported there.
- Distinctive: line 144
Unexplained snapshot changes are the headline risk: Every changed snapshot must be an intentional, explained consequence of the change.
- Distinctive: line 162
Don't repeat a point another comment already makes.
“Common” is measured: kept by at least 6 in 10 of the 174 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
TypeSpec code review
Review the diff against the rules this project actually enforces. Every comment must point at a concrete problem in the changed code and cite the rule or code that makes it a problem — if you cannot cite it, do not post it.
Scope
Applies to the whole repository: the pnpm workspace packages (packages/compiler, packages/http,
packages/openapi3, packages/json-schema, packages/versioning, …), the language emitter
packages (packages/http-client-{csharp,java,python}), .chronus/changes/**, and their tests.
For the language emitter packages, §1 (tier policy) does not apply to their internal APIs and their
own rules in .github/instructions/*.instructions.md take precedence — but §2 (changeset), §3
(compiler API usage) and §4 (tests) apply everywhere.
Out of scope — do not comment on:
- Generated artifacts:
pnpm-lock.yaml, generated Python/C#/Java code undergenerator/,tests/generated/, and generated reference docs underwebsite/src/content/docs/docs/libraries/*/reference/**. - Formatting and lint-covered issues — prettier (
pnpm format) and oxlint own those. - Naming/style preferences, or unchanged code surrounding the diff.
Read before judging
Consult these and cite them in findings:
website/src/content/docs/docs/handbook/breaking-change-policy.mdx— the authoritative tier table and the bug exception..chronus/config.yaml— the validchangeKindvalues and thechangedFilesexclusions..github/copilot-instructions.md— changelog message guidelines and the TDD expectation.- Sibling tests in the touched package — the established tester/assertion patterns.
- The public compiler API (
@typespec/compiler) and@typespec/compiler/testingexports — to confirm a used API exists and behaves as the change assumes.
1. Breaking changes and public surface
Decide which tier each change touches, then whether it breaks an existing spec or consumer. Adding new syntax, types, or capabilities is not breaking; changing how something that already worked behaves is.
- Tier 0 — language syntax/semantics, the type graph (
Type), default TypeKits, exported helper and accessor functions. Flag: an existing valid spec that now parses differently, fails, or produces a different type graph; a removed/renamed export or changed signature; a changed runtime result for existing input; a removed or repurposed field on aType. Adding a required field to aTypeis allowed by policy but breaks downstream construction — call it out. - Tier 1 — the AST (
Node,SyntaxKind). Appended enum members and new union variants are allowed (TypeScript exhaustiveness errors are explicitly not breaking). Flag renumbered enums (members inserted rather than appended), removed node kinds, and changed shapes of existing nodes. - Tier 2 — checker, symbols,
@internal//internals//experimentalexports, template declarations, stdout/stderr output. Not breaking; mention only if a change here silently alters observable behavior. - Tier 3 — formatter and emitter output. Semantically equivalent output changes are not breaking; see §5 for the risk that matters.
- Bug exception. A technically breaking change that fixes clearly unintended behavior is not a breaking change — but say so explicitly rather than staying silent.
A change you judge breaking that has no breaking changeset is the highest-value finding in a
review. Raise it first.
2. Changeset (.chronus)
- Valid
changeKindvalues are exactly:internal,fix,dependencies,feature,deprecation,breaking. Anything else (feat,docs,patch,minor,major) is invalid. - The kind must match reality: a new capability is
feature, a fix isfix, and anything breaking per §1 isbreaking. - One entry per package and per change type. A single entry bundling a feature in one package with a fix in another must be split.
packages:must list exactly the affected packages.- Every package with a user-visible change needs an entry. Missing one is a finding — but note the
exclusions in
.chronus/config.yaml:**/*.md, test files, andpackages/*/test/**don't require a changeset, so docs-only or test-only changes legitimately have none. - Message quality: describes the change from the user's perspective; area tag only when targeting a
secondary area of a multi-area package, in
[bracket]form (e.g.[converter],[formatter]) — no genericcore -prefixes; afeatureentry includes a short illustrative code block, a simple fix does not.
3. Compiler API usage
Judge whether the change uses the TypeSpec compiler API the way the compiler expects, not merely whether it type-checks.
- Diagnostic targets decide whether a diagnostic can be suppressed. A diagnostic reported with
NoTargetcan never be suppressed (packages/compiler/src/core/program.ts—target === NoTargetreturns early before the#suppresslookup), and a diagnostic withseverity: "error"can never be suppressed either (suppressing one producessuppress-error). So a diagnostic the user is meant to be able to silence must be awarningand carry a real node/type target. Flag any target that resolves toNoTargeton a realistic input as "not actually suppressible". - Pick the most precise target available, falling back deliberately: the offending type → the
service namespace →
program.getGlobalNamespaceType()→NoTargetonly for genuinely program-wide failures with no node to point at. - Don't assume the program has a service.
listServices(program)returns a possibly empty array;[0]isundefinedfor model-only or service-less programs. Same for any lookup that can returnundefined— ask what happens in that case, and whether the diagnostic is still reachable and suppressible there. - Severity changes have control-flow consequences.
errorblocks emission viaprogram.hasError(); downgrading towarningmeans everything downstream now runs in a state it previously never saw. Verify the continue path is safe and intended. - Diagnostic hygiene. Report through the library's
reportDiagnostic/createDiagnosticwith a catalog entry and stable code; neverthrowfor a user error. The message text must still match the behavior after the change — a message saying the emitter "requires" something it now merely warns about is a finding. - Prefer stable public APIs. Use exported helpers and TypeKits over the checker, symbols, or AST
(Tier 2, see §1); use
resolvePath/joinPathsrather thannode:path; exclude template declarations withisTemplateDeclarationwhen navigating types.
4. Tests
- Every new code path, branch, diagnostic, and public API needs a test co-located in the package's
test/**. New behavior with no test is a finding. - Reuse the package's shared tester. Packages export one from
test/test-host.tsortest/tester.ts(e.g.packages/http/test/test-host.ts,packages/compiler/test/tester.ts). CallingcreateTester(...)inline in a new test file duplicates library/import setup and drifts — flag it and point at the existing module. - Assert diagnostics with the helpers. Use
expectDiagnostics/expectDiagnosticEmptyfrom@typespec/compiler/testing, not hand-rolled checks likeprogram.diagnostics.some((x) => x.code.endsWith(...)), which silently pass when the code, severity, or target is wrong. - Exercise the real entrypoint. A test must drive the shipped path (
$onEmit, the decorator, the emitter run) rather than re-implement the logic or call a helper in isolation — otherwise it passes while the actual behavior is broken. - Verify imports resolve. If a test imports a helper from
src, confirm that symbol is actually exported there; an import of a non-existent export makes the whole file fail to load. - Tests must be meaningful: they should fail if the change were reverted. Flag tests that only smoke run or assert nothing specific to the new behavior.
- Beyond the happy path: error and diagnostic paths, empty/anonymous forms, templates, and negative cases — including the fallback branches identified in §3.
- Flag any weakening of existing coverage:
.skip/.only, deleted assertions, or matchers broadened to make a change pass.
5. Emitter output stability
For packages/{openapi3,openapi,json-schema,http,http-server-*}:
- Unexplained snapshot changes are the headline risk. Every changed snapshot must be an intentional, explained consequence of the change. A snapshot diff for specs unrelated to the feature means existing users' output changed — raise it.
- Inline-vs-hoist, component naming, and declaration-creation changes must preserve behavior for existing named types and only affect genuinely new inputs. Anonymous/empty-named types inline; named types hoist without key collisions.
$refand component-key correctness: reordering name validation relative to ref generation must not silently drop validation that previously errored — if that is an intended fix, it needs to be called out and changeset'd.- Emitters must handle new type-graph shapes defensively (new node kinds, new union variants) rather than crash on them.
How to comment
- One issue per comment, anchored on the offending line.
- State the problem, cite the rule (policy section,
.chronus/config.yaml, guideline) or the relevantfile:line, and suggest the concrete fix. - One or two sentences. No preamble, no summarizing the diff back to the author.
- Don't repeat a point another comment already makes.
- Lead with correctness, compatibility, and coverage. Minor suggestions are welcome only when they are actionable and specific.
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.

