Skip to content
Agentmart
Submit a tool

ai-systems-review

Hostile self-review of recently written AI workflow code that then applies fixes (agents, tools, chat context, summarization, tokens, attachments).

Skill by nateslabach

IndexedMIT★ 6
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/nateslabach-ai-systems-review

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Hostile self-review of recently written AI workflow code that then applies fixes (agents, tools, chat context, summarization, tokens, attachments). Use after generating AI systems code, or when asked to self-review and harden it. Not for PR peer review (code-review) or no-edit devil's-advocate attacks (adversarial-challenge). Prefer: adversarial-challenge → decide → this skill.

Use cases: writing, productivity

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/ai-systems-review

What's inside

Skill name
ai-systems-review
Description
Hostile self-review of recently written AI workflow code that then applies fixes (agents, tools, chat context, summarization, tokens, attachments). Use after generating AI systems code, or when asked to self-review and harden it. Not for PR peer review (code-review) or no-edit devil's-advocate attacks (adversarial-challenge). Prefer: adversarial-challenge → decide → this skill.
License
MIT
Instructions
79 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# ai-systems-review

Hostile self-review of **your own** recent AI-powered workflow code, then harden it.
Examples in the process are chat/context-heavy — map each section onto whatever
subsystem actually changed (agents, tools, RAG, streaming, attachments, etc.).

## Not this skill

| This skill | `adversarial-challenge` | `code-review` |
| --- | --- | --- |
| Hostile pass → **edit** top ≤5 | Attack design; **no edits** | Peer PR/diff → **verdict** |

## Operating rules

- Setup: `git status` and `git diff` (staged + unstaged). If the tree is clean, ask which paths to review — do not wander the repo.
- Adapt failure-mode prompts to the changed subsystem; do not force a summarization lens onto unrelated code.
- Model/cost choices on OpenRouter: use the `openrouter` skill for live pricing and capability checks — do not invent slugs or prices.
- After the prioritized list: **edit the working tree** for those ≤5 items. If an item is architectural or large multi-file, propose it and wait. Do not substitute pasteable blocks for real edits.
- Preserve intended behavior; no drive-by refactors outside the list.

## Process

### 0. Setup

- Run `git status` and `git diff` (include staged). Confirm the change set before reviewing.

### 1. High-level review

- Briefly restate what this code is supposed to do.
- Identify the **core design choices** (data models, background processes, token handling, error handling, where logic lives, etc.).
- Call out anything that feels **overly clever, brittle, or tightly coupled**.

### 2. Correctness and robustness

- Look for **bugs, race conditions, and edge cases**:
  - What can go wrong if:
    - The LLM call fails, times out, or returns malformed output?
    - Token estimates are wrong or the conversation grows faster than expected?
    - The server restarts mid–background-task (no queue), or multiple requests hit at once?
    - Tools/agents race, attachments fail validation, or streams abort mid-response?
- For each risk, propose a **specific mitigation** (guard clauses, retries, fallbacks, logging, schema tweaks, etc.).

### 3. Performance and cost

- Evaluate **token usage, model choice, and background work**:
  - Right model(s) for the job (e.g. cheap/mini for summarization)? Verify via `openrouter` when applicable.
  - Unnecessary work (duplicate summarization, re-counting tokens, reloading data, oversized prompts)?
- Suggest **concrete changes** that cut latency/cost **without** sacrificing behavior.

### 4. Architecture and maintainability

- Is logic **modularized** (context/prompt/model services, DB models), or piled into one route file?
- Identify extracts/reuse opportunities.
- Highlight **naming or structure** that will confuse a future engineer (including “future me”).

### 5. API & data flow clarity

- Trace: **request → DB → background work → LLM → response** (adapt stages to the feature).
- Confirm it is easy to reason about and extend (new agents, tools, context strategies).
- Call out spooky/implicit assumptions (messages, attachments, tool results) and propose a clearer pattern.

### 6. Logging, observability, and failure modes

- Logs/metrics for: summarization (or equivalent jobs), token/truncation decisions, background failures, tool/LLM errors.
- Propose **specific log lines** and fields.
- Define **degraded mode**: what if the background job never runs or fails repeatedly?

### 7. Security and data handling

- File handling, blobs, URLs, base64: validate types/sizes; no accidental public URLs.
- Suggest **minimal, practical** hardening only.

### 8. Concrete refactors + apply

- Prioritized list (**max 5**): one-line summary, file(s)/function(s), why it matters.
- **Apply** those improvements in the working tree (see Operating rules).
- End with a short **sanity checklist** for manual app verification.

From nateslabach/skills, MIT.

More from nateslabach/skills

Signals

Stars
6
Forks
0
Open issues
0
Last commit (this folder)
Sep 29, 2026 (29 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from nateslabach

Cite this page

ai-systems-review skill. Agent Mart. https://agentmart.dev/skills/nateslabach-ai-systems-review (last updated 2026-10-24)