xiaohongshu
xiaohongshu
extract-version
Parse and validate semantic version strings from various formats. Use for extracting versions from text, validating semver compliance, or comparing version numbers.
Full skill instructions
Parse semantic version strings and validate semver compliance.
Accept version string in various formats.
Expected Input:
versionString: String (e.g., "v0.7.0", "0.7.0", "version: 0.7.0", "Ver. 1.2.3-beta.1")Use regex to extract semver pattern.
Patterns to Match:
X.Y.Z: Basic semvervX.Y.Z: With 'v' prefixX.Y.Z-prerelease: With prerelease tagX.Y.Z+build: With build metadataX.Y.Z-prerelease+buildRegex:
(\d+)\.(\d+)\.(\d+)(?:-([a-zA-Z0-9.-]+))?(?:\+([a-zA-Z0-9.-]+))?
Extract major, minor, patch, and optional components.
Components:
major: First numberminor: Second numberpatch: Third numberprerelease: Optional prerelease tag (after -)build: Optional build metadata (after +)Check if version follows semantic versioning 2.0.0 spec.
Validation Rules:
Return structured version object.
Expected Output:
{
"major": 0,
"minor": 7,
"patch": 0,
"prerelease": null,
"build": null,
"original": "v0.7.0",
"normalized": "0.7.0",
"valid": true,
"semver": "0.7.0"
}
Input:
versionString: "0.7.0"
Output:
{
"major": 0,
"minor": 7,
"patch": 0,
"prerelease": null,
"build": null,
"original": "0.7.0",
"normalized": "0.7.0",
"valid": true,
"semver": "0.7.0"
}
Input:
versionString: "v1.2.3"
Output:
{
"major": 1,
"minor": 2,
"patch": 3,
"prerelease": null,
"build": null,
"original": "v1.2.3",
"normalized": "1.2.3",
"valid": true,
"semver": "1.2.3"
}
Input:
versionString: "2.0.0-beta.1"
Output:
{
"major": 2,
"minor": 0,
"patch": 0,
"prerelease": "beta.1",
"build": null,
"original": "2.0.0-beta.1",
"normalized": "2.0.0-beta.1",
"valid": true,
"semver": "2.0.0-beta.1"
}
Input:
versionString: "1.0.0-alpha.1+001"
Output:
{
"major": 1,
"minor": 0,
"patch": 0,
"prerelease": "alpha.1",
"build": "001",
"original": "1.0.0-alpha.1+001",
"normalized": "1.0.0-alpha.1+001",
"valid": true,
"semver": "1.0.0-alpha.1+001"
}
Input:
versionString: "Version: 0.8.0 released on 2025-10-17"
Output:
{
"major": 0,
"minor": 8,
"patch": 0,
"prerelease": null,
"build": null,
"original": "Version: 0.8.0 released on 2025-10-17",
"normalized": "0.8.0",
"valid": true,
"semver": "0.8.0"
}
Input:
versionString: "1.2.a"
Output:
{
"valid": false,
"error": "Invalid version format: patch must be numeric",
"original": "1.2.a"
}
None required - pure parsing logic with regex.
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