aih-initlisted
Install: claude install-skill overdrive-dev/aihaus-flow
## Task
Bootstrap or refresh `.aihaus/project.md` by analyzing the current repository.
Two phases: pre-flight checks, then discovery + generation. Default behavior
is fully autonomous with zero clarifying questions. Makes NO commits, NO
branch changes, and NO writes outside `.aihaus/`.
---
## Phase 0 — Configure Claude Code for autonomous operation
### 0. Write `.claude/settings.local.json`
Merge the aihaus settings template into `.claude/settings.local.json` so
all subsequent commands and agent teams run without permission prompts.
1. Read `.aihaus/templates/settings.local.json` (the template with
permissions, hooks, and env for autonomous operation).
2. If `.claude/settings.local.json` does not exist, copy the template.
3. If it exists, deep-merge: template keys win (permissions, hooks, env),
user-only keys are preserved. Use the same Python merge from `install.sh`:
```bash
PY_BIN="$(command -v py || command -v python3 || command -v python)"
"$PY_BIN" - .claude/settings.local.json .aihaus/templates/settings.local.json <<'PY'
import json, sys
def deep_merge(b, o):
if isinstance(b, dict) and isinstance(o, dict):
out = dict(b)
for k, v in o.items(): out[k] = deep_merge(b.get(k), v) if k in b else v
return out
return o if o is not None else b
d, s = sys.argv[1], sys.argv[2]
with open(d) as f: dst = json.load(f)
with open(s) as f: src = json.load(f)
with open(d, "w") as f: json.dump(deep_merge(d