@muserock/cli
v0.1.0
Published
MuseRock CLI tool - A creative workflow companion for writers and creators
Downloads
56
Maintainers
Readme
MuseRock CLI
MuseRock CLI is a creative workflow companion for writers, storytellers, and creators. It provides a structured approach to creative work through the Prime-Cloister-Divergence-Reflection cycle.
Installation
Global Installation
npm install -g @muserock/cliLocal Installation
npm install @muserock/cliRequirements
- Node.js 18.0.0 or higher
Quick Start
After installation, you can start using the MuseRock CLI:
muserock --helpCommands
prime - Create or Edit a Prime Brief
The Prime Brief is the foundation of your creative project. It defines your intent, constraints, and references.
Usage:
muserock primeOptions:
| Option | Description |
|--------|-------------|
| -e, --edit | Edit the prime brief in your default editor |
| -f, --file <file> | Specify the file name to use |
Examples:
# Interactive mode
muserock prime
# Editor mode
muserock prime -e
# Use a custom file
muserock prime -f my-brief.jsoncloister - Enter Cloister Mode
Cloister mode is for deep reflection and focused work. It helps you dive deeper into your ideas.
Usage:
muserock cloisterdivergence - Generate Creative Ideas
Divergence mode helps you explore multiple creative paths and generate new ideas.
Usage:
muserock divergencereflection - Reflect on Progress
Reflection mode helps you review your progress, document what worked, and plan next steps.
Usage:
muserock reflectionexport - Export Project
Export your project to JSON, Markdown, or ZIP format.
Usage:
muserock exportOptions:
| Option | Description |
|--------|-------------|
| -p, --project-id <id> | ID of the project to export |
| -f, --format <format> | Output format: json, markdown, or zip (default: json) |
| -o, --output <path> | Output file path |
Examples:
# Interactive export
muserock export
# Export specific project to JSON
muserock export -p project-123 -f json -o my-project.json
# Export to ZIP (includes all files)
muserock export -p project-123 -f zip -o my-project.zipExport Formats:
- JSON: Complete project data as a single JSON file (web app compatible)
- Markdown: Human-readable Markdown format with all project content
- ZIP: Complete package including JSON, Markdown, and individual files for elements, notes, etc.
import - Import Project
Import a project from JSON, ZIP, or Markdown file.
Usage:
muserock importOptions:
| Option | Description |
|--------|-------------|
| -f, --file <file> | Path to the file to import |
| -n, --name <name> | Custom name for the imported project |
Examples:
# Interactive import
muserock import
# Import a specific file
muserock import -f my-project.json
# Import with custom name
muserock import -f my-project.zip -n "New Project Name"Import Formats:
- JSON: Import from a previously exported JSON file
- ZIP: Import from a ZIP package (must contain
project.json) - Markdown: Creates a new project with basic structure
Workflow
The MuseRock workflow follows a four-stage cycle:
- Prime - Define your intent, constraints, and references
- Cloister - Deep dive into focused work
- Divergence - Explore multiple creative paths
- Reflection - Review progress and plan next steps
Project Storage
Projects are stored in your home directory under ~/.muserock/projects/. Each project is saved as a JSON file.
Development
Building
npm run buildDevelopment Mode
npm run devTesting
npm testWatch Mode
npm run test:watchContributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
MIT
