用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/HKUDS/OpenSpace --skill fallback-file-creation命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | fallback-file-creation |
| description | Fallback pattern for reliable file creation when code execution tools fail |
Use this skill when execute_code_sandbox or shell_agent fails repeatedly for file creation tasks. This pattern provides a manual but reliable approach to create and verify files.
Before any file operations, confirm your current location:
pwd
ls -la
This ensures you're creating files in the correct workspace directory.
Use shell heredocs to create scripts with properly escaped syntax:
cat > /path/to/script.sh << 'EOF'
#!/bin/bash
# Your script content here
# Variables are NOT expanded inside 'EOF' (quoted)
echo "Creating file..."
# Commands to generate output
EOF
Key escaping rules:
'EOF' (quoted) to prevent variable expansion inside the heredocEOF (unquoted) if you want shell variables to expand$, backticks, or special characters if using unquoted EOFAlways run scripts with their full or explicit relative path:
chmod +x /path/to/script.sh
/path/to/script.sh
# or
bash /path/to/script.sh
Avoid relying on . or implicit paths.
After execution, verify files were created correctly:
# Check file exists and size
ls -lh /path/to/output.file
# For PDFs: inspect metadata
pdfinfo /path/to/output.pdf
# For DOCX: check structure
unzip -l /path/to/output.docx | head -20
# For any file: check content preview
file /path/to/output.file
head -c 500 /path/to/output.file
If verification fails:
which command)bash -x script.sh)# Step 1: Verify directory
pwd
ls -la
# Step 2: Create conversion script
cat > /workspace/create_pdf.sh << 'EOF'
#!/bin/bash
cd /workspace
libreoffice --headless --convert-to pdf checklist.odt --outdir .
EOF
# Step 3: Execute
chmod +x /workspace/create_pdf.sh
/workspace/create_pdf.sh
# Step 4: Verify
ls -lh /workspace/checklist.pdf
pdfinfo /workspace/checklist.pdf
# Step 1: Verify directory
pwd
ls -la
# Step 2: Create document script
cat > /workspace/create_docx.sh << 'EOF'
#!/bin/bash
cd /workspace
pandoc -f markdown -t docx action_tracker.md -o action_tracker.docx
EOF
# Step 3: Execute
chmod +x /workspace/create_docx.sh
/workspace/create_docx.sh
# Step 4: Verify
ls -lh /workspace/action_tracker.docx
unzip -l /workspace/action_tracker.docx | head -20
'EOF' to prevent unwanted variable expansionchmod +x before running| Issue | Solution |
|---|---|
| Script not found | Use full path: /workspace/script.sh |
| Permission denied | Run chmod +x script.sh |
| File not created | Check script output, verify working directory in script |
| Wrong file format | Verify conversion tool supports target format |
| Corrupted output | Re-run with verbose mode, check intermediate files |
Incremental audio production with duration mismatch handling, adaptive stem extension, and pre-mix alignment verification
Audio production with diagnostic analysis, timecode parsing from documents, and verified export workflow
Incremental audio production with duration alignment handling, per-stem verification, and adaptive extension strategies
基于 SOC 职业分类