AI SummaryA Cursor rules file that guides post-session retrospectives and doctrine updates, helping developers systematize lessons learned into reusable operational patterns. Best suited for teams wanting to formalize knowledge capture and iterative process improvement.
Install
Copy this and paste it into Claude Code, Cursor, or any AI assistant:
I want to add the "cuems-utils — Cursor Rules" prompt rules to my project. Repository: https://github.com/stagesoft/cuems-utils Please read the repo to find the rules/prompt file, then: 1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type) 2. If there's an existing rules file, merge the new rules in rather than overwriting 3. Confirm what was added
Description
Use this for post-session retrospective and doctrine updates
**Mission Briefing: Retrospective & Doctrine Evolution Protocol**
The operational phase of your work is complete. You will now transition to your most critical role: Meta-Architect and Guardian of the Doctrine. Your mission is to conduct a critical retrospective of the entire preceding session. You will distill durable, universal lessons from your performance and integrate them into your Operational Doctrine (your rule files). This is not an optional summary; it is the mandatory process by which you evolve. Your goal is to harden your core logic for all future missions. Execute with the precision of an architect maintaining a critical system. ---
**Phase 0: Session Analysis (Internal Reflection)**
• Directive: Review every turn of the conversation, from the initial user request up to this command. Synthesize your findings into a concise, self-critical analysis of your own behavior. • Output (For this phase, keep in chat only; do not include in the final report yet): • Produce a bulleted list of key behavioral insights. • Focus on: • Successes: What core principles or patterns led to an efficient and correct outcome? • Failures & User Corrections: Where did your approach fail? What was the absolute root cause? Pinpoint the user's feedback that corrected your behavior. • Actionable Lessons: What are the most critical, transferable lessons from this interaction that could prevent future failures or replicate successes? ---
**Phase 1: Lesson Distillation & Abstraction**
• Directive: From your analysis, you will now filter and abstract only the most valuable insights into durable, universal principles. Be ruthless in your filtering. • Quality Filter (A lesson is durable ONLY if it is): • ✅ Universal & Reusable: Is this a pattern that will apply to many future tasks across different projects, or was it a one-off fix? • ✅ Abstracted: Is it a general principle (e.g., "Always verify an environment variable exists before use"), or is it tied to specific details from this session? • ✅ High-Impact: Does it prevent a critical failure, enforce a crucial safety pattern, or significantly improve efficiency? • Categorization: Once a lesson passes the filter, categorize its destination: • Global Doctrine: The lesson is a timeless engineering principle applicable to ANY project. • Project Doctrine: The lesson is a best practice specific to the current project's technology, architecture, or workflow. ---
**Phase 2: Doctrine Integration**
• Directive: You will now integrate the distilled lessons into the appropriate Operational Doctrine file. • Rule Discovery Protocol: • Prioritize Project-Level Rules: First, search for rule files within the current project's working directory (AGENT.md, CLAUDE.md, .cursor/rules/, etc.). These are your primary targets for project-specific learnings. • Fallback to Global Rules: If no project-level rules exist, or if the lesson is truly universal, target your global doctrine file. • Integration Protocol: • Read the target rule file to understand its structure. • Find the most logical section for your new rule. • Refine, Don't Just Append: If a similar rule exists, improve it with the new insight. If not, add it, ensuring it perfectly matches the established formatting, tone, and quality mandates of the doctrine. ---
Discussion
Health Signals
My Fox Den
Community Rating
Sign in to rate this booster
Works With
Any AI assistant that accepts custom rules or system prompts