Sharing OpenSpec Process Knowledge Across Projects
My OpenSpec process knowledge lives in openspec/config.yaml: the rules that tell the agent how I want proposals, specs and tasks handled. OpenSpec keeps that file per repo, so every time I learned a better rule I copied it between projects - and the copies drifted apart.
openspec-config is how I’m sharing OpenSpec process knowledge across projects from now on: one base config, published as an npm package.
npm install --save-dev openspec-config
npx openspec-config sync --force # adopt the shared config (once)
npx openspec-config hook # pre-commit drift guard
- It’s a dependency, so it’s versioned in the lockfile and updates are a plain
npm install. - The generated file is never hand-edited.
syncrefuses to overwrite a config it didn’t generate. - A pre-commit hook blocks commits when the config is out of sync. No CI needed.
- Projects can differ via
openspec/config.override.yamlinstead of forking the base.