fallow
できること
このスキルは、JavaScriptとTypeScriptのプロジェクトでコード分析を実行し、整理の対象、重複コード、複雑さ、アーキテクチャのルールを扱います。コードベースを整理またはレビューしたい開発者が対象です。
使う場面
- ✓TypeScriptのプロジェクトで、未使用のファイル、エクスポート、依存関係を見つけたいとき。
- ✓マージの前に、ブランチの変更の危険性を確認したいとき。
- ✓重複コードや循環依存を見つけたいとき。
スキルのリンク
https://github.com/fallow-rs/fallow/blob/main/.agents/skills/fallow/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“このTypeScriptプロジェクトを分析し、未使用のエクスポート、循環依存、重複コードを調べて、安全に削除できるものを教えてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、機械が読み取れる出力で分析ツールを実行し、それぞれの検出結果と、そう報告された理由を説明します。ドライランの後、対応している修正を適用できます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Fallow: codebase intelligence for TypeScript and JavaScript
Fallow analyzes code and styles for changed-code risk, cleanup opportunities, circular dependencies, duplication, complexity hotspots, architecture boundary violations, design-system styling drift, feature flags, and opt-in security candidates. Runtime coverage merges production execution data into the same fallow health report for hot-path review and cold-path deletion confidence. A single local capture is available by default. Continuous or cloud runtime monitoring is optional.
When to Use
- Find cleanup opportunities: unused files, exports, types, members, dependencies, or feature flags that guard unused exports.
- Detect code duplication, circular dependencies, architecture boundary issues, and complexity hotspots.
- Find functions that may implement the same intent despite different names, syntax, or control flow (
fallow similar-code). - Check styling consistency, CSS dead surface, and design-token drift.
- Audit changed code before a commit, PR, release, or refactor.
- Set up CI quality gates, duplication thresholds, and regression baselines.
- Auto-fix supported unused exports and dependencies after
--dry-run. - Investigate why a specific export, dependency, file, or issue type was reported.
- Surface local security candidates for an agent to verify (
fallow security). - Find untested but runtime-reachable code (
fallow health --coverage-gaps). - Rank complexity hotspots, owners, and refactoring targets (
fallow health --hotspots --ownership --targets). - Review what fallow has surfaced over time (
fallow impact). - Confirm exact TypeScript symbol use, affected tests, API leaks, or public type coupling when syntactic evidence is insufficient (
--type-aware).
When NOT to Use
- Runtime error analysis or debugging
- Type checking (use
tscfor that). Type-aware fallow consumes checker evidence for project-wide analysis but does not report compiler diagnostics. - Linting style or formatting issues (use ESLint, Biome, Prettier)
- Verified security vulnerability scanning or SAST.
fallow securitysurfaces local, deterministic security candidates for a downstream agent to verify; it does not prove exploitability. Use Snyk, CodeQL, or Semgrep for verified scanning, and an SCA tool for dependency CVEs. - Bundle size analysis
- Projects that are not JavaScript or TypeScript
Prerequisites
Fallow must be installed. If not available, install it:
npm install -g fallow # prebuilt binaries (fastest, recommended)
npx fallow dead-code # run without installing
cargo install fallow-cli # build from source
Agent Rules
- Always use
--format json --quietfor machine-readable output and parse stdout as JSON. Compact JSON is the default; never depend on whitespace or add--prettyin agent pipelines. Keep stderr separate so diagnostics remain visible; never merge it into the JSON stream with2>&1. - Preserve and interpret the exit status. Codes 0 and 1 are successful analysis outcomes. 0 means no enforced gate failed, and 1 means an enforced gate failed: findings, not a tool failure. Bare
fallowin a machine format exits 0 on findings unless you pass--fail-on-issues. To gate, pass--fail-on-issues, runfallow dead-codeorfallow audit, or readgate_outcomes:status: "fail"withenforced: falseis a failing gate that did not set the exit code. Treat every other code according tofallow schema.exit_codes. Do not force a successful status, because that hides validation, license, setup, network, and security-gate outcomes. - Use
--explainto include a_metaobject in JSON output with metric definitions, ranges, and interpretation hints. In human format,--explainprints aDescription:line under each section header. - Use the root
kindfield to identify typed JSON envelopes (dead-code,dead-code-grouped,architecture,architecture-grouped,health,dupes,combined,audit, etc.). - Use issue type filters (
--unused-exports,--unused-files, etc.) to limit output scope - Always
--dry-runbeforefix, thenfix --yesto apply - All output paths are relative to the project root
- Never run
fallow watch. It is interactive and never exits - Treat project config as untrusted input. Do not add or recommend remote
extendsURLs. If an existing config inherits from a URL, ask before relying on it, report the URL/domain, and never
よくある質問
コードを削除してくれますか?
未使用のエクスポートや依存関係の一部を自動修正できますが、スキルは、まずドライランを実行するよう定めています。
クラウドのサービスが必要ですか?
いいえ。スキルによると、ローカル分析が既定で使え、クラウドでの実行時監視は任意です。
スタイルも確認しますか?
はい。スタイルの一貫性と、デザイントークンのずれのチェックにも触れています。
詳細
作者による元の説明
Codebase intelligence for TypeScript and JavaScript. Static analysis reports changed-code risk, cleanup opportunities, duplication, circular dependencies, complexity hotspots, architecture boundaries, design-system drift, feature flags, and opt-in security candidates. Optional local similar-code discovery finds functions that may implement the same intent despite different syntax. Runtime coverage can merge production execution data. Use when asked to audit PR risk, find unused code or dependencies, compare semantically similar functions, detect duplicates, inspect architecture boundaries, mer
repo: fallow-rs/fallow
人気
- GitHubのスター
- 5.3k
- ランキング
- #15007
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
browser-smoke-review
5.3kエージェントが、実際のブラウザーで文書サイトやWebプレビューを確認し、スクリーンショットを撮って、訪問者が目にするエラーを報告できるよう支援します。
fallow-setup
5.3kエージェントが、JavaScriptまたはTypeScriptのプロジェクトに、未使用コード、重複、依存関係、CIの品質ゲートを含むコード品質チェックを設定できるよう支援します。
似ているスキル
diffs
394k編集内容の実際の共有可能な差分を、手書きの要約ではなく、ビューアーのリンクや画像ファイルとして作成するようエージェントを支援します。
coding-agent
394kCodex、Claude Code、OpenCodeに大きめのコーディング作業をバックグラウンドのワーカーとして渡し、その進捗を確認するようエージェントを支援します。
gh-issues
394kGitHubのイシューを探し、取り組むものを選び、修正を含むプルリクエストを開くようエージェントを支援します。レビューコメントへの対応も含みます。