codex-memory-task-init
Original:🇺🇸 English
Translated
Use when the user says "This is a long-running task. Record it." or "Create task memory for this long-running task", or when a new long-running task needs separate tracking across sessions.
8installs
Added on
NPX Install
npx skill4agent add akin-lvyifang/codex-memory-lite codex-memory-task-initTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Codex Memory Task Init
Pre-Write Checks
Before creating the task directory, first define an absolute path variable: .
PROJECT_ROOT- must be the project root for the current session
PROJECT_ROOT - Do not treat ,
~,/,~/.config/opencode, a skills directory, or a config directory as the project root~/.codex - If the current directory looks like a home directory or a config directory, or if the project root is still unclear, stop and confirm it first
- All task directories and files must be created under
{PROJECT_ROOT}/.codex-memory/tasks/active/<task-slug>/ - Do not treat the bare relative path as the final target path
.codex-memory/tasks/...
When To Use
Use this when any of the following is true:
- The user explicitly says "This is a long-running task. Record it."
- The user explicitly says "Create task memory for this long-running task"
- The task will continue across multiple sessions
- The task needs its own target, decisions, and reference tracking
- The task no longer fits cleanly inside
current.md
Natural Trigger Phrases
- This is a long-running task. Record it.
- Create task memory for this long-running task
Goal
Create the standard task memory skeleton under .
.codex-memory/tasks/active/<task-slug>/Required Output
The actual target path must be:
text
{PROJECT_ROOT}/.codex-memory/tasks/active/<task-slug>/The structure below is shown only as the project-relative layout:
Create:
text
.codex-memory/tasks/active/<task-slug>/
├── brief.md
├── decisions.md
└── refs.mdAlso update:
text
.codex-memory/tasks/index.mdRules
- Confirm first; all actual write paths must use absolute
PROJECT_ROOTpaths.{PROJECT_ROOT}/.codex-memory/... - should be short, stable, and readable, without a date.
<task-slug> - ,
brief.md, anddecisions.mdmust always be created together.refs.md - All files must be generated from this skill's built-in templates.
- If the task directory already exists, do not rebuild it; only fill gaps and validate.
- When updating , add the task entry and a one-line summary.
tasks/index.md - Run a structure validation after writing; if validation fails, stop and report it.
Report Back
- the used this time
PROJECT_ROOT - the task slug
- created files
- backfilled files
- update result
tasks/index.md - validation result
Constraints
- Do not create any directories or files before
.codex-memory/tasks/is confirmedPROJECT_ROOT - If the target path is not , stop immediately and do not continue
{PROJECT_ROOT}/.codex-memory/tasks/active/<task-slug>/