How this skill is triggered — by the user, by Claude, or both
Slash command
/save:saveThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Generate a reusable Codex agent file from the current conversation and save it as a `.toml` file.
Generate a reusable Codex agent file from the current conversation and save it as a .toml file.
Unless the user asks for another path, save to the user agent directory:
%USERPROFILE%\.codex\agents\~/.codex/agents/If the user explicitly wants a repo-local or shareable output, save to ./.codex/agents/ instead.
If the user provides an explicit file path or directory, use that path exactly.
Analyze the entire conversation: the original task, every user correction, every tool call, and the final outcome. Distill it into a reusable Codex agent definition.
The agent file is NOT a session log. It is a self-contained instruction set for a fresh Codex agent with no prior context.
<repo-root>, <target-file>, <artifact-dir>.Write a TOML agent file in this shape:
# Optional: include only when pinning the model materially matters.
# model = "gpt-5.5"
sandbox_mode = "workspace-write"
developer_instructions = """
---
name: "<kebab-case-name>"
description: "<one-liner, max 200 chars>"
---
You are an agent that <role description>.
## Behavior
1. <First step the agent should take>
2. <Next step>
3. <...>
## Rules
- <Rule derived from user correction or session learning>
- <Another rule>
## Output
<What the agent should produce and how it should report completion.>
"""
<name>.tomlsandbox_mode should default to workspace-writemodel if the workflow clearly benefits from pinning a specific modeldanger-full-access only when the session proved it is truly requiredname is required, kebab-case, max 100 charactersdescription is required, max 200 charactersYou are an agent that ...Behavior, Rules, and Output sections are all requiredRulesAfter generating the TOML content:
name from the embedded frontmatter in developer_instructions<destination>/<name>.tomlTell the user:
.toml file was saved~/.codex/agents/ or %USERPROFILE%\.codex\agents\ makes it available user-wide in CodexGuides collaborative design exploration before implementation: explores context, asks clarifying questions, proposes approaches, and writes a design doc for user approval.
Creates structured, bite-sized implementation plans from specs or requirements before writing code. Useful for breaking down multi-step tasks into testable steps with file structure and task boundaries.
Synthesizes the current conversation into a structured spec (PRD) and publishes it to the project issue tracker with a ready-for-agent label, without interviewing the user.
npx claudepluginhub daothinh/spec-cdex --plugin save