Skip to content
Back to skills

Retro

ASecurity

Conduct a retrospective on a coding session.

  • 14 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 20, 2026
ai-agentsgodebugginggitapi

Works with

  • cli
  • api
  • mcp

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 20, 2026

npx -y skills add philoserf/claude-code-config --skill retro --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Retro?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Retro
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/philoserf-retro/badge)](https://www.skillsdirectory.com/skills/philoserf-retro)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: retro
description: "Conduct a retrospective on a coding session."
disable-model-invocation: true
---

The user has asked for a **retrospective**. You are suggesting improvements to the coding agent's **environment** to improve future runs.

## Steps

1. Call the Skill tool with `writing-for-agents` for the writing style guide.

2. Read the primary sources for the session the user specifies. This may mean searching through session logs on this machine. If the user doesn't specify a session, default to the current one.

3. Look for candidates for improvement in these categories.

- **Navigation**: how easy was it for the agent to find the right files? Are there hidden dependencies between files? Would a **navigation pointer** make it easier? _Use when_ the session took a long time to find a piece of information.
- **Automated checks**: are there automated checks that could catch errors the agent made? Linting, typing, tests, filesystem linters? The **guardrail** is the repo's `task` gate: every check runs locally through it. Read the repo's `Taskfile.yml` first, so the finding is a check that is missing from the gate, exists but isn't wired into it, or is silently broken, not a reinvention. A repo whose gate passes is guarded. _Use when_ the agent made a mistake an automated check could have caught.
- **Coding standards**: should the **reviewer agent** be given a new rule to enforce? Should an existing rule be removed or clarified? Classify the violation first. A **mechanical** one (a fixed syntactic pattern, a banned API, an import shape, a file-location rule) gets a deterministic check, full stop: lint config or a script the repo's `task` gate runs. When the mistake is in the agent's behavior rather than the code (a command shape, a git habit), the check is a PreToolUse hook in `~/.claude/hooks/`, as `hooks/guard-git-commit.sh` is. Default to building the check over writing the rule. Keep **judgement calls** (cross-file consistency, "matches the surrounding style," anything no check could ever substitute for) in the repo's `docs/` or `.claude/rules/`, pointed to from its `CLAUDE.md`, or in `~/.claude/rules/*.md` when they hold across repos. _Use when_ the reviewer agent failed to catch a mistake.
- **CLAUDE.md**: are there any steering instructions that should move to rules, docs, or automated checks instead? _Use when_ a `CLAUDE.md` is particularly large: the repo's, or the global one at `~/.claude/CLAUDE.md`.
- **Tool economy**: did the agent make expensive tool calls that could be streamlined? Is there any custom tooling (CLI's, MCP's) that is particularly token-inefficient? _Use when_ the agent made an expensive tool call.
- **No-ops**: look for instructions in steering files that don't modify the agent's behavior. _Use when_ the steering files are large and unwieldy.
- **Information access**: look for opportunities to increase the agent's access to information. Teeing dev server logs, readonly access to third-party services. _Use when_ a crucial piece of information was not available to the agent.

4. Present these candidates to the user, in order of severity. Name where each one lands:
   - `philoserf/claude-code-config` (`~/.claude`) for global rules, hooks and user skills.
   - `philoserf/notes-tooling` for the vault's skills, agents and scripts.
   - The repo itself for its `task` gate, its `CLAUDE.md`, its `docs/` and its `.claude/rules/`.

## Reference

### Implementation vs Review

Remember that all work goes through two stages: implementation and review. The implementation agent has the most **context pressure**. They are responsible for exploration, writing code, and debugging failures.

The review agent has the least context pressure - it receives a diff, so no exploration needed. It often does not need to write code or debug.

This means that the review agent should be responsible for imposing coding standards, not the implementation agent.

### Files

You have access to several files in the repo:

- `CLAUDE.md`: pushed to the context window of any agent working in the repo, and globally from `~/.claude/CLAUDE.md`. Use it incredibly sparingly, usually only for **navigation pointers** to other files.
- Rules: standards in the repo's `.claude/rules/*.md`, or globally in `~/.claude/rules/*.md`. One with `paths:` frontmatter loads only when matching files are in play, so it costs nothing elsewhere.
- Docs: use docs as references files, pointed to by other files. Look for existing docs before writing new ones.
- Skills: use skills for docs (since their description goes into the agent's context window), or for user-invoked commands. Follow the advice in the `writing-for-agents` skill.

Files in this skill

  • LICENSE1 KB
  • SKILL.md4.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.