# Codex Memory Task Init

> 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.

- **Type:** Skill
- **Install:** `agentstack add skill-akin-lvyifang-codex-memory-lite-codex-memory-task-init`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [AKin-lvyifang](https://agentstack.voostack.com/s/akin-lvyifang)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [AKin-lvyifang](https://github.com/AKin-lvyifang)
- **Source:** https://github.com/AKin-lvyifang/codex-memory-lite/tree/main/skills/codex-memory-task-init

## Install

```sh
agentstack add skill-akin-lvyifang-codex-memory-lite-codex-memory-task-init
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Codex Memory Task Init

## Pre-Write Checks

Before creating the task directory, first define an absolute path variable: `PROJECT_ROOT`.

- `PROJECT_ROOT` must be the project root for the current session
- Do not treat `~`, `/`, `~/.config/opencode`, `~/.codex`, a skills directory, or a config directory as the project root
- 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//`
- Do not treat the bare relative path `.codex-memory/tasks/...` as the final target path

## 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//`.

## Required Output

The actual target path must be:

```text
{PROJECT_ROOT}/.codex-memory/tasks/active//
```

The structure below is shown only as the project-relative layout:

Create:

```text
.codex-memory/tasks/active//
├── brief.md
├── decisions.md
└── refs.md
```

Also update:

```text
.codex-memory/tasks/index.md
```

## Rules

1. Confirm `PROJECT_ROOT` first; all actual write paths must use absolute `{PROJECT_ROOT}/.codex-memory/...` paths.
2. `` should be short, stable, and readable, without a date.
3. `brief.md`, `decisions.md`, and `refs.md` must always be created together.
4. All files must be generated from this skill's built-in templates.
5. If the task directory already exists, do not rebuild it; only fill gaps and validate.
6. When updating `tasks/index.md`, add the task entry and a one-line summary.
7. Run a structure validation after writing; if validation fails, stop and report it.

## Report Back

- the `PROJECT_ROOT` used this time
- the task slug
- created files
- backfilled files
- `tasks/index.md` update result
- validation result

## Constraints

- Do not create any `.codex-memory/tasks/` directories or files before `PROJECT_ROOT` is confirmed
- If the target path is not `{PROJECT_ROOT}/.codex-memory/tasks/active//`, stop immediately and do not continue

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [AKin-lvyifang](https://github.com/AKin-lvyifang)
- **Source:** [AKin-lvyifang/codex-memory-lite](https://github.com/AKin-lvyifang/codex-memory-lite)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-akin-lvyifang-codex-memory-lite-codex-memory-task-init
- Seller: https://agentstack.voostack.com/s/akin-lvyifang
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
