gitbook-5-content-variants-versions

Sub-skill of gitbook: 5. Content Variants (Versions) (+1).

5 stars

Best use case

gitbook-5-content-variants-versions is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Sub-skill of gitbook: 5. Content Variants (Versions) (+1).

Teams using gitbook-5-content-variants-versions should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/5-content-variants-versions/SKILL.md --create-dirs "https://raw.githubusercontent.com/vamseeachanta/workspace-hub/main/.agents/skills/_archive/development/documentation/gitbook/5-content-variants-versions/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/5-content-variants-versions/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How gitbook-5-content-variants-versions Compares

Feature / Agentgitbook-5-content-variants-versionsStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Sub-skill of gitbook: 5. Content Variants (Versions) (+1).

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# 5. Content Variants (Versions) (+1)

## 5. Content Variants (Versions)


**REST API - Variants:**
```bash
# List variants for space
curl -s -H "Authorization: Bearer $GITBOOK_API_TOKEN" \
    "$API_BASE/spaces/SPACE_ID/variants" | jq

# Create variant
curl -s -X POST -H "Authorization: Bearer $GITBOOK_API_TOKEN" \
    -H "Content-Type: application/json" \
    "$API_BASE/spaces/SPACE_ID/variants" \
    -d '{
        "title": "v2.0",
        "slug": "v2"
    }' | jq

# Get variant content
curl -s -H "Authorization: Bearer $GITBOOK_API_TOKEN" \
    "$API_BASE/spaces/SPACE_ID/variants/VARIANT_ID/content" | jq

# Set primary variant
curl -s -X PUT -H "Authorization: Bearer $GITBOOK_API_TOKEN" \
    "$API_BASE/spaces/SPACE_ID/variants/VARIANT_ID/primary" | jq

# Delete variant
curl -s -X DELETE -H "Authorization: Bearer $GITBOOK_API_TOKEN" \
    "$API_BASE/spaces/SPACE_ID/variants/VARIANT_ID"
```

**Python - Variants:**
```python
class GitBookClient:
    # ... previous methods ...

    def list_variants(self, space_id):
        """List all variants for space."""
        return self._request("GET", f"/spaces/{space_id}/variants")

    def create_variant(self, space_id, title, slug):
        """Create a new variant."""
        return self._request(
            "POST",
            f"/spaces/{space_id}/variants",
            data={"title": title, "slug": slug}
        )

    def get_variant_content(self, space_id, variant_id):
        """Get variant content."""
        return self._request(
            "GET",
            f"/spaces/{space_id}/variants/{variant_id}/content"
        )

    def set_primary_variant(self, space_id, variant_id):
        """Set variant as primary."""
        return self._request(
            "PUT",
            f"/spaces/{space_id}/variants/{variant_id}/primary"
        )


# Create version variants
client.create_variant("space_xxxxx", "Version 1.0", "v1")
client.create_variant("space_xxxxx", "Version 2.0", "v2")
client.set_primary_variant("space_xxxxx", "variant_v2")
```


## 6. Git Synchronization


**GitBook YAML Configuration:**
```yaml
# .gitbook.yaml - Repository configuration

# Root path for documentation
root: ./docs/

# Structure file (table of contents)
structure:
  readme: README.md
  summary: SUMMARY.md

# Redirects for moved pages
redirects:
  old-page: new-page.md
  moved/page: new-location/page.md
```

**SUMMARY.md Structure:**
```markdown
# Summary

Related Skills

skill-dedup-collision-reconciliation-with-content-security-scan

5
from vamseeachanta/workspace-hub

Reconcile duplicate/colliding workspace-hub skills without losing useful content, while avoiding pre-commit skill-content security scan regressions.

plan-review-rerun-cli-drift-and-git-contention

5
from vamseeachanta/workspace-hub

Recover iterative plan-review work when provider CLI wrappers drift, fresh reviews expose stale governance text, and active git pre-push processes make committing unsafe.

youtube-content

5
from vamseeachanta/workspace-hub

Fetch YouTube video transcripts and transform them into structured content (chapters, summaries, threads, blog posts). Use when the user shares a YouTube URL or video link, asks to summarize a video, requests a transcript, or wants to extract and reformat content from any YouTube video.

content-strategy

5
from vamseeachanta/workspace-hub

Content marketing strategy with brand voice, editorial calendar, and content frameworks. Use for blog planning, content creation pipelines, and brand consistency. Based on alirezarezvani/Codex-skills.

skill-creator-content-quality

5
from vamseeachanta/workspace-hub

Sub-skill of skill-creator: Content Quality (+3).

orcaflex-model-generator-spec-variants

5
from vamseeachanta/workspace-hub

Sub-skill of orcaflex-model-generator: Spec Variants.

cad-engineering-lossy-conversions

5
from vamseeachanta/workspace-hub

Sub-skill of cad-engineering: Lossy Conversions (+1).

webapp-testing-wait-for-dynamic-content

5
from vamseeachanta/workspace-hub

Sub-skill of webapp-testing: Wait for Dynamic Content (+5).

sphinx-3-index-and-table-of-contents

5
from vamseeachanta/workspace-hub

Sub-skill of sphinx: 3. Index and Table of Contents.

gitbook-user-guide

5
from vamseeachanta/workspace-hub

Sub-skill of gitbook: User Guide.

gitbook-github-actions-for-git-sync

5
from vamseeachanta/workspace-hub

Sub-skill of gitbook: GitHub Actions for Git Sync (+1).

gitbook-getting-started

5
from vamseeachanta/workspace-hub

Sub-skill of gitbook: Getting Started.