Agent skill
learn
Process inbox summaries and update system knowledge. Curates role "Right Now" sections, appends "Recent Context", updates central docs. Intelligent curation, not just appending.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/documents/learn-joshuacook-motoko
SKILL.md
Learn (System Learning)
Intelligently update roles and docs based on session summaries.
When to Activate
- User says: "learn", "update roles"
- After compressing sessions
- When inbox has session summaries
Approach
OLD: Append bullets to logs NEW: Intelligent curation
Role structure:
- What This Role Does (rarely changes)
- Right Now ← CURATE (what's currently relevant)
- Recent Context ← APPEND (timestamped, last 30 days)
- How This Role Operates (rarely changes)
Process
1. Read Inbox
ls inbox/session-summaries/
cat inbox/session-summaries/*.md
2. Analyze Changes
Extract from summaries:
- Decisions made
- Tools/workflows built
- Role activity
- Context changes
Categorize:
- Right Now: What's newly relevant for ongoing work
- Recent Context: Timestamped decisions (auto-prune > 30 days)
3. Create Branch
git checkout -b learning-$(date +%Y-%m-%d)
4. Update Roles
For each affected role:
A. Read Current Role
cat roles/[role-file].md
B. Curate "Right Now"
This is CURATION, not appending:
- Read existing "Right Now"
- Add newly relevant context
- Remove stale/no-longer-relevant items
- Keep tight (5-10 bullets max)
C. Append "Recent Context"
Add timestamped entry at top:
## Recent Context (Last 30 Days)
**YYYY-MM-DD:** [Summary]
- Key point 1
- Key point 2
[...existing entries...]
Auto-prune if > 10 entries.
D. Update "Last Updated"
5. Commit and PR
git add roles/*.md
git commit -m "System learning: [summary]"
git push -u origin learning-$(date +%Y-%m-%d)
gh pr create --title "System Learning $(date +%Y-%m-%d)" --body "..."
git checkout main
6. Report
System learning complete.
Processed: [N] session summaries
Roles updated: [list]
Branch: learning-YYYY-MM-DD
PR: #[number]
Next: Review and merge PR.
Curation Guidelines
"Right Now" = what's relevant:
- Shapes how role operates TODAY
- Would need to know this to do role's job
- NOT just recent - could be weeks old but still relevant
"Recent Context" = what happened:
- Timestamped decisions
- Links to details if needed
- Auto-prune oldest when > 10 entries
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?