Generate PowerPoint files using shell_agent and locate them in nested workspace directories
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-ppt-workflow-location-a65fc7ceeb2c ,按照其中的说明把「ppt-workflow-location」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Use this workflow when:
Delegate the PowerPoint creation task to shell_agent with clear specifications:
Use shell_agent to create a PowerPoint presentation with:
- Specify the exact number of slides needed
- Define the content/topic for each slide
- Request the file be saved with a clear filename (e.g., presentation.pptx)
- Ask the agent to confirm the file path after creation
Example task description:
Create a PowerPoint presentation with 10 slides covering [topic]. Each slide should have a title and bullet points. Save it as presentation.pptx and tell me the full file path.
PowerPoint files created by shell_agent may be in nested workspace directories. Use the find command to locate them:
# Find all .pptx files in the workspace
find . -name "*.pptx" -type f
# Or search for a specific filename
find . -name "presentation.pptx" -type f
Once located, copy the file to your working directory:
# Copy the found file to current directory
cp /path/to/found/presentation.pptx .
# Or move it if you prefer
mv /path/to/found/presentation.pptx .
Confirm the file exists and is accessible:
# List the file with details
ls -la presentation.pptx
# Check file size to ensure it's not empty
file presentation.pptx
# Step 1: shell_agent creates the presentation (done via task delegation)
# Step 2: Find the created file
find . -name "*.pptx" -type f
# Output: ./workspace/task_123/output/presentation.pptx
# Step 3: Copy to working directory
cp ./workspace/task_123/output/presentation.pptx .
# Step 4: Verify
ls -la presentation.pptx
# Output: -rw-r--r-- 1 user user 45632 Jan 15 10:30 presentation.pptx
| Problem | Solution |
|---|---|
| File not found with find | Search broader: find / -name "*.pptx" 2>/dev/null |
| File is 0 bytes | Re-run shell_agent task; ensure it completed successfully |
| Permission denied | Check directory permissions with ls -la on parent dirs |
| Multiple .pptx files found | Use more specific search: find . -name "*presentation*.pptx" |