Communityライティング&編集github.com

ChenJinCloud/codex-closeout-archive

Codex skill for closing conversations into traceable process assets

codex-closeout-archive とは?

codex-closeout-archive is a Codex agent skill that codex skill for closing conversations into traceable process assets.

対応~Claude CodeCodex CLI~Cursor
npx skills add ChenJinCloud/codex-closeout-archive

Installed? Explore more ライティング&編集 skills: steipete/notion, affaan-m/seo, affaan-m/brand-voice · View all 6 →

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

Codex Closeout Archive

Use this skill when the user explicitly asks to close, archive, end, harvest, or preserve a Codex conversation. It turns the conversation into a lightweight process asset, then archives the conversation.

The user's explicit closeout request is the assetization decision. Do not re-litigate whether the thread deserves preservation once this skill has been invoked; every closeout creates a concise process asset.

Why This Skill Exists

Codex threads often contain the real work: intent shifts, user corrections, evidence paths, file changes, external-source checks, and final decisions. If the thread is only archived in the app, the next conversation can lose why decisions changed.

This skill preserves the reusable trail without copying the whole transcript. It protects:

  • Traceability: future work can find the original session, files, and evidence.
  • Decision continuity: key turns and corrections survive across threads.
  • Low-friction closeout: every ending produces one useful artifact, not a large archive system.

Do not use this skill merely because a conversation has become quiet or because an agent wants tidy closure. Use it when closeout, archive, harvest, or preservation is the user's requested next state.

Non-Negotiables

  • Create a process asset every time this skill is used.
  • Use the related project folder by default.
  • Keep the timeline concise: usually 5-12 key turns.
  • Preserve key turns, user corrections, decisions, output files, and evidence paths.
  • Do not paste a full raw transcript, full Slack or DM content, credentials, or sensitive exports into the asset.
  • Do not delete, move, or rewrite original Codex session files.
  • After the asset is written and verified, archive the current conversation unless the user asks to prepare the asset without ending the thread.

Workflow

1. Resolve The Destination

Choose the smallest existing folder that represents the current project.

Prefer, in order:

  1. A project folder explicitly named by the user.
  2. The repo or workspace root if the thread is repo-specific.
  3. A durable project, area, or operations folder required by local AGENTS.md, workspace instructions, or the user's operating system.
  4. The current working directory when no narrower project folder is obvious.

Ask one concise question only if there are multiple plausible project folders and writing to the wrong one would create cleanup work.

If the user's environment has a durable record system, follow its nearest AGENTS.md or equivalent project instructions before writing.

Use a filename like:

<topic-slug>__codex-process-asset__YYYY-MM-DD.md

If no topic slug is obvious, use:

codex-closeout__YYYY-MM-DD.md

2. Locate Evidence

Record evidence paths before writing the asset.

Look for:

  • Current workspace path.
  • Current or archived Codex session JSONL path.
  • Thread id from the JSONL session_meta payload when available.
  • Files created, edited, moved, or verified during the conversation.
  • External systems read or written, with links or query names when safe to preserve.

The session file is commonly under:

~/.codex/sessions/YYYY/MM/DD/rollout-*.jsonl
~/.codex/archived_sessions/rollout-*.jsonl

On Windows, ~ usually resolves to the user's profile directory.

If the current live session is not yet visible on disk, write that explicitly:

Codex session evidence: current live thread; JSONL not located at closeout time.

Optional helper:

python scripts/extract_session_events.py --latest
python scripts/extract_session_events.py --session "/path/to/rollout.jsonl"

Use the helper only to get a raw event inventory. Curate the final timeline yourself.

3. Write The Process Asset

Use this structure:

# <Title> Codex Process Asset

Date archived: YYYY-MM-DD
Archive time: YYYY-MM-DD HH:mm+TZ
Workspace: `<absolute path>`
Local project: `<absolute path>`
Codex session evidence: `<absolute path or live-thread note>`
Thread id: `<id or unknown>`

## 1. Asset Type

This file is a process asset. It preserves the Codex conversation's key evolution, not the full raw transcript.

## 2. Why This Was Preserved

- <why the closeout matters>
- <what future reader should recover from this asset>

## 3. Concise Timeline

| Time | Event | Meaning |
| --- | --- | --- |
| <time> | <key turn> | <why it mattered> |

## 4. Outputs And Evidence

| Type | Path / Link | Notes |
| --- | --- | --- |

## 5. Decisions And Corrections

- <final decision>
- <important user correction>
- <boundary clarified>

## 6. Open Follow-Ups

- <item or "None recorded">

## 7. Boundaries

- Raw private messages, credentials, and full Codex JSONL content were not copied.
- Original session files were left in place.

## 8. Retrieval Tags

- <tag>

Keep the prose compact. The asset should be useful to reread in one or two minutes.

4. Update Nearby Indexes

Update the smallest nearby discovery surface when it exists:

  • README.md or index.md in the project folder, if it has an artifact table or source map.
  • CHANGELOG.md in the project folder, if it exists.
  • Any local run ledger or project index required by AGENTS.md or equivalent workspace policy.

Do not create a new folder only for closeouts unless no reasonable project folder exists.

5. Verify

Before finalizing:

  • Confirm the process asset exists at the intended path.
  • Search the asset for the session evidence path or live-thread note.
  • Confirm any index or changelog update mentions the new asset.
  • List the files changed.

6. Final Response And Archive

Reply briefly with:

  • Process asset path.
  • Any index or changelog files updated.
  • Evidence path status.
  • Any follow-up that remains open.

Then archive the current conversation. In Codex Desktop, emit the archive directive as the final line:

::archive{reason="Closeout process asset created and conversation archived"}

Only skip the archive directive if the user asks to prepare a closeout without ending the thread.

Examples

Use this skill for prompts like:

  • "End this Codex thread and create a traceable process asset."
  • "Archive this conversation, preserving the key decisions and evidence paths."
  • "Close this thread with a concise process asset."
  • "Run closeout and leave the output path and session evidence in the project folder."

関連スキル

steipete/notion

Notion CLI/API for pages, Markdown content, data sources, files, comments, search, Workers, and raw API calls.

community

affaan-m/seo

Audit, plan, and implement SEO improvements across technical SEO, on-page optimization, structured data, Core Web Vitals, and content strategy. Use when the user wants better search visibility, SEO remediation, schema markup, sitemap/robots work, or keyword mapping.

community

affaan-m/brand-voice

Build a source-derived writing style profile from real posts, essays, launch notes, docs, or site copy, then reuse that profile across content, outreach, and social workflows. Use when the user wants voice consistency without generic AI writing tropes.

community

affaan-m/crosspost

Multi-platform content distribution across X, LinkedIn, Threads, and Bluesky. Adapts content per platform using content-engine patterns. Never posts identical content cross-platform. Use when the user wants to distribute content across social platforms.

community

affaan-m/x-api

X/Twitter API integration for posting tweets, threads, reading timelines, search, and analytics. Covers OAuth auth patterns, rate limits, and platform-native content posting. Use when the user wants to interact with X programmatically.

community

affaan-m/content-engine

Create platform-native content systems for X, LinkedIn, TikTok, YouTube, newsletters, and repurposed multi-platform campaigns. Use when the user wants social posts, threads, scripts, content calendars, or one source asset adapted cleanly across platforms.

community