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

reflect

Skill17 starsChanged 17 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.

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 153 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 4

    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. Very specific:

    Before fanning out, find this conversation's T3 thread, which the reviewers read with t3_thread_read (see the runtime's History section).

    line 18
  3. Very specific:

    Use the thread id if the host already names it.

    line 20
  4. Distinctive:

    Follow each approved row's Routing exactly:

    line 54
  5. Very specific:

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

    line 61

“Common” is measured: kept by at least 6 in 10 of the 153 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.

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.

The runtime's Modes section sets the mode lines of every brief this skill writes and how its spawns run in light mode.

1. Locate the active thread

Before fanning out, find this conversation's T3 thread, which the reviewers read with t3_thread_read (see the runtime's History section). 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. 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.

For each candidate, call t3_thread_read with view: "messages" and limit: 1. Take the threadId of the thread whose first user message is the conversation's opening user prompt. If none matches, pass a tight digest of the session instead.

2. Spawn three reviewers in parallel

One message, three delegate_task calls with mode: "async" and role: "review". Reviewers need MCP access to look up the tickets, chat threads, and observability traces the thread references, so keep the child's tools and let the brief carry the read-only constraint.

Each reviewer and the synthesizer name a role. Set target to the target resolved from that role 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. Pass the seat the role this step names, per the Subagents section of the poteto-mode skill.

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. It spot-verifies citations through MCP, so it keeps its tools and the template carries the read-only constraint. Pass references/synthesizer.md verbatim, with each reviewer's full output inlined where marked. It returns an Accepted / Rejected / Backlog list.

4. Structural enforcement check

Move any Accepted item that a lint rule, script, metadata flag, or runtime check would enforce more reliably to Backlog. See the encode-lessons-in-structure principle skill.

5. Apply

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

File each Backlog item to your team's devex or backlog tracker without waiting. Only the Accepted list waits for approval.

Never edit a pstack-t3 skill through its installed link or under a checkout's generated skills/ directory. Before approval, show its destination. Edit a pstack-t3 skill's source in a pstack-t3 checkout. Use t3/runtime.md for pstack-runtime/SKILL.md and t3/setup.md for setup-pstack/SKILL.md. Runtime scripts and personas use their corresponding sources in t3/scripts/ and t3/agents/. Other skill files use t3/overrides/<skill>/ or t3/added/<skill>/. Run python3 scripts/build.py afterwards. A project or personal skill is edited in its own directory, .agents/skills/<skill>/ in the project or ~/.config/pstack-t3/personal/<skill>/. Never open a PR or push.

Follow each approved row's Routing exactly:

  • Trivial existing-skill edit (a one-line bullet, a tightened sentence, a stale fact corrected): the parent does it 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.

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.