Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ repo is agent-ready.
- **`docs/scaling.md`** — optional multi-agent coordination, for when one repo has
many agents at once. Most projects never need it — and the kit says so.

> **Dogfooded:** this repo runs on its own kit — the `AGENTS.md`, adapters, and
> `memory/` at the root were produced by running `install.sh` on itself.

## Deep dives

The reasoning underneath the kit, at maximum technical depth — for developers and
Expand Down
19 changes: 19 additions & 0 deletions tests/install.bats
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,23 @@ teardown() {
rm -rf "$WORK"
}

# Map a template's absolute path to the path install.sh should produce, relative
# to the target (adapters/* land at the target root — same rule as the installer).
template_dest() {
rel="${1#"$KIT"/templates/}"
case "$rel" in
adapters/*) rel="${rel#adapters/}" ;;
esac
printf '%s\n' "$rel"
}

# The full set of expected files, derived from templates/ rather than hardcoded.
# Kept dynamic on purpose: drop a file into templates/ and both the installer and
# these tests cover it, with nothing to hand-maintain here.
expected_files() {
find "$KIT/templates" -type f | sort | while IFS= read -r src; do
template_dest "$src"
done
cat <<'EOF'
AGENTS.md
CHECKLIST.md
Expand All @@ -34,6 +50,9 @@ EOF

@test "installed files are byte-identical to their templates" {
"$INSTALL" "$WORK" >/dev/null
while IFS= read -r src; do
diff "$WORK/$(template_dest "$src")" "$src" || return 1
done < <(find "$KIT/templates" -type f)
diff "$WORK/AGENTS.md" "$KIT/templates/AGENTS.md"
diff "$WORK/CHECKLIST.md" "$KIT/templates/CHECKLIST.md"
diff "$WORK/CLAUDE.md" "$KIT/templates/adapters/CLAUDE.md"
Expand Down
Loading