jianhuiwei7/videoweaver/get-output-dir
Claude Code and agent skill by jianhuiwei7/videoweaver
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
获取当前任务的标准化输出目录路径。支持 OpenClaw、Codex、Claude Code 三种运行环境;保存任何输出产物前必须调用此技能。
Install
npx vskill@latest install jianhuiwei7/videoweaver/get-output-dirSKILL.md
统一输出目录获取技能 (get-output-dir)
用途
返回当前 agent/session/thread 的标准化输出目录。所有任务产物,包括文本、日志、图片、音频、视频、任务状态等,都必须保存到该目录下,方便按 session 管理、回溯和评估。
脚本会自动创建目录,并且 stdout 只输出最终路径。
目录规则
OpenClaw
- 先运行
session_status工具判断当前会话信息。 - OpenClaw 环境必须运行
session_status获取session-key并且传入, 格式通常为agent:{agent_id}:{session_id};脚本会查询对应session_id后拼出目录。
Codex
CODEX_THREAD_ID:Codex 自动注入的真实 thread id。CODEX_THREAD_NAME:父进程注入的业务 thread 名。- 如果缺失,会分别 fallback 为
unknown_thread和unknown_thread_id。
Claude Code
session_id来自CLAUDE_CODE_SESSION_ID,缺失时,会 fallback 为unknown_session_id。session_name来自CLAUDE_CODE_SESSION_NAME_USER,缺失时 fallback 为unknown_session。
使用方法
自动识别环境
自动识别规则:
- 传入
--session-key时使用 OpenClaw。 - 存在
CODEX_THREAD_ID时使用 CodeX;CodeX/Claude Code 环境会自动识别,不需要传入内容。 - 存在
CLAUDE_CODE_SESSION_ID时使用 Claude Code;CodeX/Claude Code 环境会自动识别,不需要传入内容。 - 以上都不满足时按 OpenClaw 处理;OpenClaw 环境必须运行
session_status获取session-key并且传入, 格式通常为agent:{agent_id}:{session_id},否则报错。
OpenClaw
Codex
Claude Code
参数说明
| 参数 | 说明 | |
|---|---|---|
--session-key | 可选的 OpenClaw session-key。CodeX/Claude Code 环境会自动识别,不需要传入内容;OpenClaw 环境必须运行 session_status 获取session-key并且传入, 格式通常为 agent:{agent_id}:{session_id}。 | |
--subdir | 可选子目录,例如 images、videos、logs。 |
返回值
- 成功:stdout 打印一个完整目录路径,并自动创建目录。
- 失败:stderr 输出错误信息,进程以非零状态码退出。
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/get-output-dir/SKILL.md
Popularity
- Repository stars
- 44
- Repository forks
- 1
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jianhuiwei7/videoweaver/get-output-dir)