Skip to content

Commit 5283b32

Browse files
mohandozclaude
andcommitted
docs: surface conjure adopt in MIGRATION-GUIDE, brownfield checklist, COMPARISON; fix stale 112→439 test count
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent ef5642f commit 5283b32

4 files changed

Lines changed: 47 additions & 2 deletions

File tree

COMPARISON.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ updated: 2026-05-24.
3838

3939
### vs. Manual `.claude/`
4040
- **Manual**: total flexibility, total responsibility.
41-
- **Conjure**: opinionated defaults backed by Anthropic + community eval data; backup-before-mutate on every change; size caps enforced; cross-platform Node.js hooks; safe migration from other tools.
41+
- **Conjure**: opinionated defaults backed by Anthropic + community eval data; backup-before-mutate on every change; size caps enforced; cross-platform Node.js hooks; safe migration from other tools; one-command brownfield adoption (`conjure adopt`) with full snapshot + sha256-verified rollback.
4242
- **Trade-off**: manual is faster *for the first project*. Conjure pays back at scale (multiple projects, team handoffs, kit updates).
4343

4444
### vs. CursorRules → CLAUDE.md by hand

MIGRATION-GUIDE.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,33 @@ without losing rules and without breaking running sessions.
1616
| `.github/copilot-instructions.md` | file exists | `from-copilot` | Instructions → CLAUDE.md non-negotiable rules. |
1717
| `.windsurfrules` | file exists | `from-windsurf` | Rules → CLAUDE.md. |
1818

19+
## Adopting a whole repo — `conjure adopt`
20+
21+
`conjure migrate` converts a **prior AI tool's config** into a Conjure `.claude/`.
22+
To fold an **entire existing repo** (oversized `CLAUDE.md`, scattered docs, prior
23+
GSD `.planning/`, or no AI config at all) into the four-layer harness, use
24+
`conjure adopt` — a rollback-capable, snapshot-backed pipeline:
25+
26+
```bash
27+
conjure adopt --dry-run . # 5-step plan, zero writes, inspectable manifest
28+
conjure adopt . # snapshot → inventory → scaffold → audit → report
29+
conjure adopt --rollback . # sha256-verified restore + delete scaffolded files
30+
```
31+
32+
- Full timestamped snapshot before any mutation; `--rollback` restores every
33+
mutated file (sha256-verified) and removes scaffolded layers. Crash-durable —
34+
a killed run offers `[r]ollback / [c]ontinue / [s]tart-fresh` on re-run.
35+
- Never-delete: stale/oversized files are archived to `.conjure-archive-<ts>/`.
36+
- Refuses a dirty git tree (commit/stash, or `--force`); every step logged to
37+
`RESTRUCTURE-LOG.md`.
38+
- Installs a human-gated `restructure` skill (`.claude/skills/restructure/`,
39+
`[Read, Bash]`) that condenses an oversized `CLAUDE.md` through pre-write
40+
invariant + `conjure audit` gates and applies changes only through the audited
41+
`conjure adopt` chokepoint.
42+
43+
Choose: greenfield → `conjure init` · convert another tool's config →
44+
`conjure migrate` (above) · adopt an existing repo → `conjure adopt`.
45+
1946
## Universal safety rules
2047

2148
1. **Backup before mutate.** Every migration creates `<target>/.claude.backup-YYYYMMDD-HHMMSS/`

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ foot-guns, cross-platform Node.js hooks.
5454
- 🛡 **Safe migrations** — backup-before-mutate from Cursor, Aider, Continue, GitHub Copilot, Windsurf, and existing `.claude/` configs.
5555
- 🎯 **9 stack profiles** — Java-Spring, Python-FastAPI, TS-Next, Rust-Axum, Go-Gin, Node-Nest, Monorepo, Polyglot, Data Science.
5656
- 🔒 **4 compliance overlays** — HIPAA (with PHI scan hook), SOC 2, GDPR, PCI.
57-
- 🧪 **112 self-tests, all green** — change confidently; CI runs on every PR.
57+
- 🧪 **439 self-tests, all green** (Linux + Windows + macOS) — change confidently; CI runs on every PR.
5858
- 🌍 **Cross-platform** — bash hooks for POSIX, Node.js `.mjs` hooks for native Windows.
5959
- 📦 **Plugin-ready** — installable via Claude Code Marketplace.
6060
- 🔁 **Compound engineering** — Stop hook proposes new rules from session corrections.

checklists/EXISTING-PROJECT.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,24 @@
22

33
Use when adding Claude Code config to a repo that already has code.
44

5+
## Fast path — `conjure adopt`
6+
7+
For most repos, one rollback-capable command does the brownfield onboarding:
8+
9+
```bash
10+
conjure adopt --dry-run . # inspect the 5-step plan (zero writes)
11+
conjure adopt . # snapshot → inventory → scaffold → audit → report
12+
# Undo anytime: conjure adopt --rollback . (sha256-verified restore)
13+
```
14+
15+
It snapshots before mutating, scaffolds only missing harness layers (existing
16+
files untouched), archives (never deletes) stale files, and installs a
17+
human-gated `restructure` skill to condense an oversized `CLAUDE.md` through
18+
pre-write safety gates. Refuses a dirty git tree — commit/stash first (or
19+
`--force`). Then open Claude Code and run the `restructure` skill to approve the
20+
CLAUDE.md condensation step-by-step. The manual steps below remain useful for
21+
deep customization (knowledge graph, per-area skills).
22+
523
## Pre-Claude (5-minute prep)
624

725
- [ ] Confirm clean working tree (`git status`) or stash. Claude shouldn't fight uncommitted work.

0 commit comments

Comments
 (0)