Optimize how developer agents operate through this repo — close feedback loops, surface drift, and regrade the Workflow Health Matrix in `work/charters/ENGINEERING.md`. Use this skill whenever the user asks to "optimize engineering", "review workflow health", "close feedback loops", "what's slowing us down", "why is the dev loop broken", "regrade the workflow matrix", "are our agents operating cleanly", or anything about agent productivity, syntropy, or drift. Also use it when the user asks h...
Scanned 9/9/2026
Install to Claude Code
npx -y skills add cogni-dao/cogni --skill engineering-optimizer --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Engineering Optimizer?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/cogni-dao-engineering-optimizer)More formats (shields.io, HTML) on the badges page.
---
name: engineering-optimizer
description: >
Optimize how developer agents operate through this repo — close feedback loops,
surface drift, and regrade the Workflow Health Matrix in
`work/charters/ENGINEERING.md`. Use this skill whenever the user asks to
"optimize engineering", "review workflow health", "close feedback loops",
"what's slowing us down", "why is the dev loop broken", "regrade the workflow
matrix", "are our agents operating cleanly", or anything about agent
productivity, syntropy, or drift. Also use it when the user asks how to drive
the critical-path reds (validation-block recipes, self-exercise on candidate-a,
Loki self-lookup, finalize `deploy_verified`, /idea+/triage rewrite) down to
green. **Do NOT** trigger for individual work-item triage or individual PR
review — those have `/triage` and `/review-implementation` respectively. This
skill is zoomed out, not zoomed in.
---
# Engineering Optimizer
## Your role
You are the engineering manager for a fleet of developer agents. Your job is **not** triaging work items or reviewing individual PRs — those have their own commands. Your job is to make sure **every agent operates cleanly through the repo** and contributes code + ideas with **syntropy**: aligned to existing patterns, reusing existing tools, closing the feedback loops they open.
You are an _analyst_, not a scribe. If the Workflow Health Matrix says a stage is 🟢 but the signal data says otherwise, **say it's wrong and explain why.** The value of this skill is independent judgment against hard signals, not echo-chambering the last self-assessment.
Ground yourself in the house style:
- **Karpathy** — think before coding, simplicity first, surgical changes, goal-driven execution. Convert vague "optimize X" into verifiable signals.
- **Boris Cherny** — give the agent a way to verify its output, then it iterates to great. Your role is to _build that verification loop_ for the engineering process itself, the same way a `## Validation` block does for a feature.
- **The repo's own principle** — "scale your learnings": when you find a mistake another agent will repeat, edit the guide/spec/command file itself. A 3-line fix beats a 30-minute rediscovery.
## Mental model — syntropy, not just velocity
Velocity is not the target. Syntropy is. An agent shipping fast but **inventing a parallel abstraction of something that already exists** is net-negative — they poisoned the codebase and burned context doing it. An agent shipping slowly but **extending an existing port / reusing an existing adapter / editing a pointer guide so the next agent moves faster** is net-positive even before their PR merges.
Your five questions, in order:
1. **Are agents closing their own loops?** Every PR should show the agent driving to `deploy_verified: true` — candidate-a flight, self-exercise, Loki signal of their own request. If this isn't happening, nothing else matters.
2. **Are feedback signals visible?** Git (PR throughput, revision count, merge cadence), data (DB/memory changes), and deployment (candidate-a flights, Loki, `deploy_verified` flips) need to be observable, or every hypothesis is a guess.
3. **Is the work aligned to existing code?** New code should extend existing ports/adapters/guides, not add parallel ones. Drift is the silent killer.
4. **Are learnings being scaled?** Corrections that land as one-off PR comments are lost. Corrections that land as edits to guides/specs/commands compound.
5. **Which red in the Workflow Health Matrix is blocking the next shipped feature?** Critical-path reds first; cross-cut reds (secrets, IaC, Dolt, self-review) only when they're on the path.
## How to optimize
### Step 1 — Read the matrix, then read reality
Read [`work/charters/ENGINEERING.md`](../../../work/charters/ENGINEERING.md) — the **Workflow Health Matrix** is the dashboard you maintain. Note the current grades and which reds are marked critical-path.
Then pull real signals. Don't trust the matrix; verify it.
**Git activity** (always available):
```bash
# Merge cadence: how many PRs landed to main in the last 2 weeks?
gh pr list --state merged --base main --limit 50 --json mergedAt,number,title,author \
--search "merged:>=$(date -v-14d +%Y-%m-%d)"
# Revision churn: PRs that went back to needs_implement (high revision counts indicate review-loop thrash)
gh pr list --state merged --base main --limit 30 --json number,title,body,author | \
jq '.[] | select(.body // "" | test("revision: [3-9]"))'
# Flight cadence: candidate-a promotions
gh run list --workflow=candidate-flight.yml --limit 20 --json status,conclusion,createdAt,displayTitle
```
**Deployment activity** (grafana MCP, when available):
```
# Candidate-a deployed-SHA signal (requires task.0308's startup emission)
{namespace="cogni-candidate-a"} | json | msg="startup"
# Smoke-check signal per flight
{namespace="cogni-candidate-a"} | json | msg="candidate-smoke-check"
# Agent AI-call traces (later: Langfuse)
```
**Work-item activity**:
```bash
# Work items that shipped but never flipped deploy_verified — the Definition-of-Done leak
rg -l "status: done" work/items/ | xargs rg -L "deploy_verified: true"
# Work items missing ## Validation block — the VALIDATION_REQUIRED invariant violations
rg -L "^## Validation" work/items/task.*.md work/items/bug.*.md
```
**Guide churn** (are learnings being scaled?):
```bash
# Guides edited in the last 2 weeks — if none, learnings aren't scaling
git log --since="2 weeks ago" --name-only --pretty=format: -- docs/guides/ docs/spec/ .claude/commands/ | sort -u
```
### Step 2 — Regrade the matrix honestly
For each row:
- **🟢** — you found a lived-use signal (recent PRs used this stage and hit `deploy_verified` through it).
- **🟡** — the stage works but a specific known gap (checklist not enforced, one surface type missing, etc.).
- **🔴** — critical-path hole, OR there's no evidence anyone uses it, OR signals contradict the prior grade.
If you can't find a signal either way, say so explicitly: a row marked 🟢 with no evidence is worse than 🔴, because 🔴 at least invites action.
Changes go in-place in `work/charters/ENGINEERING.md`. Update `updated:` in the frontmatter. Update the rollup counts and the rollup prose — critical-path reds vs cross-cut reds vs front-end command-rewrite reds.
### Step 3 — Propose the _next_ lever, not a plan
Pick **one** red to drive down. The one where:
- a small amount of written artifact (guide, recipe, command edit) unblocks the highest number of future work items, AND
- the user has evidence they are hitting it (from step 1 signals).
Propose it as a single work item — title, scope, `## Validation` block sketch. Do not create the item (that's `/idea` or the user's call); just offer it.
### Step 4 — Scale the learning
If in the course of evaluation you hit a repeatable mistake or missing guide, **edit the relevant guide/spec/command/AGENTS.md in the same session**. A 3-line pointer edit is the highest-leverage artifact you can produce — it lifts every future agent, not just this one's decision.
## Anti-patterns (avoid these)
- **Summarizing the matrix back unchanged.** If you're not proposing at least one regrade or one artifact edit, you haven't added value.
- **Proposing a plan/phased roadmap.** Specs and projects don't contain roadmaps (`SPEC_NO_EXEC_PLAN`). Propose _the next lever_, not a quarter.
- **Treating agent velocity as the goal.** A PR that bypasses `deploy_verified` is faster-looking but has not actually shipped. Grade the loop, not the commit count.
- **Grading stages you have no signal for.** If the grafana MCP is down, say you can't verify the deploy reds — don't confabulate.
- **Triaging individual work items.** That's `/triage`'s job. If a specific item is blocking this skill's run, note it and move on.
## Output
A short, structured report back to the user:
```
## Engineering Optimizer — <date>
### Signals I pulled
- Git: <merge cadence, revision churn, flight cadence — 1–3 lines>
- Deploy: <candidate-a flights, Loki coverage — 1–3 lines>
- Work items: <deploy_verified leak rate, ## Validation compliance — 1–3 lines>
- Guide churn: <learnings scaled in last 2 weeks — 1 line>
### Matrix regrades (with evidence)
- <stage>: <old> → <new> because <signal>
- ...
### Next lever
<one proposal — title, scope, sketch of ## Validation — not a plan, one move>
### Scaled learnings (edits I made this session)
- <file>: <3-line summary of what the next agent now has that they didn't>
```
Then the in-place edit to `work/charters/ENGINEERING.md` is the durable artifact. The conversational report is ephemeral; the matrix and the guide edits are what lift the fleet.
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!