specpilot m. For a project without specs, use specpilot add-specs instead.
Options
What it does
It copies each file in.project-spec/ to its place in .specs/, merges where a file is already there, and creates a stub for each file that’s missing.
It stops if .specs/ already exists, or if there’s no .project-spec/.
--backup copies the whole project folder, node_modules included, to backup-<timestamp>/ first.
Afterwards
Runspecpilot validate --fix, which creates the security files, then specpilot backfill. See Upgrading.
The old Cursor rules file
Projects set up before SpecPilot 2.1.0 have Cursor’s rules in.cursor/rules/project.mdc. Now they belong in .cursor/rules/specpilot.mdc. specpilot validate, specpilot backfill and specpilot serve warn when the old file is still there.
--cursor-rulesrenamesproject.mdctospecpilot.mdc. It never writes over an existingspecpilot.mdc.- If both files exist, Cursor loads the rules twice.
--cursor-rules --remove-oldremovesproject.mdc. First it lists any lines that are only in the old file.
project.mdc without SpecPilot’s front matter is your own rule and is left as it is. With --cursor-rules, --from, --to and --backup don’t apply. It exits 1 when it can’t do it, with the reason.
In the App, the Instructions view has the same fixes.