post-deploy
Installation
SKILL.md
Post-change deployment procedures
Detection
Globally linked packages
- The agent MUST run
npm ls -g --depth=0and look for entries with->pointing to a local path. - If the changed repository matches a globally linked package, the agent MUST proceed to rebuild.
Running services and scheduled tasks
- The agent MUST check for running processes associated with the repository (service names, PM2/systemd/Windows service entries).
- The agent MUST check for scheduled tasks (cron, Windows Task Scheduler) referencing the repository.
Rebuild and verify
npm-linked packages
- Run the repository's build command (e.g.,
npm run build,tsc). - Verify the rebuilt output by running the CLI's
--versionor a smoke command. - Report the verified version.
Services and daemons
- Rebuild the service component.
- Restart using the service manager (PM2 restart, systemctl restart, etc.).
- Verify with deterministic evidence:
- New PID (compare before and after).
- Port check (verify listening).
- Service status query.
- Log entry showing updated behavior or version.
- Report the verification evidence.
Completion gate
- The agent MUST NOT claim completion until the running instance reflects the changes. The agent MUST include verification evidence in the final response.