sn-da-non-spreadsheet-analysis
Skill5.7k starsChanged 7 months agoMITView on GitHub
Word / PDF / PPT 文档解析与数据分析引擎。覆盖三类文件格式的全量提取、表格数值化、图表理解与跨文档汇总分析。**遇到以下任一情况就主动使用本 skill**:①用户上传或指定了 .docx / .doc / .pdf / .pptx / .ppt 文件并要求分析、提取或统计其中内容;②用户出现触发词:Word分析 / PDF解析 / PPT提取 / 文档分析 / 报告解析 / 幻灯片分析 / 发票提取 / 合同分析 / 文档统计 / 错别字 / 语病 / 字号检查 / 简历分析 / 多文档对比;③任务涉及从文档中提取表格、数值、图表、格式(颜色/高亮/字号)、组织架构、时间线等结构化信息。仅不用于:Excel/CSV 数据分析(使用 sn-da-excel-workflow)、纯图片分析(使用 sn-da-image-caption)。
Trending
Quiet since September.thin dataabout the whole repository
Who's talking about OpenSenseNova/SenseNova-Skills
- sudosubin/agents.nix“agent-skills.github.opensensenova.sensenova-skills: init at 2026.09”GitHub · Sep 30, 2026
- OpenSenseNova/SenseNova6.7“docs: 安装入口合并到 SenseNova-Skills INSTALL 文档”GitHub · Apr 29, 2026
- SenseTime-FVG/agent_pack“Sync SenseNova-Skills to latest upstream (+2 new skills)”GitHub · Apr 28, 2026
The biggest 3 of 3 mentions linking to the repository that our crawl found. Each line is their own headline.
In this repository35 other files it gives its agents.
- sn-da-excel-workflowSkill
- sn-da-image-captionSkill
- sn-da-large-file-analysisSkill
- sn-deepresearch-cliSkill
- sn-deep-researchSkill
- sn-image-baseSkill
- sn-image-doctorSkill
- sn-image-imitateSkill
- sn-image-resumeSkill
- sn-infographicSkill
- sn-md-to-html-reportSkill
- sn-motion-htmlSkill
- sn-ppt-creativeSkill
- sn-ppt-dazzleSkill
- sn-ppt-doctorSkill
- sn-ppt-entrySkill
- sn-ppt-standardSkill
- sn-ppt-storySkill
- sn-ppt-toolsSkill
- sn-ppt-workbenchSkill
- sn-prepare-citationsSkill
- sn-proactive-agentSkill
- sn-report-format-discoverySkill
- sn-research-reportSkill
- sn-search-academicSkill
- sn-search-codeSkill
- sn-search-financeSkill
- sn-search-imageSkill
- sn-search-market-cnSkill
- sn-search-social-cnSkill
- sn-search-social-enSkill
- sn-search-social-mediaSkill
- sn-search-year-reportSkill
- sn-team-harnessSkill
- sn-updateSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 6 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 61
Follow the sub-skill's extraction pattern.
- Very specific: line 65
Image/chart detection: if a page/slide yields no text, treat it as image-based and call caption.py
- Distinctive: line 71
After extracting data, verify before answering:
- Very specific: line 98
Do NOT use pytesseract or easyocr as primary OCR — they are not installed.
- Distinctive: line 99
Do NOT use PIL pixel analysis to infer chart values — use vision model caption instead
- Distinctive: line 100
Do NOT stop at the first file, first page, or first table
- Distinctive: line 101
Do NOT guess content from filenames — always parse the actual file
- Distinctive: line 102
Do NOT output percentage when the question asks for absolute value (and vice versa)
- Very specific: line 108
When a page, slide, or embedded image needs vision understanding, load the sn-da-image-caption skill first, then use its scripts/caption.py:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Document Analysis Skill — Word / PDF / PPT
End-to-end workflow for Word, PDF, and PPT document parsing. Each format has specific parsing pitfalls — follow the format-specific sub-skill exactly.
Workflow
Step 0 — Identify file type and input scope
import os
input_path = "/mnt/data/..." # from user
# Detect single file vs directory (multi-file scenario)
if os.path.isdir(input_path):
all_files = [
os.path.join(input_path, f)
for f in os.listdir(input_path)
if f.lower().endswith(('.docx', '.doc', '.pdf', '.pptx', '.ppt'))
]
print(f"Found {len(all_files)} documents: {all_files}")
else:
all_files = [input_path]
# Route by extension
ext = os.path.splitext(all_files[0])[-1].lower()
print(f"File type: {ext}")Critical rule: When
input_pathis a directory OR the user says "这些文件" / "所有文档", process every file and aggregate. Never stop at the first file.
Step 1 — Load sub-skill by format
| Extension | Sub-skill to load |
.docx / .doc | capability/word-analysis/SKILL.md |
.pdf | capability/pdf-analysis/SKILL.md |
.pptx / .ppt | capability/ppt-analysis/SKILL.md |
read_file(path="<skills_root>/sn-da-non-spreadsheet-analysis/capability/<format>-analysis/SKILL.md")Load only the sub-skill you need — do not load all three at once.
Step 2 — Parse and extract
Follow the sub-skill's extraction pattern. For all formats:
- Full scan: iterate all pages/slides/paragraphs — never stop early
- Table extraction: get every table, not just the first one
- Image/chart detection: if a page/slide yields no text, treat it as image-based and call
caption.py
Step 3 — Answer with verification
After extracting data, verify before answering:
# For count/statistics questions: spot-check 3-5 items
sample = result_list[:3]
print(f"Sample check: {sample}")
print(f"Total count: {len(result_list)}")
# For numeric calculations: print intermediate values
print(f"Max={max_val}, Min={min_val}, Range={max_val - min_val}")
# For unit-sensitive answers: always include the unit
print(f"Answer: {value} {unit}") # e.g., "475 千港元" not just "475"Universal Rules
MUST DO
- Always iterate all pages/slides/paragraphs —
for page in doc,for slide in prs.slides,for para in doc.paragraphs - When input is a directory: collect and process all matching files, then aggregate results
- For scanned PDFs: detect empty text → call
caption.pyfor OCR - For image-only slides: text extraction returns empty → render slide as PNG → call
caption.py - For calculations: show intermediate values; confirm unit matches the question
NEVER DO
- Do NOT use
pytesseractoreasyocras primary OCR — they are not installed; usecaption.py - Do NOT use PIL pixel analysis to infer chart values — use vision model caption instead
- Do NOT stop at the first file, first page, or first table
- Do NOT guess content from filenames — always parse the actual file
- Do NOT output percentage when the question asks for absolute value (and vice versa)
Caption Script (for image/chart content in any document)
When a page, slide, or embedded image needs vision understanding, load the
sn-da-image-caption skill first, then use its scripts/caption.py:
read_file(path="<skills_root>/sn-da-image-caption/SKILL.md")import subprocess, json
CAPTION = "/path/to/skills/sn-da-image-caption/scripts/caption.py"
def caption_image(image_path, prompt=None):
cmd = ["python3", CAPTION, image_path, "--json"]
if prompt:
cmd += ["--prompt", prompt]
result = subprocess.run(cmd, capture_output=True, text=True, timeout=60)
if result.returncode != 0:
raise RuntimeError(f"caption failed: {result.stderr[:200]}")
return json.loads(result.stdout)["description"]
# Example prompts by content type:
# Table: "提取表格所有内容,Markdown 表格格式,保持行列结构,数值不四舍五入。"
# Chart: "提取图表标题、坐标轴标签、每个数据点的数值。Markdown 表格输出。"
# Diagram: "描述所有节点和连接关系。"Available sub-skills
sn-da-non-spreadsheet-analysis/capability/word-analysis/SKILL.md — .docx/.doc
sn-da-non-spreadsheet-analysis/capability/pdf-analysis/SKILL.md — .pdf
sn-da-non-spreadsheet-analysis/capability/ppt-analysis/SKILL.md — .pptx/.pptDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

