Skip to content
Development
Skill

/codex-fluent

Use when Codex feels slow, bloated, or heavy after heavy use. Provides safe session hygiene, archive strategy, and handoff discipline to keep daily Codex usage responsive and low-friction. Always pairs with comprehensive handoffs before archiving active work.

From plugin
majiayu000-spellbook
277104 skills7 agents2 commands
Install
$ npx -y skills add majiayu000/spellbook --skill codex-fluent --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/codex-fluent

Context preview

The summary Claude sees to decide when to auto-load this skill.

Use when Codex feels slow, bloated, or heavy after heavy use. Provides safe session hygiene, archive strategy, and handoff discipline to keep daily Codex usage responsive and low-friction. Always pairs with comprehensive handoffs before archiving active work.

SKILL.md

codex-fluent.SKILL.md
name: codex-fluent
description: Use when Codex feels slow, bloated, or heavy after heavy use. Provides safe session hygiene, archive strategy, and handoff discipline to keep daily Codex usage responsive and low-friction. Always pairs with comprehensive handoffs before archiving active work.

Codex Fluent

Keep Codex feeling fast, light, and pleasant to use over months of heavy daily work.

This skill is about **operational fluency** — the subjective experience of Codex staying responsive, starting quickly, and not forcing you to fight accumulated context and state.

Core Philosophy

  • Fresh small state = speed and low mental load.
  • Old work must be preserved, but moved out of the active path.
  • **Handoffs are non-negotiable** before archiving anything you might still need.
  • Never delete. Archive with clear restore paths.

When to Use This Skill

  • Codex feels laggy on startup or when switching sessions.
  • You have many long-running or old chats you rarely touch but don't want to lose.
  • Before big maintenance or after noticing session directory growth.
  • After a `codex-retrospective` session where Codex itself flagged repeated context bloat or "I keep having to re-explain the current state".

Safety Rules (Hard)

1. **Inspect first, always.** The first invocation must be report-only. 2. **Handoff before archive.** For any active repo chat you might continue, a high-quality handoff document + reactivation prompt must exist before it is moved to archive. 3. **Backup before mutate.** All changes must be preceded by a timestamped backup. 4. **Archive, never delete.** Sessions, logs, and worktrees are moved to dedicated archive directories (`~/.codex/archived_sessions/`, `archived_worktrees/`, `archived_logs/`). 5. Codex must be closed (or you explicitly accept `--wait-for-codex-exit`) before any filesystem changes to active state. 6. Never touch credentials, global skills you still use, or memory files without explicit confirmation.

Recommended Cadence

  • Heavy daily multi-repo users: weekly report + maintenance when needed.
  • Moderate users: every 10–14 days.
  • The skill can generate a recurring **report-only reminder** prompt for you.

Workflow

1. Diagnosis (Report Mode)

Ask:

Use codex-fluent to inspect my current Codex local state and give me a clear picture of what is causing drag.

The skill will report on:

  • Active vs archived session sizes
  • Largest active sessions and their ages
  • Stale worktrees
  • Large log files
  • Potential thread metadata bloat (title/preview)
  • Dead config entries
  • Heavy background processes (reported only)

2. Handoff Creation (Mandatory for Valuable Work)

Before any archiving of chats you care about, create excellent handoffs.

Use the template in `references/handoff-template.md`.

The reactivation prompt must allow a completely fresh Codex thread (or even Claude via the codex skill) to pick up without the old giant context.

3. Apply Maintenance

Only after handoffs exist for everything important:

Use codex-fluent to perform safe maintenance now. I have created handoffs for the sessions I want to keep continuity on. Codex is closed.

What a normal apply does:

  • Timestamped backup to `~/Documents/Codex/codex-backups/codex-fluent-YYYYMMDD-HHMM/`
  • Move qualifying old sessions to `~/.codex/archived_sessions/`
  • Move stale worktrees to `~/.codex/archived_worktrees/`
  • Rotate oversized logs
  • Clean dead project entries from config
  • Normalize certain path issues where safe

4. Verification

Run diagnosis again and compare before/after sizes and feel.

5. (Optional) Recurring Reminder

Generate a safe, report-only weekly reminder prompt that never applies changes automatically.

Integration with Other Spellbook Skills

  • After running `codex-retrospective`, if Codex complains about "having to re-read huge context every time" or repeated state loss, this skill is the natural follow-up.
  • Design handoff documents as the compact representation of a thread: preserve the objective, constraints, decisions, verification, and unresolved work.
  • Handoff documents created here are excellent material to feed into future `codex-retrospective` runs.

What This Skill Will Not Do

  • Automatically delete anything.
  • Kill processes.
  • Touch credentials or irreplaceable memory.
  • Archive pinned or explicitly marked "do not touch" sessions without confirmation.
  • Promise universal speedups (results depend on your usage patterns).

Gotchas

  • A large session is not automatically safe to archive. If the work is active,

blocked, or likely to resume, create the handoff first and verify that the reactivation prompt points to a real file.

  • Reported size reductions do not prove product speedups by themselves. Compare

before/after active-state size and a fresh startup or session-switch test.

  • Never treat "Codex is closed" as an assumption. If apply mode would touch

active state, verify process state or get explicit user acceptance first.

  • Do not normalize paths, prune config, or move global skills in the same pass

as session archiving unless the diagnosis explicitly named those candidates.

References

  • `references/handoff-template.md` — High-quality handoff document template + reactivation prompt
  • `references/maintenance-checklist.md` — Step-by-step safe maintenance checklist
  • `references/examples/` — Real-world (anonymized) before/after reports and handoff examples

Success Criteria

After using this skill properly you should experience:

  • Noticeably faster Codex startup and session switching
  • Lower anxiety about "losing history"
  • Clear, searchable handoff documents in your important repos
  • A repeatable, low-risk maintenance habit

Start with a diagnosis run. The rest follows naturally.

Read more
Ships withmajiayu000-spellbook

Cross-runtime skills for Claude Code, Codex, and multi-agent workflows.

Get the whole plugin

Other skills on majiayu000-spellbook.

idea-analogist
Skill

idea-analogist

想法群聊室 — 类比者角色。被 idea-team 主编排器调用,或用户单独说"类比一下"、"别的行业有没有"、"yes-and 扩展"、"X 让你想到什么"、"跨界启示"时触发。**专门做跨界类比 + yes-and 扩展——不评判、不挑刺、不要求事实证据**。Do NOT use when 用户要数据(用…

idea-devils-advocate
Skill

idea-devils-advocate

想法群聊室 — 反方角色。被 idea-team 主编排器调用,或用户单独说"反方意见"、"挑这个想法的刺"、"为什么会失败"、"找漏洞 / 反例"、"devil's advocate"时触发。**专门挑漏洞、找隐藏假设、给反例——不安慰、不"也许可以这样"、不全盘否定**。Do NOT use when…

idea-research
Skill

idea-research

想法群聊室 — 调研员角色。被 idea-team 主编排器调用,或用户单独说"调研一下 X"、"X 的现状/竞品/数据"、"找 2026 数据"、"事实底"时触发。**用 WebSearch 拉真实 2026 数据、列竞品、引来源——只给事实,不评判,不建议**。Do NOT use when…

idea-team
Skill

idea-team

想法群聊室主持人 — 把一句话想法丢给多角色 AI 团队(调研员/反方/类比者)做查漏补缺。每个角色有自己的 voice,他们互相 @ 接话;你随时插话。**这是创意扩展工具,不打分、不否决、不堵路**。Use when 用户说"组个团队聊一下"、"开会讨论这个想法"、"找几个角度看看"、"群聊一下 X"、"team…

idea-to-product
Skill

idea-to-product

端到端产品教练 — 把一句话想法走到 PRD + 可点击 HTML 原型。会顶嘴、强制砍功能、用 Nielsen + Norman 做友好性硬检。Use when user 说"我有一个想法"、"想做一个产品"、"做 MVP"、"写 PRD"、"做用户友好的产品",或调用插件命令…