Skip to content

How to set up a repo for Loom

/setup-loom prepares a repo for the Loom skills. It gives the planning skills an issue tracker. It also adds checks that stop the agent from shipping broken or unsafe code.

Before you start, you need a git repo and an agent with Loom installed.

Run the setup

  1. Start your agent in the root of the repo.
  2. Type /setup-loom.
  3. The agent checks which parts the repo already has. For each missing part, it says what the part does and what goes wrong without it.
  4. Pick the parts you want from each group. The agent sets up each part you pick.

If a part needs a credential, such as an API key, the agent writes a script that walks you through the steps. You run that script yourself.

The setup is done when every part is in place or declined. You can run /setup-loom again later to add a part you declined.

Choose an issue tracker

The planning skills /to-spec, /to-tickets and /wayfinder write to the tracker you pick here.

Tracker Pick it when You need
Local files You work alone, or you want no account Nothing
GitHub The repo is on GitHub The gh command
GitLab The repo is on GitLab The glab command
Beads Several agents work at once and must not take the same ticket The br and bv commands

With local files, the spec and the tickets are Markdown files under ai-docs/plans/.

The parts it can set up

The agent offers the parts below in groups. It skips a group that does not fit the repo, such as Python in a repo without Python.

For the agent

Part What you get
RTK Shorter command output, which costs the agent fewer tokens
Issue tracker Notes that tell the skills how to use your tracker
Domain docs Notes that tell the skills to read your glossary and your decision records
Agent docs The agent's notes live in ai-docs/, which git ignores
Secrets Secrets declared in secretspec.toml and held by a provider, with no .env file
Permissions The agent cannot read secrets, force a push, or skip a hook
Guardrail rule A check is only weakened with the reason written next to it
SonarQube The agent can read SonarQube findings. Only offered in a repo that uses SonarQube

Checks before each commit and push

Part What it stops
Leaks A secret in a commit
Commit check A commit message that is not a conventional commit
Security scan Code with a known unsafe pattern
Tests A push with failing tests, or with coverage under your floor
Pipeline scan An unsafe GitHub Actions workflow
Verify Nothing by itself. It is one command that runs every check
Branch protection A change to the main branch that skipped the checks

For Python and for TypeScript

For each language, the agent offers these parts:

Part What it does
Linter and formatter Finds style errors and formats the code
Type checker Finds type errors
Complexity limit Stops a function that is too complex
Unused code Finds code that nothing uses
Layers Checks that each layer of your code imports only what it may
Lockfile Checks that the lockfile matches the dependencies
Dependency audit Finds dependencies with a known vulnerability
Release wait Waits two days before it uses a new release of a dependency

The exact tools and settings are in the setup-loom skill.