Skip to content

πŸ€– Claude Code plugin for OmniScript Format (OSF) β€” Create, validate, lint, format & export universal documents to PDF, DOCX, PPTX, XLSX

Notifications You must be signed in to change notification settings

OmniScriptOSF/omniscript-claude-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ€– OmniScript Plugin for Claude Code

Create, validate, lint, format & export universal documents directly from Claude Code

License: MIT Version Claude Code OmniScript

πŸš€ Quick Start β€’ πŸ“¦ Installation β€’ ⚑ Commands β€’ 🧠 Skills β€’ πŸ€– Agents β€’ πŸ“– Documentation


Overview

OmniScript (OSF) is a universal document DSL that lets you write plain-text .osf files and export them to PDF, DOCX, PPTX, XLSX, and HTML. This plugin brings full OSF capabilities directly into Claude Code conversations.

✨ Features

  • 9 Commands β€” Slash commands for all document operations
  • 3 Skills β€” Agent-accessible knowledge about OSF syntax and best practices
  • 2 Agents β€” Specialized agents for document generation and conversion
  • 4 Templates β€” Ready-to-use document templates
  • 8 Examples β€” Reference examples for all block types

πŸš€ Quick Start

# 1. Add the marketplace (one-time)
claude plugin marketplace add OmniScriptOSF/omniscript-claude-plugin

# 2. Install the plugin
claude plugin install osf@omniscript-marketplace

# 3. Start using!
/osf:new document
/osf:lint my-document.osf
/osf:export-pdf my-document.osf

πŸ“¦ Installation

Option 1: Marketplace Installation (Recommended)

# Add the OmniScript marketplace
claude plugin marketplace add OmniScriptOSF/omniscript-claude-plugin

# Install the OSF plugin
claude plugin install osf@omniscript-marketplace

Option 2: Local Installation

# Clone the plugin
git clone https://github.com/OmniScriptOSF/omniscript-claude-plugin.git

# Use with plugin-dir flag
claude --plugin-dir /path/to/omniscript-claude-plugin

Option 3: Project-Level Installation

# In your project root
git clone https://github.com/OmniScriptOSF/omniscript-claude-plugin.git .claude-plugins/osf

⚑ Commands

Command Description Example
/osf:new Create new document from template /osf:new presentation
/osf:parse Parse and display AST /osf:parse doc.osf
/osf:lint Validate syntax /osf:lint doc.osf
/osf:format Format for consistency /osf:format doc.osf --write
/osf:diff Compare two files /osf:diff v1.osf v2.osf
/osf:export-pdf Export to PDF /osf:export-pdf doc.osf
/osf:export-docx Export to Word /osf:export-docx doc.osf
/osf:export-pptx Export to PowerPoint /osf:export-pptx slides.osf
/osf:export-xlsx Export to Excel /osf:export-xlsx data.osf

Command Examples

# Create a new presentation
/osf:new presentation

# Validate an OSF file
/osf:lint my-report.osf

# Export to PDF with corporate theme
/osf:export-pdf report.osf --theme corporate --output quarterly-report.pdf

# Compare two versions
/osf:diff report-v1.osf report-v2.osf

🧠 Skills

The plugin provides three skills that Claude accesses automatically:

osf-syntax

Complete OSF syntax reference including all block types, properties, and examples. Triggered when you ask about:

  • OSF syntax or structure
  • Block types (@meta, @doc, @slide, @sheet, @chart, @diagram, @table, @code)
  • How to write OSF documents

osf-troubleshooting

Common errors and solutions. Triggered when you encounter:

  • Parse errors
  • Validation failures
  • Export problems

osf-best-practices

Document patterns and guidelines. Triggered when:

  • Creating new documents
  • Organizing document structure
  • Optimizing for specific export formats

πŸ€– Agents

osf-generator

Generate complete OSF documents from natural language descriptions.

"Create a presentation about machine learning basics"
"Make a quarterly sales report template"
"Generate a project proposal document"

osf-converter

Convert existing documents to OSF format.

"Convert this markdown to OSF"
"Transform this CSV into an OSF spreadsheet"
"Turn this text into an OSF document"

πŸ“„ Templates

Ready-to-use templates in the templates/ directory:

Template Purpose Primary Blocks
document.osf Basic document @meta, @doc
presentation.osf Slide deck @meta, @slide
spreadsheet.osf Data workbook @meta, @sheet, @chart
report.osf Combined report @meta, @doc, @chart, @table

πŸ“š Examples

Example files demonstrating each block type in the examples/ directory:

File Block Type Description
meta-block.osf @meta Document metadata
doc-block.osf @doc Rich text content with Markdown
slide-block.osf @slide Presentation slides with layouts
sheet-block.osf @sheet Spreadsheet data
chart-block.osf @chart Bar, line, pie charts
diagram-block.osf @diagram Mermaid/Graphviz diagrams
table-block.osf @table Styled markdown tables
code-block.osf @code Syntax-highlighted code

πŸ“ Directory Structure

omniscript-claude-plugin/
β”œβ”€β”€ .claude-plugin/
β”‚   β”œβ”€β”€ plugin.json           # Plugin manifest
β”‚   └── marketplace.json      # Marketplace definition
β”œβ”€β”€ commands/                  # Slash commands
β”‚   β”œβ”€β”€ new/SKILL.md
β”‚   β”œβ”€β”€ parse/SKILL.md
β”‚   β”œβ”€β”€ lint/SKILL.md
β”‚   β”œβ”€β”€ format/SKILL.md
β”‚   β”œβ”€β”€ diff/SKILL.md
β”‚   β”œβ”€β”€ export-pdf/SKILL.md
β”‚   β”œβ”€β”€ export-docx/SKILL.md
β”‚   β”œβ”€β”€ export-pptx/SKILL.md
β”‚   └── export-xlsx/SKILL.md
β”œβ”€β”€ skills/                    # Agent skills
β”‚   β”œβ”€β”€ osf-syntax/
β”‚   β”‚   β”œβ”€β”€ SKILL.md
β”‚   β”‚   └── blocks-reference.md
β”‚   β”œβ”€β”€ osf-troubleshooting/SKILL.md
β”‚   └── osf-best-practices/SKILL.md
β”œβ”€β”€ agents/                    # Custom agents
β”‚   β”œβ”€β”€ osf-generator.md
β”‚   └── osf-converter.md
β”œβ”€β”€ templates/                 # Document templates
β”‚   β”œβ”€β”€ document.osf
β”‚   β”œβ”€β”€ presentation.osf
β”‚   β”œβ”€β”€ spreadsheet.osf
β”‚   └── report.osf
└── examples/                  # Block examples
    β”œβ”€β”€ meta-block.osf
    β”œβ”€β”€ doc-block.osf
    β”œβ”€β”€ slide-block.osf
    β”œβ”€β”€ sheet-block.osf
    β”œβ”€β”€ chart-block.osf
    β”œβ”€β”€ diagram-block.osf
    β”œβ”€β”€ table-block.osf
    └── code-block.osf

πŸ”§ Dependencies

This plugin uses the OmniScript CLI tools. For full functionality, ensure these are available:

# Core parser and CLI
/root/code/OmniScriptOSF/omniscript-core/

# Export converters
/root/code/OmniScriptOSF/omniscript-converters/

Export Dependencies

For full export functionality:

cd /root/code/OmniScriptOSF/omniscript-core
bun add puppeteer     # PDF export

cd /root/code/OmniScriptOSF/omniscript-converters
bun add docx          # DOCX export
bun add pptxgenjs     # PPTX export
bun add exceljs       # XLSX export

πŸ’¬ Getting Help

Ask Claude about OSF at any time:

  • "How do I create a chart in OSF?"
  • "What properties does @slide support?"
  • "Why is my OSF file not parsing?"
  • "What's the best way to structure a report?"

The plugin skills will automatically provide relevant information.


🀝 Contributing

Contributions welcome! The plugin follows Claude Code plugin conventions:

  • Commands go in commands/{name}/SKILL.md
  • Skills go in skills/{name}/SKILL.md
  • Agents go in agents/{name}.md

See the Claude Code Plugin Documentation for details.


πŸ“œ License

MIT License - see the OmniScriptOSF project for details.


πŸ”— Links

About

πŸ€– Claude Code plugin for OmniScript Format (OSF) β€” Create, validate, lint, format & export universal documents to PDF, DOCX, PPTX, XLSX

Topics

Resources

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •