AGENT SKILL

pdf

Read, extract text, extract tables, and summarize PDF documents. Use for examining specifications, reports, papers, and user manuals.

License 许可
MIT
最近更新
2026-10-16
Stars
★ 2
Forks
0

01 前言 Front Matter

name
pdf
description
Read, extract text, extract tables, and summarize PDF documents. Use for examining specifications, reports, papers, and user manuals.
argument-hint
Path to PDF file or research target
user-invocable
true
disable-model-invocation
false

03 SKILL.md 正文

PDF Document Inspection & Extraction

Purpose

Extract text, tables, metadata, and structural sections from PDF documents.

Use this skill when:

  • Reading specifications, papers, invoices, or documentation distributed as PDF
  • Extracting tabular data or code samples embedded within PDF pages
  • Converting PDF pages into Markdown for contextual prompting

Procedures & Tools

1. Command-Line Extraction

Use standard Linux/Unix CLI utilities via the bash tool:

# Extract full text to stdout or text file
pdftotext document.pdf - | head -n 100

# Extract specific page range
pdftotext -f 1 -l 5 document.pdf pages_1_5.txt

2. Python Extraction (pypdf / pdfplumber)

For structured tables and layout preservation:

import pypdf

reader = pypdf.PdfReader("document.pdf")
print("Total pages:", len(reader.pages))
text = "\n".join([page.extract_text() or "" for page in reader.pages[:10]])
print(text[:2000])

Best Practices

  1. Target Specific Sections: For long PDFs (>20 pages), inspect page count and table of contents before extracting all pages.
  2. Preserve Tables: If tables lose alignment with plain pdftotext, use pdftotext -layout or pdfplumber.

04 同仓库更多 Skills

sridhar-mani
sridhar-mani/npc-code

troubleshoot

Investigate unexpected chat agent behavior by analyzing direct debug logs in JSONL files. Use when users ask why something happened, why a request was slow, why tools or subagents were used or skipped, or why instructions/skills/agents did not load.

★ 2
sridhar-mani
sridhar-mani/npc-code

project-setup-info-local

Comprehensive setup steps to help the user create complete project structures in a VS Code workspace; this tool is designed for full project initialization and scaffolding, not for creating individual files. When to use this tool: user wants to create a new complete project from scratch; setting up entire project frameworks (TypeScript projects, React apps, Node.js servers, etc.); initializing Model Context Protocol (MCP) servers with full structure; creating VS Code extensions with proper scaffolding; setting up Next.js, Vite, or other framework-based projects; user asks for "new project", "create a workspace", "set up a [framework] project"; need to establish a complete development environment with dependencies, config files, and folder structure. When NOT to use this tool: creating single files or small code snippets; adding individual files to existing projects; making modifications to existing codebases; user asks to "create a file" or "add a component"; simple code examples or demonstrations; debugging or fixing existing code. This tool provides complete project setup including: folder structure creation; package.json and dependency management; configuration files (tsconfig, eslint, etc.); initial boilerplate code; development environment setup; build and run instructions. Use other file creation tools for individual files within existing projects.

★ 2
sridhar-mani
sridhar-mani/npc-code

project-setup-info-context7

Comprehensive setup steps to help the user create complete project structures in a VS Code workspace. This tool is designed for full project initialization and scaffolding, not for creating individual files. When to use this tool: when the user wants to create a new complete project from scratch; when setting up entire project frameworks (TypeScript projects, React apps, Node.js servers, etc.); when initializing Model Context Protocol (MCP) servers with full structure; when creating VS Code extensions with proper scaffolding; when setting up Next.js, Vite, or other framework-based projects; when the user asks for "new project", "create a workspace", or "set up a [framework] project"; when you need to establish a complete development environment with dependencies, config files, and folder structure. When NOT to use this tool: when creating single files or small code snippets; when adding individual files to existing projects; when making modifications to existing codebases; when the user asks to "create a file" or "add a component"; for simple code examples or demonstrations; for debugging or fixing existing code. This tool provides complete project setup including folder structure creation, package.json and dependency management, configuration files (tsconfig, eslint, etc.), initial boilerplate code, development environment setup, and build and run instructions. Use other file creation tools for individual files within existing projects.

★ 2
sridhar-mani
sridhar-mani/npc-code

pdf

Read, extract text, extract tables, and summarize PDF documents. Use for examining specifications, reports, papers, and user manuals.

★ 2
sridhar-mani
sridhar-mani/npc-code

open-research

Conduct autonomous multi-source academic, technical, and open-web research using ArXiv, Wikipedia, and web endpoints. Use for architecture investigations, algorithm discovery, literature review, and synthesizing citations into structured research dossiers.

★ 2
sridhar-mani
sridhar-mani/npc-code

install-vscode-extension

How to install a VS Code extension from an extension ID. Useful when the user wants to add new capabilities to their VS Code environment by installing extensions.

★ 2