SkillsGrove
SkillsGrove/문서 작업/notoriouslab/doc-cleaner/doc-cleaner

doc-cleaner

설치

$npx skills add https://github.com/notoriouslab/doc-cleaner --skill doc-cleaner
$git clone --depth 1 https://github.com/notoriouslab/doc-cleaner.git /tmp/doc-cleaner && mkdir -p ~/.claude/skills && cp -r /tmp/doc-cleaner/. ~/.claude/skills/doc-cleaner
이 Agent Skill을 설치해 주세요: https://github.com/notoriouslab/doc-cleaner/tree/55e3c472ac4875c3bb923b2d82821fec15444cc0/ — 먼저 SKILL.md와 스크립트를 읽고, 안전하다고 확인한 뒤에만 제 skills 폴더에 설치해 주세요.

요약

원문 설명 · MITConvert PDF, DOCX, XLSX, and text files to clean, structured Markdown. CJK-friendly, table-friendly, privacy-first.
아래 SKILL.md는 notoriouslab/doc-cleaner(커밋 55e3c47)에서 MIT 라이선스에 따라 게시한 것입니다. 본문은 변경하지 않았으며, 파일 상단의 메타데이터만 생략하고 이미지는 링크로 표시하며 매우 긴 파일은 일부만 표시합니다. Copyright 2026 notoriouslab. 라이선스: LICENSE. 지침 파일만 표시되며 스크립트 등은 원본 저장소를 참고하세요.

doc-cleaner

Convert documents (PDF, DOCX, XLSX, TXT) to clean, structured Markdown.

When to use

  • User asks to convert a document to Markdown
  • User wants to extract text or tables from PDF/DOCX/XLSX files
  • User wants to clean up bank statements or financial documents
  • User asks to process a batch of documents in a directory

Commands

Convert a single file (no AI, fastest)

python3 {baseDir}/cleaner.py --input "{{file_path}}" --ai none

Convert a single file with AI structuring

python3 {baseDir}/cleaner.py --input "{{file_path}}" --ai gemini

Convert a single file with Groq structuring

python3 {baseDir}/cleaner.py --input "{{file_path}}" --ai groq

Convert all files in a directory

python3 {baseDir}/cleaner.py --input "{{directory}}" --ai none --output-dir "{{output_dir}}"

Preview without writing (dry run)

python3 {baseDir}/cleaner.py --input "{{file_path}}" --dry-run --verbose

Get machine-readable result summary

python3 {baseDir}/cleaner.py --input "{{file_path}}" --ai none --summary

The --summary flag prints a JSON summary to stdout after processing:

{"version":"1.0.0","total":3,"success":2,"failed":1,"files":[{"file":"report.pdf","output":"./output/report.md","status":"ok"},{"file":"scan.pdf","output":null,"status":"no_content"},{"file":"data.xlsx","output":"./output/data.md","status":"ok"}]}

Options

Flag Description
--input, -i File or directory to process (required, non-recursive)
--output-dir, -o Output directory (default: ./output)
--ai gemini, groq, ollama, or none (default: from config or gemini)
--password PDF decryption password
--config Path to config JSON
--summary Print JSON summary to stdout after processing
--dry-run Preview without writing files
--verbose Enable debug logging

Supported formats

PDF (native, scanned, encrypted), DOCX, XLSX, XLS, CSV, TXT, MD

Exit codes

Code Meaning
0 All files processed successfully
1 Some files failed (partial success)
2 No processable files found or config error

Notes

  • Output defaults to ./output/ relative to current directory
  • For scanned PDFs, AI mode (gemini, groq, or ollama) gives much better results
  • --ai none requires zero API keys and zero network access
  • CJK encoding (Big5, CP950, UTF-16) is auto-detected
  • Tables in DOCX and XLSX are preserved as Markdown pipe tables
라이선스 전문 보기(MIT)
MIT License

Copyright (c) 2026 notoriouslab

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.