No slash command · from learning-agents
Incorporates investigated issues into the LearningAgent's knowledge base by updating core-knowledge.md, topics, or learnings files.
Ships in learning-agents. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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 fieldsWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
learning-agent, knowledge-base, issue-tracking, incorporation
9 skills in this plugin
/create-agentCreates a new LearningAgent with directory structure, core-knowledge.md, and Claude Code agent file. Guides the user through initial configuration./identifyReads a session transcript and identifies issues where a LearningAgent made mistakes, had knowledge gaps, or underperformed. Creates issue files for each problem found./investigate-issuesInvestigates identified issues in a LearningAgent session by reading the transcript, determining root causes, and updating issue files with investigation reports.npx claudepluginhub unsupervisedcom/deepwork --plugin learning-agentsOther plugins' skills for the same job