Skip to content
Back to skills

Crumbtrail Setup

ASecurity

Set up Crumbtrail for the app in the current folder, connect your coding assistant, and record a first session.

  • 4 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 29, 2026
developmentrustgoshelldockergitapidatabase

Works with

  • claude code
  • cursor
  • vscode
  • cli
  • api

Security analysis

A96/100
  • mediumUses curl or wget to download content

Pro shows the line behind each finding and how to fix it

Scanned November 29, 2026

npx -y skills add crumbtrail-ai/crumbtrail-plugin --skill crumbtrail-setup --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Crumbtrail Setup?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Crumbtrail Setup
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/crumbtrail-ai-crumbtrail-setup/badge)](https://www.skillsdirectory.com/skills/crumbtrail-ai-crumbtrail-setup)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: crumbtrail-setup
description: Set up Crumbtrail for the app in the current folder, connect your coding assistant, and record a first session.
---

# Crumbtrail setup

Set up Crumbtrail for the app in the current folder. Follow these five steps in order. Never download, install, or change project files before the person answers the questions in step 3.

## 1. Detect silently

Read-only checks first. Do not install anything, write files, or print secrets.

1. Check if Crumbtrail is installed:
   - Run `crumbtrail --version`.
2. Check if this computer is already signed in:
   - Check whether `CRUMBTRAIL_DOWNLOAD_TOKEN` is non-empty, or whether `~/.crumbtrail/updates/download-token` (Windows: `%USERPROFILE%\.crumbtrail\updates\download-token`) exists and is non-empty. Never read or print the token value.
3. Inspect the current folder's own files to find the app name, start command, port, and database use:
   - Check `package.json`, `go.mod`, `Cargo.toml`, `*.csproj`, `pyproject.toml`, `requirements.txt`, `Gemfile`, `composer.json`, `docker-compose*`, and `.env.example`.
   - Never read or print real secrets from `.env` or credential files.
   - If `crumbtrail --version` succeeded, also run `crumbtrail init --list` and `crumbtrail status --format json` to see saved setups, recordings, and checks.
4. Note whether a database is in use (a database dependency, service in compose files, or connection setting name in `.env.example` or a saved setup).
5. Check whether this folder is a git repository with a remote (`git remote`).

## 2. Name the app

- If the folder holds one app, start your reply with one short line naming it and what setup changes, such as:
  `Setting up <app name>: I'll save its setup in this folder and connect this assistant to it.`
  Running this setup is the person's request for those two steps, so they get no question of their own.
- If the folder holds more than one app (for example a website and an API server), list them and include a question asking which one to set up.
- If no app can be recognized from the folder, ask for the start command and local port in the single question batch below.

## 3. Ask once, up front

In that same message, ask only the yes/no questions whose answer is not already clear from step 1. Omit every question that does not apply. Use plain, everyday wording and never name internal components, vendors, or models.

Ask only from this list:

- If several apps were found: `Which app in this folder should I set up?`
- If `crumbtrail --version` failed: `Install Crumbtrail now? This downloads the program and opens your browser to sign in or create an account.`
- If not already signed in (and Crumbtrail is already installed; installing runs browser sign-in automatically): `Sign in or create a Crumbtrail account in your browser?`
- Unless a saved recording already exists and the person asked only to finish setup: `Record a first session now?`
- Only if a database was found: `Make a small copy of the database (Beta)?`
- Only if a git remote was found: `Add the automatic check to pull requests? (Team plan)`

Stop and wait for the person's answers before running any install or setup command.

## 4. Run without stopping

Once the person answers, carry out every requested step in order without pausing for extra confirmations beyond the assistant's own command approval.

### 4a. Install (only after a yes)

Run the official installer through the assistant's normal command approval:

- macOS and Linux:
  ```sh
  sh -c "$(curl -fsS https://crumbtrail.ai/install.sh)"
  ```
- Windows (PowerShell):
  ```powershell
  irm https://crumbtrail.ai/install.ps1 | iex
  ```

With no token set, the installer opens the browser to sign in or create an account and saves the token for future updates. If `~/.local/bin` (macOS/Linux) or `%LOCALAPPDATA%\Crumbtrail\bin` (Windows) is not on `PATH` in this shell yet, prepend it for the rest of this run.

If the installer stops with `licence acceptance required`, show the person the licence address it printed and ask `Accept the Crumbtrail licence?`. Only after a yes, run the installer again with `CRUMBTRAIL_ACCEPT_LICENCE=1` set for that one command (Windows: add `-AcceptLicence`). Never accept it for them.

Verify the install:

```sh
crumbtrail --version
```

Then inspect saved setups and project status if not done in step 1:

```sh
crumbtrail init --list
crumbtrail status --format json
```

### 4b. Sign in (only if already installed, not signed in, and the person said yes)

```sh
crumbtrail sign-in --format json --no-questions
```

If the browser cannot open (for example over SSH), show the verification address and code printed on standard error so the person can approve sign-in on another device.

### 4c. Connect this assistant

Run `crumbtrail assistants setup --client <host>` for the current host so the project gets its tool settings and the up-to-date Crumbtrail guide:

- Claude Code: `crumbtrail assistants setup --client claude`
- Cursor: `crumbtrail assistants setup --client cursor`
- Codex: `crumbtrail assistants setup --client codex`
- Gemini CLI: `crumbtrail assistants setup --client gemini`
- VS Code: `crumbtrail assistants setup --client vscode`
- Any other host or unsure: `crumbtrail assistants setup --client auto`

Read the guide it writes (or run `crumbtrail assistants guide`) before recording so every flag and safety rule stays current.

### 4d. Save the app and record a first session (if the person said yes)

1. Save the app setup if `.crumbtrail/setups` does not already hold it:
   - With a database: `crumbtrail init --from-app . --no-questions --yes --skip-trust --format json`
   - Without a database: `crumbtrail init --from-app . --no-database --no-questions --yes --skip-trust --format json`
   - If the folder holds several apps, pass the chosen app's own folder instead of `.`, for example `crumbtrail init --from-app ./api --no-questions --yes --skip-trust --format json`.
   - Add `--start-command`, `--ready-url`, or `--setting PORT=<port>` if detection reported any `missing` fields.
2. Record a first session:
   - Standard flow (records requests, outside calls, and database calls):
     - Start in the background: `crumbtrail start --format json --no-questions`
     - Wait for the `ready` event on standard output, then send real requests for one task to its `use_at` address (read the app's routes or README so the requests exercise real behaviour).
     - Stop and save: `crumbtrail stop --format json` (wait for `crumbtrail start` to exit cleanly). This saves the session as a check by itself; `crumbtrail check list` shows its name.
   - If the person also asked for a small database copy (Beta):
     - Record with row capture: `crumbtrail record --collect-copy --output .crumbtrail/recordings/first-session --format json --no-questions`
     - Exercise the app through the printed entry address, stop the recorder cleanly with Ctrl+C (an interrupt signal), then build the copy:
       `crumbtrail copies build --input .crumbtrail/recordings/first-session --copy-dir .crumbtrail/copy-first --format json`
3. Add the pull-request check (only if the person said yes and a git remote exists):
   - After the standard flow, `crumbtrail stop` already saved the check. After the database copy flow, save the recording:
     `crumbtrail check add .crumbtrail/recordings/first-session --name first-session --format json`
   - Confirm the check passes on the unchanged app:
     `crumbtrail check --format json`
   - Write the pipeline workflow file:
     `crumbtrail check pipeline --format json`
   - If it answers that the pull-request check is part of the Team plan, tell the person that in one line and carry on; the saved check still runs on this computer with `crumbtrail check`.

## 5. Wrap up

End with a short, plain summary:

- What is ready (installed version, saved app, connected assistant, saved recording, and database copy or pull-request check if requested).
- The one next thing to try (for example, edit a route and run `crumbtrail check`, or see the saved checks with `crumbtrail check list`).

Remind the person never to commit assistant settings files, certificate folders, secrets files, or raw recordings under `.crumbtrail/recordings`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.