Skip to content
OpenSmartRoute
Skillv1.0.0

document-generation

A powerful skill for generating and processing professional documents (Word, PowerPoint, Excel, PDF).

by aiskillstore(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from aiskillstore/marketplace (skills/bohuyeshan-apb/document-generation/SKILL.md). Install upstream with npx skills add aiskillstore/marketplace --skill document-generation. Copyright stays with the author.

Document Generation & Processing Skill

This skill provides comprehensive capabilities for creating, editing, and extracting content from office documents. It is designed to be used by agents requiring document manipulation capabilities.

Capabilities

1. Document Generation

  • Word (.docx): Generate professional reports with headings, paragraphs, bullet points, and tables.
  • PowerPoint (.pptx): Create slide decks with titles, content, and consistent layouts.
  • Excel (.xlsx): Create spreadsheets with data and basic formatting.
  • PDF (.pdf): Generate PDF documents from text content.

2. Document Processing

  • Content Extraction: Extract text and structure from uploaded PDF, Word, PowerPoint, and Excel files.
  • Format Conversion: Convert between compatible formats.

Usage

This skill exposes a set of Python scripts located in the scripts/ directory.

Python API

from app.skills.common.document_skill.scripts.word_generator import WordGenerator
from app.skills.common.document_skill.scripts.ppt_generator import PPTGenerator
from app.skills.common.document_skill.scripts.excel_generator import excel_generator
from app.skills.common.document_skill.scripts.office_processor import OfficeProcessor

# Example: Generate a Word Document
word_gen = WordGenerator(output_dir="path/to/output")
file_path = word_gen.generate(markdown_content, "filename")

# Example: Extract content
processor = OfficeProcessor()
content = processor.process("path/to/file.pdf")

Dependencies

  • python-docx
  • python-pptx
  • openpyxl
  • reportlab (for PDF)
  • pypdf (for PDF extraction)

Directory Structure

  • scripts/: Implementation logic.
  • templates/: (Optional) Document templates.

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/aiskillstore-marketplace-document-generation/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

aiskillstore-marketplace-document-generation.ocm.jsonjson
{
  "ocm": "1",
  "id": "aiskillstore-marketplace-document-generation",
  "kind": "skill",
  "name": "document-generation",
  "description": "A powerful skill for generating and processing professional documents (Word, PowerPoint, Excel, PDF).",
  "publisher": "aiskillstore",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "general"
    ],
    "tags": [
      "skill-md",
      "document",
      "office",
      "generation",
      "processing",
      "skills-sh"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "A powerful skill for generating and processing professional documents (Word, PowerPoint, Excel, PDF)."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "skills.sh",
      "repository": "https://github.com/aiskillstore/marketplace",
      "path": "skills/bohuyeshan-apb/document-generation/SKILL.md",
      "ref": "HEAD",
      "url": "https://github.com/aiskillstore/marketplace/blob/HEAD/skills/bohuyeshan-apb/document-generation/SKILL.md",
      "key": "aiskillstore/marketplace/skills/bohuyeshan-apb/document-generation/SKILL.md"
    }
  },
  "instructions": "# Document Generation & Processing Skill\n\nThis skill provides comprehensive capabilities for creating, editing, and extracting content from office documents. It is designed to be used by agents requiring document manipulation capabilities.\n\n## Capabilities\n\n### 1. Document Generation\n- **Word (.docx)**: Generate professional reports with headings, paragraphs, bullet points, and tables.\n- **PowerPoint (.pptx)**: Create slide decks with titles, content, and consistent layouts.\n- **Excel (.xlsx)**: Create spreadsheets with data and basic formatting.\n- **PDF (.pdf)**: Generate PDF documents from t",
  "cost": {
    "context_tokens": 433
  }
}

Fetch it by URL: GET /api/v1/registry/aiskillstore-marketplace-document-generation/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.