agentleFS
creedantscreedants/pstack-t3/skills/reflect/SKILL.md

reflect

Skill3 starsChanged 57 days agoMITView on GitHub

Spawn three parallel review children over the active T3 thread, surface learnings, and route each to a concrete edit on an existing skill. Use when the user says reflect.

105 other projects use a version of this, 19 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 98 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read the pstack-t3 runtime before spawning workers, choosing models, scheduling, or isolating work.

    line 8
  2. Distinctive:

    If no thread resolves, write a tight digest of the session and pass that instead.

    line 24
  3. Very specific:

    Before applying any Accepted edit, present the synthesizer's full Accepted/Rejected/Backlog output to the user and wait for explicit …

    line 48
  4. Very specific:

    If your environment ships a SKILL.md validator, run it on every touched skill before declaring done.

    line 59

“Common” is measured: kept by at least 6 in 10 of the 98 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Reflect

Read the pstack-t3 runtime before spawning workers, choosing models, scheduling, or isolating work. It maps those steps onto T3's orchestrator tools.

Mine the current conversation for durable learnings, then route them into skill edits.

When to invoke

Invoke when the user says "reflect" or "/reflect". Skip when the conversation is trivial, off-topic, or already covered by an existing skill the parent followed correctly. One-offs are not learnings.

Process

1. Locate the active thread

The parent finds its own T3 thread before fanning out. The session is a T3 thread, and the reviewers read it with t3_thread_read (see the runtime's History section). Stay inside the current project. Do not read threads from other projects. That reads private chats from unrelated work.

Use the thread id if the host already names it. Otherwise call t3_thread_list with statuses: ["running"] and take the newest candidates. For each candidate, call t3_thread_read with view: "messages" and limit: 1, and check that the first user message is the conversation's opening user prompt. Take the matching threadId. Child task threads this session spawned are threads too. List them with t3_thread_list and includeSubagents: true when a reviewer needs a child's work.

If no thread resolves, write a tight digest of the session and pass that instead.

2. Spawn three reviewers in parallel

One message, three delegate_task calls with mode: "async" and role: "review", each with the target resolved from the role below per the runtime's Roles section. Omit target for an inherit seat. If T3 rejects a target, fall back per the runtime and say which seat changed. Reviewers need MCP access for context lookups (tickets, chat threads, observability traces referenced in the thread). The templates already forbid edits, so keep the child's tools and let the brief carry the read-only constraint.

LensRolePrompt template
Judgmentreflect judgment, divergent, synthesizerreferences/judgment-reviewer.md
Toolingreflect toolingreferences/tooling-reviewer.md
Divergentreflect judgment, divergent, synthesizerreferences/divergent-reviewer.md

Pass each template verbatim, substituting the thread id or digest where marked. Reviewers return findings in their final message, which arrives as the task's summary.

3. Synthesize

One delegate_task call with role: "review" and the target from the reflect judgment, divergent, synthesizer role. The synthesizer's quality check includes spot-verifying citations, which can require MCP access, so it keeps its tools and the template carries the read-only constraint. Use references/synthesizer.md verbatim, with each reviewer's full output inlined where marked. The synthesizer returns a structured Accepted / Rejected / Backlog list.

4. Structural enforcement check

Sanity-check the synthesizer's Accepted list. For any item that would be enforced more reliably by a lint rule, script, metadata flag, or runtime check, move it from Accepted to Backlog. See the encode-lessons-in-structure principle skill.

5. Apply

Before applying any Accepted edit, present the synthesizer's full Accepted/Rejected/Backlog output to the user and wait for explicit approval. The user picks which subset to apply and may redirect routings. Skill changes affect every future agent in the org. Do not auto-apply.

Backlog items file to whatever devex / backlog tracker your team uses automatically. Only the Accepted list waits for approval.

For each approved Accepted item, follow the Routing field exactly:

  • Trivial existing-skill edit (a one-line bullet, a tightened sentence, a stale fact corrected): parent does directly.
  • Substantive existing-skill edit (a new section, a new pattern table, more than ~10 lines): hand to the pstack-author-skill skill and run its draft / test / iterate loop.
  • tune description: <skill path> (the skill exists but didn't trigger when it should have): hand to pstack-author-skill and run its description loop.
  • new skill via pstack-author-skill: <kebab-name>: hand creation to pstack-author-skill. Do not invent the shape ad hoc.

If your environment ships a SKILL.md validator, run it on every touched skill before declaring done. Skip this step if it doesn't.

6. Summarize for the user

Short list, no preamble:

  • Edits applied: <skill path>. What changed, one line each.
  • New skills created: <skill path>. One line each (rare).
  • Backlog filed to the devex tracker: <issue title> (<tags>). One line each.
  • Dropped: one line per rejected finding + reason from the synthesizer.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.