/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.
$ npx -y skills add FrankChen021/datastoria --skill source-code-inspection --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/source-code-inspection
Context preview
The summary Claude sees to decide when to auto-load this skill.
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.
SKILL.md
source-code-inspection.SKILL.mdname: source-code-inspection
description: 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.
metadata:
author: DataStoria
tools: search_file, read_file
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
1. Use `search_file` first to locate relevant files and line numbers before reading content. 2. Use `read_file` only for targeted sections; do not read entire files or large ranges. 3. Prefer narrow, iterative reads: search identifiers, function names, or error strings, then expand only when necessary. 4. Do not claim to have reviewed code that was not loaded with tools in this conversation. 5. 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.
Read more
name: source-code-inspection description: 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. metadata: author: DataStoria tools: search_file, read_file
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
1. Use `search_file` first to locate relevant files and line numbers before reading content. 2. Use `read_file` only for targeted sections; do not read entire files or large ranges. 3. Prefer narrow, iterative reads: search identifiers, function names, or error strings, then expand only when necessary. 4. Do not claim to have reviewed code that was not loaded with tools in this conversation. 5. 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.
The AI-native ClickHouse console for your cluster diagnostics, query generation, evidence-based optimization, intelligent visualization.
Repo: FrankChen021/datastoria
Other skills on datastoria.
- /clickhouse-system-queries
Query ClickHouse system tables to inspect query logs, monitor cluster health, check replication status, and analyze slow queries. Use when the user mentions "system tables", "query_log", "ClickHouse monitoring", "cluster status", "slow queries", or asks to diagnose ClickHouse
Open skill - /diagnose-clickhouse-clusters
Diagnose ClickHouse cluster health and provide concrete remediation.
Open skill - /diagnose-clickhouse-errors
Diagnose ClickHouse runtime query failures when the user wants database-level cause and fix guidance from an error or numeric error code, not source-code root cause analysis.
Open skill - /optimize-clickhouse-sql
Optimize slow queries, analyze SQL performance, and collect evidence for expensive workloads.
Open skill - /sql-expert
Expert system for generating, validating, and optimizing ClickHouse SQL. Use this when the user needs data, queries, or analysis.
Open skill - /visualization
Rules for charts and visualization. Use when the user asks for charts, graphs, plots, or visual representations (line, bar, pie, timeseries).
Open skill

