# Proposal: Add the installer ## Why The flywheel is useful only if another repository can adopt it in one step and upgrade it later without losing its own memory, constitution, or OpenSpec settings. ## What Changes - `flywheel.py install [--dry-run] [--force]`: copies the flywheel-owned files (skills, agents, CLI, templates), seeds repository-owned files only when absent (config, memory index, constitution, OpenSpec config), and merges a marked block into `AGENTS.md` and the imports into `CLAUDE.md`. - An install manifest (`.flywheel/install-manifest.json`, path to content hash) so an upgrade replaces only copies that are unchanged since the last install. A repository's own file at the same path, or an edited copy, is skipped and reported (exit code 1); `--force` replaces it after saving a `.bak` backup. Out of scope: installing OpenSpec itself (the target runs `openspec init`), packaging and versioned releases. ## Capabilities ### New Capabilities - `installer`: installing and upgrading the flywheel in a target repository. ### Modified Capabilities ## Related knowledge - `openspec-init-installs-skills-machine-wide` (OpenSpec skills are not copied by the installer). ## Impact One CLI command; templates `AGENTS.flywheel.md`, `constitution.md`, `openspec-config.yaml`.