agentleFS
harshanandakharshanandak/forge-legacy/.agents/skills/setup/SKILL.md

setup

Skill4 starsChanged 48 days agoMITView on GitHub

Forge install & setup lifecycle. `forge setup` interactively configures Forge for your coding agents; `forge init [--profile minimal|standard|full]` writes the adoption config in a fresh repo; `forge doctor` reports whether the kernel DB is on a cloud/network path; `forge upgrade [--dry-run]` previews + self-heals upgrade readiness; `forge hooks install --global` installs native hooks; `forge reset --soft|--hard --force` and `forge reinstall --force` undo/redo the install; `forge recommend` lists suggested tools. Use when the user says "install/set up forge", "init forge", "adoption profile", "forge doctor", "upgrade forge", "install the hooks globally", or "reset/reinstall forge". Footguns: setup is interactive — pass `--yes` in automation; `doctor` only checks the kernel-DB filesystem class, NOT general health; `upgrade` self-heals Forge state, NOT the npm package; reset/reinstall need `--force`. NOT toggling a gate/rail (gates), NOT orienting in a set-up repo (status), NOT installing project deps (dev).

192 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use add-voice-transcription, add-discord and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • juancruzmunozalbeloSkill

    add-voice-transcription

    Add voice message transcription to NanoClaw using OpenAI's Whisper API. Automatically transcribes WhatsApp voice notes so the agent can read and respond to them.

    Also in 5 projects that use this

  • MicrosoftSkill

    add-discord

    Add Discord bot channel integration via Chat SDK.

    Also in 11 projects that use this

  • MicrosoftSkill

    add-slack

    Add Slack channel integration via Chat SDK.

    Also in 11 projects that use this

  • juancruzmunozalbeloSkill

    add-telegram-swarm

    Add Agent Swarm (Teams) support to Telegram. Each subagent gets its own bot identity in the group. Requires Telegram channel to be set up first (use /add-telegram). Triggers on "agent swarm", "agent teams telegram", "telegram swarm", "bot pool".

    Also in 7 projects that use this

  • +8 more from microsoft

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 171 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Only when the user opts into multiple accounts: sign in once per account with native gh auth login, then select inside each intended clone:

    line 35

“Common” is measured: kept by at least 6 in 10 of the 171 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Getting Forge installed, configured, upgraded, and diagnosed in a repo. These are the bootstrap and maintenance commands — distinct from the everyday workflow stages.

Install & configure

forge setup                      # interactive agent configuration (Claude/Cursor/Codex …)
forge setup --yes                # non-interactive: accept defaults (use this in automation)
forge setup --agents claude,cursor --skip-external   # target specific harnesses, skip service prompts
forge setup --path <dir> --dry-run                   # preview against another dir, write nothing

forge setup is interactive by default. In any automated/agent context pass --yes (or --non-interactive) so it never blocks on a prompt.

Optional GitHub accounts per clone

Only when the user opts into multiple accounts: sign in once per account with native gh auth login, then select inside each intended clone:

forge github use <login>       # verify stored account/access before binding this clone
forge github status           # safe identity and transport diagnostics; --json supported
forge github run -- <harness>  # explicitly give a trusted child the selected GitHub identity
forge github unset            # remove this binding, not stored logins

Ordinary setup stays unbound. Never paste or persist tokens, automatically log in or switch accounts, or change Git author/remotes/SSH/helper configuration. Git transport is separate; HTTPS using gh auth git-credential can inherit the explicit child session's account. See the repository reference guide docs/reference/github-accounts.md for concurrent sessions and recovery.

Initialize a fresh repo

forge init --minimal             # shortcut for --profile minimal --yes
forge init --profile standard --harness claude,cursor
forge init --classification standard --dry-run       # preview the adoption config

forge init writes the Forge adoption config (.forge/config.yaml). The profile picks how much enforcement ships on: minimal (rails off) → standard → full. This configures the workflow; toggling an individual gate afterward is the gates skill.

Diagnose

forge doctor            # is the kernel DB on a cloud-synced / network path? (reliability signal)
forge doctor --json     # machine-readable

forge doctor is narrow: it reports the filesystem class of the Forge kernel database path (local / cloud-synced / network) so you can catch the reliability footgun of running the DB on OneDrive/Dropbox/a network share. It is not a general health check.

Upgrade readiness

forge upgrade --dry-run    # preview the planned self-heal, change nothing
forge upgrade              # apply safe self-heal steps to make the repo upgrade-ready

forge upgrade previews and applies safe self-heal steps for Forge's own state. It does not update the installed npm package — use your package manager for that.

Global hooks

forge hooks install --global                       # install native hooks for all harnesses
forge hooks install --global --harness codex       # scope to one harness (codex|hermes|all)
forge hooks install --global --dry-run             # preview

--global is the required consent flag — it opts you into installing hooks at the user level. (The other forge hooks subcommands — session-start, inbox-pickup, shepherd-events, memory-recall, capture — are machine-facing hook emitters the harness calls, not things you run by hand.)

Undo / redo the install

forge reset --soft --force     # remove .forge/ config only (keeps commands, rules, agents)
forge reset --hard --force     # remove ALL forge-managed files (keeps user-created files)
forge reinstall --force        # remove + re-run default setup in one step

reset and reinstall are destructive, so --force is required. reset with no --soft/--hard just prints usage.

Recommend tooling

forge recommend         # suggest tools/integrations for the current project

Boundaries

  • Toggling a single gate/rail (e.g. TDD, kernel-tracking) is gates — init writes the initial config; gates flips one afterward.
  • "Where am I / how is forge set up" in an already-configured repo is status / kernel, not setup.
  • Installing project dependencies (bun install) is dev, not forge setup.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.