Skip to content
Agentmart
Submit a tool

red-team-data-model

Attack a proposed or existing data model for the ways it breaks under real conditions — concurrency, time windows, money, permissions — without proposing a…

Skill by jesdi

IndexedMIT
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/jesdi-red-team-data-model

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

Attack a proposed or existing data model for the ways it breaks under real conditions — concurrency, time windows, money, permissions — without proposing a redesign. Use right after sketching a data model, before writing the spec, so the top failure scenarios shape the spec's requirements and tests instead of getting discovered mid-build. Trigger on "red-team my data model", "what breaks in this schema", or "/red-team".

Use cases: data, writing

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. 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/red-team-data-model

What's inside

Skill name
red-team-data-model
Description
Attack a proposed or existing data model for the ways it breaks under real conditions — concurrency, time windows, money, permissions — without proposing a redesign. Use right after sketching a data model, before writing the spec, so the top failure scenarios shape the spec's requirements and tests instead of getting discovered mid-build. Trigger on "red-team my data model", "what breaks in this schema", or "/red-team".
License
MIT
Instructions
60 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Red-team the data model

## Rule

Don't improve or redesign. Attack it. The output is a list of ways it fails, not a fix.

## Prompt

Given the tables/fields (from `design.md` or a sketch), produce:

**Top 5 failure scenarios**, ranked worst-consequence-first. Each one:

- **Table/field** — exactly which part of the model is implicated.
- **Scenario** — the concrete sequence of events that breaks it (two users, two
  requests, a clock, a race — be specific, not "concurrency issues could
  occur").
- **Consequence** — what actually goes wrong in business terms (double-sold
  stock, a refund that never happens, a stranger seeing another customer's
  order, money debited twice).

## Focus areas, in this order

1. **Concurrency** — two actors racing the same row (two checkouts, one unit
   of stock; two edits, one record).
2. **Time windows** — expiry, deadlines, "usually ready within X", reminder
   timing, what happens exactly at the boundary and one tick after it.
3. **Money** — partial payments, refund correctness, rounding, double-charge
   on retry, what happens if a webhook never arrives.
4. **Permissions** — who can see or mutate what; staff vs. customer vs. owner
   boundaries; what an authenticated-but-wrong-role request can still reach.

## Identity inventory (when the change widens a key)

When the change widens an identity or key space (`issue` becomes
`target#issue`, `user` becomes `tenant+user`), the top 5 is not enough: one
missed identity is a cross-tenant bug. After the top 5, grep the code for every
identity built from the old key and list each one as **covered** (the design
rekeys it) or **out of scope** (with the reason). Look for:

- file and directory names (`task-{N}.json`, `messages/{issue}.jsonl`),
  including legacy files a save or migration retires;
- hashes, fingerprints and dedupe keys;
- cache keys, lock names, markers, dict and set keys;
- command and URL arguments that take the bare key (`/attach N`);
- log and event fields other code reads back.

This list is exhaustive, not ranked. It is not a fix: say what is keyed by
the old identity, not how to rekey it.

## What NOT to do

- Don't suggest schema changes, indexes, or constraints — that's the design
  session's job, after this list exists.
- Don't hedge with "it depends" — pick the worst plausible interpretation and
  state its consequence.
- Don't produce more than 5 failure scenarios. Rank and cut; the top failure
  matters more than a complete list. (The identity inventory is the one
  exhaustive list.)

From jesdi/general-skills, MIT.

More from jesdi/general-skills

Signals

Stars
0
Forks
0
Open issues
23
Last commit (this folder)
Sep 24, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

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

More from jesdi

Cite this page

red-team-data-model skill. Agent Mart. https://agentmart.dev/skills/jesdi-red-team-data-model (last updated 2026-10-24)