doc-extract

द्वारा anthropic

किसी दस्तावेज़ फ़ाइल - PDF, DOCX, XLSX, PPTX, RTF, या सादा पाठ/मार्कडाउन/HTML से सादा पाठ निकालें। तब उपयोग करें जब किसी बाइनरी दस्तावेज़ को पाठ में बदलने की आवश्यकता हो, उदाहरण के लिए…

npx skills add https://github.com/anthropics/healthcare --skill doc-extract

doc-extract

Shared document-to-text extraction. One script, no state: reads an input file, prints JSON to stdout, writes nothing to disk (PHI-safe — no caches, no temp files; callers own any caching).

Setup (once)

cd <this skill dir> && bun install

This pulls liteparse (the lit bin, used for PDF/DOCX/XLSX/PPTX, OCR included) and rtf-to-text (RTF). Without it, PDFs still work via a pdftotext -layout fallback if poppler is installed; other binary formats require liteparse.

Use

bun <this skill dir>/scripts/extract.ts <input-file> [--content-type <mime>]

Output on stdout:

{ "text": "...", "method": "liteparse | pdftotext | rtf-to-text | passthrough", "pages": 12 }
  • text is page-anchored for paged formats: === [page N] === markers between pages.
  • pages is present when page markers exist.
  • method is the extractor that actually produced the text.
  • Format is taken from the file extension; pass --content-type (e.g. application/pdf) when the file has no useful extension, as with downloaded EHR attachments. Note liteparse refuses extension-less files, so those PDFs go through the pdftotext fallback.
  • Errors print {"error": "..."} to stderr and exit 1.

Table caveat

Tables with multiple value columns (option A vs option B, in-tier vs out-of-tier) can interleave columns line-by-line in the extracted text: fragments of adjacent cells alternate, and a cell's text can even land mid-sentence inside a neighboring column. Values usually survive, but which column a value belongs to can become ambiguous. When an answer comes from one column of a multi-column table and the document has no redundant restatement of the value elsewhere, verify it by reading the original page directly before treating it as ground truth. The extracted text's === [page N] === anchor tells you which page: pass it to the Read tool's pages parameter (e.g. pages: "37") to render just that page to vision instead of the whole document.

For other skills

Import the functions instead of shelling out when you're already in bun TS:

import { extract, resolveLit } from "../doc-extract/scripts/extract";
const lit = resolveLit([myRoot]); // also checks myRoot/node_modules/.bin/lit
const text = extract(lit, "/path/to/file.pdf"); // string | null

The contracts skill consumes it this way (its ingest caching stays on the contracts side).

anthropic की और Skills

access
anthropic
Discord चैनल एक्सेस प्रबंधित करें — पेयरिंग स्वीकृत करें, अनुमति सूची संपादित करें, DM/ग्रुप नीति सेट करें। उपयोग तब करें जब उपयोगकर्ता पेयर करने, किसी को स्वीकृत करने, किसकी अनुमति है यह जाँचने के लिए कहे,…
official
session-report
anthropic
क्लाउड कोड सत्र उपयोग (टोकन, कैश, उप-एजेंट, कौशल, महंगे प्रॉम्प्ट) से ~/.claude/projects ट्रांसक्रिप्ट का एक अन्वेषणीय HTML रिपोर्ट तैयार करें।
official
build-mcp-server
anthropic
यह कौशल तब उपयोग किया जाना चाहिए जब उपयोगकर्ता "MCP सर्वर बनाएं", "MCP बनाएं", "MCP इंटीग्रेशन करें", "Claude के लिए API रैप करें", "टूल्स को एक्सपोज़ करें..." जैसी बात कहे।
official
cookbook-audit
anthropic
एन्थ्रोपिक कुकबुक नोटबुक का एक रूब्रिक के आधार पर ऑडिट करें। जब भी नोटबुक समीक्षा या ऑडिट का अनुरोध किया जाए, इसका उपयोग करें।
official
handle-complaint
anthropic
ग्राहक की शिकायत को शुरू से अंत तक संभालता है — संदर्भ खींचता है, प्रतिक्रिया का मसौदा तैयार करता है, और एक परिचालन सुधार सुझाता है। वैकल्पिक ईमेल या टिकट आईडी स्वीकार करता है…
official
use-case-triage
anthropic
शीघ्रता से निर्धारित करें कि किसी प्रसंस्करण गतिविधि के लिए PIA, अनिवार्य GDPR DPIA की आवश्यकता है या इसे आगे बढ़ाया जा सकता है — गोपनीयता नीति विरोधों को उजागर करता है और सही मार्ग पर ले जाता है…
official
board-minutes
anthropic
बोर्ड या समिति की बैठक के कार्यवृत्त आपके घरेलू प्रारूप में तैयार करता है। आपके कैलेंडर से आगामी बोर्ड और समिति की बैठकों का स्वतः पता लगाता है, एजेंडा मांगता है और…
official
renewal-tracker
anthropic
नवीनीकरण रजिस्टर से काम करते हुए, आगामी रद्दीकरण-द्वारा समय सीमा वाले अनुबंध दिखाएँ और नोटिस विंडो बंद होने से पहले चेतावनी दें। उपयोग तब करें जब उपयोगकर्ता पूछे…
official