一键导入
find
Agent-assisted read-only structural search. Executes tree-sitter AST queries over a codebase and returns matched captures without modifying any files.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Agent-assisted read-only structural search. Executes tree-sitter AST queries over a codebase and returns matched captures without modifying any files.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Growth-weighted complexity hotspots per file (Tornhill "Your Code as a Crime Scene", 2015). Composes `ccx` (complexity) with `git log --numstat` (LOC change volume) and ranks files by hotspot score = sum_ccx × max(0, loc_delta). Files are classified into four quadrants — hotspot, stable_complex, churning_simple, calm — based on 75th-percentile cutoffs on both axes. Default time window is 14 days — tuned for agentic code generation where architectural damage from file growth accumulates in days, not months. Read-only. Requires git. Language coverage inherits from ccx.
Meta-skill for agent discovery and skill routing. Returns the structured capability registry for all aux skills so agents can select the right skill, understand composition patterns, and bootstrap with no prior context.
Cyclomatic Complexity (McCabe 1976) and Cognitive Complexity (Campbell 2018) per function across a codebase, computed in a single tree-sitter AST traversal per file. Language-agnostic — supports Python, JavaScript, TypeScript, Go, Rust, and Java on day one. Classifies functions into zones: simple, moderate, complex, untestable. Read-only. No regex text-tier fallback — files that fail to parse are reported as errors and skipped.
Semantic git diff skill. Surfaces what has changed since a git ref — files modified, line counts, and symbols added/removed (requires tree-sitter). Attacks accumulated session drift: shows exactly what changed and what symbol-level API surface was affected. Read-only.
Module dependency graph skill. Builds an import graph from source files, computes per-file coupling metrics (afferent Ca, efferent Ce, instability), and detects import cycles. Read-only. AST extraction via tree-sitter is the default; a text-tier regex fallback runs when AST extraction is unavailable for a specific file.
Tiered dead code candidate audit. Enumerates symbols and modules with zero detected external references and emits advisory output for human verification. Never acts autonomously — all candidates require deeper-dive investigation via `aux usages` before any action is taken.
| name | find |
| license | MIT |
| description | Agent-assisted read-only structural search. Executes tree-sitter AST queries over a codebase and returns matched captures without modifying any files. |
| metadata | {"author":"Jordan Godau","version":"0.1.0","references":["references/01_SUMMARY.md","references/02_INTENT.md","references/03_POLICIES.md","references/04_PROCEDURE.md"],"scripts":["scripts/skill.sh","scripts/skill.ps1"],"keywords":["find","tree-sitter","ast","search","structural","code-analysis"]} |
Do not read reference files directly. Run
./scripts/skill.sh initto load all references in a single call.
./scripts/skill.sh init and follow the instructions.