Skills Plugins MCP Prompt Model 博客 我的中心

codex-subagent

Helps you to run a subagent using codex exec

DeepseekModel 官方收录技能 质量 良好 · 48 v1.0.0

获取

https://deepseekmodel.com/api/download.php?id=timurkhakhalev-codex-cli-setup-subagents-skill-md&format=skill
下载 .skill 标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用
.skill 文件中 system_prompt 字段的实际内容。
name codex-subagent description Helps you to run a subagent using codex exec This skill lets you spawn a nested Codex process (a “subagent”) using codex exec so it can work with the same project and AGENTS.md instructions. filename="$(openssl rand -hex 4)" codex exec "count the total number of lines of code in this project" 2>>/tmp/${filename}.log In non-interactive mode, codex exec does not ask for command or edit approvals. By default it runs in read-only mode, so it cannot edit files or run commands that require network access. When you use this skill, follow these logging rules: Before running codex exec , generate a unique log file name with openssl rand -hex 4 . By default, append 2>>/tmp/${filename}.log to your codex exec command so only the subagent’s final message is visible to the caller, while stderr is captured for debugging. If a run fails, behaves unexpectedly, or the user explicitly asks to see what the inner agent is doing, read the log file (for example: cat /tmp/${filename}.log ). Since the codex exec may run couple hours, set a generous timeout so long-running subagent work can complete: Use a timeout of at least 20 minutes for the Run (or Bash ) tool unless the user explicitly requests a shorter limit. Use this skill when you want a focused helper agent (for refactors, audits, scripted operations, or scans) while keeping your main session and context intact. Use codex exec --full-auto to allow file edits. Use codex exec --sandbox danger-full-access to allow edits and networked commands, but only when the user clearly permits this level of access. Key Flags --full-auto : Unattended operation with workspace-write sandbox --dangerously-bypass-approvals-and-sandbox or --yolo : Complete hands-off mode (use carefully) --cd <path> : Set working directory --model <model> or -m : Specify model (e.g., -m gpt-5.1-codex-max ) --sandbox : Sandbox types: read-only : No file edits, no networked commands workspace-write : Can edit files in the workspace danger-full-access : No sandboxing; full access (use with care) --config : Pass config variables: model_reasoning_effort : Model reasoning effort: low , medium , high ; Examples # As a subagent, perform automated refactoring filename= " $(openssl rand -hex 4) " codex exec --full-auto "Update all README links to HTTPS" 2>>/tmp/ ${filename} . log # Run in a specific project directory filename= " $(openssl rand -hex 4) " codex exec -- cd /path/to/project "Fix failing tests" 2>>/tmp/ ${filename} . log # Use AGENTS.md context for a focused refactor filename= " $(openssl rand -hex 4) " codex exec -- cd /path/to/project "Using this repo's AGENTS.md instructions, refactor the test helpers for clarity and consistency" 2>>/tmp/ ${filename} . log filename= " $(openssl rand -hex 4) " codex exec --model gpt-5.1-codex-max --sandbox workspace-write --config model_reasoning_effort=medium < /tmp/some-big-prompt.md 2>>/tmp/ ${filename} . log # For audits / deep analysis filename= " $(openssl rand -hex 4) " codex exec --model gpt-5.2 --sandbox read-only --config model_reasoning_effort=high "Audit this repo for security issues" 2>>/tmp/ ${filename} . log Input Methods # Pipe prompt from file filename= " $(openssl rand -hex 4) " codex exec - < prompt.txt 2>>/tmp/ ${filename} . log # Standard input filename= " $(openssl rand -hex 4) " echo "Review this code" | codex exec - 2>>/tmp/ ${filename} . log When this skill is invoked, you should decide: Whether a subagent is appropriate (e.g., long-running refactor, scan, or analysis). Which flags, sandbox level, and model to use based on user intent and risk. For code changes: default to --model gpt-5.1-codex-max --config model_reasoning_effort=medium unless the user explicitly requests otherwise. For audits: default to --model gpt-5.2 --config model_reasoning_effort=high unless the user explicitly requests otherwise. Whether to keep logs suppressed (default: 2>>/tmp/${filename}.log or read/tail /tmp/${filename}.log )
Agent 识别该技能的关键词,点击任意一个即可复制。

该技能未提供触发词。

下载的 .skill 包内含以下字段。
字段 说明
format格式标识(skill/v1)
skill_id技能唯一 ID
name技能名称
version版本号
description技能描述
category所属分类(数组)
trigger_words触发词列表
tags标签列表
source来源标识
source_url来源链接(本页地址)
exported_at导出时间(每次下载生成)
system_prompt系统提示词正文
model_config模型参数:provider / model / temperature / max_tokens / top_p
examples示例
install_guide各平台导入说明(Coze / Dify / Claude / 自定义框架)
同一份技能可按不同平台格式导出。
.skill 标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用 下载
.skillpro 增强格式,额外含脚本 / 工具 / 依赖 / 钩子占位 下载
.json 纯 JSON 导出,只含 system_prompt 与模型参数 下载
Coze 带 frontmatter 的 Markdown,Coze 平台导入用 下载
Dify Dify DSL,创建应用后直接导入 下载

每日精选 Skill 推荐,免费送到你邮箱

输入邮箱,每天接收一个精选 AI Agent 技能推荐。完全免费,持续更新。

验证码 --

提交后我们会发送一封确认邮件,点击邮件里的链接才会开始收信。

完全免费,取消任意时间。我们不会发送垃圾邮件。