xiaohongshu
xiaohongshu
gmacko-release-prepare
Use when (1) preparing a release for staging or production, (2) generating release notes and changelog, (3) verifying environment readiness before deployment. Prepares all artifacts needed for a release.
Full skill instructions
Prepare release artifacts including changelog, release notes, and environment verification.
digraph release_prepare {
rankdir=TB;
node [shape=box];
start [label="Start Preparation" shape=ellipse];
gather [label="1. Gather Changes"];
version [label="2. Determine Version"];
notes [label="3. Generate Release Notes"];
changelog [label="4. Update CHANGELOG"];
env [label="5. Verify Environment"];
migration [label="6. Check Migrations"];
checklist [label="7. Run Release Checklist"];
summary [label="8. Create Release Summary"];
done [label="Ready for Deploy" shape=ellipse];
start -> gather -> version -> notes;
notes -> changelog -> env -> migration;
migration -> checklist -> summary -> done;
}
Collect all changes since last release:
# Get last release tag
LAST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "")
# List commits since last release
if [ -n "$LAST_TAG" ]; then
git log ${LAST_TAG}..HEAD --oneline --no-merges
else
git log --oneline -20
fi
# List merged PRs
gh pr list --state merged --limit 20 --json number,title,labels
Categorize changes:
Follow semantic versioning:
MAJOR.MINOR.PATCH
MAJOR: Breaking changes
MINOR: New features (backwards compatible)
PATCH: Bug fixes (backwards compatible)
Ask user:
Based on the changes, I recommend version [X.Y.Z].
Changes include:
- [N] new features
- [N] bug fixes
- [N] breaking changes
Is this version correct, or would you like to specify?
Create release notes:
# Release Notes: v[X.Y.Z]
**Release Date**: [YYYY-MM-DD]
**Environment**: [staging/production]
## Highlights
[1-2 sentence summary of the most important changes]
## What's New
### Features
- **[Feature Name]**: [Brief description] (#123)
- **[Feature Name]**: [Brief description] (#124)
### Improvements
- [Improvement description] (#125)
### Bug Fixes
- Fixed [issue description] (#126)
- Fixed [issue description] (#127)
## Breaking Changes
[If any, describe migration steps]
## Dependencies
- Updated [package] from X to Y
- Added [new package] for [purpose]
## Contributors
- @username
- @username
## Full Changelog
[Link to compare: previous...current]
Update CHANGELOG.md (if it exists) or docs/ai/CHANGELOG.md:
## [X.Y.Z] - YYYY-MM-DD
### Added
- Feature description (#123)
### Changed
- Change description (#124)
### Fixed
- Fix description (#125)
### Removed
- Removal description (#126)
Check target environment is ready:
# For Vercel (web)
vercel env ls --environment production
# Check required env vars are set
REQUIRED_VARS=(
"DATABASE_URL"
"CLERK_SECRET_KEY"
"NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY"
)
for var in "${REQUIRED_VARS[@]}"; do
vercel env ls --environment production | grep -q "$var" && \
echo "OK: $var" || echo "MISSING: $var"
done
For mobile (EAS):
# Check EAS configuration
eas config --platform ios
eas config --platform android
# Verify credentials
eas credentials --platform ios
eas credentials --platform android
If database changes are included:
## Migration Check
### Pending Migrations
- [ ] `20250105_add_feature_table.sql`
### Migration Plan
1. Backup production database
2. Apply migration in staging first
3. Verify data integrity
4. Apply to production during low-traffic window
### Rollback Plan
```sql
-- Rollback script
DROP TABLE IF EXISTS new_table;
ALTER TABLE existing_table DROP COLUMN new_column;
### Step 7: Run Release Checklist
Use the release checklist from `docs/ai/checklists/release-checklist.md`:
```markdown
## Pre-Release Checklist
### Code Quality
- [ ] All PRs merged
- [ ] `pnpm typecheck` passes
- [ ] `pnpm lint` passes
- [ ] `pnpm build` succeeds
### Testing
- [ ] QA verification complete
- [ ] No blocking issues
- [ ] Regression tests passed
### Documentation
- [ ] Release notes written
- [ ] CHANGELOG updated
- [ ] Migration guide ready (if needed)
### Environment
- [ ] Env vars configured
- [ ] Third-party services ready
- [ ] SSL certificates valid
Write docs/ai/releases/[date]-v[version].md:
# Release: v[X.Y.Z]
## Metadata
- **Version**: X.Y.Z
- **Date**: YYYY-MM-DD
- **Tag**: v[X.Y.Z]
- **Prepared by**: AI Assistant
## Status
- [ ] Staging deployed
- [ ] Staging verified
- [ ] Production deployed
- [ ] Production verified
## Changes Summary
| Type | Count |
|------|-------|
| Features | X |
| Fixes | Y |
| Improvements | Z |
### Key Changes
1. [Most important change]
2. [Second most important]
3. [Third most important]
## PRs Included
- #123: [Title]
- #124: [Title]
- #125: [Title]
## Issues Closed
- #100: [Title]
- #101: [Title]
## Environment Verification
- [x] Production env vars set
- [x] Database migrations ready
- [x] Third-party services configured
## Deployment Commands
### Web (Vercel)
```bash
# Automatic via git push to main
git push origin main
# Or manual
vercel --prod
# Build
eas build --platform all --profile production
# Submit
eas submit --platform ios
eas submit --platform android
vercel rollback
# Run rollback migration
pnpm db:rollback
Prepared by: AI Assistant Approved by: [Pending]
## Output
Present summary to user:
Version: v[X.Y.Z] Changes: [N] features, [N] fixes, [N] improvements Breaking Changes: [Yes/No]
Artifacts Created:
Environment Status:
Next Steps:
gmacko-release-deploy-web for Vercel deploymentgmacko-release-deploy-mobile for EAS builds (if applicable)Proceed with deployment?
## Red Flags
| Rationalization | Correction |
|-----------------|------------|
| "Skip env verification, it worked before" | ALWAYS verify environment for each release |
| "No migrations, skip that section" | Document "no migrations" explicitly |
| "Changelog can be updated later" | Update changelog BEFORE deploying |
| "Just push to main, Vercel handles it" | Follow full preparation process |
## Integration
- **Input**: Version number (or auto-determine), target environment
- **References**: QA handoffs, merged PRs, git history
- **Output**: Release summary, changelog updates, release notes
- **Next**: `gmacko-release-deploy-web` or `gmacko-release-deploy-mobile`
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience