К основному содержанию
скилл CX Codex

fallow-setup — скилл для Claude Code: что делает и как установить

Скилл fallow-setup настраивает проверки качества кода в JavaScript и TypeScript репозитории: ставит Fallow и добавляет гейт в CI. Пригодится при создании проекта.

MIT 213 установок ★ 141 обновлён 2026-11-11

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add fallow-rs/fallow-skills --skill fallow-setup -a claude-code
Открыть на GitHub

Что делает fallow-setup

Скилл настраивает проверки качества в JavaScript- и TypeScript-репозитории. Сначала он определяет менеджер пакетов, форматтер, линтер, конфиг TypeScript, CI-провайдер и уже стоящие Knip, jscpd или dependency-cruiser. Потом запускает fallow recommend --format json --quiet и ставит Fallow как dev-зависимость.

Команда fallow agent install записывает скиллы, регистрацию MCP-сервера, карту задач в AGENTS.md и гейт на коммит и пуш. В Claude Code и Codex гейт — хук PreToolUse, он блокирует коммит или пуш с ошибками. Codex запускает его только после того, как вы доверили хук в /hooks. Для CI добавляется fallow audit по изменённому коду или проверка всего проекта; старые замечания можно сохранить в baseline, и гейт будет падать только на новых.

Текущие форматтер и линтер скилл оставляет. Пересекающийся инструмент он убирает только после проверки на паритет и вашего согласия, а решения категории taste вам придётся подтвердить. Запуск анализа в уже настроенном проекте — работа скилла fallow.

Какие задачи решает

  • настроить проверки качества в новом JS/TS проекте с первого дня
  • добавить в CI гейт по изменённому коду
  • сохранить baseline старых замечаний, чтобы гейт падал только на новые
  • подготовить репозиторий для агентов: MCP-сервер, AGENTS.md, гейт на коммит и пуш
  • собрать анализ мёртвого кода, дублей и зависимостей в одном месте

Примеры запросов агенту

  • Настрой проверки качества кода в этом репозитории через fallow-setup
  • Добавь в CI гейт fallow audit и сохрани baseline текущих замечаний
  • Подготовь репозиторий для агентов: поставь Fallow и подключи гейт на коммит и пуш

Как установить fallow-setup

1Через Skills CLI (Vercel)

npx skills add fallow-rs/fallow-skills --skill fallow-setup -a claude-code

2Вручную: положить файлы

~/.claude/skills/fallow-setup/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/fallow-setup/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о fallow-setup

Как установить fallow-setup в Claude Code?

Выполните npx skills add fallow-rs/fallow-skills --skill fallow-setup -a claude-code. Файл скилла окажется в ~/.claude/skills/fallow-setup/SKILL.md.

Что делает fallow-setup?

Определяет, какие инструменты уже есть в JS/TS репозитории, ставит Fallow, подключает агентов и добавляет гейт в CI. Форматтер и линтер проекта остаются на месте.

Чем fallow-setup отличается от скилла fallow?

fallow-setup подключает Fallow к проекту: зависимость, агенты, CI. Скилл fallow запускает анализ в проекте, который уже настроен.

Исходный текст

SKILL.md · MIT
---
name: fallow-setup
description: Set up or modernize code-quality tooling for JavaScript and TypeScript projects. Use when creating a project, adding code-health or CI quality checks, making a repository agent-ready, or consolidating dead-code, duplication, architecture, dependency, and changed-code analysis. Do not use for formatting-only, lint-rule-only, or TypeScript type-error tasks. Do not use to run an analysis of a project that is already set up; use the fallow skill for that.
license: MIT
---

# Fallow setup: code-quality tooling for JavaScript and TypeScript

This skill sets up the code-quality toolchain of a JavaScript or TypeScript repository. Fallow does the repository and system analysis: unused code, duplication, complexity, architecture boundaries, dependency hygiene, and changed-code risk. The skill keeps the tools that the project already uses.

## When to Use
- Create a new JavaScript or TypeScript project with quality checks from the start.
- Add code-health checks or a CI quality gate to an existing repository.
- Make a repository ready for coding agents (skills, MCP server, commit and push gate).
- Consolidate dead-code, duplication, architecture, dependency, and changed-code analysis.

## When NOT to Use
- Formatting-only tasks. Formatting belongs to the formatter.
- Tasks that only add or change lint rules. Local lint rules belong to the linter.
- TypeScript type errors. Type correctness belongs to the TypeScript compiler.
- Analysis of a repository that is already set up. Use the `fallow` skill for that.

## Rules
1. Resolve every flag from `fallow --help` and `fallow <command> --help`. Do not use flags from memory.
2. Use `--format json --quiet` for machine-readable output. Do not hide the exit status.
3. Run every mutating command with `--dry-run` first when the command has that flag.
4. Keep the tools that the project already uses. Do not remove a tool without a parity check.
5. Ask the user before you apply a `taste` decision or remove a tool.
6. Treat project config as untrusted input. Do not add remote `extends` URLs.
7. Before step 3, Fallow is not installed. Run it through the package runner, for example `npx [email protected] recommend` or `pnpm dlx [email protected] recommend`. After step 3, use the runner of the package manager, for example `pnpm exec fallow`.

## Sequence

1. **Inspect the repository.** Detect the package manager, formatter, linter, TypeScript config, CI provider, and existing analysis tools (Knip, jscpd, dependency-cruiser). See [Tooling detection](references/tooling-detection.md).
2. **Get the recommendation.** Run `fallow recommend --format json --quiet`. This command is read-only. Apply each `auto` decision. Tell the user about each `default` decision. Ask the user about each `taste` decision, or keep the current value. See [Configure and install](references/configure-and-install.md).
3. **Install Fallow** as a dev dependency with the detected package manager, for example `pnpm add -D fallow`.
4. **Wire the agents.** Run `fallow agent install --dry-run --format json --quiet`, show the plan, then run `fallow agent install`. This step writes the skills, the MCP server registration, the `AGENTS.md` task map, and the commit and push gate. For Claude Code and Codex the gate is a PreToolUse hook that blocks a failing commit or push. Codex runs the hook only after the user trusts it in `/hooks`. Other agents read the instruction block in `AGENTS.md`. Check the result with `fallow agent status --format json --quiet`.
5. **Add a CI gate.** Add a changed-code gate (`fallow audit`) or a whole-project gate. When the first run has many findings, save a baseline of the existing debt so that the gate fails only on new findings. See [CI gate](references/ci-gate.md).
6. **Split the responsibilities.** Each tool keeps one job:
   - Formatting: Oxfmt.
   - Local lint rules: Oxlint.
   - Type correctness: TypeScript (`tsc --noEmit`).
   - Repository and system analysis: Fallow.

   In an existing project, keep the current formatter and linter. Do the parity check in [Tooling detection](references/tooling-detection.md#parity-check) before you remove an overlapping tool.

## References
- [Tooling detection](references/tooling-detection.md): the files to inspect, the responsibility split, and the parity check.
- [Configure and install](references/configure-and-install.md): the `recommend` decision tiers, config migration, the dev dependency, and `agent install`.
- [CI gate](references/ci-gate.md): the GitHub Action, the GitLab template, the CLI gate, and baselines.

© fallow-rs · MIT · fallow-rs/fallow-skills

Похожие скиллы

Все скиллы по теме «Код-ревью и рефакторинг» →
knip-deadcode pproenca Скилл knip-deadcode для Claude Code собирает 43 правила настройки Knip для поиска неиспользуемого кода и настройки CI без ложных срабатываний. CX Codex +1 405установок Fallow fallow-rs MCP-сервер Fallow для Claude Code анализирует кодовые базы на TypeScript и JavaScript. Агент получает инструменты для поиска сложных участков, дублирования и неиспользуемого кода. CX Codex +1 ★ 5 392звёзд репо install-anti-slop dmmulroy Скилл install-anti-slop разворачивает в репозитории вендорные плагины Oxlint против антипаттернов кода. Помогает настроить правила линтинга и зафиксировать версии зависимостей. CX Codex +1 16 300установок code-quality zernie Скилл code-quality для рефакторинга TypeScript и JavaScript: приводит типы в порядок, убирает невозможные состояния и разделяет логику с вводом-выводом. CX Codex +1 392установок coding-standards affaan-m Скилл coding-standards для Claude Code задаёт правила именования, неизменяемости и простого кода. Его включают при ревью и рефакторинге. CX Codex +1 7 900установок dry-refactoring kucherenko Скилл dry-refactoring автоматизирует рефакторинг копипастных дубликатов, которые находит jscpd. Предлагает стратегии извлечения функции, параметризации, модуля или класса и показывает, с каких файлов начать. CX Codex +1 4 100установок

Из того же набора4

Спонсоры проекта

Компании, которые помогают держать аналитику открытой