Release automation for Claw skills and website. Guides through version bumping, tagging, and release verification.
Add this skill
npx mdskills install prompt-security/claw-releaseComprehensive release automation workflow with clear versioning, tagging, and verification steps
1---2name: claw-release3version: 0.0.14description: Release automation for Claw skills and website. Guides through version bumping, tagging, and release verification.5homepage: https://clawsec.prompt.security6metadata: {"openclaw":{"emoji":"๐","category":"utility","internal":true}}7clawdis:8 emoji: "๐"9 requires:10 bins: [git, jq, gh]11---1213# Claw Release1415Internal tool for releasing skills and managing the ClawSec catalog.1617**An internal tool by [Prompt Security](https://prompt.security)**1819---2021## Quick Reference2223| Release Type | Command | Tag Format |24|-------------|---------|------------|25| Skill release | `./scripts/release-skill.sh <name> <version>` | `<name>-v<version>` |26| Pre-release | `./scripts/release-skill.sh <name> 1.0.0-beta1` | `<name>-v1.0.0-beta1` |2728---2930## Release Workflow3132### Step 1: Determine Version Type3334Ask what changed:35- **Bug fixes only** โ Patch (1.0.0 โ 1.0.1)36- **New features, backward compatible** โ Minor (1.0.0 โ 1.1.0)37- **Breaking changes** โ Major (1.0.0 โ 2.0.0)38- **Testing/unstable** โ Pre-release (1.0.0-beta1, 1.0.0-rc1)3940### Step 2: Pre-flight Checks4142```bash43# Check for uncommitted changes44git status4546# Verify skill directory exists47ls skills/<skill-name>/skill.json4849# Get current version50jq -r '.version' skills/<skill-name>/skill.json51```5253### Step 3: Run Release Script5455```bash56./scripts/release-skill.sh <skill-name> <new-version>57```5859The script will:601. Validate version format (semver)612. Check tag doesn't already exist623. Update skill.json version634. Update SKILL.md frontmatter version (if file exists)645. Update hardcoded version URLs (feed_url)656. Commit changes667. Create annotated git tag6768### Step 4: Push Release6970```bash71git push && git push origin <skill-name>-v<version>72```7374### Step 5: Verify Release7576After pushing, the CI/CD pipeline will:771. Validate skill exists782. Verify version matches skill.json793. Verify version matches SKILL.md frontmatter (if exists)804. Generate checksums from SBOM815. Create .skill package (ZIP)826. Create GitHub Release837. Trigger website rebuild (for non-internal skills)8485Verify at:86- **GitHub Releases:** `https://github.com/prompt-security/clawsec/releases/tag/<skill-name>-v<version>`87- **GitHub Actions:** Check workflow run status8889---9091## Undo a Release (Before Push)9293If you need to undo before pushing:9495```bash96git reset --hard HEAD~1 && git tag -d <skill-name>-v<version>97```9899---100101## Pre-release Versions102103For beta, alpha, or release candidates:104105```bash106./scripts/release-skill.sh <skill-name> 1.2.0-beta1107./scripts/release-skill.sh <skill-name> 1.2.0-alpha1108./scripts/release-skill.sh <skill-name> 1.2.0-rc1109```110111Pre-releases are automatically marked in GitHub Releases.112113---114115## Common Issues116117| Error | Solution |118|-------|----------|119| `Tag already exists` | Choose a different version number |120| `Version mismatch in CI` | Ensure you used the release script (not manual tagging) |121| `SKILL.md version mismatch` | Ensure you used the release script which updates both skill.json and SKILL.md |122| `Uncommitted changes` | Commit or stash first: `git stash` or `git add . && git commit` |123| `skill.json not found` | Verify skill directory path is correct |124125---126127## Internal Skills128129Skills with `"internal": true` in their `openclaw` section:130- Are released normally via GitHub Releases131- Are NOT shown in the public skills catalog website132- Can still be downloaded directly from release URLs133134This skill (`claw-release`) is an internal skill.135136---137138## Existing Skills139140| Skill | Category | Internal |141|-------|----------|----------|142| clawsec-feed | security | No |143| clawtributor | security | No |144| openclaw-audit-watchdog | security | No |145| soul-guardian | security | No |146| claw-release | utility | Yes |147148---149150## Verification Checklist151152After release, confirm:153- [ ] GitHub Release exists with correct tag154- [ ] Release has: skill.json, SKILL.md, checksums.json, .skill package155- [ ] Release is marked as pre-release if applicable156- [ ] GitHub Actions workflow completed successfully157- [ ] Website updated (for non-internal skills only)158159---160161## License162163MIT License - See repository for details.164165Built by the [Prompt Security](https://prompt.security) team.166
Full transparency โ inspect the skill content before installing.