cursor-agentic-coding-template: Command for Claude Code

.cursor/commands/reflect.md

reflect is a command for Claude Code, Cursor from Zenobia000/cursor-agentic-coding-template. It costs 18 tokens per session (1,253 once invoked), scanned A, original, MIT.

A command for reviewing a completed development cycle and recording lessons learned. It compares the planned tasks, progress notes, design records, and version-control history.

In plain words
What is it for?
Use it after most tasks in a cycle are complete, to document outcomes and process improvements.
Why use it?
It helps identify what worked, what caused delays, and what should change in future cycles using evidence from the project records.

Command for Claude CodeCursor

Written for Cursor and Claude Code: installed under .cursor/, but also a Claude Code command (commands/*.md).

This is Zenobia000/cursor-agentic-coding-template's own configuration. It tells Claude Code and Cursor how to work on cursor-agentic-coding-template itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything cursor-agentic-coding-template configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Zenobia000/cursor-agentic-coding-template. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Zenobia000/cursor-agentic-coding-template/main/.cursor/commands/reflect.md
Clone the repo
git clone --depth 1 https://github.com/Zenobia000/cursor-agentic-coding-template

Made for: Claude Code, Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for reflect

README.md
[![agentmods](https://agentmods.dev/badge/commands/zenobia000/cursor-agentic-coding-template/reflect/github.svg)](https://agentmods.dev/commands/zenobia000/cursor-agentic-coding-template/reflect)
Your own site
<a href="https://agentmods.dev/commands/zenobia000/cursor-agentic-coding-template/reflect"><img src="https://agentmods.dev/badge/commands/zenobia000/cursor-agentic-coding-template/reflect/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for reflect

Your own site · 80×15
<a href="https://agentmods.dev/commands/zenobia000/cursor-agentic-coding-template/reflect"><img src="https://agentmods.dev/badge/commands/zenobia000/cursor-agentic-coding-template/reflect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,253 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00018 $0.01253
Opus 5.5 $0.00007 $0.00501
Sonnet 5.5 $0.00004 $0.00251
Haiku 4.5 $0.00002 $0.00125

Measured 2mo ago against content hash 243291edbe03, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • reflect — 100% identical, 0 lines differ
.cursor/commands/reflect.md · 72 lines

How it starts

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

🔍 REFLECT MODE (v3)

從已完成的工作中汲取經驗,提煉智慧,為未來的成功鋪路。

1. PLAN 🎯 (規劃)

Objective

對一個已完成的開發週期進行全面的、數據驅動的回顧,總結成果,反思過程,並將所有學習到的經驗寫入一份新的 memory-bank/current/reflection-[date].md 文件中,作為未來改進的基礎。

Guiding Rules

在執行此指令時,AI Agent 必須遵循以下規則:

  • 主要規則: .cursor/rules/principles/global.mdc
  • 流程改進: .cursor/rules/process/planning-process.md
  • 核心隔離: .cursor/rules/isolation_rules/main.mdc

Prerequisites Check

在開始反思之前,請確保:

  • ✅ 週期已結束: memory-bank/current/tasks.md 中絕大多數任務都已標記為 completed。
  • ✅ 歷史記錄存在: memory-bank/current/progress.md 文件存在,並包含了本週期的開發日誌。
  • ❌ Failure Action: 如果工作尚未完成,AI 必須拒絕反思,並建議:「看起來本週期還有未完成的任務。建議先完成它們再進行反思。」

2. DO 実行 (執行)

Core Process

遵循一個客觀、公正、面向未來的復盤框架:

Step 0: 健康檢查 (Health Check)

  • 檢查拓撲完整性: 驗證 memory-bank/current/ 中的 tasks.md 和 progress.md 的數據是否完整且可以互相印證。
  • 批判性思考: 反思的目的是為了改進,而非指責。AI 在分析時應採取中立的語氣。如果發現某個任務延遲嚴重,應客觀描述事實,並探討原因。

Step 1: 記憶體互動 - 讀取 (Memory Interaction - Read)

  • 讀取所有相關記憶:
    • memory-bank/current/tasks.md (規劃了什麼)
    • memory-bank/current/progress.md (實際執行過程)
    • memory-bank/current/creative-*.md (設計決策)
    • git log (提交歷史)
  • 綜合分析: 將上述所有資訊結合起來,建立一個關於本週期的完整畫像。

Step 2: 復盤分析 (Retrospective Analysis)

  • 客觀總結 (What happened?): 總結完成了哪些主要功能,指標數據如何。
  • 分析亮點 (What went well?): 識別流程中的成功實踐、高效決策。
  • 分析痛點 (What could be improved?): 識別流程中的瓶頸、錯誤的估算、技術債。
  • 提煉學習 (What did we learn?): 總結出可供未來直接使用的、可操作的經驗教訓。

Step 3: 記憶體互動 - 寫入 (Memory Interaction - Write)

  • 創建反思報告: 將上述所有分析結果,寫入到一個新的 memory-bank/current/reflection-[date].md 文件中。
  • (可選) 更新任務列表: 如果在反思中識別出新的技術債務,可以更新 memory-bank/current/tasks.md,將這些技債作為下個週期的 PENDING 任務。

3. CHECK ✓ (檢查)

Verification Checklist

  • 報告已生成: memory-bank/current/reflection-[date].md 是否已成功創建?
  • 分析是否深入: 報告是否不僅僅是羅列事實,而是提供了對原因的深入分析?
  • 學習是否可操作: 總結的經驗教訓是否具體、可衡量、可應用?

4. ACT 改善 (行動)

Finalization

  • 與用戶互動: 在生成報告後,AI 可以主動向用戶提問,以獲取更深層次的見解。例如:「報告已生成。從您個人的角度來看,本次週期最大的挑戰是什麼?」
  • 提交報告: 將最終的 reflection-[date].md 文件提交到版本控制系統。

Read the full file on GitHub · 72 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. 2mo ago First seen · 72 lines · 18 tokens per session scan A 243291edbe03

Subscribe to this mod's changes

reflect is a command published in the GitHub repository Zenobia000/cursor-agentic-coding-template (30 stars, last pushed 4mo ago), licensed MIT. It adds 18 tokens to every session and 1,253 once invoked, about $0.0001 per session on Opus 5.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.