kevinslin

dev.codex

“Codex runtime/config management (MCP servers, config.toml, session setup) plus session analysis/summaries. Use only for Codex self‑configuration. Do not use for creating or updating skills or SKILL.md content; use $sc for that.”

kevinslin 23 Actualitzat fa 7 mesos

Recursos

1
GitHub

Instal·la

npx skillscat add kevinslin/skills/dev-codex

Instal·la des del registre de SkillsCat.

SKILL.md

dev.codex

Overview

Use this skill to manage Codex's own configuration and runtime setup. Start with MCP
server management; expand with new capabilities as needed.

Core capabilities

1. MCP management

  • Use when asked to add, remove, or update MCP servers or edit Codex MCP settings.
  • Read references/mcp-management.md for CLI syntax and config options from the docs.
  • Prefer the CLI for adding servers; edit ~/.codex/config.toml for fine-grained config.
  • Remove a server by deleting its [mcp_servers.<server-name>] table or set
    enabled = false to disable.
  • Confirm the active set via /mcp in the Codex TUI or by inspecting the config file.

2. Session summaries (by session id)

  • Use when the user provides a Codex session id and asks for a summary of that session.
  • If the user needs help finding or mapping session ids, use the dev.llm-session skill.
  • Locate the session data under ~/.codex/sessions/ (preferred) or
    ~/.codex/history.jsonl and load only the relevant session.
  • Summarize with: time range, primary goals, key actions/commands, decisions,
    errors/blocks, and concrete next steps.
  • Redact or avoid sensitive data; include short code paths/filenames only when they
    are essential to the summary.

3. Multi-agent role management (add/update agents)

  • Use when asked to add, update, or tune Codex sub-agent roles.
  • Source of truth: https://developers.openai.com/codex/multi-agent/.
  • Ensure multi-agent is enabled first:
    • Enable via /experimental in Codex CLI and restart, or set:
      [features]
      multi_agent = true
  • Configure roles in [agents] in either:
    • ~/.codex/config.toml for personal defaults.
    • .codex/config.toml for project-shared roles.
  • Add or update role entries as [agents.<name>] with:
    • description: short guidance for when Codex should choose the role.
    • config_file: TOML layer for that role (relative paths resolve from the owning
      config.toml).
  • Create or update each role config_file to set role-specific overrides such as:
    • model, model_reasoning_effort, sandbox_mode, developer_instructions.
    • Optional role-local MCP and skills settings when needed.
  • Important validation and behavior:
    • Unknown keys in [agents.<name>] are rejected.
    • config_file must exist and load cleanly or role spawns can fail.
    • If a custom role name matches a built-in role (default, worker,
      explorer, monitor), the custom role takes precedence.
    • Unset settings inherit from the parent session.
    • agents.max_depth defaults to 1 (child can spawn, deeper nesting blocked).
  • Verify changes by restarting Codex, then:
    • Use /agent to inspect/switch active agent threads in CLI.
    • Spawn explicitly with agent_type = "<name>" when testing a role.