update-agent-learnings
Pass
Audited by Gen Agent Trust Hub on Sep 19, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONPERSISTENCE
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill extracts 'learnings' from active session data and project context to update durable agent prompts. This creates an attack surface where malicious content encountered during a session (e.g., in a file or API response) could be misinterpreted as a valid behavior rule and persisted into the agent's core instructions.
- Ingestion points: The
$requestargument inSKILL.mdand the broader session history are used as sources for new rules. - Boundary markers: No technical boundary markers are used to isolate the extracted text, though manual classification and user review are required.
- Capability inventory: The skill uses the
WriteandEdittools to modify.agents/agents/*/AGENT.mdand.claude/agents/*files. - Sanitization: Relies entirely on the
AskUserQuestiontool for manual user verification and the agent's ability to classify the scope according toreferences/learning-scope.md. - [PERSISTENCE]: The skill's primary purpose is to establish behavioral persistence by modifying agent definition files (
AGENT.md) across multiple CLI trees. By updating these durable files, changes to the agent's instructions persist across all future sessions within the repository. - Evidence: Steps 4 and 5 in
SKILL.mdexplicitly describe writing to the central learnings file and syncing those changes into live agent prompt surfaces (.agents/and.claude/directories).
Audit Metadata