用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/vamseeachanta/workspace-hub --skill pandoc-10-batch-conversion-scripts命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 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 | pandoc-10-batch-conversion-scripts |
| description | Sub-skill of pandoc: 10. Batch Conversion Scripts. |
| version | 1.0.0 |
| category | development |
| type | reference |
| scripts_exempt | true |
#!/bin/bash
# scripts/batch-convert.sh
# Convert all Markdown files to PDF
set -euo pipefail
# Configuration
INPUT_DIR="${1:-./docs}"
OUTPUT_DIR="${2:-./output}"
TEMPLATE="${3:-}"
# Create output directory
mkdir -p "$OUTPUT_DIR"
# Find and convert all markdown files
find "$INPUT_DIR" -name "*.md" -type f | while read -r file; do
# Get relative path and create output path
relative="${file#$INPUT_DIR/}"
output_file="$OUTPUT_DIR/${relative%.md}.pdf"
output_dir=$(dirname "$output_file")
# Create output subdirectory
mkdir -p "$output_dir"
echo "Converting: $file -> $output_file"
# Build pandoc command
cmd=(pandoc "$file" -o "$output_file"
--pdf-engine=xelatex
--toc
--number-sections
--highlight-style=tango)
# Add template if specified
if [[ -n "$TEMPLATE" ]]; then
cmd+=(--template="$TEMPLATE")
fi
# Execute conversion
"${cmd[@]}"
done
echo "Batch conversion complete!"
echo "Output: $OUTPUT_DIR"
#!/bin/bash
# scripts/convert-to-all-formats.sh
# Convert a document to multiple formats
set -euo pipefail
INPUT_FILE="${1:?Usage: $0 <input.md>}"
BASE_NAME="${INPUT_FILE%.md}"
echo "Converting $INPUT_FILE to multiple formats..."
# PDF
echo " -> PDF"
pandoc "$INPUT_FILE" -o "${BASE_NAME}.pdf" \
--pdf-engine=xelatex \
--toc \
--number-sections
# DOCX
echo " -> DOCX"
pandoc "$INPUT_FILE" -o "${BASE_NAME}.docx" \
--toc
# HTML
echo " -> HTML"
pandoc "$INPUT_FILE" -o "${BASE_NAME}.html" \
--standalone \
--toc \
--embed-resources
# LaTeX
echo " -> LaTeX"
pandoc "$INPUT_FILE" -o "${BASE_NAME}.tex"
# EPUB
echo " -> EPUB"
pandoc "$INPUT_FILE" -o "${BASE_NAME}.epub" \
--toc
echo "Done! Created:"
ls -la "${BASE_NAME}".*
#!/usr/bin/env python3
"""
scripts/smart_convert.py
Smart document converter with configuration file support.
"""
import subprocess
import sys
from pathlib import Path
import yaml
def load_config(config_path: Path) -> dict:
"""Load conversion configuration from YAML."""
with open(config_path) as f:
return yaml.safe_load(f)
def convert_document(
input_file: Path,
output_file: Path,
config: dict
) -> bool:
"""Convert a single document using pandoc."""
cmd = ['pandoc', str(input_file), '-o', str(output_file)]
# Add common options
if config.get('toc'):
cmd.append('--toc')
if toc_depth := config.get('toc_depth'):
cmd.extend(['--toc-depth', str(toc_depth)])
if config.get('number_sections'):
cmd.append('--number-sections')
if template := config.get('template'):
cmd.extend(['--template', template])
if pdf_engine := config.get('pdf_engine'):
cmd.extend(['--pdf-engine', pdf_engine])
if highlight := config.get():
cmd.extend([, highlight])
bibliography := config.get():
cmd.append()
cmd.extend([, bibliography])
csl := config.get():
cmd.extend([, csl])
key, value config.get(, {}).items():
cmd.extend([, ])
filter_name config.get(, []):
filter_name.endswith():
cmd.extend([, filter_name])
:
cmd.extend([, filter_name])
()
result = subprocess.run(cmd, capture_output=, text=)
result.returncode != :
(, file=sys.stderr)
():
(sys.argv) < :
()
sys.exit()
input_file = Path(sys.argv[])
output_file = Path(sys.argv[])
config_file = Path(sys.argv[]) (sys.argv) >
config = {}
config_file config_file.exists():
config = load_config(config_file)
success = convert_document(input_file, output_file, config)
sys.exit( success )
__name__ == :
main()
*Content truncated — see parent skill full reference.*