Skip to content
Agentmart
Submit a tool

risk-first

Risk-first implementation: hunt the risks before code, settle each with an oracle, pin it with a discriminating check.

Skill by VanTanev

IndexedMIT
Write a review

Chalk Labs

Need help deploying risk-first?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

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/vantanev-risk-first

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

Risk-first implementation: hunt the risks before code, settle each with an oracle, pin it with a discriminating check. Use when implementing a spec, ticket, or feature, or fixing a bug.

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/risk-first

What's inside

Skill name
risk-first
Description
Risk-first implementation: hunt the risks before code, settle each with an oracle, pin it with a discriminating check. Use when implementing a spec, ticket, or feature, or fixing a bug.
License
MIT
Instructions
53 lines in SKILL.md · view on GitHub

Files (2)

  • SKILL.md
  • openai.yaml · agents/

SKILL.md (first lines)

Implement the work in the spec, tickets, or request you were given.

## 1. Hunt the risks

Before you write code, identify risks in the change: a spec line that admits multiple **readings**, or a plausible **mistake** at a place where code goes subtly wrong: a boundary, an ordering or tie, absent versus empty, time and zone, identity, a repeat, a partial failure.
Keep the hunt proportional to the change; a simple edit can have no risks.

For each risk, write down:

- the competing readings, each with the spec line it rests on, or the mistake and the requirement it would violate;
- the **oracle** that settles it. Checks expose ambiguity; they cannot decide intent. The oracle is a spec line, an acceptance criterion, an ADR, a seam profile, a worked example, or a run of the project's verification skill. With no oracle, take one reading as a stated assumption. When the readings lead to materially different work, ask the user. As a subagent, stop before writing code and report the question with its competing readings to your caller;
- one concrete input and its literal result from the oracle or stated assumption, as the intended behavior.

Done when every identified risk has an intended behavior supported by an oracle or stated assumption, and no unresolved ambiguity would materially change the work.

## 2. Build and verify

For a bug fix, attempt to reproduce the existing failure before the fix.
If reproduction is blocked, state the missing conditions and use the available evidence to guide the fix.

Choose and run the smallest checks that can expose each risk through observable behavior: an existing test, a new test, a temporary probe, or a direct use of the feature, by hand or through the project's verification skill.
Keep a permanent test for the chosen interpretation when competing readings would produce different observable results.

For each check, choose a **discriminating input** that distinguishes the intended behavior from the competing reading or mistake.
Derive the expected result from the oracle or stated assumption.
Prefer a **boundary pair**, one input on each side of the boundary, plus the boundary itself, and an **asymmetric** input, where swapped arguments or a reversed comparison give a different answer.

Call the code as its users do, and assert the literal result or effect they see: for a mock, the payload it received; for an absence, also the presence on another input; for a constant, the behavior of the code that reads it.
A test that would still pass if every imported function returned `undefined` or a wrong value discriminates nothing: `toBeDefined`, `toBeTruthy`, `toHaveBeenCalled`, `expect(f(a)).toBe(f(a))`, a restated constant or prompt string, an assertion on data the test built.
Rewrite or delete each such test in the change.

Extend existing property tests when the change affects the behavior they cover.
When a risk generalises into a **relation** that must hold across valid inputs, put it in a property test: extend the one that covers the behavior, or write one.
When writing that property test:

- Construct the valid relationships the behavior needs directly in the generator: related identifiers, ordered times, unequal amounts, valid sequences of actions.
  Preserve those relationships during shrinking.
  Prefer the workspace's existing generator patterns.
- Exercise each class the risk names, and sample generated inputs until each class has appeared.
- State relations and literal **anchors**; restate no production logic.

When a check fails, use its oracle or stated assumption to decide whether the code or the check is wrong.
Cite the basis for any changed expected value.

When implementation reveals a new risk or changes an assumption, update the risk analysis and verify the affected behavior.
Continue until the requested behavior is implemented, every identified risk has its check result or a named gap, and the repository's required checks pass.

## 3. Account

In the report, account for every acceptance criterion and identified risk: the verification evidence, or the gap that remains.
State any assumptions that remain unconfirmed, and any unresolved failure or blocked check.

From VanTanev/skills, MIT.

More from VanTanev/skills

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Oct 14, 2026 (16 days ago)

From GitHub (fetched Oct 24, 2026).

Details

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

More from VanTanev

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get risk-first running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying risk-first?

CallGet help
Cite this page

risk-first skill. Agent Mart. https://agentmart.dev/skills/vantanev-risk-first (last updated 2026-10-24)