Token导航 LogoToken导航

Agent Skill · 研究检索

fallow(fallow 搜索)

fallow 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

fallow 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为调用外部服务;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 23,509。

总安装 4,252周安装 172GitHub Stars 31下载 1,335核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:fallow(fallow 搜索)
来源仓库:https://github.com/fallow-rs/fallow-skills
仓库路径:skills/fallow
安装命令:
npx skills add https://github.com/fallow-rs/fallow-skills --skill fallow
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/fallow-rs/fallow-skills --skill fallow

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于查找、检索和筛选相关信息,支持 JavaScript/TypeScript 代码库分析。适合在关键词或架构边界驱动下快速定位候选结果与来源线索。需结合原始 README 验证具体实现,注意可能的联网与文件操作。安装前建议确认权限范围和维护状态,防止非预期系统交互。

fallow 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/fallow

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/fallow-rs/fallow-skills --skill fallow;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要调用外部服务,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

fallow 怎么安装?

在终端执行 npx skills add https://github.com/fallow-rs/fallow-skills --skill fallow。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

fallow 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

fallow 需要什么权限?

权限级别是调用外部服务。该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

fallow 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

fallow 用的人多吗?

公开数据是累计安装 4,252 次,近一周安装 172 次,下载 1,335 次,GitHub 31 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

fallow 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
fallow

fallow 搜索 · 本页

4,25231调用外部服务未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Fallow: codebase intelligence for JavaScript and TypeScript

Codebase intelligence for JavaScript and TypeScript. The free static layer finds unused code, circular dependencies, code duplication, complexity hotspots, architecture boundary violations, and feature flag patterns. The optional paid runtime layer (Fallow Runtime) merges production execution data into the same fallow health report for hot-path review, cold-path deletion confidence, and stale-flag evidence. 90 framework plugins, zero configuration, sub-second static analysis.

When to Use

  • Finding dead code (unused files, exports, types, enum/class members)
  • Finding unused or unlisted dependencies
  • Detecting code duplication and clones
  • Checking code health and complexity hotspots
  • Cleaning up a codebase before a release or refactor
  • Auditing a project for structural issues
  • Setting up CI checks for dead code or duplication thresholds
  • Auto-fixing unused exports and dependencies
  • Detecting feature flag patterns (environment gates, SDK calls, config objects)
  • Investigating why a specific export or file appears unused

When NOT to Use

  • Runtime error analysis or debugging
  • Type checking (use tsc for that)
  • Linting style or formatting issues (use ESLint, Biome, Prettier)
  • Security vulnerability scanning
  • 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)
# or
npx fallow dead-code               # run without installing
# or
cargo install fallow-cli        # build from source

Agent Rules

  1. Always use --format json --quiet 2>/dev/null for machine-readable output. The 2>/dev/null discards stderr so progress messages and threshold warnings don't corrupt the JSON on stdout. Never use 2>&1
  2. Always append || true to every fallow command. Exit code 1 means "issues found" (normal), not a runtime error. Without || true, the Bash tool treats exit 1 as failure and cancels parallel commands. Only exit code 2 is a real error (invalid config, parse failure)
  3. Use --explain to include a _meta object in JSON output with metric definitions, ranges, and interpretation hints
  4. Use issue type filters (--unused-exports, --unused-files, etc.) to limit output scope
  5. Always --dry-run before fix, then fix --yes to apply
  6. All output paths are relative to the project root
  7. Never run fallow watch. It is interactive and never exits

Commands

CommandPurposeKey Flags
fallowRun all analyses: dead code + duplication + complexity (default)--only, --skip, --production, --production-dead-code, --production-health, --production-dupes, --ci, --fail-on-issues, --group-by, --summary, --fail-on-regression, --tolerance, --regression-baseline, --save-regression-baseline, --score, --trend, --save-snapshot
dead-codeDead code analysis (check is an alias)--unused-exports, --changed-since, --changed-workspaces, --production, --file, --include-entry-exports, --stale-suppressions, --ci, --group-by, --summary, --fail-on-regression, --tolerance, --regression-baseline, --save-regression-baseline
dupesCode duplication detection--mode, --threshold, --top, --changed-since, --workspace, --changed-workspaces, --skip-local, --cross-language, --ignore-imports, --fail-on-regression, --tolerance, --regression-baseline, --save-regression-baseline
fixAuto-remove unused exports/deps--dry-run, --yes (required in non-TTY)
initGenerate config file or pre-commit hook--toml, --hooks, --branch
migrateConvert knip/jscpd config--dry-run, --from PATH
listInspect project structure--files, --entry-points, --plugins, --boundaries
healthFunction complexity analysis (also covers Angular templates as synthetic <template> findings: external .html files via templateUrl AND inline @Component({template: \...})literals; suppress external with`at the top of the.htmlfile, suppress inline with// fallow-ignore-next-line complexitydirectly above the@Component` decorator)--complexity, --max-cyclomatic, --max-cognitive, --max-crap, --top, --sort, --file-scores, --hotspots, --ownership, --ownership-emails, --targets, --effort, --score, --min-score, --since, --min-commits, --save-snapshot, --trend, --coverage-gaps, --coverage, --coverage-root, --runtime-coverage, --min-invocations-hot, --min-observation-volume, --low-traffic-threshold, --workspace, --changed-workspaces, --baseline, --save-baseline
auditCombined dead-code + complexity + duplication for changed files--base, --production, --production-dead-code, --production-health, --production-dupes, --workspace, --changed-workspaces, --ci, --fail-on-issues, --explain, --dead-code-baseline, --health-baseline, --dupes-baseline, --max-crap
flagsDetect feature flag patterns (env vars, SDK calls, config objects)--top
licenseManage the local license JWT for paid features (activate, status, refresh, deactivate)activate --trial --email <addr>, activate --from-file, activate --stdin, status, refresh, deactivate
coverageProduction-coverage workflow helper (paid)setup, setup --yes, setup --non-interactive
schemaDump CLI definition as JSON
configShow the loaded config path and resolved config (verifies which .fallowrc.json is in effect)--path

Issue Types

TypeFilter FlagDescription
Unused files--unused-filesFiles unreachable from entry points
Unused exports--unused-exportsSymbols never imported elsewhere
Unused types--unused-typesType aliases and interfaces
Private type leaks--private-type-leaksExported signatures whose type references a same-file private type
Unused dependencies--unused-depsPackages in dependencies, devDependencies, optionalDependencies, type-only production deps, and test-only production deps
Unused enum members--unused-enum-membersEnum values never referenced
Unused class members--unused-class-membersMethods and properties
Unresolved imports--unresolved-importsImports that can't be resolved
Unlisted dependencies--unlisted-depsUsed packages missing from package.json
Duplicate exports--duplicate-exportsSame symbol exported from multiple modules
Circular dependencies--circular-depsImport cycles in the module graph
Boundary violations--boundary-violationsImports crossing architecture zone boundaries. Presets: layered, hexagonal, feature-sliced, bulletproof
Stale suppressions--stale-suppressionsfallow-ignore comments or @expected-unused JSDoc tags that no longer match any issue
Test-only dependenciesn/aProduction deps only imported from test files (should be devDependencies)

MCP Tools

When using fallow via MCP (fallow-mcp), the following tools are available:

ToolDescription
analyzeFull dead code analysis (unused files/exports/types/dependencies/members + private type leaks + circular dependencies + boundary violations + stale suppressions). Set boundary_violations: true as a convenience alias for issue_types: ["boundary-violations"]. Set group_by to "owner", "directory", "package", or "section" (GitLab CODEOWNERS [Section] headers, with owners metadata per group) to partition results
check_changedIncremental analysis of files changed since a git ref
find_dupesCode duplication detection. Set changed_since to scope to changed files since a git ref
fix_previewDry-run auto-fix preview
fix_applyApply auto-fixes (destructive)
check_healthComplexity metrics, health scores, hotspots, and refactoring targets. Set group_by to owner, directory, package, or section for per-group vital_signs / health_score; SARIF results gain properties.group, CodeClimate issues gain a top-level group field
check_runtime_coverageMerge V8 or Istanbul runtime-coverage data into the health report (paid). Required coverage param (V8 dir, V8 JSON, or Istanbul coverage-final.json). Tuning knobs: min_invocations_hot (default 100), min_observation_volume (default 5000), low_traffic_threshold (default 0.001), max_crap (default 30.0), group_by. Long dumps may exceed the 120s MCP timeout; raise FALLOW_TIMEOUT_SECS. Pick this over check_health when you have a coverage dump.
auditCombined dead-code + complexity + duplication for changed files, returns verdict
project_infoProject metadata. Set entry_points, files, plugins, or boundaries to true to request specific sections
list_boundariesArchitecture boundary zones and access rules. Returns {"configured": false} if no boundaries configured
feature_flagsDetect feature flag patterns (env vars, SDK calls, config objects). Set top to limit results
trace_exportTrace why an export is used or unused (fallow dead-code --trace FILE:EXPORT_NAME --format json). Required file and export_name. Returns file reachability, entry-point status, direct references, re-export chains, and a reason string. Use before deleting a supposedly-unused export
trace_fileTrace all graph edges for a file (fallow dead-code --trace-file PATH --format json). Required file. Returns reachability, exports, imports-from, imported-by, and re-exports. Use to decide whether a file is isolated, barrel-only, or imported by live entry points
trace_dependencyTrace where a dependency is imported (fallow dead-code --trace-dependency PACKAGE --format json). Required package_name. Returns importing files, type-only importers, total import count, used_in_scripts (true when invoked from package.json scripts or CI configs), and is_used (combined import + script signal; mirrors the unused-deps detector so build tools like microbundle or vitest are not falsely flagged as unused). Use before removing a dependency or moving between dependencies and devDependencies
trace_cloneTrace duplicate-code groups at a location (fallow dupes --trace FILE:LINE --format json). Required file and line. Returns the matched clone instance plus every clone group containing it. Supports mode, min_tokens, min_lines, threshold, skip_local, cross_language, ignore_imports. Use to consolidate duplication when you need the exact sibling locations

All tools accept root, config, no_cache, and threads params. The MCP server subprocess timeout defaults to 120s, configurable via FALLOW_TIMEOUT_SECS.

All JSON responses include structured actions arrays on every finding (dead code, health, duplication), enabling programmatic fix application or suppression.

Node.js Bindings

When embedding fallow inside a Node.js process (editor extensions, long-running servers, custom tooling), prefer the NAPI bindings over spawning the CLI. Same analysis engine, same JSON envelopes, no subprocess or JSON parsing overhead.

npm install @fallow-cli/fallow-node
import { detectDeadCode, detectDuplication, computeHealth } from '@fallow-cli/fallow-node';

const deadCode = await detectDeadCode({ root: process.cwd(), explain: true });
const dupes = await detectDuplication({ root: process.cwd(), mode: 'mild', minTokens: 30 });
const health = await computeHealth({ root: process.cwd(), score: true, ownershipEmails: 'handle' });

Six async functions: detectDeadCode, detectCircularDependencies, detectBoundaryViolations, detectDuplication, computeComplexity, computeHealth. Each returns the same JSON envelope the CLI emits for --format json. Rejected promises throw a FallowNodeError with message, exitCode, and optional code, help, context fields that mirror the CLI's structured error surface.

Enum-like fields take lowercase CLI-style literals ("mild", "cyclomatic", "handle", "low"). Write-path commands (fix, init, setup-hooks, license activate, coverage setup) are not exposed; use the CLI for those.

See https://docs.fallow.tools/integrations/node-bindings for the full field reference.

References

  • CLI Reference: complete command and flag specifications
  • Gotchas: common pitfalls, edge cases, and correct usage patterns
  • Patterns: workflow recipes for CI, monorepos, migration, and incremental adoption

Common Workflows

Audit a project for all dead code

fallow dead-code --format json --quiet

Parse the JSON output. It contains arrays for each issue type (unused_files, unused_exports, unused_types, unused_dependencies, etc.) plus total_issues and elapsed_ms metadata. Each issue object includes an actions array with structured fix suggestions (action type, auto_fixable flag, description, and optional suppression comment). For dependency findings, a non-empty used_in_workspaces array means the package is imported elsewhere in the monorepo; treat it as a workspace placement issue and do not auto-remove it.

Find only unused exports (smaller output)

fallow dead-code --format json --quiet --unused-exports

Check if a PR introduces dead code

fallow dead-code --format json --quiet --changed-since main --fail-on-issues

Exit code 1 if new dead code is introduced. Only analyzes files changed since the main branch.

Find code duplication

fallow dupes --format json --quiet
fallow dupes --format json --quiet --mode semantic

The semantic mode detects renamed variables. Other modes: strict (exact), mild (default, syntax normalized), weak (different literals).

Safe auto-fix cycle

# 1. Preview what will be removed
fallow fix --dry-run --format json --quiet

# 2. Review the output, then apply
fallow fix --yes --format json --quiet

# 3. Verify the fix worked
fallow dead-code --format json --quiet

The --yes flag is required in non-TTY environments (agent subprocesses). Without it, fix exits with code 2.

Discover project structure

fallow list --entry-points --format json --quiet
fallow list --plugins --format json --quiet

Shows detected entry points and active framework plugins (91 built-in: Next.js, Vite, Jest, Storybook, Tailwind, PandaCSS, etc.).

Production-only analysis

fallow dead-code --format json --quiet --production

Excludes test/dev files (*.test.*, *.spec.*, *.stories.*) and only analyzes production scripts.

Analyze specific workspaces

# Single package
fallow dead-code --format json --quiet --workspace my-package

# Multiple packages
fallow dead-code --format json --quiet --workspace web,admin

# Glob (matched against package name AND workspace path)
fallow dead-code --format json --quiet --workspace 'apps/*'

# Exclude one workspace from a set
fallow dead-code --format json --quiet --workspace 'apps/*,!apps/legacy'

# Monorepo CI: auto-scope to workspaces containing any file changed since origin/main
# (replaces hand-written --workspace lists that drift as the repo evolves)
fallow dead-code --format json --quiet --changed-workspaces origin/main

Scopes output while keeping the full cross-workspace graph. Patterns are tested against BOTH the package name (from package.json) AND the workspace path relative to the repo root; either match counts. Use !-prefixed patterns to exclude.

--changed-workspaces <REF> auto-derives the set from git diff. It's the CI primitive: point it at the PR base branch (e.g. origin/main) and fallow reports only on workspaces touched by the change. Mutually exclusive with --workspace. A missing ref or non-git directory is a hard error (exit 2) rather than a silent full-scope fallback, so CI never quietly widens back to the whole monorepo.

Scope to specific files (lint-staged)

fallow dead-code --format json --quiet --file src/utils.ts --file src/helpers.ts

Only reports issues in the specified files. Project-wide dependency issues are suppressed. Warns on non-existent paths.

Catch typos in entry file exports

fallow dead-code --format json --quiet --include-entry-exports

Reports unused exports in entry files (package.json main/exports, framework pages). By default, exports in entry files are assumed externally consumed. This flag catches typos like meatdata instead of metadata.

Debug why something is flagged

# Trace an export's usage chain
fallow dead-code --format json --quiet --trace src/utils.ts:myFunction

# Trace all edges for a file
fallow dead-code --format json --quiet --trace-file src/utils.ts

# Trace where a dependency is used
fallow dead-code --format json --quiet --trace-dependency lodash

Migrate from knip or jscpd

# Preview migration
fallow migrate --dry-run

# Apply migration (creates .fallowrc.json)
fallow migrate

# Migrate to TOML (creates fallow.toml)
fallow migrate --toml

Auto-detects knip.json, .knip.json, .jscpd.json, and package.json embedded configs.

Initialize a new config

fallow init              # creates .fallowrc.json, adds .fallow/ to .gitignore
fallow init --toml       # creates fallow.toml, adds .fallow/ to .gitignore
fallow init --hooks      # scaffold a pre-commit git hook
fallow init --hooks --branch develop  # hook using custom base branch

Exit Codes

CodeMeaning
0Success, no error-severity issues
1Error-severity issues found
2Runtime error (invalid config, parse failure, or fix without --yes in non-TTY)

When --format json is active and exit code is 2, errors are emitted as JSON on stdout:

{"error": true, "message": "invalid config: ...", "exit_code": 2}

Configuration

Fallow reads config from project root: .fallowrc.json > fallow.toml > .fallow.toml. Most projects work with zero configuration thanks to 90 auto-detecting framework plugins.

{
  "$schema": "https://raw.githubusercontent.com/fallow-rs/fallow/main/schema.json",
  "entry": ["src/index.ts"],
  "ignorePatterns": ["**/*.generated.ts"],
  "ignoreDependencies": ["autoprefixer"],
  "publicPackages": ["@myorg/shared-lib"],
  "dynamicallyLoaded": ["plugins/**/*.ts"],
  "rules": {
    "unused-files": "error",
    "unused-exports": "warn",
    "unused-types": "off",
    "private-type-leaks": "warn"
  }
}

Rules: "error" (fail CI), "warn" (report only), "off" (skip detection).

Config fields:

  • publicPackages: workspace packages that are public libraries; exports from these packages are not flagged as unused
  • dynamicallyLoaded: glob patterns for files loaded at runtime (plugin dirs, locale files); treated as always-used
  • usedClassMembers: class method/property names that extend the built-in Angular/React lifecycle allowlist with framework-invoked names. Each entry is a plain string (global suppression) or a scoped object {extends?, implements?, members} matching only classes with the given heritage. Use scoped rules for common names like refresh or execute to avoid false negatives on unrelated classes; global strings for unique names like agInit. Example: ["agInit", {"implements": "ICellRendererAngularComp", "members": ["refresh"]}, {"extends": "BaseCommand", "members": ["execute"]}]. An unconstrained scoped rule (no extends or implements) is rejected at load time. Use plugin-level usedClassMembers in a .fallow/plugins/*.jsonc file for library-specific allowlists
  • resolve.conditions: additional package.json exports / imports condition names to honor during module resolution. Baseline conditions (development, import, require, default, types, node, plus react-native / browser under RN/Expo) are always included; user entries prepend ahead of them. Use for community conditions like worker, edge-light, deno, or custom bundler conditions. Example: {"resolve": {"conditions": ["worker", "edge-light"]}}

Inline suppression

// fallow-ignore-next-line
export const keepThis = 1;

// fallow-ignore-next-line unused-export
export const keepThisToo = 2;

// fallow-ignore-file
// fallow-ignore-file unused-export

// Mark as intentionally unused (tracked for staleness)
/** @expected-unused */
export const deprecatedHelper = () => {};

Key Gotchas

  • fix --yes is required in non-TTY (agent) environments. Without it, fix exits with code 2
  • Zero config by default. 90 framework plugins auto-detect. Don't create config unless customization is needed
  • Syntactic analysis only. No TypeScript compiler, so fully dynamic import(variable) is not resolved
  • Function overloads are deduplicated. TypeScript function overload signatures are merged into a single export (not reported as separate unused exports)
  • Re-export chains are resolved. Exports through barrel files are tracked, not falsely flagged
  • --changed-since is additive. Only new issues in changed files, not all issues in the project

For the full list with examples, see references/gotchas.md.

Instructions

  1. Identify the task from the user's request (audit, fix, find dupes, set up CI, migrate, debug)
  2. Run the appropriate command with --format json --quiet
  3. Use filter flags to limit output when the user asks about specific issue types
  4. Always dry-run before fix. Show the user what will change, then apply
  5. Report results clearly. Summarize issue counts, list specific findings, suggest next steps
  6. For false positives, suggest inline suppression comments or config rule adjustments

If $ARGUMENTS is provided, use it as the --root path or pass it as the target for the appropriate fallow command.

平台分布

Codex

38.13%
按下载量换算509

Claude

27.29%
按下载量换算364

Cursor

18.38%
按下载量换算245

Gemini CLI

9.36%
按下载量换算125

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

调用外部服务

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills