用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/vamseeachanta/workspace-hub --skill python-docx-common-issues命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Write outbound email and external messages in Vamsee Achanta's voice — a subtle offer to help, never bold or rash claims. Load before drafting ANY email, LinkedIn/Collide reply, proposal note, or outreach sent under his name.
Save/publish analysis or computation results from ANY ecosystem repo to Hugging Face as a queryable, viewer-renderable dataset. Use when the user wants to "save results to hugging face", "publish dataset to HF", "hugging face data saving", "save analysis results", "hf dataset", "make results queryable", or "render via datasets-server API". Reshapes nested results into flat parquet tables, writes a dataset card with a viewer `configs:` block and provenance, applies license/public-vs-private routing, enforces a domain data-quality gate (faithful-to-source != correct), publishes to `aceengineer/<repo>-<projection>`, and verifies via the datasets-server API.
Clone, create, fork, configure, and manage GitHub repositories. Manage remotes, secrets, releases, and workflows. Works with gh CLI or falls back to git + GitHub REST API via curl.
正在显示 SKILL.md
基于 SOC 职业分类
| name | python-docx-common-issues |
| description | Sub-skill of python-docx: Common Issues. |
| version | 1.0.0 |
| category | data |
| type | reference |
| scripts_exempt | true |
# Problem: Font doesn't display in Word
# Solution: Use fonts available on target system
# Check available fonts
def get_available_fonts():
"""List fonts that should work cross-platform."""
return [
'Arial', 'Calibri', 'Times New Roman',
'Georgia', 'Verdana', 'Tahoma',
'Consolas', 'Courier New'
]
# Use fallback fonts
def set_font_with_fallback(run, preferred_font, fallback='Arial'):
run.font.name = preferred_font
# Set East Asian font as fallback
run._element.rPr.rFonts.set(qn('w:eastAsia'), fallback)
# Problem: Table columns not sized correctly
# Solution: Explicitly set column widths
def set_column_widths(table, widths):
"""Set explicit column widths for table."""
for row in table.rows:
for idx, (cell, width) in enumerate(zip(row.cells, widths)):
cell.width = width
# Usage
widths = [Inches(1), Inches(3), Inches(2)]
set_column_widths(table, widths)
# Problem: Image doesn't appear in document
# Solution: Verify image path and format
from pathlib import Path
from PIL import Image
def validate_and_add_image(doc, image_path, width=None):
"""Validate image before adding to document."""
path = Path(image_path)
if not path.exists():
raise FileNotFoundError(f"Image not found: {image_path}")
# Check format
supported_formats = {'.png', '.jpg', '.jpeg', '.gif', '.bmp', '.tiff'}
if path.suffix.lower() not in supported_formats:
raise ValueError(f"Unsupported format: {path.suffix}")
# Validate image can be opened
try:
with Image.open(image_path) as img:
img.verify()
except Exception as e:
raise ValueError(f"Invalid image file: {e}")
# Add to document
if width:
doc.add_picture(str(image_path), width=Inches(width))
else:
doc.add_picture(str(image_path))
# Problem: Custom style not appearing
# Solution: Ensure style exists before using
def safe_apply_style(paragraph, style_name, doc):
"""Apply style with fallback if not found."""
try:
paragraph.style = style_name
except KeyError:
# Style doesn't exist, create it or use default
if style_name not in [s.name for s in doc.styles]:
# Create minimal style
from docx.enum.style import WD_STYLE_TYPE
doc.styles.add_style(style_name, WD_STYLE_TYPE.PARAGRAPH)
paragraph.style = style_name