plugins/agent-loops/skills/learning-loop/SKILL.md
(Industry standard: Loop Agent / Single Agent) Primary Use Case: Self-contained research, content generation, and exploration where no inner delegation is required. Self-directed research and knowledge capture loop. Use when: starting a session (Orientation), performing research (Synthesis), or closing a session (Seal, Persist, Retrospective). Ensures knowledge survives across isolated agent sessions.
npx skillsauth add richfrem/agent-plugins-skills learning-loopInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill requires Python 3.8+ and standard library only. No external packages needed.
To install this skill's dependencies:
pip-compile ./requirements.in
pip install -r ./requirements.txt
See ./requirements.txt for the dependency lockfile (currently empty — standard library only).
The Learning Loop is a structured cognitive continuity protocol ensuring that knowledge survives across isolated agent sessions. It is designed to be universally applicable to any agent framework.
YOU MUST ACTUALLY PERFORM THE STEPS LISTED BELOW. Describing what you "would do", summarizing expected output, or marking a step complete without actually doing the work is a PROTOCOL VIOLATION.
Closure is NOT optional. If the user says "end session" or you are wrapping up, you MUST run the full closure sequence. Skipping any step means the next agent starts blind.
Prerequisite: You must establish a valid session context upon Wakeup before modifying any code.
Orientation → Synthesis → Strategic Gate → Red Team Audit → [Execution] → Loop Complete (Return to Orchestrator)
Goal: Establish Identity & Context. Trigger: First action upon environment initialization.
STOP: Do NOT proceed to work until you have completed Phase I.
learning/ or memory/ directory.Human-in-the-Loop Required
Choose your Execution Mode:
Option A: Standard Agent (Single Loop)
Option B: Dual Loop
agy, claude, copilot, etc.) and specific model to use for the sub-agent. Pass these settings to the runner command, appending < /dev/null to prevent SIGTTIN process halts.triple-loop-learning SKILL. Execute according to its instructions.This loop is now complete. You must formally exit the loop and return control to the Orchestrator. Skipping any close step means the next agent starts blind and the flywheel stalls.
The specific learning cycle is finished. You must now return control.
./retrospective-[date].md) or stdout.learning_package_snapshot.md (the primary agent's RLM Synthesizer does this).context-bundler to seal the session (the primary agent does this).| Phase | Name | Action Required | |-------|------|-----------------| | I | Orientation | Load context, last survey, last session log | | II | Synthesis | Create/modify research artifacts | | III | Strategic Gate | Obtain "Proceed" from User | | IV | Red Team Audit | Compile packet for adversary review | | V | Completion & Handoff | Verify completion, save retrospective locally, return control to Orchestrator |
You are not "done" until the active task tracker says you're done.
done without running its verification sequence first.When a Learning Loop runs inside a Dual-Loop session:
| Phase | Dual-Loop Role | Notes | |-------|---------------|-------| | I (Orientation) | Outer Loop boots, orients | Reads boot files + spec context | | II-III (Synthesis/Gate) | Outer Loop plans, user approves | Strategy Packet generated | | IV (Audit) | Outer Loop snapshots before delegation | Pre-execution checkpoint | | (Execution) | Inner Loop performs tactical work | Code-only, isolated | | Verification | Outer Loop inspects Inner Loop output | Validates against criteria | | V (Handoff) | Outer Loop receives results | Triggers global retrospective |
Key rule: The Inner Loop does NOT run Learning Loop phases. All cognitive continuity is the Outer Loop's responsibility.
Cross-reference: dual-loop SKILL
testing
Skill for creating and managing isolated git worktrees (`.worktrees/issue-NNN`) for issue execution branches. USE ONLY when setting up or cleaning up isolated git worktrees for specific issue execution. DO NOT USE for managing local task files (use `task-agent`) or escalating tasks to issues (use `github-issue-backlog-agent`).
data-ai
Skill for orchestrating the end-to-end GitHub issue lifecycle flow: Issue -> Worktree -> Implementation -> PR Creation -> Resolution Closure. USE ONLY when running or dry-running full lifecycle orchestration for resolving an issue with a PR. DO NOT USE for isolated worktree management only (use `issue-worktree-agent`) or logging issues (use `github-issue-agent`).
tools
Automatically ranks GitHub issues (P0-P3) based on friction tier, frequency, and blockages, synchronizing priority labels and GitHub Projects v2 custom fields.
testing
Bridge skill for escalating ephemeral local task scratchpad items (`tasks/*.md`) into durable, taxonomy-validated, evidence-rich GitHub Issues. USE ONLY when promoting a single-session local task into durable repository backlog. DO NOT USE for managing local kanban boards (use `task-agent` instead) or directly querying/commenting on issues (use `github-issue-agent` instead).