Proposal: Add the installer
1 KB - Ver el archivo original
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 <target> [--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 intoAGENTS.mdand the imports intoCLAUDE.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);--forcereplaces it after saving a.bakbackup.
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.