Logo Retro

Retro

Tổ chức
craftwork-design
retro

Weekly retro for your coding agent. Scans local Claude Code transcripts for recurring friction (corrections, agent admissions like "you're right", instructions repeated across sessions, dictated rules, interrupts, nudges, retry loops, denials, abandoned sessions), clusters the patterns, and proposes evidence-backed improvements to CLAUDE.md, skills, hooks, and permissions. Use when the user runs /retro or asks why the agent keeps making the same mistakes, what keeps going wrong, or how to improve their agent setup.

Tổng quan

Nhà phát hànhcraftwork-design
Kho mãretro
Tên kỹ năngretro
Sao
29
Bản fork
2
Tệp đi kèm
2
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI là Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 2 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được craftwork-design công bố trên GitHub. Hãy đọc nội dung nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Retro trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL thư mục kỹ năng bên dưới và xác nhận.
    https://github.com/craftwork-design/retro/tree/main/skill
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/craftwork-design/retro.git /tmp/retro
mkdir -p .claude/skills
cp -r /tmp/retro/skill .claude/skills/retro
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Retro trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự tải Retro ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên Retro không bị giới hạn ở mô hình mà kỹ năng này được viết cho. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên kỹ năng chưa dùng không tốn chi phí.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

retro — turn your agent's failures into harness improvements

You are running a retrospective on how the agent (you) has been performing for this user, based on their real session transcripts. The goal is not a report for the sake of a report. The goal is a small number of concrete, minimal changes to the harness (CLAUDE.md, skills, hooks, permissions, memory) that would have prevented the friction you find. Evidence first, changes second.

Arguments

$ARGUMENTS maps to scanner flags:

  • Nd (e.g. 7d, 90d) → --days N (strip the d)
  • all → --all (omit --project)
  • they combine: /retro all 90d → --all --days 90
  • no arguments → current project, --days 30

Step 1 — collect signals

Locate the scanner, in order: ${CLAUDE_PLUGIN_ROOT}/scripts/scan.py (set when installed as a plugin); ~/.claude/skills/retro/scripts/scan.py; if $CLAUDE_CONFIG_DIR is set, $CLAUDE_CONFIG_DIR/skills/retro/scripts/scan.py; then .claude/skills/retro/scripts/scan.py in the project. Then run it with an explicit absolute project path (do not rely on the shell's cwd):

bash
python3 ~/.claude/skills/retro/scripts/scan.py \
  --project "<absolute path to the project>" --days 30 --format json

Sanity-check the output before proceeding:

  • project and sessions_scanned look right for this project.
  • If the scanner exits with "no transcripts", say so and stop; offer /retro all.
  • If sessions_scanned is 0, or it is small and every totals value is 0, do NOT write a full retro. Tell the user plainly there is not enough history here yet, suggest /retro all and /retro 90d, and stop. A hollow zeros-report reads as "broken".
  • With fewer than ~3 sessions, don't hunt cross-session patterns (every cluster field is empty by construction). Do a single-session post-mortem: the one place the agent claimed done-but-wasn't, at most one earned rule, and say explicitly this is not a trend.
  • If truncated is true OR sessions_scanned equals --limit, the window was capped: rerun with --limit 1000 before doing anything else, or state the real coverage in the report header instead of "last N days".
  • Counts and quotes cover only events inside the window, by their own ts. sessions[].start is the session's real start and may predate the window when an old session was resumed.

Step 2 — read the current harness

Read the project's CLAUDE.md (also check claude.md / Claude.md and ~/.claude/CLAUDE.md). You need it to tell which failures happened BECAUSE a rule is missing, unclear, or being ignored, versus failures no rule could have prevented.

Check the rule's age against the failures' dates before you claim "the rule was ignored". A rule that already covers a failure has three possible readings, and they lead to different fixes:

  1. The rule predates the failures → it exists but the agent doesn't act on it. Fix: harden it into a blocking gate, not a fresh rule.
  2. The rule was added after the failures (often as a reaction to them) → the failures are already addressed; do not re-report them as open.
  3. No rule covered it → propose a new rule.

Compare git log -1 --format=%cI -- CLAUDE.md (or the file mtime) and, if you can, git blame the specific line against the ts of the evidence quotes. If you cannot establish the order, say so in the report rather than asserting the rule was ignored.

Note: design-heavy projects often keep CLAUDE.md gitignored. If git ls-files --error-unmatch CLAUDE.md fails, the file is untracked and git blame is unavailable — individual rule ages are unknown. Use whole-file mtime plus content match only as weak evidence, and never claim a rule was "ignored" on that basis alone.

If no project CLAUDE.md exists, the Step 4 diff becomes a proposed new file: say "create <project>/CLAUDE.md" and show its full contents. Rules that describe the user rather than one project (reply language, tone, commit habits) belong in ~/.claude/CLAUDE.md — mark those as user-level.

Step 3 — cluster into patterns

Identify at most 5 recurring patterns. A pattern needs at least 2 independent occurrences (exception below). For each candidate, check the excerpts yourself: a "correction" flagged by the scanner may be a normal instruction — drop those.

Start with the highest-yield fields:

  • rule_requests — the user dictated a rule out loud ("запомни, отныне всегда..."). Exception to the 2-occurrence rule: one rule_request is enough — the user explicitly asked. But read the surrounding transcript before converting: reconcile with existing CLAUDE.md content (the literal words may contradict a documented legitimate case), and drop entries too vague to reconstruct.
  • repeated_instructions — the same ask across 2+ sessions, with session ids and timestamps per example. Each cluster is a candidate rule, not a rule by definition: reject clusters that are per-task go-ahead commands the user must issue deliberately (deploy, "commit this now"), and clusters already covered by CLAUDE.md — those become "rule exists but isn't followed", which is a different fix (harden the rule into a blocking gate, sharpen its wording, or move it higher in the file) — but first confirm the rule predates the failures, per Step 2, or you will re-report a fix that already landed.
  • admissions — the agent conceded a mistake; user_text holds what the user complained about, admission often names the root cause.
  • error_loops — the same tool+target failing 2+ times: the source for "wrong default in the harness" patterns (wrong test runner, missing env). retry_loops is the ≥3-failure subset.
  • nudges — only per-session counts: filter sessions[] for nudges >= 2 (= the agent stalls mid-task). For quotes, grep those transcripts; otherwise cite session titles and dates from sessions[].

On design, creative, or writing projects, redo and bare comparatives ("shorter", "покороче", "мельче", "переделай хедер") are usually the WORK, not agent failure — that is just what iteration sounds like. Require an after_success_claim, frustration, failure_report, or post_interrupt co-tag before counting a redo- or correction-only entry as a pattern, or you will over-report friction on creative repos.

To form candidates from the flat corrections list: group by recurring nouns/verbs in text and by session overlap with other signals; a candidate is any theme with 2+ entries. Weigh reasons tags in this order (strongest first):

  1. after_success_claim — agent said "done/fixed", user came back with a failure. Near-certain, and the most expensive kind.
  2. frustration — the user is visibly angry.
  3. post_interrupt — Esc + redirect. ~70% are real.
  4. failure_report — something built or claimed broke.
  5. correction / redo / repeat_paste — real but noisier; verify quotes.

Multi-reason entries outrank single-reason ones. Note: the excerpt arrays are capped (corrections 80 highest-score entries, listed newest-first; admissions 40; sessions 100 + all abandoned) — use totals for counts, arrays for quotes. Ignore top_correction_terms unless it shows an obvious theme.

If you need more context on a session, its transcript is at ~/.claude/projects/<munged-project-path>/<session-id>.jsonl — grep around the relevant timestamps; transcripts are large.

Step 3.5 — fan out to subagents when the report is large

If totals.corrections + totals.admissions > 40, or you have 5+ candidate patterns, do not judge everything in this context — you will skim and miss. Spawn one verification subagent per candidate pattern (Agent/Task tool, in parallel). Give each: the pattern name, its excerpts with session ids and timestamps, the transcript directory path, and this instruction:

Verify this candidate pattern against the raw transcripts. Return: CONFIRMED or REJECTED, the 2 best verbatim quotes with dates, a one-line root cause, and a proposed minimal rule. Reject if the quotes read as normal instructions rather than friction.

Then judge the returned evidence yourself and keep at most 5 confirmed patterns. Subagents read transcripts locally; nothing leaves the machine.

Step 4 — write the retro

Present in chat, in the user's language, in this shape:

# Retro: <project> — <real coverage: "last N days" or "N most recent sessions">

<one-paragraph summary: sessions scanned, the single biggest issue>

## Pattern 1: <plain-language name> (<N> occurrences, <M> sessions)
Evidence: 1-3 real quotes, each dated (or "N sessions, undated" — never invent dates)
Root cause: one sentence
Fix: the exact change, quoted

... up to 5 patterns, ranked by cost to the user ...

## Proposed changes
<one fenced block PER TARGET FILE: project CLAUDE.md, ~/.claude/CLAUDE.md,
.claude/settings.json, memory files. Unified diff for existing files, full
contents for new ones.>

## What went well
<1-2 lines, only if genuinely notable — do not pad>

Step 5 — apply on confirmation

Number every proposed fix and let the user pick (all / numbers / none). Apply only what they picked. Rules must be short, imperative, and specific ("Run tests with pnpm vitest run, never npm test"), never vague ("be more careful with tests").

  • Hooks/permissions: do not write settings.json schemas from memory — they change between versions. Consult the harness settings docs or the update-config skill if available. Prefer project .claude/settings.json unless the rule is user-wide.
  • If the user dictated "remember this" rules, auto-memory files (~/.claude/projects/<munged>/memory/) are a valid target alongside CLAUDE.md.

Hard rules

  • Never invent evidence. Every quote must come from the scanner output or a transcript you actually read; every date from a real ts.
  • Fewer, sharper findings beat a long list. Zero real patterns is a valid outcome — say so.
  • Never modify CLAUDE.md, settings, skills, or memory without explicit confirmation in this conversation.
  • Everything stays local. Never send transcript content to any external service.
  • Do not treat scanner counts as truth; they are candidates. You are the judge.

Tệp đi kèm

Mô hình đọc các tệp này khi cần trong lúc kỹ năng được tải. Các tệp được cung cấp ở dạng có thể đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Retro làm được gì?

Weekly retro for your coding agent. Scans local Claude Code transcripts for recurring friction (corrections, agent admissions like "you're right", instructions repeated across sessions, dictated rules, interrupts, nudges, retry loops, denials, abandoned sessions), clusters the patterns, and proposes evidence-backed improvements to CLAUDE.md, skills, hooks, and permissions. Use when the user runs /retro or asks why the agent keeps making the same mistakes, what keeps going wrong, or how to improve their agent setup.

Vì sao nên dùng Retro trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Retro là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Retro trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/craftwork-design/retro/tree/main/skill. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm và cài đặt thành một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Retro?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Bạn có thể dùng Retro với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Retro với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Retro có miễn phí không?

Có. Kỹ năng này được craftwork-design phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp cho mô hình các công cụ mới để gọi — mã được chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và tiêu chí của đầu ra tốt. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇