From learning-agents
Incorporates learnings from investigated issues into LearningAgent knowledge base by amending files, updating core-knowledge.md, adding topics/, or learnings/. Updates statuses and timestamps.
How this skill is triggered — by the user, by Claude, or both
Slash command
/learning-agents:incorporate-learningsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Take investigated issues and integrate the lessons learned into the LearningAgent's knowledge.
Take investigated issues and integrate the lessons learned into the LearningAgent's knowledge.
$ARGUMENTS is the path to the session log folder (e.g., .deepwork/tmp/agent_sessions/<session_id>/<agent_id>/).
Agent used: !cat $ARGUMENTS/agent_used 2>/dev/null || echo "unknown"
If agent_used is "unknown", stop and report an error.
Investigated Issues you need to Process:
!grep -l 'status: investigated' $ARGUMENTS/*.issue.yml 2>/dev/null || echo "(none)"
Additional incorporation guidelines:
!learning_agents/scripts/cat_agent_guideline.sh $ARGUMENTS learning_from_issues
If no investigated issues are listed above, skip to Step 3 (still update tracking files).
For each investigated issue, read its issue_description and investigation_report, then choose the best incorporation strategy in this priority order:
If a closely related file already exists in the agent's knowledge base, edit it rather than creating a new one.
core-knowledge.mdFor universal one-liners — something fundamental expressible in 1-2 sentences.
topics/For a conceptual area needing 1+ paragraphs of reference material. Use this frontmatter:
---
name: <Topic Name>
keywords:
- <relevant keyword>
last_updated: <YYYY-MM-DD>
---
learnings/For cases where the narrative context of how the issue unfolded is needed. Use this frontmatter:
---
name: <Descriptive name>
last_updated: <YYYY-MM-DD>
summarized_result: |
<1-3 sentence summary of the key takeaway>
---
## Context
## Investigation
## Resolution
## Key Takeaway
If you add a learning, also consider adding a brief note to a related Topic referencing it.
If the issue is unlikely to recur or would be hard to prevent, skip it.
For each incorporated issue, change status: investigated to status: learned.
Always run this step, even if no issues were incorporated.
[ -f $ARGUMENTS/needs_learning_as_of_timestamp ] && rm $ARGUMENTS/needs_learning_as_of_timestamp
date -u +"%Y-%m-%dT%H:%M:%SZ" > $ARGUMENTS/learning_last_performed_timestamp
## Incorporation Summary
- **Issues processed**: <count>
- <issue-filename> → <action taken: updated core-knowledge | created topic <name> | created learning <name> | amended <filename> | skipped>
core-knowledge.md concise — move detailed content to topics or learningslast_updated fieldsnpx claudepluginhub unsupervisedcom/deepwork --plugin learning-agentsInvestigates identified issues in LearningAgent sessions by analyzing transcripts, determining root causes like knowledge gaps or missing docs, and updating YAML issue files with reports.
Extracts 1-3 key learnings (insights, playbooks, corrections, patterns) from completed knowledge work sessions and saves to docs/knowledge/ after approval, duplicate, and stale checks. Use after plans, analysis, or strategy.
Extracts learnings from the current conversation and appends them to the project's CLAUDE.md as generalized rules. Captures non-obvious solutions and workarounds.