reflect

A periodic work-review tool for examining recent notes, decisions, code history, and conversation patterns. It is intended for use every few days or when someone explicitly asks for reflection.

In plain words
What is it for?
It helps review daily notes, recent decisions, lessons learned, anti-patterns, git history, and recent conversations to propose process improvements.
Why use it?
It helps identify mistakes, recurring friction, and ways the working process or agent behaviour could improve.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/xcota/pos/reflect
Any agent
npx skills add xcota/pos --skill reflect
Clone the repo
git clone --depth 1 https://github.com/xcota/pos

Made for: Claude Code, Codex.

Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,103 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00019 $0.01103
Opus 5 $0.00010 $0.00551
Sonnet 5 $0.00004 $0.00221
Haiku 4.5 $0.00002 $0.00110

Measured 3d ago against content hash be0bd957581a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

reflect scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/reflect/SKILL.md · 88 lines

How it starts

The opening of the file, as written. The whole thing — 88 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/reflect — Periodic Self-Reflection

Analyze recent work, extract patterns, learn from mistakes, propose improvements.

Core principle: the strongest self-improvement signal is NOT the daily summary — it is the conversation itself: what the user says, in what tone, where friction or correction shows up; and how the agent responds (where it landed, where it substituted its own agenda, failed to orient, or over-produced). Mining recent transcripts for that friction is the crown jewel of this skill.

When to Use

  • Manually: when you want to review and improve
  • Auto: wire up a periodic trigger yourself (e.g. a cron job or /loop calling /reflect) — not shipped by default

Steps

  1. Gather data:
    • Read last 3-5 daily notes from daily/
    • Read recent entries in state/decisions/
    • Read context/anti-patterns.md (what were we watching for?) + anti-patterns-index.md watch-list
    • Read context/learned.md (what did we already know?)
    • Check recent git log: git log --oneline -20

1b. Analyze the CONVERSATION (the main signal):

  • Source = recent session transcripts. Resolve the path generically from this project's slug under the Claude projects dir, e.g.:
    PROJECT_SLUG=$(pwd | sed 's#/#-#g')
    TRANSCRIPT_DIR="$HOME/.claude/projects/$PROJECT_SLUG"
    NEWEST=$(ls -t "$TRANSCRIPT_DIR"/*.jsonl 2>/dev/null | head -1)
    
    (Adjust the slug derivation to your harness; the point is workspace-derived, not hardcoded.) Do NOT bulk-load — extract only user turns + agent replies + friction points.
  • Extract user turns, e.g.:
    cat "$NEWEST" | python3 -c "import json,sys; [print('U:', json.loads(l).get('message',{}).get('content','')[:300]) for l in sys.stdin if json.loads(l).get('type')=='user']"
    
    (Adapt to the actual transcript format.) Look for: corrections, frustration/anger (friction), "not that / not like that", energy shifts, what the user re-asks.
  • About the USER: how they respond (tone, length, what they value/dislike in THIS session), what latent needs surfaced → candidates for context/identity.md / memory, with a source-tier.
  • About the AGENT: where it landed, where it substituted its own agenda (substitution-instinct), where it failed to orient before committing, over-produced or added noise, made the user wait. Each real friction point → anti-pattern candidate.

Read the full file on GitHub · 88 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 88 lines · 19 tokens per session scan A be0bd957581a

Subscribe to this mod's changes

reflect is a skill published in the GitHub repository xcota/pos (43 stars, last pushed 1mo ago), licensed MIT. It adds 19 tokens to every session and 1,103 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.