harrison97/pstack-codex/reflect
Claude Code and agent skill by harrison97/pstack-codex
- community
Checking that the SKILL.md file is still in the repository.
Spawn three parallel review subagents over the active transcript, surface
Install
npx vskill@latest install harrison97/pstack-codex/reflectSKILL.md
The same SKILL.md was published earlier as harrison97/pstack-codex/reflect.
Read the Codex execution contract before this skill the first time in a session. Resolve resources using the path rules in CODEX.md.
Reflect
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 transcript
Use the current conversation and project checkpoint first. For requested history, run python3 <plugin-root>/scripts/sessions.py --workspace <absolute-project> --days 7; for a known current thread add --id <thread-id>. Read only matching rollouts. If none is available, write a labeled session digest. See CODEX.md for scope and privacy.
2. Spawn three reviewers in parallel
One message, three native Codex spawn calls, an available default agent role, with model set as below, with explicit read-only scope. Reviewers need MCP access for context lookups (tickets, chat threads, observability traces referenced in the transcript). MCP availability follows the current Codex tool surface.
Each reviewer and the synthesizer name a role line in the pstack/models.json rule and a default. Set model to that line's value, or to the default if the rule or the line is missing. Leave model unset when the value is auto or inherit-parent. If the native Codex delegation tools rejects a slug, use the default and say so. If it rejects the default, use the closest valid slug of the same family from its error message.
| Lens | Role line | Default model | Prompt template | |
|---|---|---|---|---|
| Judgment | reflect judgment, divergent, synthesizer | inherit-parent | references/judgment-reviewer.md | |
| Tooling | reflect tooling | inherit-parent | references/tooling-reviewer.md | |
| Divergent | reflect judgment, divergent, synthesizer | inherit-parent | references/divergent-reviewer.md |
Pass each template verbatim, substituting the transcript path or digest where marked. Reviewers return findings in the subagent response body.
3. Synthesize
One native Codex spawn call, an available default agent role, with model from the reflect judgment, divergent, synthesizer line (default inherit-parent), with explicit read-only scope. The synthesizer's quality check includes spot-verifying citations, which can require MCP access. MCP availability follows the current Codex tool surface. 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
Present accepted, rejected, and backlog findings. If the user requested reflection only, stop before edits; if the user explicitly requested applying improvements, apply that scope without asking again. Personal plugin edits affect future sessions. Never edit installed cache files; identify the maintained source first.
Keep backlog items local unless the user requested filing them to a tracker. Apply skill edits within the user’s requested scope; do not publish messages or issues merely because this skill was invoked.
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 installed
skill-creatorskill and run its draft / test / iterate loop. tune description: <skill path>(the skill exists but didn't trigger when it should have): hand toskill-creatorand run its description-optimization loop.new skill via skill-creator: <kebab-name>: hand creation toskill-creator. 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.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/reflect/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/harrison97/pstack-codex/reflect)