{"data":{"slug":"github-claude-office-skills-skills-batch-processor-0b2fb2988c9c","title":"Batch Document Processor for Bulk File Conversion and Analysis","summary":"Process multiple documents in bulk with parallel execution and progress tracking. Convert, transform, and analyze files in bulk.","url":"https:\/\/skillshunter.net\/skills\/github-claude-office-skills-skills-batch-processor-0b2fb2988c9c","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-claude-office-skills-skills-batch-processor-0b2fb2988c9c","markdown_url":"https:\/\/skillshunter.net\/skills\/github-claude-office-skills-skills-batch-processor-0b2fb2988c9c.md","download_url":"https:\/\/skillshunter.net\/skills\/github-claude-office-skills-skills-batch-processor-0b2fb2988c9c\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Install required dependencies first: python-docx, openpyxl, python-pptx, reportlab, and jinja2. Provide input data or files to process, and specify the desired operations (e.g., conversion, extraction, renaming).","instructions":"---\n# \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n# CLAUDE OFFICE SKILL - Enhanced Metadata v2.0\n# \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n\n# Basic Information\nname: batch-processor\ndescription: \"Process multiple documents in bulk with parallel execution\"\nversion: \"1.0\"\nauthor: claude-office-skills\nlicense: MIT\n\n# Categorization\ncategory: workflow\ntags:\n  - batch\n  - processor\n  - bulk\n  - automation\ndepartment: All\n\n# AI Model Compatibility\nmodels:\n  recommended:\n    - claude-sonnet-4\n    - claude-opus-4\n  compatible:\n    - claude-3-5-sonnet\n    - gpt-4\n    - gpt-4o\n\n# MCP Tools Integration\nmcp:\n  server: office-mcp\n  tools:\n    - batch_convert\n\n# Skill Capabilities\ncapabilities:\n  - batch_processing\n  - automation\n\n# Language Support\nlanguages:\n  - en\n  - zh\n---\n\n# Batch Processor Skill\n\n## Overview\n\nThis skill enables efficient bulk processing of documents - convert, transform, extract, or analyze hundreds of files with parallel execution and progress tracking.\n\n## How to Use\n\n1. Describe what you want to accomplish\n2. Provide any required input data or files\n3. I'll execute the appropriate operations\n\n**Example prompts:**\n- \"Convert 100 PDFs to Word documents\"\n- \"Extract text from all images in a folder\"\n- \"Batch rename and organize files\"\n- \"Mass update document headers\/footers\"\n\n## Domain Knowledge\n\n\n### Batch Processing Patterns\n\n```\nInput: [file1, file2, ..., fileN]\n         \u2502\n         \u25bc\n    \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510\n    \u2502  Parallel   \u2502  \u2190 Process multiple files concurrently\n    \u2502  Workers    \u2502\n    \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518\n         \u2502\n         \u25bc\nOutput: [result1, result2, ..., resultN]\n```\n\n### Python Implementation\n\n```python\nfrom concurrent.futures import ProcessPoolExecutor, as_completed\nfrom pathlib import Path\nfrom tqdm import tqdm\n\ndef process_file(file_path: Path) -> dict:\n    \"\"\"Process a single file.\"\"\"\n    # Your processing logic here\n    return {\"path\": str(file_path), \"status\": \"success\"}\n\ndef batch_process(input_dir: str, pattern: str = \"*.*\", max_workers: int = 4):\n    \"\"\"Process all matching files in directory.\"\"\"\n    \n    files = list(Path(input_dir).glob(pattern))\n    results = []\n    \n    with ProcessPoolExecutor(max_workers=max_workers) as executor:\n        futures = {executor.submit(process_file, f): f for f in files}\n        \n        for future in tqdm(as_completed(futures), total=len(files)):\n            file = futures[future]\n            try:\n                result = future.result()\n                results.append(result)\n            except Exception as e:\n                results.append({\"path\": str(file), \"error\": str(e)})\n    \n    return results\n\n# Usage\nresults = batch_process(\"\/documents\/invoices\", \"*.pdf\", max_workers=8)\nprint(f\"Processed {len(results)} files\")\n```\n\n### Error Handling & Resume\n\n```python\nimport json\nfrom pathlib import Path\n\nclass BatchProcessor:\n    def __init__(self, checkpoint_file: str = \"checkpoint.json\"):\n        self.checkpoint_file = checkpoint_file\n        self.processed = self._load_checkpoint()\n    \n    def _load_checkpoint(self):\n        if Path(self.checkpoint_file).exists():\n            return json.load(open(self.checkpoint_file))\n        return {}\n    \n    def _save_checkpoint(self):\n        json.dump(self.processed, open(self.checkpoint_file, \"w\"))\n    \n    def process(self, files: list, processor_func):\n        for file in files:\n            if str(file) in self.processed:\n                continue  # Skip already processed\n            \n            try:\n                result = processor_func(file)\n                self.processed[str(file)] = {\"status\": \"success\", **result}\n            except Exception as e:\n                self.processed[str(file)] = {\"status\": \"error\", \"error\": str(e)}\n            \n            self._save_checkpoint()  # Resume-safe\n```\n\n\n## Best Practices\n\n1. **Use progress bars (tqdm) for user feedback**\n2. **Implement checkpointing for long jobs**\n3. **Set reasonable worker counts (CPU cores)**\n4. **Log failures for later review**\n\n## Installation\n\n```bash\n# Install required dependencies\npip install python-docx openpyxl python-pptx reportlab jinja2\n```\n\n## Resources\n\n- [Custom Repository](https:\/\/github.com\/claude-office-skills\/skills)\n- [Claude Office Skills Hub](https:\/\/github.com\/claude-office-skills\/skills)\n","use_cases":["Convert 100 PDFs to Word documents","Extract text from all images in a folder","Batch rename and organize files","Mass update document headers\/footers"],"limitations":[],"compatibility":[],"setup_tip":"```bash\n# Install required dependencies\npip install python-docx openpyxl python-pptx reportlab jinja2\n```","sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/claude-office-skills\/skills\/blob\/9c4c7d5cd2813a8936bf2c9fdb174ea883b85a11\/batch-processor\/SKILL.md","source_commit":"9c4c7d5cd2813a8936bf2c9fdb174ea883b85a11","license":"MIT","version":null,"listing_approved_at":"2026-11-22","created_at":"2026-11-21T12:55:25.000000Z","updated_at":"2026-11-22T11:17:33.000000Z","seo_title":"Batch Document Processor for Bulk File Conversion","seo_description":"Efficiently process multiple documents with parallel execution and progress tracking. Convert, transform, and analyze files in bulk.","seo_keywords":["batch file processing","bulk document conversion","parallel file processing","document automation","mass file transformation"]}}