一键导入
agent-learning
Capture reusable lessons about agent-loop workflow, validation, and migration boundaries before promoting them into durable agent guidance.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Capture reusable lessons about agent-loop workflow, validation, and migration boundaries before promoting them into durable agent guidance.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Compile and use agent-loop recall/L2 meta-prompt artifacts from the current repository without mistaking generated context for executed agent actions.
Use the governed agent-loop workflow for this repository, including when to prefer workflow start/status/close, when to drop to session or recall commands, and how init validation fits repo-managed agent guidance changes.
Start a governed agent-loop task in the current repository, create session working memory, approve a sealed work brief, and compile deterministic recall/L2 context.
Handle reusable knowledge that surfaces during a task — capture findings, move them through the proposal pipeline, and respect the boundary between workflow evidence and durable guidance.
Review, verify, and close an agent-loop task safely after implementation, including blind-spot review, strict verification, and explicit accepted-risk handling.
Record useful working memory during an agent-loop task, including decisions, checkpoints, validation results, scope changes, and blocked states.
| name | agent-learning |
| description | Capture reusable lessons about agent-loop workflow, validation, and migration boundaries before promoting them into durable agent guidance. |
Use this skill to turn a completed implementation or migration pass into
reviewable guidance updates for agent-loop itself, without over-promoting
one local fix into a broad rule.
For a normal post-task learning pass:
README.md, CHANGELOG.md, docs/agents/, or docs/workflow/.ctx when prior sessions may contain relevant decisions, failed attempts, or validation context.docs/agents/migration/ when the lesson comes from a real host repository.A learning / distillation pass is not scoped to the current session's findings. It is the recurring failure mode, so guard against it explicitly:
agent-learning backlog,
exposed by voku/agent-learning), which exits non-zero while any validated
finding is still unconsolidated. End the pass either with that gate green, or
with an explicit list of which backlog items are deliberately deferred and why.This skill owns:
agent-loop workflow and init dogfoodingdocs/agents/, docs/workflow/, README, or changelogThis skill does not own:
sync-* commands as already solveddocs/agents/skills/agent-guidance-maintenance/SKILL.mddocs/agents/INFO_Agents.mddocs/agents/migration/docs/workflow/learning-boundary.mdREADME.mdCHANGELOG.mdsrc/Init/tests/Init*Use this skill when the task:
init validation or migration lessonagent-loop featuresDo not use this skill when the change is routine and teaches nothing beyond one narrow local edit.
Inspect:
docs/agents/INFO_Agents.mddocs/agents/skills/docs/agents/migration/...README.mdIf the rule already exists, refine the existing home instead of creating a duplicate note.
Good lessons:
rg) installation/verification when the lesson assumes rg-first searchWeak lessons:
When prior local sessions may matter:
ctx search "<task / migration / failure / command>"
ctx show event <ctx-event-id> --window 5
Inspect the focused event or session before using it. ctx can explain what
happened before; it does not validate a rule by itself. If the host learning
root supports agent_history_reference, record only ctx IDs, query, retrieval
time, reviewed summary, and verification status. Do not paste raw transcripts
or secret-shaped strings into guidance.
Use the smallest proof that matches the lesson:
php bin/agent-loop init doctor
php bin/agent-loop init validate --kind=skills
vendor/bin/phpunit --filter 'Init|DispatcherTest'
vendor/bin/phpstan analyse --configuration=phpstan.neon.dist --memory-limit=512M
Promotion targets:
docs/agents/skills/... for repeatable agent workflow behavior (and, if the learning is statically-analyzable, implement a custom static analysis rule like PHPStan/phpcs and register it in the active constraints registry — see Loop Discipline: do this across the full eligible backlog, not only the newest lesson)docs/agents/INFO_Agents.md for shared operational guidancedocs/agents/migration/... for host-repo migration notesREADME.md for public package behaviorCHANGELOG.md for released or unreleased package changesphp bin/agent-loop init doctorphp bin/agent-loop init validate --kind=skillsvendor/bin/phpunit --filter 'Init|DispatcherTest'vendor/bin/phpstan analyse --configuration=phpstan.neon.dist --memory-limit=512M