Skip to content

Commit 59ae351

Browse files
feat(skill): teach the skill to generate documents, not just parse them
The generators shipped; every discovery surface here still described a parser. An agent asked to "turn these notes into a PowerPoint" matched nothing in the frontmatter description, and mcpConvert was the only tool without a fallback script. - description now triggers on create/generate/write/author/build/make - new "Generating Documents" section: Markdown is the authoring format, what survives the trip, and what cannot — headers, footers, comments and tracked changes have no Markdown syntax, so the skill says so rather than letting an agent promise a running header - new scripts/convert.sh, the missing fallback - /api/v1/convert documented in Core Endpoints, api-reference.md (four input modes, response shape, metering) and integration-guide.md (Python/TS/curl) - prompt-based AI generation recorded as CLI-only, absent from the hosted API, so agents do not offer it Also fixes a live bug found on the way: all six scripts and all ten resource-file examples defaulted to the dev Cloud Run URL while SKILL.md stated "Default: production". - block types 9 -> the real 11 (Link and Comment were missing) - `encoding` documented as load-bearing everywhere it appears: base64 for the six ZIP targets, utf8 for html/md/qmd, branch on the field and never on the target - deployment/GCP section removed from the public skill; preserved in sunholo/docparse internal-docs/deploy-pipeline.md - every sunholo.com link verified 200. Docs pages move to /ailang-parse/ (the /docparse/ ones are live 404s); the dashboard correctly stays on /docparse/ convert.sh usage, error and both decode paths verified; the error path against production. The success path is NOT yet verified — the local key is expired. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent 2d891b0 commit 59ae351

15 files changed

Lines changed: 379 additions & 91 deletions

File tree

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ Per-document pricing (not per-page). Free: 1,000 requests/month, 50 AI parses. P
4545

4646
Base URL: `https://docparse.ailang.sunholo.com`
4747
MCP endpoint: `https://docparse.ailang.sunholo.com/mcp/`
48-
Documentation: `https://www.sunholo.com/docparse/`
48+
Documentation: `https://www.sunholo.com/ailang-parse/`

CLAUDE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# AILANG Parse — Claude Code Plugin
22

3-
This is the Claude Code plugin for [AILANG Parse](https://www.sunholo.com/docparse/), a universal document parsing and generation API.
3+
This is the Claude Code plugin for [AILANG Parse](https://www.sunholo.com/ailang-parse/), a universal document parsing and generation API.
44

55
## MCP Server
66

@@ -9,7 +9,7 @@ This plugin registers an MCP server at `https://docparse.ailang.sunholo.com/mcp/
99
| Tool | Purpose | Auth Required |
1010
|------|---------|---------------|
1111
| `mcpParse` | Parse any document into blocks, Markdown, or HTML | Hosted: yes |
12-
| `mcpConvert` | Convert between 17 input and 9 output formats | Hosted: yes |
12+
| `mcpConvert` | Generate a document — docx, pptx, xlsx, odt, odp, ods, html, md, qmd | Hosted: yes |
1313
| `mcpFormats` | Discover formats, 26 samples, pricing tiers, capabilities | No |
1414
| `mcpEstimate` | Predict cost/latency before parsing | No |
1515
| `mcpAuth` | Start device auth to get an API key (RFC 8628) | No |

GEMINI.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The plugin registers an MCP server at `https://docparse.ailang.sunholo.com/mcp/`
1616
1. **mcpFormats** — Discover formats, samples, pricing. Call this first.
1717
2. **mcpEstimate** — Predict cost/latency before parsing.
1818
3. **mcpParse** — Parse documents into blocks, Markdown, or HTML.
19-
4. **mcpConvert**Convert between 17 input and 9 output formats.
19+
4. **mcpConvert**Generate a document — docx, pptx, xlsx, odt, odp, ods, html, md, qmd.
2020
5. **mcpAuth** — Start RFC 8628 device auth to get an API key.
2121
6. **mcpAuthPoll** — Poll for auth completion.
2222
7. **mcpAccount** — View tier, quota, usage, pricing, history.
@@ -47,5 +47,5 @@ bash skills/ailang-parse/scripts/device-auth.sh # Get API key
4747
## API
4848

4949
- Base URL: `https://docparse.ailang.sunholo.com`
50-
- Docs: `https://www.sunholo.com/docparse/`
50+
- Docs: `https://www.sunholo.com/ailang-parse/`
5151
- Pricing: Per-document (not per-page). Free tier: 1,000/month.

README.md

Lines changed: 30 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# AILANG Parse — Claude Code Plugin
22

3-
Parse any document into structured blocks using the [AILANG Parse API](https://www.sunholo.com/docparse/).
3+
Parse any document into structured blocks — and generate documents in 9 formats — using the [AILANG Parse API](https://www.sunholo.com/ailang-parse/).
44

55
## Install
66

@@ -13,31 +13,44 @@ Inside Claude Code, add the marketplace and install the plugin:
1313

1414
## What It Does
1515

16-
This plugin registers an **MCP server** and a **skill** for document parsing. When installed, Claude automatically gets 7 tools:
16+
This plugin registers an **MCP server** and a **skill** for document parsing and generation. When installed, Claude automatically gets these tools:
1717

1818
| Tool | Purpose |
1919
|------|---------|
2020
| `mcpParse` | Parse any document into blocks, Markdown, or HTML |
21-
| `mcpConvert` | Convert between 17 input and 9 output formats |
21+
| `mcpConvert` | Generate a document — docx, pptx, xlsx, odt, odp, ods, html, md, qmd |
2222
| `mcpFormats` | Discover formats, samples, pricing, capabilities |
2323
| `mcpEstimate` | Predict cost/latency before parsing |
2424
| `mcpAuth` | Get an API key via device auth (RFC 8628) |
2525
| `mcpAuthPoll` | Poll for auth completion |
2626
| `mcpAccount` | View tier, quota, usage, pricing, history |
2727

28-
Just ask Claude to parse a document — the MCP tools handle everything automatically, including authentication.
28+
Just ask Claude to parse or produce a document — the MCP tools handle everything automatically, including authentication.
2929

3030
## Quick Start
3131

3232
```
33-
# Ask Claude directly:
33+
# Reading documents:
3434
"Parse this DOCX file and show me the headings"
3535
"Extract tables from report.xlsx"
3636
"Convert this PDF to markdown"
37-
"What formats do you support for document parsing?"
37+
38+
# Producing documents:
39+
"Turn these notes into a PowerPoint"
40+
"Write this up as a Word document"
41+
"Give me that summary as an .xlsx"
42+
"Export this analysis as Quarto"
43+
44+
# About the service:
45+
"What formats do you support?"
3846
"How much would it cost to parse this file?"
3947
```
4048

49+
To generate a document, Claude writes Markdown and converts it — front matter,
50+
tables, inline formatting, links and embedded images all carry through. Headers,
51+
footers, comments and tracked changes have no Markdown syntax, so those survive
52+
only when converting *from* a document that already has them.
53+
4154
No manual API key setup needed. If auth is required, Claude will walk you through the device auth flow.
4255

4356
## Manual API Key (Optional)
@@ -53,13 +66,19 @@ Or get one via:
5366

5467
## Supported Formats
5568

69+
**Parsing:**
70+
5671
| Category | Formats | Speed |
5772
|----------|---------|-------|
5873
| Office | DOCX, PPTX, XLSX, ODT, ODP, ODS | 5-50ms deterministic |
59-
| Text | CSV, Markdown, HTML, EPUB, EML, MBOX | 5-15ms deterministic |
74+
| Text | CSV, Markdown, HTML, EPUB, EML, MBOX, TEX, RTF | 5-15ms deterministic |
6075
| PDF/Image | PDF, PNG, JPG | AI-powered |
6176
| Audio/Video | MP3, MP4 | AI-powered |
6277

78+
**Generation (9):** DOCX, PPTX, XLSX, ODT, ODP, ODS, HTML, Markdown, QMD (Quarto)
79+
80+
Ask `mcpFormats` for the live list — it is the service's own answer and never goes stale.
81+
6382
## Pricing
6483

6584
Per-document pricing (not per-page). A 1-page or 1,000-page document costs the same.
@@ -72,7 +91,7 @@ Per-document pricing (not per-page). A 1-page or 1,000-page document costs the s
7291

7392
## Links
7493

75-
- [Documentation](https://www.sunholo.com/docparse/)
76-
- [API Reference](https://www.sunholo.com/docparse/api.html)
77-
- [MCP Server Guide](https://www.sunholo.com/docparse/mcp.html)
78-
- [Pricing](https://www.sunholo.com/docparse/pricing.html)
94+
- [Documentation](https://www.sunholo.com/ailang-parse/)
95+
- [API Reference](https://www.sunholo.com/ailang-parse/api.html)
96+
- [MCP Server Guide](https://www.sunholo.com/ailang-parse/mcp.html)
97+
- [Pricing](https://www.sunholo.com/ailang-parse/pricing.html)

plugins/ailang-parse/.claude-plugin/plugin.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "ailang-parse",
3-
"description": "AILANG Parse — Universal document parsing and generation. Parse 17 formats into structured blocks via MCP. Includes auth, billing, cost estimation, and account management tools for AI agents.",
4-
"version": "0.10.0",
3+
"description": "AILANG Parse — Universal document parsing and generation. Parse documents into structured blocks and generate DOCX, PPTX, XLSX, ODT, ODP, ODS, HTML, Markdown and Quarto via MCP. Includes auth, billing, cost estimation, and account tools.",
4+
"version": "0.11.0",
55
"author": {
66
"name": "Holosun ApS"
77
}

0 commit comments

Comments
 (0)