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.
npx claudepluginhub unsupervisedcom/deepwork --plugin learning-agentsThis skill uses the workspace's default tool permissions.
Take investigated issues and integrate the lessons learned into the LearningAgent's knowledge.
Investigates 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.
Logs errors, corrections, feature requests, API failures, knowledge gaps, and best practices to markdown files for continuous improvement. Triggers on failures, user feedback, or better approaches.
Share bugs, ideas, or general feedback.
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 fields