mcpbeat

Source Code Inspection

frankchen021/source-code-inspection

Investigate application or repository source code with search_file and read_file to explain behavior, trace root causes of runtime or query errors, and answer with precise file citations.

452 tokens
context cost
the whole folder, loaded on every use
1
files
instructions only
0
copies elsewhere
how many repositories repackaged it
325
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/FrankChen021/datastoria --skill source-code-inspection

The instruction itself

4 sections, as written by the author

When To Use

Use this skill when the user wants to:

  • investigate source-code causes of runtime failures or query errors
  • trace where SQL, configuration, or request parameters were built in code
  • find the code path that led to an error such as UNKNOWN_TABLE
  • explain behavior with file-cited evidence from the repository

Workflow

  • Use search_file first to locate relevant files and line numbers before reading content.
  • Use read_file only for targeted sections; do not read entire files or large ranges.
  • Prefer narrow, iterative reads: search identifiers, function names, or error strings, then expand only when necessary.
  • Do not claim to have reviewed code that was not loaded with tools in this conversation.
  • If no matches found, refine the search and retry before giving up.

Citation Format

Always use this exact format for source-file citations:

  • [[file:path/to/file.ts]]
  • [[file:path/to/file.ts#L12]]
  • [[file:path/to/file.ts#L12-L34]]

Use repo-relative paths and line anchors whenever possible. Do not use normal markdown links for source-code citations.

Do not wrap file citation tokens in backticks, inline code, or fenced code blocks in your final answer. Use them as plain citation tokens in normal prose or list items so the UI can render them as clickable links.

Response Style

  • Keep answers concise and evidence-based.
  • Tie each claim to one or more file citations.
  • If the code path is unclear or partially inspected, say so explicitly.

How to use it

Copy the folder

Take frankchen021/source-code-inspection from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.