用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/vamseeachanta/workspace-hub --skill office-docs-error-handling命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | office-docs-error-handling |
| description | Sub-skill of office-docs: Error Handling (+2). |
| version | 1.0.0 |
| category | data |
| type | reference |
| scripts_exempt | true |
from pathlib import Path
def safe_document_generation(template_path, context, output_path):
"""Generate document with comprehensive error handling."""
try:
if not Path(template_path).exists():
raise FileNotFoundError(f"Template not found: {template_path}")
doc = DocxTemplate(template_path)
*See sub-skills for full details.*
## Temporary File Handling
```python
import tempfile
from contextlib import contextmanager
@contextmanager
def temp_document():
"""Create temporary document that auto-cleans."""
with tempfile.NamedTemporaryFile(suffix='.docx', delete=False) as f:
temp_path = f.name
try:
yield temp_path
finally:
Path(temp_path).unlink(missing_ok=True)
def process_large_excel(file_path, chunk_size=1000):
"""Process large Excel files in chunks."""
from openpyxl import load_workbook
wb = load_workbook(file_path, read_only=True)
ws = wb.active
chunk = []
for row in ws.iter_rows(values_only=True):
*See sub-skills for full details.*