analyze
Deep static analysis (dead code, duplication, circular deps, complexity) via fallow + claude -p subprocess
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Deep static analysis (dead code, duplication, circular deps, complexity) via fallow + claude -p subprocess
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Read and write the second brain — a git-backed Obsidian vault at ~/SourceRoot/brain (PARA structure + a top-level wiki/ knowledge tree). Use whenever the user mentions "brain", "second brain", "knowledge base", "note", "remember", "look up", "find note", "capture", "wiki", or "okf". Also use for any request to save, retrieve, or organize personal knowledge that belongs in the brain rather than in a repo-specific doc.
Write, draft, and polish prose through a human-owned 7-step pipeline. Use whenever the user says "distill", "write article", "draft", "summarize into", "create content", "synthesize", or "publish". Also use for any task where the output is a piece of long-form writing — the pipeline keeps prose quality out of coding sessions.
RETIRED — manage the (now decommissioned) per-machine mlx-audio TTS/STT stack; TTS/STT moved to the cloud audio-gateway (VPS)
Operate the Mac mini remote dev host — connecting from the MacBook over mosh or herdr --remote, running and reattaching many Claude Code agents, herdr workspaces/panes and its socket API, claude --bg durable daemons, the Uptime Kuma readiness heartbeat, and the failure modes specific to a headless always-on Mac. Use when the user mentions herdr, mosh, the mini, "remote dev", "dev host", detaching or reattaching agents, "did my agent survive", sessions dying on lid-close, or asks how to reach a dev server running on the mini.
Manage the personal image stack — public CDN uploads/transform URLs and the private image-share layer. Use whenever an image needs a URL (public or private) for an article, blog post, vault note, README, OpenGraph tag, or a one-off share; or when the user says "upload this image", "share this image", "private image", "publish image", "host this screenshot", "get me a CDN link", "resize this", mentions "image-share", or asks where an image lives.
Bidirectionally sync ALL git repos across two machines — this MacBook and the always-on Mac mini — over SSH, using GitHub/GitLab as the transport. Commits and pushes uncommitted work on both sides, then rebases/fast-forwards each so they converge, with per-repo subagents resolving rebases and merge conflicts. This is a MULTI-repo, TWO-machine operation — distinct from /commit, /ship, or /git-cleanup, which act on a single repo. Use whenever the user wants to sync their machines/repos, "catch up" the laptop to the Mac mini or push laptop work back, is about to travel or just got back, has uncommitted work scattered across many repos, or wants to reconcile branches that diverged between the two machines. Trigger even on a bare "sync", "sync my machines", or "get my repos up to date".
| name | analyze |
| description | Deep static analysis (dead code, duplication, circular deps, complexity) via fallow + claude -p subprocess |
Runs fallow static analysis in a claude -p subprocess. Only the findings report returns to main context.
Fallow is a Rust-native project-graph analyzer. It operates at the whole-project dependency graph level — catching what linters cannot: exports nobody imports across the entire codebase, packages in package.json that nothing references, circular imports, code duplication, and complexity hotspots. It replaces knip + jscpd + dependency-cruiser in a single binary.
Always run via claude -p. Never execute inline. Never use the Agent tool.
If the API key lookup fails, report the error — do not fall back to inline execution.
/analyze # Full analysis — dead code + dupes + health
/analyze dead # Dead code only (unused exports, deps, circular)
/analyze dupes # Duplication only
/analyze health # Complexity hotspots only
/analyze web # Scope to monorepo workspace named "web"
Single bash command — mktemp ensures no collision if run in parallel:
TMPFILE=$(mktemp /tmp/claude-analyze-XXXXXX)
cat > "$TMPFILE" << 'PROMPT_END'
Run fallow static analysis in the current directory.
## Fallow CLI Reference
fallow # All analyses (dead-code + dupes + health) fallow dead-code # Unused exports/files/deps + circular deps (alias: fallow check) fallow dupes # Code duplication detection fallow health # Complexity hotspots + maintainability scores
Key flags: --format json # Machine-readable output (use this) --format compact # Terse one-line-per-issue output --workspace # Scope to one monorepo package (matches package.json "name") --changed-since # Only files changed since git ref (e.g. main, HEAD~1) --production # Exclude test/story/dev files --summary # Print one-line issue count, then exit --only check,dupes,health # Run specific analyses when using bare fallow
JSON output shape:
```json
{
"issues": [{ "type": "...", "file": "...", "symbol": "...", "severity": "error|warn", "message": "..." }],
"summary": { "total": 0, "errors": 0, "warnings": 0 }
}
Issue types: unused-file, unused-export, unused-type, unused-dep, unresolved-import, circular-dep, duplicate, complexity-hotspot
First check if .fallowrc.json exists in the project root — it configures entry points and ignore patterns. If present, fallow uses it automatically.
Run analyses based on SCOPE argument:
Commands to run (npx downloads the fallow binary automatically if not installed):
# Full analysis
npx fallow --format json 2>/dev/null
# OR individual analyses for targeted reporting
npx fallow dead-code --format json 2>/dev/null
npx fallow dupes --format json 2>/dev/null
npx fallow health --format json 2>/dev/null
# Scoped to workspace
npx fallow dead-code --workspace web --format json 2>/dev/null
# Changed files only (useful during active development)
npx fallow dead-code --changed-since main --format json 2>/dev/null
Parse each JSON result. If fallow reports no .fallowrc.json and is unable to detect entry
points, note this in the report and suggest running npx fallow init.
Dead code (fallow dead-code):
Duplication (fallow dupes):
Complexity (fallow health):
Recommendations:
Prioritize actionable findings. Skip sections with zero issues. If all clean, say so.
SCOPE: [SCOPE] PROMPT_END claude_bridge --model DeepSeek-V4-Flash --dangerously-skip-permissions < "$TMPFILE" rm -f "$TMPFILE"
`claude_bridge` (from `~/.zsh/conf.d/claude.zsh`) runs `claude -p` through the local
LiteLLM bridge to DeepSeek-V4-Flash (the fast tier, EU/GDPR on Azure Spain) off Max
quota (IU per-token). The bridge needs no web access — analysis is pure `npx fallow`
+ Bash — so the no-WebSearch/WebFetch constraint doesn't bite. If the bridge is down
it errors with a `make litellm-restart` hint; do not fall back to inline execution.