code-review
Skill196 starsChanged 6 months agoMITView on GitHub
Reviews new or changed CODE on aspire.dev for correctness, safety, and adequate test coverage — not documentation prose. USE FOR: reviewing a PR supplied as a number or URL (or the current branch's diff), checking C#/TypeScript/Astro/HTML/CSS changes for bugs, catching correctness/security/data-loss/accessibility regressions, verifying that important scenarios have unit tests, e2e tests (desktop/tablet/mobile), and axe-core accessibility tests. DO NOT USE FOR: validating documentation content or examples (use doc-tester), reviewing a documentation PR for factual accuracy (use doc-pr-reviewer), writing or fixing docs pages (use doc-writer), two-slash TypeScript blocks (use twoslash-validator), or nitpicking style/formatting (ESLint and Prettier own that). INVOKES: git (read-only diff inspection), gh (to resolve and fetch a PR by number or URL), and optionally the repo's existing test commands for verification. FOR SINGLE OPERATIONS: read the diff with git or gh pr diff and apply the relevant language checklist directly.
188 other projects use a version of this.
Adopted by
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
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 repository12 other files it gives its agents.
- aspireSkill
- container-imagesSkill
- doc-pr-reviewerSkill
- doc-testerSkill
- doc-writerSkill
- hex1bSkill
- playwright-cliSkill
- twoslash-validatorSkill
- update-integrationsSkill
- update-samplesSkill
- whatsnewSkill
- getting-started-with-aspireSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. 0 are common, 9 are distinctive, and 8 are very specific to this project.
0
Common
Most of the 174 edited versions we read keep these.
9
Distinctive
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Use this skill to review code changes on aspire.dev and produce a high-signal review.
- Distinctive: line 27
Before reviewing, resolve the PR's base branch, head SHA, and changed files (see below).
- Very specific: line 31
Prefer inspecting the diff without switching branches.
- Distinctive: line 46
Use the resolved base branch wherever the workflow below references a base ref.
- Distinctive: line 59
If a change is correct and adequately tested, say so plainly.
- Distinctive: line 71
Confidence gate: verify the claim against the actual code before writing it.
- Distinctive: line 112
Exceptions: no swallowed exceptions that hide failures.
- Very specific: line 124
Async: every await/promise has an error path.
- Very specific: line 125
Security: never build DOM from untrusted strings via innerHTML.
- Very specific: line 148
Responsiveness: verify behavior at the three tested breakpoints (mobile/tablet/desktop) — no overflow, clipped content, or unusable …
- Distinctive: line 150
Theming: use existing design tokens/CSS variables and theme selectors rather than hardcoded colors that break dark/light or Catppuccin …
- Distinctive: line 152
Accessibility: don't disable focus outlines without an equivalent visible focus style.
- Distinctive: line 157
Treat missing coverage for an important scenario as a review finding (High for user-facing behavior, Medium for internal logic).
- Very specific: line 192
Follow the existing pattern in src/frontend/tests/e2e/wcag-aa.spec.ts: run AxeBuilder with withTags(['wcag2a', 'wcag2aa']) and assert zero …
- Very specific: line 199
Get the change set: If given a PR (number or URL), resolve it with gh per Input — read gh pr diff <pr> plus the changed-file list, and gh …
- Very specific: line 221
Run frontend commands from src/frontend.
- Distinctive: line 271
If there are no findings: state that the change is correct and adequately tested, and give the coverage summary.
“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
Code Review Skill
Use this skill to review code changes on aspire.dev and produce a high-signal review. The bar is the highest possible code quality: correct, safe, tested, and accessible. This skill mirrors the microsoft/aspire PR-review flow — do not nitpick. Report only real, high-confidence problems and gaps that a maintainer must act on.
This skill reviews code (C#, TypeScript, Astro, HTML, CSS). It does not validate documentation
accuracy or prose — that belongs to doc-tester, doc-writer, and (for reviewing a docs PR)
doc-pr-reviewer.
Input
This skill reviews one change set, supplied in any of these forms:
- a PR number (e.g.
1422), - a full PR URL (e.g.
https://github.com/microsoft/aspire.dev/pull/1422), or - nothing — review the current local branch's diff against its base branch.
Unless the caller says otherwise, a PR belongs to this aspire.dev repository. Review exactly the PR
you are given — there is no eligibility filter or selection step; do not go looking for other PRs.
Before reviewing, resolve the PR's base branch, head SHA, and changed files (see below).
Resolve a PR with gh (read-only)
Prefer inspecting the diff without switching branches; check the PR out only when you need to run
something (tests/build). A PR URL can be passed directly; for a bare number, pass --repo so gh
targets the right repository rather than a fork remote.
# Metadata: base branch, head SHA, and the list of changed files
gh pr view <number-or-url> --repo microsoft/aspire.dev --json number,baseRefName,headRefName,headRefOid,files
# The full unified diff to review
gh pr diff <number-or-url> --repo microsoft/aspire.dev
# Check it out locally — only needed to run the optional verification commands
gh pr checkout <number-or-url> --repo microsoft/aspire.devUse the resolved base branch wherever the workflow below references a base ref.
⚠️ Core rule: signal over noise
Only report issues you are confident are real and worth a maintainer's time. If you would preface a comment with "nit", "consider", "maybe", or "personal preference", do not write it.
- ✅ Report: bugs, incorrect logic, unhandled failures, race conditions, resource leaks, security holes (XSS, injection, secret leakage), data loss, breaking API/behavior changes, broken accessibility, responsive/layout breakage, and missing tests for important scenarios.
- ❌ Do not report: formatting, import order, naming preferences, whitespace, "could be more
idiomatic", subjective refactors, or anything ESLint/Prettier/
dotnet formatalready enforces.
If a change is correct and adequately tested, say so plainly. A clean review is a valid outcome.
Severity and confidence model
Classify every finding. Only surface high-confidence findings.
| Severity | Meaning | Examples |
| Critical | Ships a bug, breaks users, or is unsafe. Must fix before merge. | Null deref, XSS, data loss, wrong output, broken build/route, secret committed. |
| High | Likely defect or a real gap that should be fixed before merge. | Unhandled error path, race, missing e2e/axe coverage for a user-facing scenario, accessibility regression. |
| Medium | Legitimate concern worth addressing; not necessarily blocking. | Fragile logic with no unit test, edge case not handled, unclear failure mode. |
Confidence gate: verify the claim against the actual code before writing it. Trace the value, read the surrounding function, and confirm the code path is reachable. If you cannot confirm it, either dig until you can or phrase it as an explicit question — do not assert a bug you haven't verified. When in doubt, leave it out.
Scope
In scope (review these):
- C# —
src/statichost/**,src/tools/**,src/apphost/**, and their tests undertests/**. - Frontend TypeScript —
src/frontend/src/**/*.ts, scripts undersrc/frontend/scripts/**, and tests undersrc/frontend/tests/**. - Astro components/pages —
src/frontend/src/**/*.astro. - HTML and CSS/styles — markup and
src/frontend/src/styles/**, component-level styles, and anything affecting layout, theming, or responsiveness.
Out of scope (defer, do not review here):
- Documentation prose and examples in
src/frontend/src/content/docs/**(.md/.mdxbody content) → route todoc-tester/doc-writer. - Two-slash TypeScript code fences → route to
twoslash-validator. - Generated data files (e.g.
src/frontend/src/data/*.json) unless the generator logic changed. - Pure formatting/lint concerns → owned by ESLint, Prettier, and
dotnet format.
Note: CSS/HTML embedded in or emitted by components is in scope when it affects behavior, layout, responsiveness, or accessibility, even if it lives near docs.
Per-language review checklists
Apply only the checklists for languages that actually changed. Keep findings high-signal.
C# (StaticHost, tools, AppHost — xUnit, net10.0, nullable enabled)
- Correctness: middleware ordering and short-circuiting; request/response paths; header and
content-negotiation parsing (
AcceptHeaderParser, path mapping) handle malformed/edge input. - Nullability: honor the enabled nullable context — no unjustified
!, no ignored possible-null. - Async: no
async void(except handlers), no sync-over-async (.Result/.Wait()), passCancellationTokenwhere the surrounding APIs do. - Resource safety:
using/await usingfor streams,HttpClient/handlers, temp files/dirs; no leakedIDisposable. - DI lifetimes: singletons must not capture scoped/transient state; no captive dependencies.
- Exceptions: no swallowed exceptions that hide failures; failures surface as correct status/logs.
- Security: validate/normalize any path derived from input (path traversal); never log secrets.
TypeScript (frontend src, scripts, tests)
- Type safety: no
anythat erases a real contract; no unsafe casts hiding a mismatch; narrow before use. Prefer failing types over@ts-expect-error/eslint-disableunless justified. - Null/undefined: guard optional DOM lookups (
querySelector,getElementById) and API/JSON fields before dereferencing. - DOM/browser: event listeners are removed when appropriate; no leaks in long-lived scripts;
correct handling of
localStorage/sessionStorageaccess (can throw) — see existingtry/catchpatterns intests/e2e/helpers. - Async: every
await/promise has an error path; no unhandled rejections; no floating promises. - Security: never build DOM from untrusted strings via
innerHTML; escape/encode user or external data; no secrets or tokens embedded client-side.
Astro components/pages (*.astro)
- Server vs client: frontmatter runs at build/SSR — keep browser-only APIs inside
<script>or client directives. Use the correct hydration directive (client:load/idle/visible) and only when hydration is actually needed. - Props: typed and validated; required props aren't silently
undefined. - Escaping/XSS:
set:htmlonly on trusted, sanitized content; prefer expressions (auto-escaped). - Routing/data: dynamic routes (
getStaticPaths) produce the expected set; no broken/duplicate routes; build-time fetches fail loudly, not silently.
HTML
- Semantics: meaningful elements (
button,nav,main, headings) overdivsoup; one logicalh1per page; correct heading order. - Accessibility: accessible names for interactive elements and icons;
alton images;labelassociations for inputs; keyboard-operable controls (no click-only handlers on non-interactive elements); valid ARIA (don't override native semantics).
CSS / styles (src/frontend/src/styles/**, component styles)
- Responsiveness: verify behavior at the three tested breakpoints (mobile/tablet/desktop) — no overflow, clipped content, or unusable controls. New layout usually needs an e2e check (below).
- Theming: use existing design tokens/CSS variables and theme selectors rather than hardcoded colors that break dark/light or Catppuccin theming.
- Accessibility: don't disable focus outlines without an equivalent visible focus style; preserve sufficient color contrast (WCAG AA) — this is enforced by the axe-core suite.
Test-coverage expectations
Treat missing coverage for an important scenario as a review finding (High for user-facing behavior, Medium for internal logic). "Important" = user-visible behavior, a bug being fixed, a branch/edge case, or anything a regression would silently break. Trivial or purely cosmetic changes don't require new tests — use judgment.
Unit tests
- Frontend (Vitest): logic in
src/frontend/src/**andscripts/**should have unit tests undersrc/frontend/tests/unit/**. A bug fix should add a test that fails without the fix. - C# (xUnit): logic in
src/**should have tests undertests/**(e.g.StaticHost.Tests,*.Tests). Parsers, mappers, and middleware especially need edge-case coverage.
End-to-end tests (Playwright — desktop, tablet, mobile)
Important user-facing scenarios need an e2e test under src/frontend/tests/e2e/**. The Playwright
config (src/frontend/playwright.config.mjs) runs every spec across all three viewport projects,
so a single well-written spec is validated on:
| Project | Device / viewport |
desktop-chromium | Desktop Chrome, 1440×900 |
tablet-chromium | iPad Pro 11 |
mobile-chromium | Pixel 7 |
- Confirm new/changed interactive UI, navigation, and responsive layout have e2e coverage that will
run across all three projects. Use viewport-aware helpers (e.g.
isNarrowViewport) when behavior differs by size, following existing specs likeui-regressions.spec.ts. - Flag scenarios that only make sense on one form factor but are untested on the others (e.g. a mobile menu with no mobile assertion).
Accessibility tests (axe-core)
Anything with accessibility implications — new pages, new interactive components, changed markup,
focus/keyboard behavior, or color/theming — should be covered by an @axe-core/playwright check.
- Follow the existing pattern in
src/frontend/tests/e2e/wcag-aa.spec.ts: runAxeBuilderwithwithTags(['wcag2a', 'wcag2aa'])and assert zero violations. - New top-level routes should be added to the audited-pages list; new interactive widgets should get a targeted axe assertion. Flag accessibility-affecting changes that ship with no axe coverage.
Review workflow
- Get the change set. If given a PR (number or URL), resolve it with
ghper Input — readgh pr diff <pr>plus the changed-file list, andgh pr checkout <pr>only if you need to run something. Otherwise review the current local branch, substituting the PR's base branch for<base>(usuallymain):git --no-pager diff --stat <base>...HEAD git --no-pager diff <base>...HEAD - Classify changed files by language/area (C#, TS, Astro, HTML, CSS, tests) and by whether they are in scope. Set docs-only prose aside.
- Read for real understanding. Open changed files and enough surrounding context to trace each changed code path — don't review lines in isolation.
- Apply the per-language checklists to each in-scope change, verifying every candidate finding against the actual code before recording it.
- Assess test coverage against the expectations above: unit, e2e (all three viewports), and axe-core. Record missing coverage for important scenarios as findings.
- Produce the report in the format below. If nothing meets the confidence bar, say the change looks correct and adequately covered.
Optional verification commands (read-only)
Running tests is recommended, not required. Use these to confirm a suspicion or validate coverage.
Run frontend commands from src/frontend.
# Frontend unit tests (Vitest)
pnpm test:unit
# Frontend e2e tests across desktop/tablet/mobile (Playwright)
pnpm test:e2e
# Single e2e project / spec
pnpm exec playwright test --project=mobile-chromium tests/e2e/wcag-aa.spec.ts
# C# tests (xUnit)
dotnet test Aspire.Dev.slnxLint/format (pnpm lint, pnpm format, dotnet format) already enforce style — don't re-report
what they cover.
Output format
Group findings by severity, most severe first. Omit empty groups. Each finding:
path:line— one-line summary of the problem.- Why it matters: the concrete consequence (what breaks, for whom).
- Suggested fix: the smallest correct change (or a targeted question if unverifiable).
End with a short Test coverage summary: which changed scenarios have unit / e2e (desktop, tablet, mobile) / axe-core coverage, and which important ones are missing it.
Example skeleton:
## Critical
- `src/statichost/StaticHost/AgentReadiness/AcceptHeaderParser.cs:42` — parser dereferences a null
segment for a malformed `Accept` header.
- Why it matters: a crafted header returns 500 instead of negotiating content.
- Suggested fix: guard the empty-segment case before indexing; add a xUnit case for it.
## High
- `src/frontend/src/components/Menu.astro:18` — mobile menu toggle has no e2e coverage.
- Why it matters: regressions on the Pixel 7 / iPad projects would ship silently.
- Suggested fix: add a spec under tests/e2e that exercises the toggle (runs on all viewports).
## Test coverage
- Unit: ✅ AcceptHeaderParser change covered once the null case is added.
- E2E: ⚠️ Menu toggle untested on tablet/mobile.
- Accessibility: ✅ New route added to wcag-aa.spec.ts audited pages.If there are no findings: state that the change is correct and adequately tested, and give the coverage summary.
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.

