AGENT SKILL

triage-reflections

Routes pending REFLECT-marker learnings from the reflect ledger to GitHub issues. Use when the user says "triage reflections", "/triage-reflections", "process my REFLECT markers", "what have I learned", or when the statusline shows reflect:N. Infers missing skill and scope, splits notes into explicit and unclear, plays unclear ones back for correction, merges duplicates into one item with every example, drops lessons already covered by a rule or lint config, routes by a three-way test the user can correct, files one issue per skill, and writes every decision back to the ledger with `reflect marker mark`.

License 许可
MIT
最近更新
2026-11-11
Stars
★ 0
Forks
0

01 前言 Front Matter

name
triage-reflections
description
Routes pending REFLECT-marker learnings from the reflect ledger to GitHub issues. Use when the user says "triage reflections", "/triage-reflections", "process my REFLECT markers", "what have I learned", or when the statusline shows reflect:N. Infers missing skill and scope, splits notes into explicit and unclear, plays unclear ones back for correction, merges duplicates into one item with every example, drops lessons already covered by a rule or lint config, routes by a three-way test the user can correct, files one issue per skill, and writes every decision back to the ledger with `reflect marker mark`.

02 资源文件 1

03 SKILL.md 正文

Triage reflections

Turn pending learnings into filed issues, and leave none pending that were handled. Triage files issues only; it never edits a skill (skill-updater, /implement and /fleet do that).

reflect is ~/.claude/bin/reflect. Routing: skills/meta/reflect/references/routing.md. Issue body, labels, dedupe and the -R repo flags: skills/meta/reflect/references/issue-format.md.

Steps

  1. Load. reflect marker ls --json --status pending. Empty means say so and stop.
  2. Infer. For a learning with no skill or no scope, read its text, before, after and file, then match it to a repo skill (<repo>/.claude/skills/) or a library skill (reflect status gives the library: path). Resolve an installed copy to its library source as routing.md describes.
  3. Classify. Split every note by one test:
    • Explicit: it has an after, or its text states a checkable rule ("inject the clock, don't sleep"). For a PR note (source: pr) the after is fetched now: diff the commented lines between the record's commit and the merged head of PR pr with gh. Write nothing back to the ledger for it.
    • Unclear: any other note ("not sure this is best", "could be simpler"). Read the code and reach a reading and a proposed rule.
  4. Merge and drop. Merge pending learnings with the same skill and scope that say the same thing (judged by reading text, before and after) into one item, keeping every example (file, line, before/after) and a count such as "seen in 4 places": the repetition is the evidence, and each merged learning still counts toward a proposal's 3+. Mark rejected only a learning that an existing skill, AGENTS.md, rule or lint config already states. Check by reading the target; do not assume.
  5. Play back. Send one message holding every unclear note (code, your reading, the proposed rule) and the route table for the explicit ones (ids, text, count, route, reason). Close with: "Correct anything I've got wrong. Anything you don't mention, I'll take as agreed." Silence on a note is agreement; never ask note by note. Re-verify all corrections together, then play back only the changed notes plus a one-line list of what is settled, until a reply carries none. "Go" settles the rest. Never file before this. Once settled, route an unclear note by the same three-way test, with its proposed rule as the issue content. Where a (skill) hint disagrees with the test, show both in the route table. The reason column names the test that matched.
  6. File the settled rows (below), then mark each.
  7. Propose upward (below) over the deferred and promoted learnings.
  8. Report the issue URLs, the proposals, and counts of promoted, deferred and rejected.

Routes

Apply the three-way test; its result is the reason column. A (skill) hint that disagrees with it appears in the play-back next to your choice.

Learning Action Mark
only about this code inbox issue on the learning's repo via file-issue inbox mode promoted
depends on this repo's terms, ADRs or layout one issue on the learning's repo field (pass -R <owner>/<repo> from its origin) to amend the repo skill or AGENTS.md promoted
holds in any repo using the same language or tool one issue on the library skill's source repo promoted
repo lesson with no skill (REFLECT(repo)), or no owner and no other learning shares its theme file nothing deferred
user rejects, or a drop from step 4 file nothing rejected

A merged item takes one route, and every learning in it gets that item's mark and --issue URL.

Group by skill: one issue per skill per run, listing every item for that skill. Use the reflect issue format with labels reflect, status:ready and inbox, and add the from: line for library issues. Put each item's count and every example's before/after under Evidence. Every issue triage files carries inbox, because /sweep reads only that label and an issue without it is never batched. Create the label if missing (gh label create inbox -c "#c5def5").

  • Mechanical lessons (a script or linter could catch it): the issue also asks for a snippet in the skill's lint/ folder, in the house forms (forbidigo, errorlint for Go).
  • Global issues always carry generic examples: rewrite each before/after, and leave out repo names, paths and private identifiers, whether or not the library repo is public.
  • Repo issues on a public repo (gh repo view <repo> --json isPrivate) are genericised too. An issue on the private repo the code came from keeps the code as written.

Proposals

After marking, run reflect marker ls --json and consider every learning with status deferred or promoted and an empty proposal field. A learning already carrying a proposal URL belongs to a filed group: skip it, so a group is never proposed twice.

Group Proposal
3+ learnings in one repo on one theme, with an empty skill field and no repo skill in <repo>/.claude/skills/ covering it one issue on that repo suggesting a repo skill, an AGENTS.md line or an ADR
the same lesson in 2+ repos one issue on the most likely library skill's source repo, with the from: line

Judge "one theme" and "same lesson" by reading text, before and after; when unsure, leave the learning out. Show the proposed groups to the user and wait for acceptance before filing, as in step 5. A proposal lists each learning (id, text, repo, before/after) as evidence and stops there: it contains no skill draft, no proposed wording and no patch. Use the reflect issue format with labels reflect and inbox, and the genericising rules above for global and public-repo issues.

After the proposal exists, for every learning in it, keep its status and record the URL:

reflect marker mark <id> <current-status> --proposal <proposal-url>

--proposal is separate from --issue, so a promoted learning keeps its own issue link.

Mark

After each issue is filed, for every learning in it:

reflect marker mark <id> promoted --issue <issue-url> [--scope global|repo] [--skill name]
reflect marker mark <id> deferred
reflect marker mark <id> rejected

Mark only after the issue exists, so a failed filing leaves the learning pending for the next run. Pass --scope and --skill on any mark when step 2 inferred them. Re-running ls --status pending must show nothing already handled.

04 同仓库更多 Skills

O-Marsters-1997
O-Marsters-1997/my-claude-code

obsidian-develop

Build, prototype, extend, debug and review Obsidian community plugins against a live vault: inspect the running app's UI, DOM, console and plugin state, prototype in the runtime, then verify each change with a build, reload and check loop. Use whenever the user is working on an Obsidian plugin, even when they just say "add a command", "make a sidebar view", "my settings tab is blank", "why isn't my view updating" or "get this ready for the community directory"; when they ask about the plugin API (obsidian.d.ts, Workspace, leaves, Vault, MetadataCache, FileManager, views, modals, settings tabs, CodeMirror 6 editor extensions, markdown post-processors, events); or when they want a running Obsidian instance's DOM, CSS, console or plugins inspected. Not for general note-taking, Obsidian Markdown syntax, themes without a plugin, or managing vault content (use ingest, to-vault or vault-recall for those).

★ 0
O-Marsters-1997
O-Marsters-1997/my-claude-code

vault-recall

Answer the user's conceptual or technical question using their Obsidian vault as well as general knowledge. Use when the user asks a question (not a task) whose topic appears in the vault MOC digest from session start. Not for task instructions, not mid-task, and not for writing to the vault (that is to-vault).

★ 0
O-Marsters-1997
O-Marsters-1997/my-claude-code

ingest

Ingest one external source (an article, course lesson, doc, PDF or URL) into the user's Obsidian vault: save the original to raw/, then build wiki/ pages per the vault's § Ingest. Use when the user types /ingest, or says "ingest this", "add this source to my wiki", "put this article/lesson in the vault as a wiki page". Works from any repo. Routing rule: someone else's words go to wiki/ (this skill); the user's own learnings and decisions go to notes/ (/to-vault).

★ 0
O-Marsters-1997
O-Marsters-1997/my-claude-code

to-tickets

Breaks a source into independently-grabbable GitHub tickets. For a code feature the source is the plan (`docs/plans/<feature>.md`, from /to-plan) and every new or changed symbol lands in exactly one ticket, its signatures copied into the ticket body; a non-code feature is cut from the PRD's slices. Cuts tickets for one feature per run. If a code feature has no approved plan, offers /to-plan instead of cutting from prose. In a repo that runs command-centre, also emits `[[task]]` blocks into its config; in a plain treepad repo, emits a Batch Manifest instead so the tickets materialise as stacked worktrees.

★ 0
O-Marsters-1997
O-Marsters-1997/my-claude-code

to-seams

Records an agreed-but-unlanded cross-repo interface as a seam: the file a consumer's agent gets pasted into its prompt as ground truth, plus the `[[seam]]` block command-centre reads for the retirement pointer. Use when two repos need to build against an interface neither has landed yet — "record a seam for X", "we agreed on this schema, seam it", "add a seam so Y can build against Z's new field". Halts for approval before writing either file.

★ 0
O-Marsters-1997
O-Marsters-1997/my-claude-code

to-roadmap

Prioritises settled features into a Now / Next / Later kanban board, rendered as a self-contained ./ideas/roadmap.html. Each card is a feature, not a ticket — one card later becomes several tickets via /to-prd -> /to-plan -> /to-tickets. Boards the features in ./docs/approach.md, or the "## Accepted ideas" in ./ideas/CONTEXT.md when there is no approach doc. The approach doc is settled truth: this assigns tiers and reasons about ordering, it never re-litigates what was decided.

★ 0