fallow

Detect dead code, duplicates, and structural weaknesses in JavaScript and TypeScript codebases.

4|1|Updated Feb 17, 2026
One-click install
npx skills add https://github.com/OpenWaggle/OpenWaggle --skill fallow-openwaggle
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fallow
Source: https://github.com/OpenWaggle/OpenWaggle/tree/main/.agents/skills/fallow
Command: npx skills add https://github.com/OpenWaggle/OpenWaggle --skill fallow-openwaggle

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @fallow-cli/fallow-node, and includes scripts (resource) and references (resource) components.

What problem does it solve?

fallow helps developers identify and eliminate dead code, code duplication, and structural issues, streamlining maintenance.

Core Features & Use Cases

  • Dead Code Detection: Finds unused files, exports, dependencies, and types to reduce bloat.
  • Duplication Detection: Identifies clone code segments to eliminate redundancy.
  • Complexity Analysis: Measures function complexity to improve code readability and maintainability.
  • CI Integration: Automates project hygiene checks within CI pipelines for proactive quality control.
  • Use Case: Automate cleanup of a legacy codebase by detecting unused modules and duplicated code to prepare for refactoring.

Quick Start

Run fallow dead-code --format json --quiet to analyze your project for unused files, exports, dependencies, and more.

Frequently Asked Questions about fallow

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect dead code and unused exports in a TypeScript or JavaScript project?

To detect dead code in a JavaScript or TypeScript project, you can use static syntactic analysis to identify unused files, exports, dependencies, and types without executing the code. Running a command like `fallow dead-code --format json --quiet` outputs a report of unused assets.

What is static analysis for code duplication and how does it find clone code segments?

Static analysis for code duplication scans your source code syntactically to identify clone code segments and eliminate redundancy. It inspects the code structure without execution to pinpoint duplicated logic, helping streamline maintenance and refactoring efforts.

Can I automate codebase health checks and complexity analysis within a CI pipeline?

Yes, you can automate codebase health checks within CI pipelines to proactively control quality. Integrating static analysis into continuous integration workflows measures function complexity and flags structural weaknesses, ensuring code readability during automated builds.

Does fallow work with both TypeScript and JavaScript for finding unused dependencies?

Yes, fallow works with both TypeScript and JavaScript codebases for finding unused dependencies. It leverages static syntactic analysis to detect unused assets, dependencies, and types across your project files to reduce bloat.

What's the best way to prepare a legacy codebase for refactoring?

The best way to prepare a legacy codebase for refactoring is to run automated static analysis to detect unused modules, dead code, and duplicated code segments. This identifies structural issues and bloat, streamlining the cleanup and maintenance process.