code-review
Skill157 starsChanged 2 months agoMITView on GitHub
Review AgentBaker pull requests and diffs for production regressions, backward compatibility, security, architecture, cross-OS behavior, provisioning failures, and risky package updates. Use this skill whenever reviewing AgentBaker code, pull requests, diffs, dependency bumps, or changes to Linux or Windows VHD build and node provisioning paths.
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.
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. 0 are common, 12 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 174 edited versions we read keep these.
12
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
When reviewing pull requests, perform breaking change analysis to prevent regressions.
- Very specific: line 36
All external dependencies MUST be referenced in parts/common/components.json for Renovate updates
- Distinctive: line 37
Only allowed runtime downloads: packages.aks.azure.com or other explicitly allowed sources in CSE
- Distinctive: line 79
What to check: Every version bump—even patch versions—can introduce regressions that affect production nodes.
- Distinctive: line 83
Research upstream changelog: Look up the project's release notes, changelog, or GitHub releases to understand what changed between the old …
- Distinctive: line 88
Assess OS coverage: Check if the update covers all OS variants where the component is used (Ubuntu 22.04, 24.04, Azure Linux 3.0, etc.).
- Distinctive: line 90
Check for configuration or API changes: If the component exposes configuration files, CLI flags, systemd units, or APIs consumed by CSE …
- Distinctive: line 111
Use web search, GitHub releases, or upstream project documentation to find the exact differences between the old and new version.
- Very specific: line 149
Follow source statements in bash scripts to trace dependency chains
- Distinctive: line 150
Check for function calls, variable references across files
- Very specific: line 151
Look for hardcoded paths in VHD build scripts (vhdbuilder/packer/) that reference changed files
- Distinctive: line 154
Search for new URLs being downloaded (curl, wget, etc.)
- Very specific: line 155
Verify all external dependencies are in parts/common/components.json for Renovate updates
- Distinctive: line 160
Look for related changes that previously caused issues
- Distinctive: line 195
If there are no substantive findings, return no findings.
- Distinctive: line 200
Consider timing of releases and deployment sequences
“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
AgentBaker Code Review
When reviewing pull requests, perform breaking change analysis to prevent regressions. VHDs remain in production for 6 months, so backward compatibility is critical.
Focus on architecture, security vulnerabilities, and logic errors. Understand the code's intent, dependencies, and concrete failure modes before you report a finding.
Breaking Change Detection
Analyze PRs for these compatibility scenarios:
1. Linux Provisioning Script Changes
- Context: Scripts in
parts/linux/cloud-init/artifacts/run during critical VM bootstrap and are used in both:- VHD build (uploaded via packer configs in
vhdbuilder/packer/*.json) - VM provisioning (CSE - embedded in Go service via
pkg/agent/const.go) - Versions synchronized via
pkg/agent/datamodel/linux_sig_version.json
- VHD build (uploaded via packer configs in
- What to check: Changes that could break VM provisioning in production
- Breaking signals:
- Script logic errors: Syntax errors, wrong commands, incorrect flags, broken pipes
- Dependency issues:
- Calling functions before they're sourced
- Using variables declared in other functions
- Removing
sourcestatements that break dependency chains
- Cross-distro compatibility:
- Commands that don't work on both Ubuntu and Azure Linux/Mariner (check distro-specific variants:
ubuntu/,mariner/) - Package manager assumptions (apt vs dnf/tdnf)
- Missing OS-specific conditional logic
- Systemd differences between distributions
- Commands that don't work on both Ubuntu and Azure Linux/Mariner (check distro-specific variants:
- External dependency violations:
- Downloading from internet URLs not in
parts/common/components.jsonor allowed sources (packages.aks.azure.com) - All external dependencies MUST be referenced in
parts/common/components.jsonfor Renovate updates - Only allowed runtime downloads: packages.aks.azure.com or other explicitly allowed sources in CSE
- Downloading from internet URLs not in
- Function signature changes: Parameters, return values, exit codes that break callers
- ANC hotfix entry removal: If a PR removes or modifies the
hotfix-scripts: auto-generatedblock inparts/linux/cloud-init/nodecustomdata.yml, or resetsparts/linux/cloud-init/artifacts/aks-node-controller-hotfix.jsonto{}, always confirm with the PR owner that all affected VHDs have been republished with the fix baked in or are out of the 6-month support window. Premature removal means nodes provisioned via scale-up on the old buggy VHD will no longer receive the hotfix. These files are auto-generated byhotfix/hotfix_generate.py(via thehotfix-generateGH Action) — see that script for howversion/scripts_versionare computed.
2. Windows Bidirectional Compatibility
- Context: Windows VHD and CSE scripts release on different cadences with no guaranteed order
- What to check: Changes to
staging/cse/windows/(CSE scripts) orvhdbuilder/packer/windows/(VHD scripts) - Breaking signals:
- New CSE scripts assuming capabilities that old VHDs don't have
- New VHD scripts expecting features that old CSE versions don't provide
- Changes to shared state (registry keys, files, environment variables) that break coordination
- Removing PowerShell functions or cmdlets that the other component might call
3. aks-node-controller Migration (Dual-Mode Support)
- Context: Transitioning from uploading scripts during both VHD build and CSE to only uploading aks-node-controller during VHD build
- What to check: Any changes must work in BOTH deployment modes
- Breaking signals:
- Assumptions that scripts are always uploaded during CSE (new mode won't do this)
- Assumptions that aks-node-controller is always present (old VHDs won't have it)
- Missing feature detection to determine which mode is running
- Hardcoded paths that differ between deployment modes
4. PIS / VHD Caching — basePrep vs nodePrep split (Windows + Linux)
- Context: PIS bakes a VHD from a temporary VM, then boots many real nodes from it. Same model in Windows
parts/windows/kuberneteswindowssetup.ps1.template(BasePrep/NodePrep) and Linuxparts/linux/cloud-init/artifacts/cse_main.sh(basePrep/nodePrep):basePrep— gated only by thebase_prep.completemarker (C:\AzureData\Windows,/opt/azure/containers/Linux). Skipped on PIS real nodes because the marker is baked into the VHD.nodePrep— runs wheneverPreProvisionOnlyis false (every real node); skipped only on the bake VM.- The bake run sets
PreProvisionOnly=true({{GetPreProvisionOnly}}) and writes the marker afterbasePrepsucceeds (Windowsfinally; Linuxcse_start.sh). - On PIS, basePrep and nodePrep are separate VM runs: variables re-initialize from the real node's live CustomData, so
basePrepin-memory state is gone. (Non-PIS: both run in one execution, no reboot between phases, so state carries — but don't rely on it.)
- Breaking signals:
- Perishable data written in
basePrep: TLS bootstrap tokens, any kubeconfig embedding a token (e.g. WindowsWrite-BootstrapKubeConfig→c:\k\bootstrap-config), secrets, expiring SAS URLs/creds, per-node identity/name/certs. Baked into the VHD and never refreshed (real nodes skipbasePrep) → stale. Write it innodePrep. nodePrepreading a variable that onlybasePrepset (not re-derived from CustomData) — empty on PIS nodes.- A service/scheduled task enabled in
basePrepthat auto-starts on the real node beforenodePreprefreshes its config — it runs against the stale baked config (e.g. a kubelet unit starting from the bake-timebootstrap-configbeforenodePreprewrites the token). - Heavy node-agnostic work (package/binary downloads, image pulls) moved into
nodePrep— defeats caching, slows provisioning. Keep it inbasePrep.
- Perishable data written in
- Rule:
basePrep= static, non-secret, valid for every node booting weeks later.nodePrep= node-specific, secret, expiring, or CustomData-derived. - Don't flag: plain variable reads (live on the real node from CustomData); cached binaries/packages/images; the
base_prep.completemarker; cluster-wide non-secrets (CA cert, apiserver FQDN, service CIDR); pre-existingbasePrepwrites unless the PR newly depends on them.
5. Package/Dependency Update PRs (Renovate)
- Context: Renovate bot automatically creates PRs to update component versions in
parts/common/components.json. These components are cached on VHDs during build and directly affect node stability, GPU workloads, networking, and security. Updated packages are downloaded frompackages.aks.azure.comor upstream registries during VHD build. - What to check: Every version bump—even patch versions—can introduce regressions that affect production nodes.
- Analysis steps for every package update PR:
- Identify the component and version change: Parse the diff in
parts/common/components.jsonto extract exact old → new versions for each OS/release entry. - Determine the update type: Classify as major, minor, or patch using semver. Major and minor updates carry higher risk than patch updates.
- Research upstream changelog: Look up the project's release notes, changelog, or GitHub releases to understand what changed between the old and new versions. Summarize:
- New features introduced
- Bug fixes included
- Breaking changes or deprecations
- Security fixes (CVEs patched)
- Assess OS coverage: Check if the update covers all OS variants where the component is used (Ubuntu 22.04, 24.04, Azure Linux 3.0, etc.). Flag if some OS entries are updated but others are not — partial updates can cause inconsistency across node pools.
- Evaluate VHD size impact: For components downloaded as binaries or packages, consider whether the new version significantly increases VHD size. Large size increases can affect VHD build time and storage costs.
- Check for configuration or API changes: If the component exposes configuration files, CLI flags, systemd units, or APIs consumed by CSE scripts, verify that the update doesn't change defaults or remove options that provisioning scripts depend on.
- Verify download URL validity: Confirm that the
downloadLocationanddownloadURIsstructure in components.json remains valid for the new version. New versions sometimes change the artifact naming convention or repository layout. - Verify AKS-RP coordination: AKS-RP is the Azure Kubernetes Service Resource Provider; it orchestrates cluster and node-pool operations and tells nodes which component versions to use. Check production code (for example, with internal Azure DevOps code search) to determine whether AKS-RP already requests, or is about to request, the new version and whether the bump removes a cached version it still requests. Compare those requests with every version that will remain in
components.json, includinglatestVersionandpreviousLatestVersion, and ignore testdata and fixtures. First distinguish components for which AKS-RP selects a version from components that simply use the version baked into the VHD; the latter do not require version coordination. If AKS-RP access is unavailable, state that this check was not completed and request confirmation from the component owner rather than assuming coordination. Passing CI is not proof of coordination: a missing cached version can still be downloaded at runtime, allowing provisioning to succeed with increased latency.
- Identify the component and version change: Parse the diff in
- Risk assessment for package updates:
- 🔴 High Risk: Major version bumps, components critical to node boot (kubelet, containerd, runc), GPU drivers (nvidia-driver, dcgm-exporter), or networking (azure-cni, cilium). Also high risk if upstream changelog mentions breaking changes or behavioral changes.
- 🟡 Medium Risk: Minor version bumps of non-critical components, updates that only affect specific OS variants, or updates where upstream changelog shows feature additions that could subtly change behavior.
- 🟢 Low Risk: Patch version bumps with only bug fixes or security patches, no breaking changes in upstream changelog, and full OS coverage.
Review output for package update PRs must include a detailed version diff analysis:
Header:
## Package Update Analysis: <component-name> **Version change**: X.Y.Z → A.B.C (<major|minor|patch> update) **OS variants affected**: Ubuntu 22.04, Ubuntu 24.04, Azure Linux 3.0 (list all) **OS variants NOT updated**: <list any missing, or "None — full coverage">Detailed changelog between versions: Use web search, GitHub releases, or upstream project documentation to find the exact differences between the old and new version. Present each change as a line item with its own risk tag:
### Changes between X.Y.Z and A.B.C | Change | Description | Risk | |--------|-------------|------| | Feature | <brief description of new feature> | 🟢 Low / 🟡 Medium / 🔴 High | | Bug fix | <brief description of bug fixed> | 🟢 Low / 🟡 Medium / 🔴 High | | Breaking | <description of breaking change> | 🔴 High | | Security | CVE-YYYY-XXXXX: <description> | 🟢 Low / 🟡 Medium / 🔴 High | | Deprecation | <what was deprecated and migration path> | 🟡 Medium / 🔴 High | | Config change | <default value changed or option removed> | 🟡 Medium / 🔴 High | | Performance | <perf improvement or regression> | 🟢 Low / 🟡 Medium |For each individual change, assess risk by considering:
- Does it alter runtime behavior on AKS nodes?
- Does it change CLI flags, config file formats, or systemd unit behavior that CSE scripts depend on?
- Does it affect GPU workloads, networking, container runtime, or kubelet interaction?
- Could it increase binary size significantly (VHD bloat)?
- Does it introduce new system dependencies or kernel requirements?
If upstream changelog is unavailable, explicitly state: "Upstream changelog not found for this version range. Manual testing recommended before merge."
Overall risk assessment:
### Overall Risk: 🟢 Low / 🟡 Medium / 🔴 High **Justification**: <1-2 sentence summary of why this risk level was chosen> **Recommendation**: Approve / Request more info / Flag for manual testing
Analysis Approach
Dynamic Dependency Tracing:
- For each changed file, identify what depends on it
- Follow
sourcestatements in bash scripts to trace dependency chains - Check for function calls, variable references across files
- Look for hardcoded paths in VHD build scripts (
vhdbuilder/packer/) that reference changed files - Trace through as many levels as needed within the codebase
- Check external dependencies:
- Search for new URLs being downloaded (curl, wget, etc.)
- Verify all external dependencies are in
parts/common/components.jsonfor Renovate updates - Flag downloads from unauthorized sources (only packages.aks.azure.com and sources in components.json allowed)
Historical Context:
- Look for related changes that previously caused issues
- Identify patterns of fragile areas that break frequently
Test Coverage Assessment:
- Assess whether tests cover the changed behavior.
- Report missing coverage only when a concrete behavior or failure mode has no effective validation.
Review Output Format
Report only substantive findings that the changed code supports. Each finding must identify a concrete failure mode.
For each finding:
- Comment directly on the problematic line or code block
- Explain the failure and the affected configurations or lifecycle stages
- Suggest specific mitigations or alternatives
Risk indicators to include:
- Severity (pick one):
- 🔴 High Risk — Could break production VM provisioning, cause node failures, or introduce security vulnerabilities
- 🟡 Medium Risk — Could cause issues in specific configurations, edge cases, or degrade performance
- Category (pick one):
- 🔧 Script Logic — Syntax errors, incorrect commands, broken control flow, wrong exit codes
- 🖥️ Cross-OS — Incompatibility between Ubuntu, Azure Linux/Mariner, or Windows
- 🌐 External Dependency — Unauthorized downloads, missing components.json entries, broken URLs
- 🧪 Test Coverage — Missing or insufficient test coverage for changed behavior
- 📦 Package Update — Component version changes, upstream regressions, VHD size impact
- 🔄 Backward Compatibility — Breaking changes affecting VHDs in production (6-month window)
- 🔒 Security — Credential exposure, privilege escalation, insecure defaults
- ⚡ Performance — VHD build time regression, node provisioning latency increase
- 🏗️ Architecture — Structural changes affecting multiple components or deployment modes
If there are no substantive findings, return no findings.
Review Philosophy
- Understand the architecture and how components interact
- Consider timing of releases and deployment sequences
- Reason about implicit dependencies and assumptions
- Balance thoroughness with actionable feedback
- Focus on high-impact issues that could break production VM provisioning
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.

