kmshihab7878/claude-code-setup/socraticode-preflight
Claude Code and agent skill by kmshihab7878/claude-code-setup
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Run SocratiCode-assisted exploration before broad Read/Grep on a non-trivial code task. Falls back gracefully to code-review-graph MCP when SocratiCode isn't installed. Used implicitly by /ship, /audit-deep, /fix-root, /review.
Install
npx vskill@latest install kmshihab7878/claude-code-setup/socraticode-preflightSKILL.md
socraticode-preflight — Code-aware exploration first
Optional preflight that swaps blind grep/Read for AST-aware search before any non-trivial code work. When SocratiCode isn't installed, falls back tocode-review-graphMCP (already live). When neither is available, falls back to native tools.
When to use
- Before
/shipon any change > 1 file - Before
/audit-deepon any module - Before
/fix-rooton any bug whose call-path isn't obvious - Before any refactor that crosses file boundaries
When NOT to use
- Single-file edits with known scope
- Doc-only changes
- Quick "what does X do" lookups in a known file
Preflight algorithm
- Detect tooling (in this order):
- SocratiCode CLI present?
which socraticode→ use it code-review-graphMCP responding? → usequery_graph_tool,get_impact_radius_tool,semantic_search_nodes_tool- Neither → fall back to
Grep+Readand document the fallback in the calling skill's output
- Establish what changes / what's being investigated:
- Files touched (from git status, or explicit user input)
- Symbols / functions involved
- Domain area in
domains/if classified
- Run the preflight queries (whichever tool is available):
- Search for prior implementations of similar patterns
- Graph / dependency — what depends on the touched files
- Impact — blast radius of the proposed change
- Call-flow — for bugs only, trace from symptom backwards
- Surface results to the calling skill in a compact form:
`` Touch points: <files> Direct dependents: <count> Indirect dependents (depth 2): <count> Likely impact zones: <areas> Similar patterns elsewhere: <list> ``
- Recommend — proceed / split / abandon — based on impact size:
- Impact < 5 files → proceed
- Impact 5-20 files → recommend splitting
- Impact 20+ files → recommend abandoning and reframing
Inputs
- Files / symbols / area to analyse
- (Optional) the change description
Outputs
- Compact preflight summary (above)
- Recommendation
- Tool used (so the caller can document the fallback)
Hard rules
- MUST detect tooling before assuming SocratiCode exists
- MUST NOT block if all three tools are absent — return a "no preflight available" verdict and let the caller decide
- MUST log which tool was used in the calling skill's output
Failure modes
| Symptom | Cause | Fix | |
|---|---|---|---|
| SocratiCode times out on first run | Indexing the repo for the first time | Patience — subsequent runs are fast | |
code-review-graph returns stale results | Index out of date | Run mcp__code-review-graph__build_or_update_graph_tool | |
| Preflight says "20+ impacted files" but caller proceeds anyway | Tool is advisory; operator overrode | Log the override; flag in next /audit if it happens repeatedly |
Reference files
docs/SOCRATICODE.md— install + protocol- CLAUDE.md § Active MCP Servers — what's live now
code-review-graphMCP server instructions (loaded as MCP server context at session start)
Improvement loop
After each preflight:
- Did the recommendation match what the operator did? If override → log
- Did the implementation hit unexpected files? If yes → impact analysis underestimated; tune
- Was the preflight slower than the work it saved? If yes → skip preflight for this task class in future
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/socraticode-preflight/SKILL.md
Popularity
- Repository stars
- 6
- Repository forks
- 1
- 7-day trend score
- 10
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/kmshihab7878/claude-code-setup/socraticode-preflight)