Ctx reflect

From ActiveMemory/ctx · View interactive version

Ctx reflect is an AI agent skill from the GitHub repository ActiveMemory/ctx. Reflect on session progress. Use at natural breakpoints, after unexpected behavior, or when shifting to a different task.

How to use this skill

Skill file

Pause and reflect on this session. Review what has been

accomplished and identify context worth persisting.

When to Use

done)

When NOT to Use

with unsolicited reflection

Usage Examples

/ctx-reflect
/ctx-reflect (after fixing the auth bug)

Reflection Checklist

Before listing items, step back and reason through the session

as a whole: what was the arc, what surprised you, what would

you do differently? This framing surfaces insights that a

mechanical checklist misses.

Work through each category. Skip categories with nothing

to report; do not force empty sections.

1. Learnings

patterns?

belong in LEARNINGS.md)

2. Decisions

3. Tasks

during this session?

4. Session Notes

up?

Output Format

After reflecting, provide:

  1. Summary: what was accomplished (2-3 sentences)
  2. Suggested persists: list what should be saved, with

the specific command or file for each item

  1. Offer: ask the user which items to persist

Good Example

This session implemented the cooldown mechanism for

ctx agent and updated all related docs. We discovered

that $PPID in hook context resolves to the Claude Code

process PID, which is unique per session.

I'd suggest persisting:

- Learning: $PPID in PreToolUse hooks resolves to

the Claude Code PID (unique per session)

ctx learning add "Title" --session-id ID --branch BR --commit HASH --context "..." --lesson "..." --application "..."

- Task: mark "Add cooldown to ctx agent" as done

- Decision: tombstone-based cooldown with 10m default

ctx decision add "Title" --session-id ID --branch BR --commit HASH --context "..." --rationale "..." --consequence "..."

Want me to persist any of these?

Bad Examples

no specific items or commands)

(only project-specific insights belong)

Persistence Commands

| What to persist | Command |

|------------------|----------------------------------------------------------------------------------------------------------------------------|

| Learning | ctx learning add "Title" --session-id ID --branch BR --commit HASH --context "..." --lesson "..." --application "..." |

| Decision | ctx decision add "Title" --session-id ID --branch BR --commit HASH --context "..." --rationale "..." --consequence "..." |

| Task completed | Edit TASKS.md directly |

| New task | ctx task add "Description" --session-id ID --branch BR --commit HASH |

Quality Checklist

Before presenting the reflection, verify:

path (not just "save the learning")

the choice

to report)

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.