Reflect on current session to extract learnings and create context files
Extracts session learnings and creates context files for future reference.
/plugin marketplace add elafo/centauro/plugin install elafo-centauro-2@elafo/centauro[optional: specific focus area]Reflect on this conversation session and extract key learnings to save as context files.
Analyze the current session for:
$ARGUMENTS
Create a structured reflection:
# Session Reflection - [Brief Description]
## Successes
- [List successes with context]
## Failures & Lessons
- [List failures with what was learned]
## Unknowns Discovered
- [List knowledge gaps and why they matter]
## Key Learnings
- [Actionable insights for future work]
After creating the reflection, invoke the context-manager agent via Task tool:
Prompt: "Process this session reflection and create appropriate context files (c₁-c₅):
[Include full reflection]
Autonomously classify learnings:
- c₁: Methodology improvements (HOW to do things better)
- c₂: New domain knowledge (WHAT we learned)
- c₃: Tool capabilities discovered
- c₄: Historical lessons from this session
- c₅: State or configuration updates
Create/update context files with semantic versioning. Focus on actionable, specific learnings."
Summarize:
Note: Skip reflection if session was trivial (<5 tool calls, no significant tasks).
/reflect
Analyzes the entire session and extracts all learnings across all categories.
/reflect Focus on the authentication implementation approach
Concentrates reflection on authentication-related decisions and learnings.
/reflect deployment workflow
Analyzes only deployment-related successes, failures, and learnings.
User completes: "Implement OAuth2 authentication with JWT tokens"
User runs: /reflect
Expected output:
- c₁ context: Authentication workflow methodology
- c₂ context: OAuth2 vs JWT trade-offs knowledge
- c₄ context: Lessons from initial failed approach with session cookies
User completes: "Debug and fix race condition in user registration"
User runs: /reflect race condition debugging
Expected output:
- c₁ context: Debugging methodology for async issues
- c₂ context: Race condition patterns in Node.js
- c₄ context: Specific fix that worked (mutex implementation)
User completes: "Research best practices for API versioning"
User runs: /reflect
Expected output:
- c₂ context: API versioning strategies comparison
- c₄ context: Decision rationale for choosing semantic versioning
Use /reflect after:
Skip /reflect for:
/reflectReflect on previus response and output, based on Self-refinement framework for iterative improvement with complexity triage and verification