> ## Documentation Index
> Fetch the complete documentation index at: https://shunya.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Bootstrap an existing repository

> Mine a repository for implicit technical decisions without auto-accepting them.

`charter bootstrap` helps a repository start governance from what already exists. It produces **proposed** Decisions only; it never accepts a Decision.

## Start with a dry run

```sh theme={null}
charter bootstrap --dry-run
```

The output lists candidate titles, scopes, and sources without writing files. Review this first: bootstrap is intentionally heuristic and its output is a starting point for human review, not truth.

## Write proposals

```sh theme={null}
charter bootstrap
charter list --status proposed
```

Charter resolves the proposer from Git configuration when possible, falls back to `charter bootstrap`, assigns IDs, writes the proposals, and regenerates the index. It then prints an agent task brief unless `--scan-only` was used.

## Scan only

```sh theme={null}
charter bootstrap --scan-only
```

Use this when you want the repository scan without an agent handoff or printable agent brief.

## Optional agent handoff

```sh theme={null}
charter bootstrap --agent claude
charter bootstrap --agent codex
```

This launches the named CLI non-interactively in the repository with a brief to inspect gaps, ask the user about uncertain foundational choices, and call `decision_propose`. `--agent` cannot be combined with `--dry-run` or `--scan-only`; if the CLI is unavailable, Charter prints the brief instead.

## What bootstrap detects

| Source | Signals |
| - | - |
| Instructions and docs | Imperative lines containing `always`, `never`, `must`, `must not`, or `only` in `CLAUDE.md`, `AGENTS.md`, `.cursor/rules`, `README.md`, `CONTRIBUTING.md`, and `docs/**/*.md`. |
| Node.js | Recognized frameworks, databases, and ORMs in `package.json` dependencies and devDependencies. |
| Go | Recognized frameworks, database drivers, and ORMs in `go.mod`. |
| Python | Django, Flask, FastAPI, PostgreSQL, MongoDB, and SQLAlchemy signals in `requirements.txt` or `Pipfile`. |
| CI | `golangci-lint`, ESLint, pytest, Jest, and `go test` keywords in GitHub Actions workflows. |
| Linters | `.golangci.yml`/`.golangci.yaml` and parseable ESLint `extends` settings. |

Detected proposals default to `config.yaml`'s `enforcement_default` (`advisory` unless configured) when the extractor doesn't pin a level. Instruction-derived proposals are marked as needing a scope, because a sentence alone usually cannot define a safe enforceable boundary.

> [!TIP]
>
> This Mintlify documentation uses `.mdx`; the current bootstrap documentation scan targets `docs/**/*.md`, so these site pages are not turned into bootstrap proposals.

## Recommended review sequence

1. Run `charter bootstrap --dry-run`.
2. Delete or edit noisy proposals before review.
3. Add precise scope paths/tags and rationale where needed.
4. Accept only the Decisions the team explicitly endorses.
5. Add agent integration and CI after the first accepted Decisions exist.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.