with one click
commit-push-deploy
// Commits code changes, pushes to remote, and deploys to production. Use when the user wants to commit, push, and deploy their changes in one workflow.
// Commits code changes, pushes to remote, and deploys to production. Use when the user wants to commit, push, and deploy their changes in one workflow.
Reformats a figure component file to conform to the standard section order and naming conventions defined in the figure guidelines.
Commit relevant changes, push to remote, and deploy the site. Use when finished with changes and ready to ship.
Build and deploy the rectified-flow-explainer site. Use when deploying, publishing, or pushing to production.
| name | commit-push-deploy |
| description | Commits code changes, pushes to remote, and deploys to production. Use when the user wants to commit, push, and deploy their changes in one workflow. |
When the user invokes this skill, follow these steps:
Run the build to ensure the code compiles without errors before committing:
cd diffusion-explorer/apps/rectified-flow-explainer && npm run build
If the build fails, stop and report the errors to the user.
git add -A
git status
git diff --staged
Draft a commit message based on the staged changes. Present the commit message to the user and ask for their approval before proceeding. Use the AskUserQuestion tool to get confirmation.
Once approved, commit with the message:
git commit -m "<approved message>"
Push to the remote repository:
git push
Run the deploy script directly (without rebuilding since we already built in step 1):
cd diffusion-explorer/apps/rectified-flow-explainer && node scripts/deploy.js
This deploys the built files to the production website.
node scripts/deploy.js instead of npm run deploy to avoid a redundant rebuild