Refactor high-complexity React components in Dify frontend. Use when `pnpm analyze-component...
npx skills add tygwan/cc-initializer --skill "feedback-loop"
Install specific skill from multi-skill repository
# Description
Automated feedback collection and learning documentation. Captures learnings from issues, generates ADRs for architecture decisions, and prompts for retrospective insights.
# SKILL.md
name: feedback-loop
description: Automated feedback collection and learning documentation. Captures learnings from issues, generates ADRs for architecture decisions, and prompts for retrospective insights.
Feedback Loop Skill
Automates the collection of learnings, architectural decisions, and retrospective insights. Ensures institutional knowledge is captured and accessible.
Usage
/feedback <command> [options]
Commands
| Command | Description |
|---|---|
learning |
Record a learning from issue/bug resolution |
adr |
Create Architecture Decision Record |
retro |
Generate retrospective template |
review |
Review recent learnings and decisions |
Core Philosophy
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β FEEDBACK LOOP CYCLE β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β β
β Experience Capture Apply β
β β β β β
β βββββββββββ βββββββββββ βββββββββββ β
β β Issue β β βLearning β β β Pattern β β
β β Solved β β Record β β Applied β β
β βββββββββββ βββββββββββ βββββββββββ β
β β β
β βββββββββββ βββββββββββ βββββββββββ β
β β Decisionβ β β ADR β β β Future β β
β β Made β β Created β βReferenceβ β
β βββββββββββ βββββββββββ βββββββββββ β
β β
β "Learn β Document β Improve" β
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Commands Detail
/feedback learning
Record a learning from resolving an issue or discovering a pattern.
/feedback learning "Database connection pooling prevents timeout errors"
/feedback learning --from-issue ISS-042
Prompts:
1. What was the problem?
2. What was the root cause?
3. What did you learn?
4. How can this be prevented/applied in the future?
Output Location: docs/feedback/LEARNINGS.md
Format:
## LRN-{N}: {Title}
**Date**: {date}
**Category**: {category}
**Related**: {issue_id}
### Context
{What situation triggered this learning}
### Problem
{What went wrong or was discovered}
### Root Cause
{Why it happened}
### Learning
{What was learned}
### Application
{How to apply this in the future}
### Tags
`{tag1}` `{tag2}` `{tag3}`
/feedback adr
Create an Architecture Decision Record for significant technical decisions.
/feedback adr "Use PostgreSQL over MySQL"
/feedback adr --title "Authentication Strategy" --status proposed
Options:
| Option | Description |
|--------|-------------|
| --title | ADR title |
| --status | proposed, accepted, deprecated, superseded |
| --supersedes | ADR number this replaces |
Prompts:
1. What is the context/problem?
2. What are the options considered?
3. What decision was made?
4. What are the consequences?
Output Location: docs/adr/ADR-{N}-{slug}.md
Format:
# ADR-{N}: {Title}
**Status**: {status}
**Date**: {date}
**Deciders**: {names}
**Supersedes**: {adr_ref} (if applicable)
## Context
{Background and problem statement}
## Decision Drivers
- {driver_1}
- {driver_2}
## Considered Options
### Option 1: {name}
**Pros:**
- {pro_1}
**Cons:**
- {con_1}
### Option 2: {name}
**Pros:**
- {pro_1}
**Cons:**
- {con_1}
## Decision
{What was decided and why}
## Consequences
### Positive
- {positive_1}
### Negative
- {negative_1}
### Risks
- {risk_1}
## Related
- ADR-{X}: {related_title}
- {external_link}
/feedback retro
Generate a retrospective template or prompt for insights.
/feedback retro # Generate template for current sprint
/feedback retro --milestone "v1.0" # Generate for milestone
/feedback retro --quick # Quick 3-question retro
Quick Retro Questions:
1. What went well?
2. What could improve?
3. What will we try next?
Full Retro Sections:
- What went well (Keep)
- What could improve (Problem)
- What to try (Try)
- Action items with owners
- Velocity analysis
/feedback review
Review recent learnings and decisions.
/feedback review # Show last 10 items
/feedback review --category bugs # Filter by category
/feedback review --last 30d # Last 30 days
Output:
π FEEDBACK REVIEW
## Recent Learnings (5)
βββββββββββ¬βββββββββββββββββββββββββββββββββββββββ¬βββββββββββββ
β ID β Title β Date β
βββββββββββΌβββββββββββββββββββββββββββββββββββββββΌβββββββββββββ€
β LRN-012 β Connection pooling prevents timeouts β 2025-01-05 β
β LRN-011 β Index order matters for composite β 2025-01-03 β
β LRN-010 β Use transactions for batch updates β 2024-12-28 β
βββββββββββ΄βββββββββββββββββββββββββββββββββββββββ΄βββββββββββββ
## Recent ADRs (3)
βββββββββββ¬βββββββββββββββββββββββββββββββββββββββ¬βββββββββββββ
β ID β Title β Status β
βββββββββββΌβββββββββββββββββββββββββββββββββββββββΌβββββββββββββ€
β ADR-005 β Use PostgreSQL for persistence β Accepted β
β ADR-004 β JWT for API authentication β Accepted β
β ADR-003 β Microservices vs Monolith β Superseded β
βββββββββββ΄βββββββββββββββββββββββββββββββββββββββ΄βββββββββββββ
π‘ Tip: Run `/feedback learning` after resolving issues
Auto-Triggers
Issue Resolution Trigger
When an issue is marked resolved, prompt for learning:
# After git commit with "fix:" or "closes #"
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β π‘ LEARNING PROMPT β
β β
β You just resolved an issue. Would you like to record β
β what you learned? β
β β
β Issue: Connection timeout in production β
β Fix: Added connection pooling β
β β
β [Y] Record learning [N] Skip [L] Later β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Architecture Change Trigger
When significant code changes detected, prompt for ADR:
# After changes to core infrastructure files
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β π ADR PROMPT β
β β
β You made significant architecture changes: β
β - Modified: src/core/database.ts β
β - Added: src/services/cache.ts β
β β
β Should this decision be documented as an ADR? β
β β
β [Y] Create ADR [N] Skip [D] Describe briefly β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
File Structure
docs/
βββ feedback/
β βββ LEARNINGS.md # All learnings
β βββ INDEX.md # Learning index by category
βββ adr/
β βββ INDEX.md # ADR index
β βββ ADR-001-database.md
β βββ ADR-002-auth.md
β βββ template.md # ADR template
βββ retros/
βββ sprint-1-retro.md
βββ milestone-v1-retro.md
Categories
Learning Categories
| Category | Keywords | Example |
|---|---|---|
bugs |
fix, error, crash | Memory leak patterns |
performance |
slow, optimize, cache | Query optimization |
security |
auth, vulnerability | Input validation |
architecture |
design, pattern, structure | Event sourcing |
tooling |
build, deploy, ci | Docker multi-stage |
process |
workflow, team, communication | Code review practices |
ADR Categories
| Category | When to Use |
|---|---|
infrastructure |
Database, hosting, scaling |
architecture |
Patterns, structure, modules |
security |
Auth, encryption, compliance |
integration |
APIs, third-party, protocols |
process |
Development workflow, tools |
Integration
With Issue Tracking
# Reference issues in learnings
/feedback learning --from-issue GH-123
# Auto-link in commit messages
git commit -m "fix: timeout issue [LRN-012]"
With Sprint Management
# Generate retro at sprint end
/sprint end # Automatically triggers /feedback retro
With /agile-sync
# Include feedback summary in sync
/agile-sync # Shows recent learnings count
Configuration
{
"feedback": {
"auto_prompt_on_fix": true,
"auto_prompt_on_arch_change": true,
"learning_categories": ["bugs", "performance", "security", "architecture"],
"adr_auto_number": true,
"retro_template": "full",
"review_default_count": 10
}
}
Best Practices
For Learnings
- β Record immediately while fresh
- β Include specific examples
- β Tag appropriately for search
- β Link to related issues/PRs
- β Don't skip "obvious" learnings
- β Don't be too brief
For ADRs
- β Create before implementation
- β Include rejected alternatives
- β Update status when decisions change
- β Link related ADRs
- β Don't create for trivial decisions
- β Don't forget consequences
For Retros
- β Hold within 24h of sprint end
- β Assign owners to action items
- β Follow up on previous actions
- β Celebrate wins
- β Don't blame individuals
- β Don't skip action items
Related Skills
| Skill | Purpose |
|---|---|
/sprint |
Sprint management with retro |
/agile-sync |
Include feedback in sync |
/doc |
General documentation |
/troubleshoot |
Issue investigation |
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.