Ctx journal normalize

From ActiveMemory/ctx · View interactive version

Ctx journal normalize is an AI agent skill from the GitHub repository ActiveMemory/ctx. Normalize journal source markdown for clean rendering. Use after journal site shows rendering issues: fence nesting, metadata formatting, broken lists.

How to use this skill

Skill file

Reconstruct journal entries as clean Markdown from stripped plain text.

When to Use

When NOT to Use

Output Rules

  1. Fences: Always use backtick fences. Innermost code gets

3 backticks. Each nesting level adds 1.

  1. Metadata: **Key**: value blocks become collapsed <details>.
  2. Tool output: Collapse into <details> when > 10 lines.
  3. Lists: 2-space indent per level.
  4. No invented content: Every word in output traces to input.

Process

  1. Backup first: copy journal directory to .bak sibling
  2. Identify files to normalize (skip already-normalized via .state.json)
  3. Process files turn-by-turn (not whole file at once)
  4. Write back the fixed files
  5. Mark normalized: ctx system mark-journal <filename> normalized
  6. Regenerate site: ctx journal site --build
  7. Report what changed

Quality Checklist

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.