Files
skill-lib/skills/office-export-xlsx/references/export-flow.md
木炎 51913555ad feat: add initial skill authoring workspace
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-02 18:34:56 +08:00

41 lines
730 B
Markdown

# Export Flow
This skill assumes an upstream structured artifact already exists.
## Input Contract
Required keys:
- `sheet_name`
- `columns`
- `rows`
Recommended keys:
- `source`
- `partial`
- `notes`
## Export Sequence
1. Confirm the task is export-only.
2. Validate that `sheet_name` is non-empty.
3. Validate that `columns` is a non-empty list.
4. Validate that `rows` is a list of row arrays aligned to `columns`.
5. Call `openxml_office` with:
- template path
- output `.xlsx` path
- `sheet_name`
- `columns`
- `rows`
6. Return the generated workbook path and any partial-data warning.
## Output Contract
Return:
- output file path
- sheet name
- row count
- whether the source artifact was partial