# Init

> Init is an open-source agent skill for developer tools. Sets up the Forgeline factory in a repo: stack detection, checks, and domain harness. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/Nabwinsaud/forgeline/tree/main/skills/init
- **Repository:** https://github.com/nabwinsaud/forgeline
- **GitHub stars:** 8
- **License:** MIT
- **Skill name:** init
- **Collection:** https://github.com/Nabwinsaud/forgeline
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

This skill walks an agent through initializing Forgeline inside the current application repository. It confirms the repo root, avoids overwriting an existing configuration without asking, and runs the forgeline init command with any arguments the user passes for tracker or rule-pack choices.

After initialization, the agent interviews the user briefly to replace the template in the domain document with the product's real purpose, users, invariants, high-risk areas, glossary and test data references. It proposes codebase-based answers first, then suggests domain packs such as money, auth, api or web-app and adds the ones the user accepts.

The skill also reviews the generated checks script so it matches the commands actually present in the repo, runs it once, and sets tracker and version control options in the config while keeping automatic merging off until the user has observed a few tickets. It finishes with a doctor run and a suggested first ticket. Credentials are expected to live in environment variables, and the agent is told not to store secrets in files.

## When your agent uses it

> Set up Forgeline in the current app repo - detect the stack, generate the deterministic gate, scaffold the domain harness (.factory/) and install rule packs, then help the user describe their business. Use when the user wants to start using the factory in a repo.

## What it can access

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

- [Instructions only, no scripts](https://github.com/Nabwinsaud/forgeline/tree/HEAD/skills/init)
- [License: MIT](https://github.com/Nabwinsaud/forgeline/tree/HEAD/skills/init)

## Features

- **Stack detection:** Inspects the repository to propose answers and identify the commands and tooling in use.
- **Domain harness setup:** Generates the .factory directory and fills its domain document with the product's real context.
- **Rule pack selection:** Suggests and installs domain packs such as money, auth, api and web-app based on the codebase.
- **Verification script tuning:** Adjusts the checks script so it reflects how the repository is actually verified.
- **Tracker and VCS configuration:** Sets the issue tracker and git host options, with credentials kept in environment variables.
- **Conservative merge policy:** Keeps automatic merging disabled initially and explains when to enable low-risk merges.

## Good for

- Set up Forgeline in my repo and detect my stack
- Describe my product's business rules for the factory harness
- Make the checks script match the commands my project really uses
- Add a money or auth rule pack to my Forgeline setup
- Configure my issue tracker and git host for Forgeline tickets

## Install

### Claude Code

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

```sh
/plugin marketplace add Nabwinsaud/forgeline
/plugin install forgeline@forgeline
```

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

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

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

### Codex

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

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

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

### Cursor

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

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

For one project only, put the folder in `.cursor/skills/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/Nabwinsaud/forgeline.git --path skills/init
```

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

### VS Code

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

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

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

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/Nabwinsaud/forgeline.git
```

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

## FAQ

### What does the skill need before Init runs?

It needs to run inside a git repository and the forgeline command-line tool, which it calls with the arguments provided.

### Will Init overwrite my existing Forgeline configuration?

If .factory/config.json already exists, the skill asks before using the --force option, since that overwrites edits.

### Are secrets stored in the configuration?

No. Credentials are to be placed in environment variables only, and the interview asks for variable names rather than secret values.

### Can the agent trigger Init automatically?

No. Model invocation is disabled, so it runs when the user invokes it.

### How do I install Init in Claude Code?

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

### Does 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 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 Init?

The closest alternatives to Init are Doctor, Run, Learn, Setup matt pocock skills and Do.

## Where this comes from

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

## Alternatives

- [Doctor](https://ai-powered.com/skills/doctor-nabwinsaud): Doctor is an open-source agent skill for developer tools.
- [Run](https://ai-powered.com/skills/run): Run is an open-source agent skill for developer tools.
- [Learn](https://ai-powered.com/skills/learn-nabwinsaud): Learn is an open-source agent skill for developer tools.
- [Setup matt pocock skills](https://ai-powered.com/skills/setup-matt-pocock-skills): Setup matt pocock skills is an open-source agent skill for developer tools.
- [Do](https://ai-powered.com/skills/do-nabwinsaud): Do is an open-source agent skill for developer tools.
- [Report](https://ai-powered.com/skills/report-nabwinsaud): Report is an open-source agent skill for developer tools.
- [Setup repo skills](https://ai-powered.com/skills/setup-repo-skills): Setup repo skills is an open-source agent skill for developer tools.
- [Env bootstrap](https://ai-powered.com/skills/env-bootstrap): Env bootstrap is an open-source agent skill for developer tools.

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