smithery.ai

reflect-codex-skills

Generate reflections for past Codex session histories using the Reflection CLI. Use when asked to summarize or reflect on previous Codex conversations, list projects/sessions, filter by date or session id, or refresh cached reflections from ~/.codex/sessions.

First seen Mar 31, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Skill metadata

Parsed from SKILL.md frontmatter.

Declared agents codex

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,655 B
  • docs SUMMARY.md 287 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Reflect Codex Sessions

When to use this skill

  • Summarize or reflect on past Codex session histories.
  • List projects, session counts, or filter by date/session id.
  • Retrieve/Refresh cached reflections or pull extra metadata for auditing.

Interpretation guidance (important)

  • Treat reflection content as heuristics, not facts or ideas from a user. Use it as a starting point.
  • Surface only non-niche, broadly useful themes and repeated patterns and confirm with the

user before acting on a pattern.

  • Avoid over-indexing on one-offs; ask for confirmation when a pattern is uncertain.

Quick start

  • Run commands from scripts/ inside this skill directory.
  • Default: python3 reflect_sessions.py --output -.
  • Use --output-style human when replying in chat; use JSON for downstream parsing.
  • Ensure the shell command timeout is at least 120000 ms (2 minutes) so runs are not cut off.
  • Use Python 3.11+ (the CLI relies on features not present in Python 3.9).

Workflow

  1. Choose scope: --project, --since, --until, --session-id(s), --limit.

Note: the most recent session is skipped unless --include-most-recent.

  1. Generate reflections: python3 reflect_sessions.py ... and adjust

--refresh-mode, --prompt-preset, --prompt-text, --prompt-file, or Codex flags only when asked.

  1. Respond carefully: highlight repeated, non-niche patterns and keep claims

tentative unless the user confirms them.

Prompt presets

Default preset: reflection.

Available presets:

  • reflection: Full reflection on repetition, friction, and skill ideas (default).
  • summary: Concise summary of goals, actions, outputs, and decisions.
  • bloat: Bloat/dead ends/cleanup opportunities introduced during the session.
  • incomplete: Open loops and tasks left unfinished.
  • decisions: Key decisions, alternatives, and rationale.
  • next_steps: Concrete follow-up actions, tests, and validations.

Use --prompt-preset <name> to select one, --prompt-text "<prompt>" for inline prompts, or --prompt-file /path/to/prompt.md for a custom prompt file.

References

  • references/cli.md for the command catalog and full flag list.
  • references/README.md for system behavior, cache semantics, and output schema.
  • references/examples.md for an end-to-end example from ExampleProject.