# Stack init

> Stack init is an open-source agent skill for developer tools. Bootstraps a project's toolchain, configs, justfile, git hooks and CI in one run. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/zerotechdebt/ffflow/tree/main/plugin/skills/stack-init
- **Repository:** https://github.com/zerotechdebt/ffflow
- **GitHub stars:** 6
- **License:** Apache-2.0
- **Skill name:** stack-init
- **Collection:** https://github.com/zerotechdebt/ffflow
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

Stack-init sets up the tooling a project needs for its declared maturity level. It works in two modes: a fresh setup for an empty project, and an adopt mode for existing codebases that finds gaps and fills them while keeping working configuration intact. Before writing anything it builds a plan of create, update and skip actions and asks for confirmation, with flags for a read-only preview and for skipping per-item prompts on re-runs.

The skill writes stack config files, adds justfile recipes, vendors a doc-staleness script into the project's .ffflow folder, and installs git pre-commit and pre-push hooks and a CI workflow through companion skills. For TypeScript stacks it approves known pnpm build scripts in pnpm-workspace.yaml, and it adds a network-failure hint when dependency installs fail behind a proxy. It seeds short CLAUDE.md files only in directories it creates, and finishes by running the project's check-all recipe.

It expects a .ffflow/config.yaml produced by an init-ffflow step, and it is built around the FFFlow plugin's cartridge system, which supplies the stack-specific templates. Python and TypeScript are the stacks with the most detail in the instructions.

## When your agent uses it

> Bootstrap a stack into a project — install deps, write configs, justfile, git hooks, CI. Level-aware, idempotent, non-destructive on existing projects.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/zerotechdebt/ffflow/tree/HEAD/plugin/skills/stack-init)
- [License: Apache-2.0](https://github.com/zerotechdebt/ffflow/tree/HEAD/plugin/skills/stack-init)

## Features

- **Stack config bootstrap:** Writes stack configuration files such as pyproject.toml or tsconfig.json, adjusted to the declared level.
- **Justfile recipe merging:** Adds level-appropriate recipes and audit checks to a justfile without overwriting customized recipes.
- **Git hooks and CI setup:** Installs pre-commit and pre-push hooks and a CI workflow only where none exist yet.
- **Non-destructive adoption:** In existing projects it asks before changing divergent configs and reports what it skipped.
- **Dry-run and confirm flow:** Shows a plan of proposed changes, with a read-only check mode and a skip-confirmation option.
- **pnpm build-script approval:** For TypeScript projects, pre-approves known toolchain build scripts so pnpm installs succeed.

## Good for

- Set up linting, tests and CI for a new Python project
- Add missing justfile recipes to an existing repository
- Preview what a toolchain setup would change before applying it
- Install pre-commit and pre-push git hooks in a project
- Upgrade a project's setup after raising its maturity level

## Install

### Claude Code

This skill ships in the `fff` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add zerotechdebt/ffflow
/plugin install fff@ffflow
```

Or copy only this skill to `~/.claude/skills/stack-init`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zerotechdebt/ffflow.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/stack-init &&
cp -R "$tmp/plugin/skills/stack-init" ~/.claude/skills/stack-init &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/stack-init` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/stack-init` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zerotechdebt/ffflow.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/stack-init &&
cp -R "$tmp/plugin/skills/stack-init" ~/.agents/skills/stack-init &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/stack-init` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/stack-init` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zerotechdebt/ffflow.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/stack-init &&
cp -R "$tmp/plugin/skills/stack-init" ~/.cursor/skills/stack-init &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/stack-init` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/zerotechdebt/ffflow.git --path plugin/skills/stack-init
```

Or copy the folder to `~/.gemini/skills/stack-init` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/stack-init`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zerotechdebt/ffflow.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/stack-init &&
cp -R "$tmp/plugin/skills/stack-init" ~/.copilot/skills/stack-init &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/stack-init` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/zerotechdebt/ffflow.git
```

Then copy `ffflow/plugin/skills/stack-init` into your agent's skills folder as `stack-init`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What must exist before running stack-init?

A .ffflow/config.yaml file. If it is missing, the skill stops and asks you to run init-ffflow first.

### Will Stack init overwrite my existing configs or justfile?

No. It detects existing configs and recipes, asks before changing divergent settings, and merges new recipes in without replacing custom ones.

### Can I see the changes without writing files?

Yes. The --check flag computes the plan and prints it without writing anything.

### Does Stack init need Node.js?

For TypeScript stacks, pnpm is used. At the highest level, the skill requires npx on the PATH to run the specdrive CLI, even in non-JavaScript projects.

### How do I install Stack init in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/stack-init to use it in all your projects, or to .claude/skills/stack-init in one project. Or install the fff plugin, which includes it: /plugin marketplace add zerotechdebt/ffflow, then /plugin install fff@ffflow.

### Does Stack init run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Stack init?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Stack init?

The closest alternatives to Stack init are Init ffflow, Stack assess, Stack, Adopt ffflow and Justfile.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Init ffflow](https://ai-powered.com/skills/init-ffflow): Init ffflow is an open-source agent skill for developer tools.
- [Stack assess](https://ai-powered.com/skills/stack-assess): Stack assess is an open-source agent skill for developer tools.
- [Stack](https://ai-powered.com/skills/stack-zerotechdebt): Stack is an open-source agent skill for developer tools.
- [Adopt ffflow](https://ai-powered.com/skills/adopt-ffflow): Adopt ffflow is an open-source agent skill for developer tools.
- [Justfile](https://ai-powered.com/skills/justfile): Justfile is an open-source agent skill for developer tools.
- [Ci gates](https://ai-powered.com/skills/ci-gates): Ci gates is an open-source agent skill for developer tools.
- [Setup pstack](https://ai-powered.com/skills/setup-pstack): Setup pstack is an open-source agent skill for developer tools.
- [Gh stack](https://ai-powered.com/skills/gh-stack): Gh stack is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/stack-init
