codex/codex-memory-manager/SKILL.md
Manage persistent Codex user-preference memory from recent conversation history. Use when users ask to learn from the last 24 hours of chats, update `~/.codex/AGENTS.md`, maintain reusable preference-first memory under `~/.codex/memory/*.md`, or sync new preference categories discovered in `~/.codex/sessions` and `~/.codex/archived_sessions`.
npx skillsauth add laitszkin/apollo-toolkit codex-memory-managerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
learn-skill-from-conversations when the same conversation review should also evolve the skill catalog.~/.codex/sessions, ~/.codex/archived_sessions, or ~/.codex/AGENTS.md are unavailable, report the missing path and stop instead of guessing.Automation memory: path, use that path directly for run-memory read/write instead of assuming $CODEX_HOME is set.~/.codex/AGENTS.md, and keep memory entries cross-project reusable, preference-heavy, and light on repository- or incident-specific detail.Keep a durable, categorized memory of user preferences so future agents can quickly review relevant guidance before starting work.
apltk extract-codex-conversations: Read the last N hours of Codex sessions, including archived sessions (TypeScript handler in lib/tools/extract-conversations.ts).apltk sync-codex-memory-index: Maintain a normalized memory index section at the end of ~/.codex/AGENTS.md (TypeScript handler in lib/tools/sync-memory-index.ts).apltk extract-codex-conversations --lookback-minutes 1440
~/.codex/sessions and ~/.codex/archived_sessions.NO_RECENT_CONVERSATIONS, stop immediately and report that no memory update is needed.[USER] and [ASSISTANT] block before deciding that a preference is stable.Automation memory: path, open that file first when present so the current curation run can extend the previous automation summary without relying on shell variable expansion.~/.codex/memory/*.md.engineering-workflow.mdassistant-style.mdintegration-and-deployment-preferences.mdPrefer X when Y or Do not do Z when Q.assets/templates/memory-file.md inside each memory file:# User Memory - Engineering Workflow
Last curated: 2026-04-05 09:20 HKT
## Scope
User preferences about how engineering tasks should be investigated, planned, implemented, verified, merged, and documented across repositories.
## Preferences
- Prefer modular abstractions over duplicated logic.
- Applies when: designing or refactoring implementation structure.
- Skip planning artifacts for clearly small, localized, low-risk changes.
- Applies when: assessing whether a task needs formal spec documents.
## Maintenance
- Keep entries concrete, action-guiding, and reusable across repositories.
- Move overlapping preferences to a better-matched memory file instead of keeping mixed categories.
## Evidence notes
- 2026-03-22 through 2026-04-04 repeated workflow corrections consistently reinforced scoped planning, approval gating, and architecture-aware implementation.
~/.codex/AGENTS.md~/.codex/AGENTS.md and mirror its existing language in the memory section instructions.apltk sync-codex-memory-index to rewrite the managed section at the end of the file.apltk sync-codex-memory-index \
--agents-file ~/.codex/AGENTS.md \
--memory-dir ~/.codex/memory \
--section-title "## User Memory Index" \
--instruction-line "Before starting work, review the index below and open any relevant user preference files." \
--instruction-line "When a new preference category appears, create or update the matching memory file and refresh this index."
~/.codex/AGENTS.md; do not scatter memory links elsewhere in the file.Automation memory: path is provided in the task prompt, also write the concise run summary back to that exact file path and prefer it over $CODEX_HOME/... interpolation when the shell environment is incomplete.~/.codex/AGENTS.md; only manage the memory index block at the end.Load only when needed:
assets/templates/memory-file.mddevelopment
Guides the agent through creating a new Agent Skill from scratch. Use when the user wants to build a skill, create a new skill, scaffold a skill directory, or author a SKILL.md. Do NOT use for optimising or rewriting existing skills — use 'optimise-skill' for that. Do NOT use for editing files that are already part of a skill. Do NOT use for creating non-skill content like documentation, scripts, or project files.
development
Guides the agent through creating a new Agent Skill from scratch. Use when the user wants to build a skill, create a new skill, scaffold a skill directory, or author a SKILL.md. Do NOT use for optimising or rewriting existing skills — use 'optimise-skill' for that. Do NOT use for editing files that are already part of a skill. Do NOT use for creating non-skill content like documentation, scripts, or project files.
development
Review a pull request — interactive PR selection via `gh`, 4-dimension code review (hallucinated code, architecture, performance, test validity), then post severity-graded comments with fix suggestions on the PR. Not for spec-based review — use `review` instead.
tools
協助完成自動化版本發佈。同步文檔、更新版本號、推送 tag 並建立 GitHub Release。