code-review
Skill149 starsChanged 5 months agoApache-2.0View on GitHub
Review a PR or working diff against this repo's intent layer (the AGENTS.md hierarchy), toolception pitfalls, and core invariants. Use when reviewing code, auditing a PR, or checking changes before merge in the Financial Modeling Prep MCP server. Triggers on: "review", "code review", "review this PR", "review the diff", "audit", "check this diff", "before merge", "pull request review", "PR review".
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 repository3 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 2 are distinctive, and 3 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.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 54
Always: read the root AGENTS.md (it defines the intent layer and its maintenance rules).
- Very specific: line 83
Trigger: when the diff touches any of: src/toolception-adapters/, src/index.ts (the createMcpServer config), src/endpoints/*.ts …
- Very specific: line 90
Read the installed version from node_modules/toolception/package.json (the version field) with the Read tool.
- Distinctive: line 158
Don't infer request success from HTTP status — FMP returns error bodies with HTTP 200.
- Distinctive: line 186
Do not raise nits that trace to neither a documented rule nor a real defect.
“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 — FMP MCP Server
You are reviewing changes to this repository. This server exposes 253+ read-only
financial-data tools over MCP (HTTP/SSE) using toolception + Fastify. Most of the
load-bearing rules here are non-obvious and live in the intent layer (the
AGENTS.md hierarchy), not in the code. A generic review misses them. Your job is to
catch real bugs and any violation of this repo's documented invariants.
Work through the steps in order. Do not skip step 1 or step 3 — nor step 4 when the diff touches the toolception integration surface.
1. Load behavioral guidelines
Invoke the karpathy-guidelines skill first (via the Skill tool) and review through its
four lenses:
- Surgical changes — every changed line should trace to the PR's stated purpose. Flag drive-by refactors, reformatting, or "improvements" to untouched code.
- Simplicity — flag speculative abstraction, unused config/flexibility, and error handling for impossible states.
- Surfaced assumptions — flag silent decisions where multiple interpretations existed.
- Verifiable success — flag behavior changes that arrive without a test proving them.
2. Scope the diff
Determine what changed.
- Given a PR reference — CI passes it as
owner/repo/pull/N. Extract the numberNand rungh pr diff N(the repo is inferred from the checkout); a full PR URL also works. - Otherwise (local working branch) — diff against
main:
git diff --merge-base main --stat
git diff --merge-base mainList the changed files and collapse them to the source directories touched — that set drives step 3.
3. Load the intent layer (live read — do not rely on memory)
Always read the root AGENTS.md (it defines the intent layer and its maintenance
rules). Then, for each touched directory, read its matching doc. Read the area's FLOW.md
too when one exists. Loading is hierarchical and T-shaped: root + the specific node.
| Changed path | Read |
src/ (startup, index.ts, Fastify wiring) | docs/src/AGENTS.md, docs/src/FLOW.md |
src/api/** | docs/src/api/AGENTS.md |
src/tools/** | docs/src/tools/AGENTS.md |
src/toolception-adapters/** | docs/src/toolception-adapters/AGENTS.md |
src/server-mode-enforcer/** | docs/src/server-mode-enforcer/AGENTS.md |
src/endpoints/** | docs/src/endpoints/AGENTS.md, docs/src/endpoints/FLOW.md |
__tests__/smoke/** | docs/tests/smoke/AGENTS.md |
| Adding a tool/module/tool set | docs/GUIDE.md (the procedure to follow) |
Directories without their own doc (src/constants, src/prompts, src/schemas,
src/types, src/utils) inherit the root AGENTS.md plus the nearest parent that does
have one — review them on general dimensions (step 5) and the invariants in scope.
The rules you cite in findings come from the docs you just read — quote the actual Key Rule / Anti-pattern / Pitfall, do not paraphrase from this skill.
4. Toolception deep-check (only when the diff touches the integration surface)
toolception is the core MCP layer, but node_modules/toolception ships compiled dist/
only — the readable source and the real API contracts live upstream at the public repo
code-rabi/toolception. When the diff touches the integration surface, verify it against the
actual upstream source, not memory.
Trigger when the diff touches any of: src/toolception-adapters/**, src/index.ts (the
createMcpServer config), src/endpoints/*.ts (defineEndpoint), src/prompts/** (the
McpServer.prompt() extension), or bumps toolception in package.json /
package-lock.json.
Fetch the source with gh, pinned to the installed version:
- Read the installed version from
node_modules/toolception/package.json(theversionfield) with the Read tool. The matching tag isv<version>(e.g.v0.6.3). - Pull the relevant source — raw, no base64 decode. Substitute that version into
ref:
gh api -H "Accept: application/vnd.github.raw" "/repos/code-rabi/toolception/contents/src/index.ts?ref=v<version>"
gh api "/repos/code-rabi/toolception/contents/src/<area>?ref=v<version>" --jq '.[].name' # list a dir
gh search code --repo code-rabi/toolception "<symbol>" # locate a symbolOffline fallback for the type contracts: node_modules/toolception/dist/index.d.ts.
Fetch the area that matches the change:
| Diff touches | Fetch from toolception src/ |
createMcpServer config (src/index.ts) | src/index.ts, src/server/**, src/types/** |
startup mode / toolsets (ModeConfigMapper) | src/mode/** |
exposure policy / namespacing / allowlist / maxActiveToolsets | src/permissions/** |
session config / config query param / cache key | src/session/** |
defineEndpoint / custom endpoints / Fastify app | src/http/** |
ModuleLoader / McpToolDefinition shapes | src/types/** |
McpServer.prompt() extension (src/prompts/**) | src/server/** |
| meta-tools (enable/disable/list toolsets) | src/meta/** |
Verify the diff against the fetched contracts:
- The config this repo passes to
createMcpServer(catalog,moduleLoaders,startup{mode, toolsets},context,sessionContext{queryParam},exposurePolicy{namespaceToolsWithSetKey, maxActiveToolsets?, allowlist?},createServer,http) still matches the upstreamCreateMcpServerOptionstype — flag renamed/removed/ retyped keys. ModuleLoaderis still(context?) => McpToolDefinition[] | Promise<McpToolDefinition[]>and theMcpToolDefinitionshape the adapters /ToolCollectoremit still matches upstream.McpServer.prompt()still exists upstream — a runtime extension reached via type cast that silently no-ops if dropped (list_mcp_assetsthen vanishes with no error).- On a
toolceptionversion bump: fetch the new tag's source and re-verify every contract above. Flag any breaking rename/removal/retype (precedent:initialToolsets→toolsetsin 0.5.1).
Don't restate the intent layer — docs/src/toolception-adapters/AGENTS.md and
docs/src/AGENTS.md / FLOW.md already hold this repo's toolception pitfalls; cite them.
Upstream toolception ships its own AGENTS.md files too (e.g. src/session/AGENTS.md) —
fetch them for its documented intent when a change is subtle.
5. Review across dimensions
For each, cite the specific source (file:line for code, and the exact rule from the
loaded AGENTS.md for invariants).
A. General correctness & security. Logic bugs, unhandled edge cases and error paths, secret/token exposure in logs or responses, injection, and obvious performance traps. This makes the skill a complete reviewer, not just an overlay.
B. Intent-layer invariants & toolception pitfalls. Validate the diff against the rules in the docs loaded in step 3. The recurring high-cost ones to anchor on:
- API key travels as the
?apikey=query param — never a header (docs/src/api/AGENTS.md). - Token precedence is Instance (constructor-injected session token) > Environment; don't invert it, and don't reintroduce a per-request "context" tier.
- Tools never throw — handlers return
{ content: [...], isError: true }, message formattedError: ${message}(docs/src/tools/AGENTS.md). - Tool names are globally unique across all modules — a duplicate silently overwrites.
- Toolception integration pitfalls (session cache key, base64
configquery param,MODULE_ADAPTERS↔TOOL_SETSsync, no session-level toolset config) live indocs/src/toolception-adapters/AGENTS.md— and when the integration surface is touched, run the step 4 deep-check against upstream source. - Startup order (
docs/src/AGENTS.md/FLOW.md): thepreHandlerhook is registered beforecreateMcpServer(); a custom Fastify app must callapp.listen(). - Server-mode enforcer:
initialize()precedesgetInstance(); invalid tool sets fail-fast viaprocess.exit(1). - Don't infer request success from HTTP status — FMP returns error bodies with HTTP 200.
C. AGENTS.md sync. The intent layer's own maintenance rule (root AGENTS.md): if the
diff changes behavior documented in an AGENTS.md, that file must be updated in the same
PR. If a touched area's documented rule no longer matches the code and its AGENTS.md is
untouched, flag it. (Also: a new major directory with distinct concerns should add an
AGENTS.md wired into the navigation table.)
D. TypeScript standards. Invoke the typescript-standards skill (Skill tool) and apply
it to the changed .ts files; report what it flags. It covers no-any (prefer unknown),
TSDoc on exports, pure functions / single responsibility, readonly, and preferring
interface — defer to the skill for the exact rules rather than restating them here.
E. Test expectations. Per docs/tests/smoke/AGENTS.md: smoke tests run dist/ so a
build must precede them; responses are SSE (event: message\ndata: {json}) — never parsed
as raw JSON; resetSession() runs between tests (global clientId/sessionId). New tools
or modules should ship with tests.
6. Output
Report high-signal findings only. For each:
- Severity — Blocker / High / Medium / Low.
- Location —
file:line. - Rule — the exact invariant or bug, with its citation (e.g.
docs/src/tools/AGENTS.md → never-throw). - Fix — concrete and minimal.
Do not raise nits that trace to neither a documented rule nor a real defect. If the diff is clean, say so and name what you checked. Group findings by severity, Blockers first.
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.

