code-review
Skill117 starsChanged 5 months agoMITView on GitHub
Use this skill for GitHub Copilot pull request and code reviews in oaslananka/kicad-mcp-pro. Review Python MCP server changes, KiCad adapter and tool-contract changes, tests, npm/package wrappers, Tauri/Rust desktop code, GitHub Actions, security controls, documentation, generated metadata, and compatibility/release surfaces. Use it whenever reviewing a PR or diff in this repository, especially changes under src/, tests/, packages/, src-tauri/, .github/workflows/, or public MCP metadata/configuration.
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 repository13 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/AGENTS.mdAGENTS.md
- integrations/AGENTS.mdAGENTS.md
- packages/AGENTS.mdAGENTS.md
- src-tauri/AGENTS.mdAGENTS.md
- docs/llms.txtllms.txt
- drc-checkSkill
- fabrication-outputSkill
- kicad-design-reviewSkill
- pcb-designSkill
- schematic-reviewSkill
- visual-excellenceSkill
- wired-subcircuit-designSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
35 rules. 0 are common, 30 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 174 edited versions we read keep these.
30
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
- Distinctive: line 33
Do not invent failures, tool behavior, KiCad behavior, CI results, or browser evidence.
- Distinctive: line 35
Prefer correctness and user-impact findings over formatting or naming nits already enforced by repository tooling.
- Distinctive: line 37
Do not require a broad refactor when a focused fix addresses the defect.
- Distinctive: line 38
If no actionable defect is found, do not manufacture a comment.
- Distinctive: line 44
Read the PR title, description, changed files, and diff.
- Distinctive: line 45
Use GitHub MCP context when available to inspect:
- Distinctive: line 59
Treat the PR head branch as the source of repository instructions and skill content.
- Distinctive: line 60
Use existing CI evidence when it is from the reviewed head commit and covers the exact concern.
- Distinctive: line 67
Use GitHub MCP tools when they provide concrete review evidence, especially for linked issues, PR intent, CI/check state, or failed …
- Distinctive: line 73
When changes affect the dashboard or desktop/web UI and the application can be run in the review environment, use Playwright MCP for …
- Distinctive: line 83
Do not report a browser regression unless you have code evidence or observed behavior.
- Very specific: line 88
If a KiCad MCP Pro server is configured in repository Copilot settings and the PR changes KiCad-facing behavior, .kicad_* fixtures, …
- Distinctive: line 92
Prefer the bounded read-only/default review surface and inspection/validation tools such as:
- Very specific: line 133
keep register() and _register_* helpers focused on wiring.
- Distinctive: line 134
do not add new business logic directly to large registration/composition roots.
- Distinctive: line 136
prefer typed domain services plus thin MCP adapters.
- Distinctive: line 144
If a calculation is approximate, heuristic, partial, or first-pass, ensure the API, docstring, docs, and verdict communicate that …
- Distinctive: line 150
Treat the MCP surface as a public compatibility contract.
- Distinctive: line 152
When a tool is added, removed, renamed, reclassified, or its schema/behavior changes, check the relevant contract surfaces:
- Very specific: line 159
read-only/destructive/headless/requires-KiCad semantics.
- Distinctive: line 199
Treat MCP/tool arguments, project paths, filenames, output paths, and imported artifact names as attacker-controlled.
- Distinctive: line 226
no silent re-enabling of deprecated/legacy exposure.
- Distinctive: line 248
default permissions remain least-privilege.
- Distinctive: line 249
write permissions are scoped to the job that needs them.
- Very specific: line 255
If a public PR introduces a sensitive vulnerability, explain the fix-relevant risk without publishing weaponized exploit details, secrets, …
- Distinctive: line 263
Check the repository's testing policy:
- Distinctive: line 277
Do not demand live KiCad execution for logic that is deliberately unit-testable without KiCad.
- Distinctive: line 319
Prefer the smallest relevant validation set.
- Distinctive: line 363
Use Playwright-backed tests when the environment supports them and the change is user-visible.
- Very specific: line 368
Use task verify for the repository's local quality gate.
- Distinctive: line 372
Do not make "run the entire suite" the only review recommendation when a specific, smaller regression test would prove the issue.
- Distinctive: line 377
Write a review finding only when all of the following are true:
- Distinctive: line 395
Use severity proportional to impact:
- Distinctive: line 403
Avoid duplicate comments for the same root cause.
- Distinctive: line 408
Do not create review comments solely because:
“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
KiCad MCP Pro Code Review
Review pull requests for correctness, security, contract stability, compatibility, test coverage, and release safety. Prefer a small number of high-confidence, actionable findings over broad style feedback.
KiCad MCP Pro is a production MCP server that drives real KiCad projects. Treat unsafe mutations, incorrect tool contracts, path/subprocess mistakes, protocol regressions, and misleading engineering verdicts as high-risk.
Review stance
- Review the changed code and the behavior introduced by the change.
- Comment on unchanged code only when the PR newly makes an existing defect reachable or materially increases its impact.
- Do not invent failures, tool behavior, KiCad behavior, CI results, or browser evidence.
- Distinguish a demonstrated defect from a possible improvement.
- Prefer correctness and user-impact findings over formatting or naming nits already enforced by repository tooling.
- Do not require a broad refactor when a focused fix addresses the defect.
- If no actionable defect is found, do not manufacture a comment.
1. Gather review context first
Before writing findings:
- Read the PR title, description, changed files, and diff.
- Use GitHub MCP context when available to inspect:
- linked issues or incidents referenced by the PR;
- review-relevant PR metadata;
- changed-file scope;
- workflow/check status;
- failed job logs when a failure is relevant to the changed code.
- Consult repository policy and architecture when needed:
ARCHITECTURE.mdCONTRIBUTING.mdSECURITY.mddocs/development/coding-standards.mddocs/development/testing-policy.mddocs/security/threat-model.md.github/PULL_REQUEST_TEMPLATE.md
- Treat the PR head branch as the source of repository instructions and skill content.
- Use existing CI evidence when it is from the reviewed head commit and covers the exact concern. Do not claim a check passed if you did not observe it.
2. MCP context policy
GitHub MCP
Use GitHub MCP tools when they provide concrete review evidence, especially for linked issues, PR intent, CI/check state, or failed workflow details. Do not browse unrelated repository history just to increase context.
Playwright MCP
When changes affect the dashboard or desktop/web UI and the application can be run in the review environment, use Playwright MCP for focused user-visible verification.
Relevant areas include:
src/kicad_mcp/web/- dashboard routes/templates/assets
src-tauri/frontend/- desktop flows that depend on the local dashboard
Do not report a browser regression unless you have code evidence or observed behavior. Lack of a runnable browser environment is not itself a defect.
KiCad MCP Pro MCP server
If a KiCad MCP Pro server is configured in repository Copilot settings and the PR
changes KiCad-facing behavior, .kicad_* fixtures, validation logic, or project
inspection behavior, use it only when it adds concrete evidence.
Prefer the bounded read-only/default review surface and inspection/validation tools such as:
kicad_get_project_infokicad_get_versionproject_quality_gateschematic_quality_gatepcb_quality_gaterun_ercrun_drcpcb_get_board_summarysch_get_symbols
During code review, do not invoke write, destructive, manufacturing, export, or mutation tools. Never change a user's board or schematic as part of review.
3. Architecture review
KiCad MCP Pro has a five-layer design. Preserve the boundaries described in
ARCHITECTURE.md.
KiCad adapter seam
Flag changes that bypass the KiCad adapter seam or spread KiCad-version fragility into pure domain code.
KiCad-facing behavior belongs behind the established seams, including:
src/kicad_mcp/kicad/src/kicad_mcp/connection.pysrc/kicad_mcp/ipc/src/kicad_mcp/discovery.py- thin tool adapters that delegate to stable domain/services
Pure deterministic logic should remain testable without KiCad and should not import KiCad-specific runtime internals unnecessarily.
Composition roots
For tool registration and validation composition:
- keep
register()and_register_*helpers focused on wiring; - do not add new business logic directly to large registration/composition roots;
- preserve the repository's architecture-boundary checks;
- prefer typed domain services plus thin MCP adapters.
Real-state rule
The server must not invent board, schematic, DRC/ERC, manufacturing, or KiCad state. Behavior should be based on real KiCad engines, real project files, or explicitly documented deterministic/heuristic calculations.
If a calculation is approximate, heuristic, partial, or first-pass, ensure the API, docstring, docs, and verdict communicate that limitation. Do not allow code or docs to present first-order estimates as formal engineering sign-off.
4. MCP tool and public contract review
Treat the MCP surface as a public compatibility contract.
When a tool is added, removed, renamed, reclassified, or its schema/behavior changes, check the relevant contract surfaces:
- implementation in the appropriate domain/tool module;
TOOL_CATEGORIESand profile membership insrc/kicad_mcp/tools/router.py;- experimental classification when applicable;
- tool annotations/metadata in
src/kicad_mcp/tools/metadata.py; - read-only/destructive/headless/requires-KiCad semantics;
- operating-mode restrictions;
- generated tool documentation;
- tool-surface snapshots and contract tests;
- profile/toolset/adapter/compatibility matrices when affected.
Flag any change that silently exposes mutating or destructive behavior through a read-only/default review surface.
Preserve stable error behavior. Agent-visible failures should use the repository's typed error model and stable error codes rather than leaking raw implementation exceptions or ambiguous strings.
For transport/protocol changes, review:
- MCP initialization and protocol compatibility;
stdioand Streamable HTTP behavior;- session/header behavior;
- discovery endpoints;
- backward-compatibility implications;
- explicit handling of unsupported client/KiCad capabilities.
5. Security review
Security findings take priority over style or convenience.
Subprocess and command execution
Flag:
shell=True;os.system,os.popen, or equivalent shell execution in production paths;- string-built shell commands containing user-controlled data;
- untrusted values interpreted as CLI flags unintentionally;
- missing error handling around subprocess boundaries.
KiCad CLI calls should use discrete argv elements with shell=False.
Filesystem and path safety
Treat MCP/tool arguments, project paths, filenames, output paths, and imported artifact names as attacker-controlled.
Check for:
- canonicalization before access;
- confinement to the project/workspace root;
..traversal;- absolute-path escapes;
- symlink escapes;
- Windows drive/UNC path edge cases;
- unsafe file extensions where an allowlist is expected;
- TOCTOU risks before destructive mutations.
Security-sensitive filesystem/subprocess changes need negative tests for hostile inputs and failure paths.
HTTP and local service boundaries
For Streamable HTTP, dashboard, bridge, or auth changes, verify the intended local and authentication boundaries are preserved, including:
- bearer-token enforcement when configured;
- origin validation;
- CORS allowlists;
- localhost-only assumptions where required;
- stateful/stateless session policy;
- no silent re-enabling of deprecated/legacy exposure.
Secrets and private design data
Flag code, tests, logs, fixtures, screenshots, or workflow artifacts that can expose:
- credentials or API tokens;
- private board/schematic data;
- generated Gerbers/netlists/manufacturing files;
- customer-specific paths or logs.
Destructive behavior
Any destructive or KiCad-mutating operation must be explicit, policy-gated, test-covered, and documented. A convenience path must not bypass operating-mode or human-approval boundaries.
GitHub Actions
For .github/workflows/**, check:
- third-party actions are pinned to full commit SHAs;
- default permissions remain least-privilege;
- write permissions are scoped to the job that needs them;
- untrusted GitHub expressions are passed through
env:before shell use; - PR-controlled values do not reach shell commands unsafely;
- release credentials use GitHub/OIDC/trusted-publishing patterns where applicable;
- artifact, checksum, SBOM, signing, and attestation steps are not weakened silently.
If a public PR introduces a sensitive vulnerability, explain the fix-relevant risk
without publishing weaponized exploit details, secrets, or private data. Follow
SECURITY.md for disclosure handling.
6. Testing and regression review
Behavior changes require evidence at the narrowest useful layer.
Check the repository's testing policy:
- pure Python logic -> unit tests and type checks;
- KiCad artifact parsing -> representative fixture tests;
- MCP tool contract changes -> metadata/generated-doc checks and surface/contract tests;
- filesystem/subprocess changes -> hostile-input and failure-mode tests;
- bug fixes -> regression test when reproducible;
- workflow/release changes -> workflow-security and dry-run/metadata checks;
- docs-only changes -> docs/link-sensitive review rather than unrelated runtime tests.
For tests that create or mutate Git repositories, verify test-owned temporary directories and isolated Git configuration are used so contributor/system hooks and configuration cannot leak into fixtures.
Do not demand live KiCad execution for logic that is deliberately unit-testable without KiCad. Conversely, do not accept mocked-only evidence when the change specifically depends on a live KiCad integration contract and the repository has a dedicated KiCad-enabled CI path for it.
7. Generated files and canonical metadata
Identify the source of truth before commenting on generated surfaces.
Important repository rules include:
pyproject.tomlis a canonical package metadata/version source;compatibility.yamlis a canonical KiCad/MCP support-policy source;server.jsonand several public surfaces are generated/synchronized;- generated tool docs, parity/toolset/profile/adapter outputs should be regenerated from their canonical inputs rather than hand-edited.
Flag generated drift, but do not ask contributors to hand-edit generated files when the repository generator is authoritative.
8. Packaging, release, and desktop review
For Python/npm/container/release changes, check:
- package metadata remains internally consistent;
- npm wrapper behavior/version policy does not drift from the Python package contract;
- lockfile changes match dependency changes;
- release checks still run before publishing;
- trusted publishing / provenance controls are not bypassed;
- public compatibility claims match
compatibility.yaml; - generated registry/container metadata stays synchronized.
For Tauri/desktop changes, also review:
- backend/frontend version compatibility and startup handshake;
- local server lifecycle and port/bind assumptions;
- permission/capability changes;
- error handling when the backend cannot start or does not match;
- user-visible flows with web/GUI tests when practical.
9. Focused validation commands
Prefer the smallest relevant validation set. Use CI evidence instead of re-running a check only when the reviewed head commit already ran the same check successfully.
Baseline Python/server changes
corepack pnpm run format:check
corepack pnpm run lint
corepack pnpm run typecheck
corepack pnpm run test:unitPublic MCP/tool/metadata/compatibility changes
corepack pnpm run metadata:check
corepack pnpm run docs:tools:check
corepack pnpm run tool-contracts:check
corepack pnpm run architecture:check
corepack pnpm run profiles:check
corepack pnpm run adapter-matrix:check
corepack pnpm run compat:checkWorkflow/security changes
corepack pnpm run workflows:lint
corepack pnpm run workflows:securityPackage/release changes
corepack pnpm run package:check
corepack pnpm run release:dry-runDashboard changes
task test:webUse Playwright-backed tests when the environment supports them and the change is user-visible.
Cross-boundary changes
Use task verify for the repository's local quality gate. Use task ci only when the
change crosses enough package, compatibility, workflow, security, or release boundaries
to justify the full local CI equivalent.
Do not make "run the entire suite" the only review recommendation when a specific, smaller regression test would prove the issue.
10. Finding quality bar
Write a review finding only when all of the following are true:
- The issue is introduced or made materially worse by the PR.
- There is a concrete failure mode, security risk, compatibility break, or maintenance hazard.
- The affected scenario is realistic for this repository.
- The comment can point to the smallest relevant changed range.
- The author can act on the feedback.
For each finding:
- state the problem first;
- explain the trigger/scenario;
- explain the impact;
- cite concrete code/CI/MCP evidence when available;
- give a focused fix direction;
- mention the missing test only when a test would materially prevent regression.
Use severity proportional to impact:
- Blocker: vulnerability, data loss, unsafe mutation, release/supply-chain break, major public-contract break, or a deterministic build/runtime failure.
- Major: likely user-facing correctness, compatibility, protocol, or regression risk.
- Minor: concrete maintainability or test gap with plausible future impact.
- Omit pure style nits and speculative suggestions.
Avoid duplicate comments for the same root cause. Prefer one precise finding that covers the causal defect.
11. Do not flag these by default
Do not create review comments solely because:
- code could be written in a different style;
- a formatter/linter would already catch it;
- generated output changed together with its canonical source;
- a documentation-only change lacks unrelated runtime tests;
- a full
task cirun is absent but the relevant focused checks passed; - the code uses an intentional project pattern documented in
ARCHITECTURE.md; - a theoretical edge case has no realistic path from repository inputs.
The goal is a review that maintainers can trust: few comments, high confidence, clear impact, and repository-specific evidence.
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.

