AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Codex Memory Bootstrap

skill-akin-lvyifang-codex-memory-lite-codex-memory-bootstrap · by AKin-lvyifang

Use when the user says "Initialize this project's memory", or when a project enters long-running, complex collaboration, or cross-session continuation and needs project-level `.codex-memory/` scaffolding.

No reviews yet
0 installs
35 views
0.0% view→install

Install

$ agentstack add skill-akin-lvyifang-codex-memory-lite-codex-memory-bootstrap

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-akin-lvyifang-codex-memory-lite-codex-memory-bootstrap)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
6mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Codex Memory Bootstrap? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Codex Memory Bootstrap

Initialize a structured project memory layer for long-running collaboration so work no longer depends on a single handoff file.

Pre-Write Checks

Before creating .codex-memory/, 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 does not look like a project directory, or the project root is still unclear, stop and confirm it before creating anything
  • All directories and files must be created under {PROJECT_ROOT}/.codex-memory/
  • Do not treat the bare relative path .codex-memory/ as the final target path

When To Use

Use this when any of the following is true:

  • The user explicitly says "Initialize this project's memory"
  • The work will continue across multiple sessions
  • The work spans multiple files, pages, or topics
  • The project already has handoff, rule, or history buildup
  • The current thread is visibly getting bloated

Natural Trigger Phrases

  • Initialize this project's memory

Goal

Create the smallest usable .codex-memory/ structure and establish or update the project-level AGENTS.md.

Specifically:

  • if the project does not have AGENTS.md, create the full file from templates/project-agents.md
  • if the project already has AGENTS.md, update only the managed CODEX-MEMORY block
  • after writing, always run validation so AGENTS.md is confirmed against the full template or the managed-block template

Workflow

  1. Check whether .codex-memory/ already exists at the project root.
  2. If it does not exist, create the following structure:
.codex-memory/
├── current.md
├── spec/
│   ├── index.md
│   ├── design-rules.md
│   ├── frontend-design-standards.md
│   ├── frontend-page-workflow.md
│   ├── component-reuse.md
│   └── workflow-rules.md
├── tasks/
│   ├── index.md
│   ├── active/
│   └── archive/
└── archive/
  1. Write the standard templates into those files.
  2. Handle project-level AGENTS.md:
  • if AGENTS.md does not exist, create the full file from templates/project-agents.md
  • if AGENTS.md already exists, only append or update the managed CODEX-MEMORY block defined by templates/project-agents-block.md
  1. Run validation:
  • freshly created full file: python3 scripts/validate_project_agents.py --project-root --mode create
  • managed-block update on an existing file: python3 scripts/validate_project_agents.py --project-root --mode update
  1. If the project contains an older handoff file such as codex-handoff.md, record it as "pending migration", but do not delete it automatically.
  2. Report the initialization result:
  • the PROJECT_ROOT used this time
  • created directories
  • created files
  • whether AGENTS.md was created or updated
  • AGENTS.md validation result
  • whether an old handoff was found
  • whether migration should be recommended next

Templates And Validation

  • full project-level AGENTS.md template: templates/project-agents.md
  • managed block template: templates/project-agents-block.md
  • validation script: scripts/validate_project_agents.py

Validation requirements:

  • AGENTS.md must exist
  • CODEX-MEMORY:START / END must each appear exactly once
  • if the file was newly created, it must match templates/project-agents.md
  • if the file already existed, its managed block must match templates/project-agents-block.md

Remind The User After Initialization

  • This project now has .codex-memory/ enabled
  • Future sessions should read current.md first
  • Project-level AGENTS.md was created from template or updated by managed block and passed validation
  • If an old handoff exists, migrate it instead of maintaining both systems in parallel

Constraints

  • Do not automatically delete old handoff files
  • Do not migrate legacy content during bootstrap without an explicit migration step
  • Do not dump historical process notes straight into current.md
  • Do not freely improvise a new project-level AGENTS.md; use templates/project-agents.md
  • Do not skip validation after writing AGENTS.md
  • Do not create any .codex-memory/ directories or files before PROJECT_ROOT is confirmed

Source & license

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

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

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.