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
data-ai
Task management agent. Auto-invoked for task creation, status tracking, and kanban board operations using Markdown files across lane directories. V2 enforces Kanban Sovereignty constraints preventing manual task file edits.
development
Create, audit, repair, and document cross-platform symlinks that work correctly on both Windows and macOS/Linux. Use this skill whenever the user mentions symlinks, symbolic links, junction points, .gitconfig symlinks, broken links after git pull, cross-platform path issues, or needs help with ln -s equivalents on Windows. Also trigger when the user reports that files are missing or wrong after switching between Mac and Windows machines using Git. This skill solves the common problem where symlinks committed on macOS show up as plain text files on Windows (and vice versa) because of Git's core.symlinks setting or missing Developer Mode / elevated permissions. **IMPORTANT FOR WINDOWS USERS:** Developer Mode must be enabled before creating symlinks. Without it, Git will check out symlinks as plain-text files or hardlinks, breaking cross-platform workflows.
development
Interactively prepares a targeted Red Team Review package. It conducts a brief discovery interview to determine the threat model, generates a strict security auditor prompt, compiles a manifest of relevant project files, and bundles them into a single Markdown artifact or ZIP archive ready for an external LLM (like Grok, ChatGPT, or Gemini) or a human reviewer.
tools
Reduces AI agent context bloat across three dimensions: (1) duplicate skill deduplication — clears stale agent directory copies since the IDE already reads from plugins/ directly; (2) instruction file optimization — rewrites CLAUDE.md, GEMINI.md, or .github/copilot-instructions.md to under ~80 lines, keeping only rules that directly change agent behaviour; (3) session token efficiency — guidance on cheap subagent delegation, context compounding across turns, and session hygiene. Trigger with "optimize context", "reduce context bloat", "deduplicate skills", "trim CLAUDE.md", "trim GEMINI.md", "fix my context usage", "why are my skills loading twice", "how do I reduce token usage", or "clean up agent directories".