document-intelligence

document-intelligence is a skill for Claude Code, Codex from l0s3r-Q/wps-skills. It costs 270 tokens per session (8,667 once invoked), scanned A, original, MIT.

A document-production assistant that turns a plain-language request into a finished Word, spreadsheet, PDF, or presentation file. It first identifies the document type and then plans its structure and formatting.

In plain words
What is it for?
Use it to create items such as contracts, academic papers, reports, meeting minutes, resumes, proposals, and product manuals, then generate and review the resulting file.
Why use it?
It helps when you know what document you need but not how to organize, format, generate, or check it.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create items such as contracts, academic papers, reports, meeting minutes, resumes, proposals, and product manuals, then generate and review the resulting file.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/l0s3r-q/wps-skills/document-intelligence
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add l0s3r-Q/wps-skills --skill document-intelligence
Clone the repo
git clone --depth 1 https://github.com/l0s3r-Q/wps-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for document-intelligence

README.md
[![agentmods](https://agentmods.dev/badge/skills/l0s3r-q/wps-skills/document-intelligence/github.svg)](https://agentmods.dev/skills/l0s3r-q/wps-skills/document-intelligence)
Your own site
<a href="https://agentmods.dev/skills/l0s3r-q/wps-skills/document-intelligence"><img src="https://agentmods.dev/badge/skills/l0s3r-q/wps-skills/document-intelligence/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for document-intelligence

Your own site · 80×15
<a href="https://agentmods.dev/skills/l0s3r-q/wps-skills/document-intelligence"><img src="https://agentmods.dev/badge/skills/l0s3r-q/wps-skills/document-intelligence.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 270 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,667 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00270 $0.08667
Opus 5 $0.00135 $0.04333
Sonnet 5 $0.00054 $0.01733
Haiku 4.5 $0.00027 $0.00867

Measured 9d ago against content hash b3680de0c1be, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

document-intelligence scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/document-intelligence/SKILL.md · 422 lines

How it starts

The opening of the file, as written. The whole thing — 422 lines — stays where its author put it; the contents beside it link to each section on GitHub.

document-intelligence —— 文档智能写作代理

能力概述

输入用户自然语言 → 判定文档类型 → 决策结构策略 → 制定写作计划 → 调用 document-toolkit MCP 解析/生成 → 输出成品 .docx / .xlsx / .pdf / .pptx

四层工作流:

  1. 意图识别:从用户描述中提取文档类型、主题、要求
  2. 类型判定:映射到 10 类规范 + 3 类格式(official/thesis/contract/bidding/general/legal/government_report/techdoc/resume/notice + excel/pdf/ppt)
  3. 结构决策:根据"是否有输入文件"和"是否要求改结构"选择策略
  4. 计划与执行:章节规划 → 内容要点 → 排版参数 → 生成 → 回读校验

一、意图识别规则

关键词 文档类型 doc_type
请示、批复、决定、意见、红头、发文、机关通知、政府令 党政公文 official
论文、学位论文、毕业论文、开题报告、学术论文、毕业设计 学位论文 thesis
合同、协议、合约、条款、甲乙双方、违约责任 合同协议 contract
招标、投标、招标公告、招标文件、投标文件、评标、中标 招投标文书 bidding
报告、方案、说明、总结、计划、邮件、说明书、通用文档 通用文档 general
会议纪要、周会纪要、会议记录、纪要 会议纪要 meeting_minutes
演讲稿、演讲、致辞、发言稿、讲话稿、汇报发言 演讲稿 speech
方案建议书、项目建议书、立项方案、建议方案、实施方案 方案建议书 proposal
邀请函、邀请信、请柬、参会邀请 邀请函 invitation
新闻稿、宣传稿、通讯稿、媒体报道 新闻稿 news_release
工作总结、年度总结、季度总结、述职总结 工作总结 work_summary
产品说明书、产品手册、使用说明书 产品说明书 product_manual
验收报告、项目验收、竣工验收 验收报告 acceptance_report
起诉状、答辩状、律师函、上诉状、法律文书、诉讼、仲裁申请 法律文书 legal
政府工作报告、政府汇报、人大报告、政府述职 政府工作报告 government_report
需求说明书、设计文档、操作手册、技术方案、接口文档、白皮书 技术文档 techdoc
简历、个人简介、求职、应聘 简历 resume
通知公告、放假通知、会议通知、活动通知、停水停电通知、放假公告、公司公告、社区公告 通知公告 notice
Excel、表格、报表、数据表、花名册、Excel清单、数据清单、xlsx、统计表 Excel 表格 excel
PDF、导出PDF、转成PDF、转PDF、生成PDF PDF 转换 pdf
PPT、演示文稿、幻灯片、汇报演示、路演、pptx、做PPT PPT 演示 ppt

判定规则(按优先级):

  1. 明确改写指令优先:"改成X/按X格式/按X规范" → 以目标类型为准(如"把方案改成招标公告"→ bidding)
  2. 最长关键词优先:命中多个类型时,取匹配关键词最长的类型(如"会议通知"(4 字)优于"通知"(2 字)→ notice)
  3. 等长冲突时按表序(official > thesis > contract > bidding > legal > government_report > techdoc > resume > notice > excel > pdf > general)
  4. "通知/公告"语境规则:出现"公司/社区/单位内部/放假/活动"等非党政语境 → notice;出现"红头/发文/机关" → official
  5. "报告"默认归 general(工作总结报告),除非明确"政府工作报告"(→ government_report)或公文体裁词;"会议纪要/周会纪要/会议记录"归 meeting_minutes
  6. Excel/PDF/PPT 指令独立判定:"做/生成/导出 XX 表格/报表/花名册" → excel;"转 PDF/导出 PDF" → pdf;"做 PPT/做演示/生成幻灯片" → ppt(与文档类型并行,且当动词为 做/生成/导出/转、宾语为表格/报表/PDF/演示类时优先于 doc_type 判定)
  7. 无法判定时默认 general。

Read the full file on GitHub · 422 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 422 lines · 270 tokens per session scan A b3680de0c1be

Subscribe to this mod's changes

document-intelligence is a skill published in the GitHub repository l0s3r-Q/wps-skills (0 stars, last pushed 1mo ago), licensed MIT. It adds 270 tokens to every session and 8,667 once invoked, about $0.0014 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.