AGENT SKILL

project-retro

Mines the current (or a described) coding session for friction and hard-won knowledge, then fixes it at the source instead of just writing it down: saves a repeatable trap to this project's `.claude/memory/` as a `gotcha`, or hands off to `skill-report` when the devkit itself should have caught the mistake. Use when the user says "capture what we learned", "do a retro", "write this down for next time", "what would make this faster next time", or after a session that involved real digging or more than one wrong turn.

License 许可
MIT
最近更新
2026-11-12
Stars
★ 3
Forks
1

01 前言 Front Matter

name
project-retro
description
Mines the current (or a described) coding session for friction and hard-won knowledge, then fixes it at the source instead of just writing it down: saves a repeatable trap to this project's `.claude/memory/` as a `gotcha`, or hands off to `skill-report` when the devkit itself should have caught the mistake. Use when the user says "capture what we learned", "do a retro", "write this down for next time", "what would make this faster next time", or after a session that involved real digging or more than one wrong turn.
argument-hint
[optional: what felt slow or went wrong]
user-invocable
true

03 SKILL.md 正文

project-retro

skill-report already covers the half of this that's the devkit's job: a mistake a devkit skill should have prevented. This skill covers the half that's the project's own: friction that isn't the devkit's fault, and knowledge worth keeping even when nothing went wrong. Both ends write to something the next session actually reads, not a narrative nobody reopens.

Scope

  • IN: a session that just happened (or one the user describes) in a project with the devkit loaded. Sorting what it cost into: save as a gotcha, hand off to skill-report, or offer it as a .claude/memory/ entry of another type.
  • OUT: a gotcha feature-build or investigate-bug already saved during this same session — check .claude/memory/ first, don't write it twice. Inventing a new .claude/memory/ entry type (the format is fixed by project-init's templates; if nothing fits, say so and ask rather than extending it unprompted). Writing a new devkit skill directly — a real gap in the devkit becomes a skill-report issue, never a skill hand-rolled from inside a consumer project. A feature request with nothing concrete to show yet — say so and stop.

Argument

$ARGUMENTS may name what felt slow or point at the incident. If it's empty, mine the current conversation. If the session isn't in context (the user is describing an earlier one), ask for each incident's three facts below rather than inventing one.

Steps

  1. Gather the incidents. For each one: what happened, the concrete cost (extra tool calls, a guess that had to be undone, time spent digging), and the general rule or fact it reveals. Include knowledge that took real digging but turned out correct the first time (a pattern reconstructed from CMS source, an API shape found by trial) — "nothing broke" isn't the same as "nothing worth keeping."
  2. Filter. For each incident, would having it written down next time actually have saved work — not "maybe, a little"? Drop the rest. Three real incidents beat a longer list padded to look thorough.
  3. Check what's already captured. Read .claude/memory/MEMORY.md. Drop anything feature-build or investigate-bug already wrote this session. If an incident is close to an existing entry, point at that entry instead of writing a near-duplicate.
  4. Sort what's left:
    • A trap in the platform, stack, or process the project's own code or setup walked into — not caused by Claude getting something wrong → gotcha, written in .claude/memory/'s existing format (see its README.md).
    • Claude wrote or advised something wrong that a devkit skill should have prevented → hand off to skill-report, passing it the incident you already gathered so it doesn't re-interview the user.
    • Correct, hard-won knowledge that's neither of the above → check whether it's a decision or reference under the existing .claude/memory/ types. If it genuinely fits neither (a reusable snippet or reconstructed API shape, not a fact or a pointer), say so in the hand-off instead of forcing it into a type that misdescribes it.
  5. Show the sorted list before writing anything. One line per incident: its bucket, and where it's going. Write the memory entries, or draft the skill-report hand-off, only once the user says yes — same discipline skill-report itself uses before it posts.

Rules

  • Don't journal. "We ran X then Y then Z" isn't a finding unless a step in it broke or could break again.
  • Don't invent generic advice. Every line traces to an incident that actually happened this session, not a general best practice that sounds right.
  • State the general rule, not the one-off literal, unless the literal is the reusable thing itself (a real snippet, a real command).

Hand off

One line per incident: saved to .claude/memory/, sent to skill-report (with its result), or skipped and why. If another skill started this one, return that list and stop. That skill decides what runs next.

04 同仓库更多 Skills

mattbrailsford
mattbrailsford/umbraco-devkit

user-stories

Writes, splits and refines user stories with Given/When/Then acceptance criteria in STORIES.md, feeding bdd-specs. Use when turning a feature request or a vague ask into a testable backlog entry.

★ 3
mattbrailsford
mattbrailsford/umbraco-devkit

umbraco-security

What Umbraco provides for keeping a package secure, on the server and in the backoffice: Management API authorization and policies, settings that hold secrets, endpoints outside the Management API, sanitizeHTML and escapeHTML, DOMPurify rules for custom elements, and umbHttpClient instead of handling tokens in the browser. Use when writing or reviewing a Management API controller, a secret setting, a custom endpoint, a backoffice template that uses unsafeHTML, or frontend code that calls an API.

★ 3
mattbrailsford
mattbrailsford/umbraco-devkit

umbraco-performance

Keeping a package fast on the sites that install it: the published cache over the services layer, tree traversal, caching lookups and clearing them, data type config and converter cache levels, output cache eviction, light hot paths, and backoffice screens that don't over-fetch. Use when writing, changing or reviewing code that runs per request, per save, per indexed item or at startup (property value converters, notification handlers, indexing), code that loops over every content item (a full rebuild, an import, a sync), or a list or search screen. Not for a site's own templates.

★ 3
mattbrailsford
mattbrailsford/umbraco-devkit

umbraco-package-conventions

Backend conventions for an Umbraco package: async naming, internal by default, Attempt-based results for routine failures, public-API backwards compatibility, and where extension methods live. Use when naming a method, choosing visibility, shaping a service's result, changing a public signature (including adding a dependency to a public class's constructor), or organizing extension methods. For extension mechanisms, see `umbraco-extensibility`.

★ 3
mattbrailsford
mattbrailsford/umbraco-devkit

umbraco-marketplace

Gets a finished package listed on the Umbraco Marketplace: the NuGet tag, the dependency Marketplace reads version support from, the v14+ compatibility gotcha, and umbraco-marketplace.json. Use when a package is ready to publish, or when reviewing its packaging.

★ 3
mattbrailsford
mattbrailsford/umbraco-devkit

umbraco-extensibility

Umbraco's extension mechanisms (Composers, collection builders, notification handlers, attribute discovery) and a catalogue of backend CMS extension points: property value converters, Management API endpoints, content finders, health checks, search indexing, package migrations, background jobs, and more. Use when making a feature extensible or choosing which extension point fits. Not for property editor UI, dashboards, sections or trees, which the official Backoffice Skills plugin covers.

★ 3