AGENT SKILL

feature-close

Closes a feature's plan folder once the work is over: records how it ended, moves lasting decisions into project memory, and archives the folder. Use after the feature's PR merges on each version line it shipped to, or when a plan is dropped or replaced.

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

01 前言 Front Matter

name
feature-close
description
Closes a feature's plan folder once the work is over: records how it ended, moves lasting decisions into project memory, and archives the folder. Use after the feature's PR merges on each version line it shipped to, or when a plan is dropped or replaced.
argument-hint
[feature slug or plan folder path, one or more, optional]
user-invocable
true

03 SKILL.md 正文

feature-close

Keep the plans folder to work that's still live. A closed plan moves out, so an active plan is easy to find, and Claude stops reading an old design as if it were the current one. What the plan decided that still matters moves somewhere that lasts first, so nothing points into the archive.

Where this writes

The project's archive folder, set next to the plan-folder path in CLAUDE.md's "Feature workflow" section (default docs/archive/, one sub-folder per kind of plan). A feature's plan folder moves from docs/plans/<feature-slug>/ to docs/archive/plans/<feature-slug>/.

  • Owns: the move, and one > **Status:** line at the top of the plan folder's README.md. That line is the only edit this skill makes inside the plan folder.
  • Writes outside it: .claude/memory/ entries and nested CLAUDE.md files for what the plan decided, link fixes in lasting files (step 3), and moving a used-up source idea to docs/archive/ideas/ (step 5). It never edits an idea file.
  • Never edits any other file in the plan folder. They record what happened at the time; rewriting them after the fact loses that.

major-upgrade archives its own upgrade checklist with the same steps (see its "Archive" section).

Scope

  • IN: one or more closed plan folders on one version line.
  • OUT: plans still in progress, or with a PR still open. Reference docs, memory, and logs: those describe how things are now, so they get updated, never archived.

Preflight

  1. Resolve the plan folders. Use the argument; else list the folders under the plans path and ask which are closed. Don't guess from age or file contents.

  2. Check the working tree is clean and you're on the version line's trunk branch (see CLAUDE.md's "Feature workflow" section). If not, stop and report.

  3. Find how each plan ended. Look for its PR by the feature's branch name:

    gh pr list --head <branch> --state all --json number,state,baseRefName,mergedAt,url
    
    • Merged into this line's trunk: shipped. Note the PR and the merge date.
    • Open: stop. The plan isn't closed yet.
    • Closed without merging, or no PR at all: ask whether it was abandoned (and why, in one line) or superseded (and by which plan).

    A feature that ships to more than one version line (v17/dev and v18/dev) is archived on each line by its own run, once that line's PR is merged. Each line's archive is its own.

  4. Check for unresolved review comments in each plan folder, following markdown-preview's "Comments before moving on". Archiving takes the plan out of the working set, so list any still open and ask before closing it.

Close each plan

Show the user what each step will change and wait for a yes before step 4.

  1. Write the status line. Add it at the top of the plan folder's README.md, under the title:

    > **Status:** Shipped <date>, #<PR> into `<trunk>`. <one line: anything left undone>
    > **Status:** Abandoned <date>. <one line: why>
    > **Status:** Superseded <date> by `<other-slug>`. <one line: what carried over>
    

    No README.md? Create one with the title, the status line, and a plain list of the files in the folder. Never copy the status line into the other files.

  2. Save what outlives the feature. Read DECISION-LOG.md, ARCHITECTURE.md, and SPEC.md. For each decision or explanation that future work needs, pick its lasting home (as feature-explore and feature-design do when they record a decision):

    • A rule for one directory or module: that directory's CLAUDE.md.
    • A project-wide decision: .claude/memory/, type decision. See .claude/memory/README.md for the format.
    • A longer "how this works": the project's own reference docs, if it keeps any. If it doesn't, keep only the rule and its reason, in one of the two homes above.

    Skip what a lasting file already says. Most of a plan is about how the work got done, and that stays in the archive. An abandoned plan usually has one thing worth saving: why it was dropped, so it isn't tried again blind.

  3. Fix links into the plan. Search the repo, outside the plans and archive folders, for links into this plan folder:

    git grep -n "<plans-path>/<feature-slug>" -- ':!<plans-path>' ':!<archive-path>'
    

    Each hit breaks a rule in CLAUDE.md's "Plans and the archive" section:

    • In code: replace the link with the reason itself, in a line or two. A longer reason belongs in the nested CLAUDE.md from step 2.
    • In a CLAUDE.md, memory, or reference docs: point it at the home from step 2.

    If nothing in step 2 fits, step 2 missed something: go back. Plans and ideas refer to each other by name, so they need no fixing. An old path link in another plan is history: leave it.

  4. Move the folder. git mv <plans-path>/<feature-slug> <archive-path>/plans/<feature-slug>. Links inside the folder are relative, so they still work.

  5. Check the source idea. If BRIEF.md has a Source idea: line, it names the idea (see CLAUDE.md's "Ideas"). Ask the user whether anything in it is still left to do. Other live plans may be building other parts of it. If nothing is left, git mv <ideas-path>/<idea-name>.md <archive-path>/ideas/. References use the name, so nothing needs fixing. If something is left, leave it where it is.

  6. Commit, then ask before pushing. On a short-lived branch off this line's trunk, named per git-workflow (for example docs/archive-plans or v18/docs/archive-plans). One commit for the whole run: docs: archive <feature-slug> plan, or docs: archive shipped plans when there are several. Ask before pushing. Then invoke pr-describe to open the PR.

Rules

  • Never archive a plan whose PR is still open on this line.
  • Never edit a plan's files beyond its README.md status line.
  • Step 3 is what makes the move safe. The link rule itself lives in CLAUDE.md's "Plans and the archive" section.

Hand off

List each plan archived, how it ended, what was saved where, the links repointed, and any idea archived. Then the PR link.

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