ワンクリックで
continuous-learning-agent
Self-improvement patterns for AI agents to learn from feedback, errors, and successful patterns across sessions
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Self-improvement patterns for AI agents to learn from feedback, errors, and successful patterns across sessions
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
Toolkit for creating animated GIFs optimized for Slack, with validators for size constraints and composable animation primitives. This skill applies when users request animated GIFs or emoji animations for Slack from descriptions like "make me a GIF for Slack of X doing Y".
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.
Suite of tools for creating elaborate, multi-component Codex.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.
Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.
Creates annotated bibliography-style manifests for Codex projects, tracking files, conversation threads, and relationships with unique IDs and annotations. Use when documenting project contents, creating file inventories, tracking conversation history, or building navigable knowledge maps.
| name | continuous-learning-agent |
| description | Self-improvement patterns for AI agents to learn from feedback, errors, and successful patterns across sessions |
| license | MIT |
| metadata | {"source":"affaan-m/everything-Codex","adapted-by":"ai-skills","category":"agent-improvement"} |
| governance_phases | ["prove"] |
| organ_affinity | ["organ-iv"] |
| triggers | ["user-asks-about-agent-learning","context:ai-agents"] |
A meta-skill that enables AI agents to learn from experience and improve over time through systematic feedback collection and pattern recognition.
Traditional agents reset completely between sessions. This skill implements memory and learning mechanisms to:
After each error, document:
## Error Log Entry
**Date**: 2026-01-30
**Context**: Implementing user authentication
**Error**: TypeError: Cannot read property 'id' of undefined
**Root Cause**: Missing null check before accessing user object
**Fix**: Added optional chaining: user?.id
**Pattern**: Always validate object existence before property access
**Prevention**: Add TypeScript strict null checks
After successful implementations:
## Success Pattern
**Task**: Add pagination to API endpoint
**Approach**: Cursor-based pagination with encoded tokens
**Why It Worked**: Handles large datasets efficiently, stateless
**Reusable Pattern**:
- Use cursor tokens instead of offset/limit
- Encode cursor with base64
- Include hasNext/hasPrevious flags
- Return next/previous cursor in response
**Code Template**:
\`\`\`typescript
interface PaginatedResponse<T> {
data: T[];
cursor: {
next: string | null;
previous: string | null;
};
}
\`\`\`
Create .Codex/learnings/ directory:
mkdir -p .Codex/learnings
Store learnings in categorized files:
.Codex/learnings/
patterns/
authentication.md
database-queries.md
error-handling.md
mistakes/
common-bugs.md
performance-issues.md
preferences/
code-style.md
testing-approach.md
naming-conventions.md
Before major decisions:
## Decision: [Title]
**Context**: Current situation requiring decision
**Options Considered**:
1. Option A - Pros: X, Cons: Y
2. Option B - Pros: X, Cons: Y
3. Option C - Pros: X, Cons: Y
**Decision**: Chose Option B
**Reasoning**: Detailed explanation
**Expected Outcome**: What we expect to happen
**Actual Outcome**: (Fill after implementation)
**Lessons Learned**: What we learned from this decision
At end of coding session:
## Session Review - [Date]
**What Went Well**:
- Successfully implemented X
- Discovered pattern Y
- Improved performance of Z
**What Could Improve**:
- Spent too long debugging A
- Should have tested B earlier
- Missed edge case C
**Key Learnings**:
1. Learning point 1
2. Learning point 2
3. Learning point 3
**Action Items**:
- [ ] Document pattern X
- [ ] Create helper for Y
- [ ] Add test for Z
Every week, review and synthesize:
# Generate weekly summary
cat .Codex/learnings/daily/*.md | grep "Key Learnings" -A 3 > weekly-synthesis.md
## Weekly Synthesis - Week of [Date]
**Emerging Patterns**:
- Pattern 1: Description
- Pattern 2: Description
**Recurring Issues**:
- Issue 1: Root cause analysis
- Issue 2: Root cause analysis
**Skills Improved**:
- Skill 1: How it improved
- Skill 2: How it improved
**Next Week Focus**:
- Focus area 1
- Focus area 2
Maintain context file:
# Project Context
**Type**: Web application / API / CLI tool / Library
**Tech Stack**: Next.js, TypeScript, Prisma, PostgreSQL
**Architecture**: Monorepo with packages: api, web, shared
**Key Patterns**:
- Feature-based folder structure
- Repository pattern for data access
- Service layer for business logic
**Team Preferences**:
- Test coverage: 80% minimum
- Code style: Prettier + ESLint
- Commit messages: Conventional commits
- PR process: Requires review + CI pass
Track understanding level:
## Understanding Map
**Well Understood** (★★★):
- Authentication flow
- Database schema
- API endpoints
**Partially Understood** (★★):
- Caching strategy
- Error handling patterns
**Need to Learn** (★):
- Deployment process
- Monitoring setup
- Feature flags system
After completing any task:
#!/bin/bash
# .Codex/hooks/post-task.sh
echo "## Task Completed: $1" >> .Codex/learnings/daily/$(date +%Y-%m-%d).md
echo "" >> .Codex/learnings/daily/$(date +%Y-%m-%d).md
echo "**Approach**: $2" >> .Codex/learnings/daily/$(date +%Y-%m-%d).md
echo "**Outcome**: $3" >> .Codex/learnings/daily/$(date +%Y-%m-%d).md
echo "**Learning**: $4" >> .Codex/learnings/daily/$(date +%Y-%m-%d).md
echo "" >> .Codex/learnings/daily/$(date +%Y-%m-%d).md
Before starting task:
#!/bin/bash
# .Codex/hooks/pre-task.sh
# Check for similar past tasks
echo "Checking learnings for: $1"
grep -r "$1" .Codex/learnings/ | head -5
# Check for known pitfalls
grep -r "mistake.*$1" .Codex/learnings/mistakes/
.Codex/
learnings/
daily/
2026-01-30.md
2026-01-29.md
weekly/
2026-week-05.md
patterns/
successful/
authentication-patterns.md
api-design-patterns.md
antipatterns/
common-mistakes.md
performance-pitfalls.md
context/
project-overview.md
tech-stack.md
team-preferences.md
decisions/
architecture-decisions.md
technology-choices.md
# Search for pattern
grep -r "pagination" .Codex/learnings/patterns/
# Find past mistakes
grep -r "TypeError" .Codex/learnings/mistakes/
# Check decisions
grep -r "decision.*database" .Codex/learnings/decisions/
# Get all successful patterns
grep -h "^## Success Pattern" .Codex/learnings/patterns/successful/*.md
# Get all lessons learned
grep -h "^**Lessons Learned**" .Codex/learnings/ -A 3
Complements:
As agent improves:
Level 1: Basic error logging Level 2: Pattern recognition Level 3: Automated suggestions Level 4: Proactive guidance Level 5: Autonomous decision-making within constraints
Track current level and progression metrics.
Track improvement:
## Agent Performance Metrics
**Error Rate**: Errors per task over time
**Pattern Reuse**: How often learned patterns are applied
**Decision Quality**: Outcome vs. expected outcome alignment
**Context Accuracy**: How well agent understands project
**Adaptation Speed**: Time to learn new patterns
**Trend**: Improving / Stable / Declining
First time setup:
# Create learning infrastructure
mkdir -p .Codex/learnings/{daily,weekly,patterns,mistakes,context,decisions}
# Initialize context file
cat > .Codex/learnings/context/project-overview.md << 'EOF'
# Project Overview
- Project type:
- Tech stack:
- Architecture:
- Key files:
EOF
# Create first session log
date +%Y-%m-%d > .Codex/learnings/daily/$(date +%Y-%m-%d).md
Start every session by reviewing recent learnings.