Skip to content
bookstrap-export-project logo

Project Export Command

bookstrap-export-project

Export complete project including manuscript, database, and configuration

SKILL.md

Full skill instructions

Project Export Command

Export the entire Bookstrap project for backup, sharing, or archiving.

What It Does

Creates a complete project export including:

  • Manuscript files
  • Database backup
  • Configuration files
  • Source documents
  • Research notes
  • Edit reports
  • Git history (optional)

Usage

/​bookstrap-export-project --output project-export.zip

Options

/​bookstrap-export-project \
  --output export.zip \
  --include-git \
  --include-sources \
  --format zip

Export Contents

Always Included

  • manuscript/ - All written sections
  • BRD.md - Book Requirements Document
  • bookstrap.config.json - Project configuration
  • database-backup.surql - Full database export
  • export-manifest.json - Metadata about the export

Optional Inclusions

  • --include-git: Include .git directory (version history)
  • --include-sources: Include ingested source documents
  • --include-logs: Include edit reports and logs
  • --include-schema: Include database schema files

Export Formats

ZIP Archive (default)

/​bookstrap-export-project --output my-book.zip

Creates a compressed ZIP file.

TAR.GZ Archive

/​bookstrap-export-project --output my-book.tar.gz --format tar.gz

Creates a compressed tarball.

Directory

/​bookstrap-export-project --output my-book-export --format directory

Exports to a directory (no compression).

Export Manifest

Each export includes export-manifest.json:

{
  "project_name": "My Book",
  "exported_at": "2026-02-01T12:00:00Z",
  "bookstrap_version": "1.0.0",
  "export_format": "zip",
  "contents": {
    "manuscript": {
      "chapters": 12,
      "sections": 48,
      "total_words": 75420,
      "status": "draft"
    },
    "database": {
      "sources": 42,
      "entities": 156,
      "relationships": 384
    },
    "configuration": {
      "embedding_provider": "openai",
      "search_provider": "tavily"
    }
  },
  "checksums": {
    "manuscript": "sha256:abc123...",
    "database": "sha256:def456..."
  }
}

Implementation

#!/​bin/​bash

OUTPUT=$1
FORMAT=${2:-zip}

# Create temporary export directory
EXPORT_DIR=$(mktemp -d)
PROJECT_NAME=$(basename $(pwd))

echo "Exporting project to: $OUTPUT"

# Export manuscript
cp -r manuscript/ $EXPORT_DIR/​manuscript/

# Export configuration
cp BRD.md $EXPORT_DIR/
cp bookstrap.config.json $EXPORT_DIR/

# Backup database
./​scripts/​backup-db.sh $EXPORT_DIR/​database-backup.surql

# Generate manifest
python ./​scripts/​generate-export-manifest.py \
  --output $EXPORT_DIR/​export-manifest.json

# Optional: Include git history
if [[ "$INCLUDE_GIT" == "true" ]]; then
  cp -r .git $EXPORT_DIR/
fi

# Create archive
if [[ "$FORMAT" == "zip" ]]; then
  cd $EXPORT_DIR && zip -r $OUTPUT *
elif [[ "$FORMAT" == "tar.gz" ]]; then
  tar -czf $OUTPUT -C $EXPORT_DIR .
else
  mv $EXPORT_DIR $OUTPUT
fi

echo "Export complete: $OUTPUT"

Import/​Restore

To restore from an export:

/​bookstrap-import-project --input project-export.zip

This will:

  1. Extract archive
  2. Restore database from backup
  3. Copy manuscript files
  4. Restore configuration
  5. Verify integrity using checksums

Best Practices

  1. Export regularly for backup
  2. Include git history for version control
  3. Exclude sources if large files (can re-ingest)
  4. Verify export before deleting originals
  5. Use semantic versioning for export filenames

Use Cases

Backup

/​bookstrap-export-project \
  --output backups/​my-book-$(date +%Y%m%d).zip \
  --include-git

Sharing with Collaborators

/​bookstrap-export-project \
  --output my-book-collab.zip \
  --include-sources \
  --include-logs

Archiving Final Version

/​bookstrap-export-project \
  --output my-book-final-v1.0.zip \
  --include-git \
  --include-sources \
  --include-logs

Example Output

Exporting Bookstrap project...

Preparing export directory...
├─ Copying manuscript (48 sections, 75,420 words)
├─ Copying configuration files
├─ Backing up database (42 sources, 156 entities)
├─ Generating export manifest
├─ Calculating checksums
└─ Creating ZIP archive

Export complete!

File: my-book-export.zip
Size: 12.4 MB
Contents:
  - Manuscript: 48 sections
  - Database: 42 sources, 156 entities
  - Configuration: bookstrap.config.json
  - Git history: 127 commits

Verify with: unzip -l my-book-export.zip

More Other skills

Delegate independent tasks to specialized agents working concurrently with isolated context.

295.4K 206.3K
View

Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.

179.7K 100.1K
View

Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.

179.7K 89.5K
View

A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.).

179.7K 76.1K
View

Fundamental design principles for writing maintainable, testable Python code.

40.2K 21.9K
View

Modern responsive layouts using container queries, fluid typography, CSS Grid, and mobile-first strategies.

40.2K 20K
View

Generate Playwright tests from scenarios using interactive browser exploration and validation.

39.7K 18.2K
View

Modern React state management with Redux Toolkit, Zustand, Jotai, and React Query for every state category.

40.2K 14.7K
View

GDPR-compliant data handling with consent management, data subject rights, and privacy controls.

40.2K 14.3K
View

Python error handling patterns including input validation, exception hierarchies, and partial failure handling. Use when implementing validation logic, designing exception strategies, handling batch processing failures, or building robust APIs.

40.2K 13.5K
View

Detailed multi-file refactor planning with safety checks and rollback guidance.

39.7K 13K
View