**Category:** Learning
Displays learning system status and statistics from Supabase database.
/plugin marketplace add nguyenthienthanh/aura-frog/plugin install aura-frog@aurafroglearn/Category: Learning Purpose: Display learning system status and statistics
/learn:status # Full status overview
/learn:status --brief # Quick one-line status
When user runs /learn:status, Claude MUST actually query Supabase.
DO NOT just show example output. DO run the curl commands and show REAL data.
# ALWAYS source env first
source .envrc 2>/dev/null || source .claude/.envrc 2>/dev/null || true
When user runs /learn:status, Claude should:
Read and verify these environment variables are set:
SUPABASE_URL - Must be setSUPABASE_SECRET_KEY - Must be setAF_LEARNING_ENABLED - Should be "true"Make a test query to verify connection:
curl -s -X GET \
"${SUPABASE_URL}/rest/v1/af_feedback?limit=1" \
-H "apikey: ${SUPABASE_SECRET_KEY}" \
-H "Authorization: Bearer ${SUPABASE_SECRET_KEY}"
If returns 200, connection is working.
Fetch counts from Supabase views:
# Feedback count
curl -s -X GET \
"${SUPABASE_URL}/rest/v1/v_feedback_summary" \
-H "apikey: ${SUPABASE_SECRET_KEY}" \
-H "Authorization: Bearer ${SUPABASE_SECRET_KEY}"
# Agent success rates
curl -s -X GET \
"${SUPABASE_URL}/rest/v1/v_agent_success_rates?limit=5" \
-H "apikey: ${SUPABASE_SECRET_KEY}" \
-H "Authorization: Bearer ${SUPABASE_SECRET_KEY}"
# Pending improvements
curl -s -X GET \
"${SUPABASE_URL}/rest/v1/v_improvement_suggestions" \
-H "apikey: ${SUPABASE_SECRET_KEY}" \
-H "Authorization: Bearer ${SUPABASE_SECRET_KEY}"
## šø Learning System Status
**Status:** {enabled ? 'ā
Active' : 'ā Disabled'}
**Supabase:** {configured ? 'ā
Connected' : 'ā Not configured'}
### Collection
- Feedback: {feedbackEnabled ? 'ā
' : 'ā'} ({feedbackCount} items)
- Metrics: {metricsEnabled ? 'ā
' : 'ā'} ({workflowCount} workflows)
- Auto-analyze: {autoAnalyze}
### Statistics (Last 90 days)
| Metric | Value |
|--------|-------|
| Workflows | {count} |
| Success Rate | {rate}% |
| Feedback Items | {count} |
| Active Patterns | {count} |
| Pending Improvements | {count} |
### Top Agents
| Agent | Tasks | Success |
|-------|-------|---------|
| {agent1} | {count} | {rate}% |
| {agent2} | {count} | {rate}% |
### Recent Activity
- Last workflow: {timestamp}
- Last feedback: {timestamp}
- Last analysis: {timestamp}
šø Learning System Status
Status: ā
Active
Supabase: ā
Connected (clcpzbduqnyjqlupuxkv.supabase.co)
Collection:
- Feedback: ā
Enabled (47 items)
- Metrics: ā
Enabled (123 workflows)
- Auto-analyze: weekly
Statistics (Last 90 days):
āāāāāāāāāāāāāāāāāāāā¬āāāāāāāāāā
ā Metric ā Value ā
āāāāāāāāāāāāāāāāāāāā¼āāāāāāāāāā¤
ā Workflows ā 123 ā
ā Success Rate ā 81.3% ā
ā Feedback Items ā 47 ā
ā Active Patterns ā 18 ā
ā Pending Improve ā 5 ā
āāāāāāāāāāāāāāāāāāāā“āāāāāāāāāā
Top Agents by Success Rate:
1. react-expert: 96% (42 tasks)
2. typescript-expert: 94% (38 tasks)
3. nodejs-expert: 88% (29 tasks)
Recent Activity:
- Last workflow: 2h ago
- Last feedback: 4h ago
- Last analysis: 3 days ago
š” Run /learn:analyze to generate new insights
With --brief:
šø Learning: ā
Active | 123 workflows | 81% success | 5 pending improvements
Version: 1.0.0