Token导航 LogoToken导航

Agent Skill · 研究检索

learning-loop(学习循环)

learning-loop 用于记录任务执行中的错误、用户纠正、经验和能力缺口,适合在 Codex、Claude、Cursor、Gemini CLI 中希望让 Agent 持续沉淀问题、修正和最佳实践时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

learning-loop 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为只读;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 50,810。

总安装 606周安装 25GitHub Stars 2下载 198核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:learning-loop(学习循环)
来源仓库:https://github.com/richfrem/agent-plugins-skills
仓库路径:skills/learning-loop
安装命令:
npx skills add https://github.com/richfrem/agent-plugins-skills --skill learning-loop
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/richfrem/agent-plugins-skills --skill learning-loop

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于实现 Agent 的自我修正与经验累积机制。适合在需要长期记忆与适应性行为的复杂任务中部署。通过 GitHub 仓库安装,兼容多种 AI 代理宿主。核心在于错误识别、反馈吸收与新策略生成。learning-loop 属于研究检索类 Skill,可作为该场景下的辅助能力补充。需设计合理的奖励函数或评估指标驱动优化。

来源仓库内路径:skills/learning-loop

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/richfrem/agent-plugins-skills --skill learning…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它标注为只读,先用只读任务试一次,确认行为符合预期再扩大使用范围。

常见问题

6 条

learning-loop 怎么安装?

在终端执行 npx skills add https://github.com/richfrem/agent-plugins-skills --skill learning-loop。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

learning-loop 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

learning-loop 需要什么权限?

权限级别是只读。该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

learning-loop 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

learning-loop 用的人多吗?

公开数据是累计安装 606 次,近一周安装 25 次,下载 198 次,GitHub 2 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

learning-loop 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 标注为只读权限,试用阶段不容易误改本地文件。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 只想先试试效果、不希望它改动本地文件的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
learning-loop

学习循环 · 本页

6062只读未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Dependencies

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).


Learning Loop

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.

CRITICAL: Anti-Simulation Rules

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.

The Iron Chain

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)

Phase I: Orientation (The Scout)

Goal: Establish Identity & Context. Trigger: First action upon environment initialization.
  1. Identity Check: Read any local orientation documents or primers provided by the user's environment.
  2. Context Loading: Retrieve the historical session state (the "Context Snapshot" or equivalent state file) to understand what the previous agent accomplished.
  3. Report Readiness: Output: "Orientation complete. Context loaded. Ready."

STOP: Do NOT proceed to work until you have completed Phase I.


Phase II: Intelligence Synthesis

  1. Mode Selection: Decide if you are doing standard documentation (recording ADRs) or exploratory research.
  2. Synthesis: Perform your research. Aggregate findings into clear, modular markdown files in the project's designated learning/ or memory/ directory.

Phase III: Strategic Gate (HITL)

Human-in-the-Loop Required
  1. Review: Present architectural findings or strategic shifts to the User.
  2. Gate: Wait for explicit "Approved" or "Proceed".

- *If FAIL*: Backtrack to Phase VIII (Self-Correction).

Phase IV: Red Team Audit

  1. Bundle Context: Compile your proposed plans into a single, cohesive research packet.
  2. Action: Submit the packet to the User (or a designated Red Team adversarial sub-agent) for rigorous critique.
  3. Gate: Do not proceed to execution until the Audit returns a "Ready" verdict.

Execution Branch (Post-Audit)

Choose your Execution Mode:

Option A: Standard Agent (Single Loop)

  • Action: You write the code, run tests, and verify yourself.

Option B: Dual Loop

  • Action: Delegate execution to a scoped, isolated Inner Loop agent.
  • Command: Open the triple-loop SKILL. Execute according to its instructions.
  • Return: Once Inner Loop finishes, resume here at Phase V (Synthesis).

Session Close (MANDATORY — DO NOT SKIP ANY STEP)

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.

Phase V: Self-Assessment Survey (MANDATORY)

Before handoff, you MUST complete the Post-Run Self-Assessment Survey (references/memory/post_run_survey.md). Answer every question — do not summarize or skip sections.

Survey sections (all mandatory):

Run Metadata: date, task type, task complexity, skill/capability under test

Completion Outcome:

  • Did you complete the full intended workflow end to end? (Yes/No)
  • Did the run require major human rescue? (Yes/No)

Count-Based Signals (Karpathy Parity):

  • How many times did you not know what to do next?
  • How many times did you miss or skip a required step?
  • How many times did you use the wrong CLI syntax?
  • How many times were you redirected by a human?
  • Total Friction Events

Qualitative Friction:

  1. At what point were you most uncertain about what to do next?
  2. Which instruction, rule, or workflow step felt ambiguous or underspecified?
  3. Which command, tool, or template was most confusing in practice?
  4. What was the single biggest source of friction in this run?
  5. Which failure felt avoidable with a better prompt, skill, or rule?
  6. What is the smallest workflow change that would have improved this run the most?

Improvement Recommendation:

  • What one change should be tested before the next run?
  • What evidence from this run supports that change?
  • Target (Skill/Prompt/Script/Rule)?

Save completed survey to: ${CLAUDE_PROJECT_DIR}/context/memory/retrospectives/survey_[YYYYMMDD]_[HHMM]_[AGENT].md

Emit survey completion event:

python3 context/kernel.py emit_event --agent Triple-Loop Retrospective \
  --type learning --action survey_completed \
  --summary "retrospectives/survey_[DATE]_[TIME]_[AGENT].md"

Phase VI: Post-Run Metrics

Run the automated metric collector:

python3 "${CLAUDE_PLUGIN_ROOT}/hooks/scripts/post_run_metrics.py"

This emits a type: metric event capturing: human_interventions, workflow_uncertainty, missed_steps, cli_errors, friction_events_total, hook_errors. These feed the Triple-Loop Retrospective auto-trigger: 3+ friction events of same type = Full Loop improvement before next cycle.

Phase VII: Memory Persistence

Run session-memory-manager to write the dated session log and promote key findings to L3:

  • Write context/memory/YYYY-MM-DD.md including survey outcomes and metric counts
  • Promote architectural decisions and new conventions to context/memory.md with dedup IDs
  • Reference the survey file in the session log for future cycles to read at orientation

Phase VIII: Handoff

  1. Verify Exit Condition: Confirm research/synthesis acceptance criteria met, survey saved, metrics emitted, memory written.
  2. Return Data: Pass synthesized documents and context back up to the Orchestrator.
  3. Terminate Loop: Explicitly state "Learning Loop Complete. Survey saved. Metrics emitted. Passing control to Orchestrator."

Phase Reference

PhaseNameAction Required
IOrientationLoad context, last survey, last session log
IISynthesisCreate/modify research artifacts
IIIStrategic GateObtain "Proceed" from User
IVRed Team AuditCompile packet for adversary review
VSelf-Assessment SurveyAnswer all sections, save to retrospectives/, emit event
VIPost-Run MetricsRun post_run_metrics.py, emit metric event
VIIMemory PersistenceSession log + L3 promotion via session-memory-manager
VIIIHandoffReturn control to Orchestrator

Task Tracking Rules

You are not "done" until the active task tracker says you're done.
  • Always use the user's preferred task tracking system (e.g., markdown kanbans, automated CLIs) to move tasks.
  • NEVER mark a task done without running its verification sequence first.
  • If using a markdown board, always display the updated board to the user to confirm the move registered.

Dual-Loop Integration

When a Learning Loop runs inside a Dual-Loop session:

PhaseDual-Loop RoleNotes
I (Orientation)Outer Loop boots, orientsReads boot files + spec context
II-III (Synthesis/Gate)Outer Loop plans, user approvesStrategy Packet generated
IV (Audit)Outer Loop snapshots before delegationPre-execution checkpoint
*(Execution)*Inner Loop performs tactical workCode-only, isolated
*Verification*Outer Loop inspects Inner Loop outputValidates against criteria
V (Handoff)Outer Loop receives resultsTriggers 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

平台分布

Claude

32.29%
按下载量换算64

Codex

31.69%
按下载量换算63

Cursor

20.51%
按下载量换算41

Gemini CLI

9.23%
按下载量换算18

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills