跳到正文
cccskills
免费在 GitHub 公开

retro

Use when the user runs /retro or explicitly requests a session retrospective. Find session lessons and propose concrete shared harness edits for future efficiency. Exclude memory files. Do not run unprompted.

中文简介正在准备中。当前显示原文说明。

kdlbs/kandev星标 1,020(GitHub 1,020 + cccskills 0)

实测评分 未实测

查看安装方法

包含的文件(2)

  • SKILL.md6.3 KB
  • template.md1.1 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Retro

Run this workflow only when the user explicitly requests a retrospective. A natural-language request is sufficient. Review the current session for lessons that improve future agent sessions. By default, propose edits in the reply and stop. Do not edit files during the retrospective. If the user explicitly requests edits as part of the retro, apply the qualifying changes within that authorization. Do not commit, push, open a PR, or create persistent tasks unless the user explicitly requests those actions.

Optional focus: /retro commit or /retro apps/backend/AGENTS.md limits the analysis to that workflow, topic, or path.

1. Gather session evidence

Use the available conversation, tool results, user corrections, and files touched in this session. If the user identifies another session, use its available primary sources instead. If context is incomplete, state that limitation. Do not invent missing events or search unrelated private transcripts.

Look for:

  • Repeated failed commands, retries, dead ends, or unnecessary exploration.
  • Missing navigation pointers, hidden dependencies, or ambiguous workflow instructions.
  • Excessive output, repeated reads, lost tool handles, or avoidable context consumption.
  • Successful techniques that saved work and can apply to other tasks.
  • User corrections that reveal a reusable process gap.

Separate observed events from possible causes. Verify each proposed cause against current files or authoritative documentation. Do not infer a permanent user preference from a single correction. Do not mine unrelated PR reviews or perform a general repository audit.

2. Filter candidates

Keep a candidate only if it passes every test:

  1. Behavior change: Identify the earlier decision that the proposed guidance changes and how that change improves the outcome.
  2. Recurrence: The same gap can affect a normal future session on different code.
  3. Cost: The gap risks correctness, security, contracts, performance, or substantial wasted tool calls and rework.
  4. Specificity: State one concrete, testable action with its trigger. Include a fallback or verification where necessary.
  5. No duplication: Read the proposed target and search related guidance before proposing an edit.

If existing instructions already cover the gap, skip another rule. Tighten unclear wording only if that ambiguity caused the miss. Remove or shorten ineffective guidance only if session evidence supports that change. Skip common knowledge, one-off filenames, task IDs, temporary paths, secrets, cosmetic preferences, and rules already enforced by automated checks. Do not turn a temporary tool workaround into a permanent instruction without evidence that it remains necessary. Prefer an empty action list over weak lessons. Do not fill a quota.

3. Choose the shared source

Use harness-improvement for artifact placement and validation. Read its session-learnings reference for normalization and deduplication. Load only the artifact or platform references relevant to surviving candidates.

Eligible targets are shared repository harness files:

  • .agents/skills/, shared commands, agents, review guidance, and harness scripts.
  • The closest scoped AGENTS.md, or root AGENTS.md for a rule that applies across the repository.
  • Existing repository platform instructions, settings, and hooks in .claude/, .codex/, .cursor/, or .opencode/.

Route workflow lessons to the owning skill before considering always-on instructions. Prefer a small correction to an existing rule over a new file. Propose a new skill only for a repeatable workflow with no existing owner. Keep the repository's single-session and delegation policies intact unless the user explicitly authorizes a change.

Exclude memory files, auto-memory, transcript notes, personal settings, application code, application tests, CI, specifications, ADRs, and plans. Do not save the retrospective to disk. If a lesson requires product changes, identify the limitation in the reply without adding a harness action. If the fix belongs to an uneditable tool or hosted service, report it separately under Upstream. Do not propose a brittle harness workaround for an upstream defect.

Resolve symlinks before choosing an edit path. Use .agents/skills/ and AGENTS.md as this repository's shared sources. Edit AGENTS.md directly. Preserve the CLAUDE.md symlink to it. Do not copy skill changes into platform mirrors or create new platform trees. If a real platform file needs a distinct change, read the corresponding harness-improvement platform reference first. Measure target line, word, and byte counts. Stay within the limits in its validation reference. If a target exceeds its limit, propose a replacement or a narrower home instead of appending more text.

4. Report and stop

Use template.md for the reply. Use today's date and keep the sections brief. Connect each proposed action to an observed event and its expected benefit. Order actions by impact. Each checkbox needs a repository-relative source path and an exact addition, replacement, or removal. For a replacement, show the current text and the proposed text. Avoid vague actions such as "improve the docs." If no candidate survives, write None. under Action Items. Include Upstream only if an observed problem belongs there.

If edits lack authorization, return the proposals and stop. State that the user can request all edits or select individual items. Do not treat silence or an unanswered question as authorization.

5. Apply authorized edits

Re-read the accepted targets and re-check duplication before editing. Apply only accepted changes. Preserve unrelated work and match the target file's voice. Keep session evidence in the reply and reusable directives in the shared files. Run the checks in harness validation for the changed files. Report each edited path, the concrete change, and validation results. If an accepted change is redundant or no longer valid, explain why you skipped it.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

acp-debug

免费

Debug an ACP agent CLI by spawning it, speaking raw JSON-RPC, and capturing every frame to a JSONL file. Use when the user asks to probe an agent's capabilities, compare agents, test a prompt against an agent, inspect raw ACP wire frames, or investigate why an agent fails to initialize.

中文简介正在准备中。当前显示原文说明。

kdlbs/kandev10202026年10月26日 更新

Add a new third-party integration (Jira/Linear-style) — per-workspace credentials, 90s auth-health poller, settings page, link/import buttons. Use when scaffolding a new external service integration.

中文简介正在准备中。当前显示原文说明。

kdlbs/kandev10202026年10月26日 更新

Delete local branches whose remote has been deleted ([gone]), including their worktrees. Use for branch cleanup after merging PRs.

中文简介正在准备中。当前显示原文说明。

kdlbs/kandev10202026年10月26日 更新

Review changed code for quality, security, and architecture compliance. Use only when the user explicitly requests local review or a PR finding requires it.

中文简介正在准备中。当前显示原文说明。

kdlbs/kandev10202026年10月26日 更新

commit

免费

Stage and commit changes using Conventional Commits. Use when there are dirty/staged files to commit, the user says "commit", or before pushing a PR.

中文简介正在准备中。当前显示原文说明。

kdlbs/kandev10202026年10月26日 更新

Curate the right project context before coding or debugging. Use when starting a new session, switching areas of the codebase, output quality is drifting, a task spans backend/frontend/docs, or external instructions need to be reconciled with Kandev conventions.

中文简介正在准备中。当前显示原文说明。

kdlbs/kandev10202026年10月26日 更新

查看 kdlbs 的全部技能

报告此技能的问题