From compound-engineering
This skill should be used when the user asks to "reflect on this session", "capture learnings", "what did we learn", "debrief this work", or wants to create a structured learning artifact from recent engineering work. Provides methodology for subsystem-aware reflection and structured output.
npx claudepluginhub mberto10/mberto-compoundThis skill uses the workspace's default tool permissions.
Transform an engineering work session into structured, actionable learnings that feed into the compound engineering cycle. Reflection is subsystem-aware (grounded in what subsystems were touched) and trace-aware (grounded in what actually happened).
Generates design tokens/docs from CSS/Tailwind/styled-components codebases, audits visual consistency across 10 dimensions, detects AI slop in UI.
Records polished WebM UI demo videos of web apps using Playwright with cursor overlay, natural pacing, and three-phase scripting. Activates for demo, walkthrough, screen recording, or tutorial requests.
Delivers idiomatic Kotlin patterns for null safety, immutability, sealed classes, coroutines, Flows, extensions, DSL builders, and Gradle DSL. Use when writing, reviewing, refactoring, or designing Kotlin code.
Transform an engineering work session into structured, actionable learnings that feed into the compound engineering cycle. Reflection is subsystem-aware (grounded in what subsystems were touched) and trace-aware (grounded in what actually happened).
Session context to analyze:
If user provides focus text: Prioritize analysis around their specific observation.
If no focus provided: Perform general reflection across all friction points and successes.
For each subsystem that was touched:
What happened?
What worked?
What friction occurred?
What was missing?
Convert observations into 1-line testable rules:
Format:
[Learning statement - specific, actionable, testable]
[src:YYYY-MM-DD__context-description] [type:rule|feature|fix|spec-update]
Examples:
When modifying the API routes subsystem, always check auth middleware invariant.
[src:2025-06-15__api-auth-cascade] [type:rule]
Add a helpful_skill for database migration patterns to the data subsystem.
[src:2025-06-15__data-migration-friction] [type:feature]
Subsystem spec for frontend/auth is missing dependency on backend/api.
[src:2025-06-15__auth-flow-trace] [type:spec-update]
Quality checks:
Reject vague learnings like "be more careful" or "think about edge cases."
Map each learning to where it should land:
| Type | Destination | Example |
|---|---|---|
rule | Skill, CLAUDE.md, or invariant | Behavioral guidance |
feature | New command, skill, or agent | Missing capability |
fix | Skill/command edit | Incorrect behavior |
spec-update | Subsystem YAML update | Missing knowledge |
For each potential learning, ask:
Prioritize frontier-shifting learnings. They have higher r in the compound formula.
Selection Pressure Check:
Write structured output as a discovery artifact:
./compound-discoveries/YYYY-MM-DD-reflection-[focus].md
Body Format:
## Session Context
- Date: YYYY-MM-DD
- Subsystems touched: [list]
- Focus: [user-provided focus or "general reflection"]
## Summary
[2-3 sentence summary of work and key outcomes]
## Learnings
### Rules
- [Learning 1] [src:...]
- [Learning 2] [src:...]
### Feature Requests
- [Feature 1] [src:...]
### Fixes
- [Fix 1] [src:...]
### Spec Updates
- [Update 1] [src:...]
## Proposed Changes
### [Subsystem or Plugin]
- **File:** path/to/file
- **Change type:** update | create
- **Description:** What to change and why
- **Priority:** high | medium | low
## Friction Log
[Raw friction points captured during session]
After reflection, confirm:
Reflection feeds back into the compound engineering cycle:
/plan → /work → /review → reflect → /discover → /consolidate
↓
Subsystem specs updated
helpful_skills expanded
Local plugin grows
The reflection skill captures the raw material. /discover shapes it into component specs. /consolidate implements it.