360 Secure SkillHub
360 安全技能中心

retro

在用户指定或当前会话结束后,收集会话记录、Git 与 CI 历史、指令文件体积和导航摩擦等证据,评估交付、导航、自动检查、编码标准、指令与技能、工具使用等改进点,按严重程度输出带证据、根因与验证方式的候选建议;仅提出建议,改动需用户明确授权。

分类:开发
gaboesquivel
热度 0.00
最近更新 2026-11-03 17:22:54

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add gaboesquivel/flow-skills/retro
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
retro
description
Run a retrospective on the agent environment after a session and propose improvements with evidence. Use when the user says "let's do a retro" or "what should we improve".
disable-model-invocation
false

Retro

The user asked for a retrospective on how the agent environment could improve future sessions. One agent can run this directly; separate implementation and review roles are optional context, not a prerequisite.

Steps

  1. Follow write-agents conventions when that skill is installed and you propose instruction or skill changes.

  2. Gather evidence for the session the user names, or the current session if none is named. Run independent evidence workers in parallel (fan-out rule: write-agents Workers): the session transcript (through session or transcript tools when the host provides them), Git and CI history, instruction-file size, and navigation friction. If no transcript is available, ask the user for a short summary of the session or reconstruct it from git log and CI history, and say which source you used. Separate evidence from inference; do not invent mistakes that are not supported by the session.

  3. Look for improvement candidates:

  • Delivery: intent against what shipped (accepted, shipped, deferred, silently dropped), whether it shipped within its appetite, and cost per shipped change, each with its evidence quality; "not measured" when the evidence cannot show it. Scope added mid-flight and coordination overhead are candidate causes, not measured ones.
  • Navigation: difficulty finding files or hidden dependencies; whether a short pointer document would help.
  • Automated checks: lint, typecheck, tests, or CI the repo already defines but does not run; missing guardrails when mistakes were preventable.
  • Coding standards: recurring violations that deserve a mechanical check versus judgment-only guidance in a standards document.
  • Instruction files and installed skills: oversized always-loaded instruction files or skill listings; rules that belong in checks, skills, or linked docs instead; installed skills that differ from the project's committed source. Back each finding with a measurement labelled as an estimate, not an impression: context.mjs reports one (node <this skill's folder>/context.mjs --repo <path>), as does the host's own context view. Only suggest edits; do not modify AGENTS.md, CLAUDE.md, .cursorrules, or similar files unless the user explicitly authorizes those edits.
  • Tool economy: costly or redundant tool use; optional integrations that lack a simpler fallback.
  • No-ops: instructions that do not change behavior.
  • Information access: logs or readonly access that would have changed the outcome.
  1. For recurring mistakes (the same class of error more than once in the session or recent history), propose the strongest workable prevention, in order:

    1. Architecture — one owner, one supported path, invalid operations impossible by structure.
    2. Types or deterministic checks — the bad state cannot be written, or CI fails with a message that names the fix.
    3. Executable tests — behavior that broke is covered; delete tests that still pass when the behavior breaks.
    4. Agent guidance — only for judgment calls that cannot be enforced mechanically.

    For each important candidate, state: evidence the mistake occurred, root cause, why the chosen prevention level fits, how to verify the correction, and whether an existing instruction is now redundant. A single occurrence is a candidate only; do not turn it into a permanent rule without recurrence or explicit user direction.

  2. Present candidates by severity, led by tldr's Handoff digest. Implementation of recommendations requires explicit user authorization. This retrospective does not authorize file edits by itself.

Reference

When work splits across roles, review-oriented standards often fit a review pass better than implementation. When one agent does both, apply the same ideas proportionally without inventing a second pass.

Prefer skills and linked docs for detailed guidance. Keep always-loaded instruction files short navigation pointers when the project already uses them.