Sync With NowStack
<objective>
Bring a project fork up to date with the canonical NowStack boilerplate while preserving local product changes.
</objective>
<when_to_use>
Use this workflow when:
- The user types
/sync-with-nowstack. - A project fork needs the latest boilerplate fixes/features from
melvynx/nowstack. - A collaborator has access to the canonical repository and wants to merge those changes into their app.
Do not use this for normal feature branches that should only pull from their own app repository.
</when_to_use>
<quick_start>
Run the bundled script from the repository root:
.agents/skills/sync-with-nowstack/scripts/sync-with-nowstack.sh
Common options:
.agents/skills/sync-with-nowstack/scripts/sync-with-nowstack.sh --dry-run
.agents/skills/sync-with-nowstack/scripts/sync-with-nowstack.sh --rebase
.agents/skills/sync-with-nowstack/scripts/sync-with-nowstack.sh --branch main
.agents/skills/sync-with-nowstack/scripts/sync-with-nowstack.sh --repo your-org/nowstack
</quick_start>
<workflow>
- Read
AGENTS.mdand the currentgit status --short --branch. - Run the script with any user-provided flags.
- If the script reports conflicts, inspect them and resolve normally with Git.
- After a successful sync, review the diff and run any extra checks needed for changed areas.
- Add a
CHANGELOG.mdentry for local fixes made by the agent. Do not add one for upstream-only changes unless the sync itself required local edits.
</workflow>
<defaults>
| Setting | Default |
| --- | --- |
| Remote name | nowstack |
| Repository | melvynx/nowstack |
| Integration mode | merge |
| Branch | upstream default branch |
| Install | enabled when dependency files change |
| Verify | pnpm ts when package.json is present |
</defaults>
<safety>
- The script creates a local backup branch before merge/rebase.
- It refuses to continue during an existing merge, rebase, cherry-pick, or revert.
- It refuses to run with uncommitted changes unless
--allow-dirtyis passed. - It does not stash or discard local changes.
- It stops on conflicts and prints the exact Git continuation command.
- It never uses destructive cleanup commands.
</safety>
<repo_access>
The canonical repository is expected to be available at https://github.com/melvynx/nowstack.git.
If GitHub returns Repository not found, confirm the collaborator has access or pass an accessible repo with --repo owner/name or --repo https://github.com/owner/name.git.
</repo_access>