Agent skill
pdf-processing
提取PDF文件中的文本,并按标题/段落结构化输出。适用于文档总结、数据提取等场景。
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/documents/pdf-processing-skill
SKILL.md
PDF文本提取技能
概述
本Skill用于从PDF文件中提取文本,并按照“标题→子标题→段落”的层级结构化输出。支持处理多页PDF,自动忽略页眉/页脚。
工作流程
- 上传PDF:用户将PDF文件上传至Claude Code或Claude.ai;
- 提取文本:调用
scripts/extract_text.py脚本,提取PDF中的所有文本; - 结构化处理:按换行符和标题层级(如“# 标题”“## 子标题”)拆分内容;
- 输出结果:根据
templates/output_template.md生成结构化Markdown文档。
使用示例
输入:上传一份“2024年年度报告.pdf”
输出:生成包含“1. 公司概况→1.1 业务范围→段落”的结构化总结。
依赖说明
- Python库:PyPDF2(用于PDF文本提取),需提前安装(
pip install pypdf2)。
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?