business-logic

business-logic is a skill for Claude Code from emre-guler/websec. It costs 85 tokens per session (6,221 once invoked), scanned A, original, MIT.

A security review for mistakes in an application’s rules about money, stock, discounts, limits, refunds, benefits, or multi-step actions.

In plain words
What is it for?
Reviewing server-side decisions about prices, quantities, coupons, eligibility, account benefits, and workflow order.
Why use it?
It finds cases where users can send unusual but valid requests that bypass intended rules, such as getting goods without paying or exceeding a limit.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: mentions subagents.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the websec plugin — 36 skills, 2 agents shipped together

Good fit Reviewing server-side decisions about prices, quantities, coupons, eligibility, account benefits, and workflow order.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add emre-guler/websec
Claude Code
/plugin install websec

Made for: Claude Code.

Or install websec, the plugin that ships this one along with the rest of its 36 skills, 2 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for business-logic

README.md
[![agentmods](https://agentmods.dev/badge/skills/emre-guler/websec/business-logic.svg)](https://agentmods.dev/skills/emre-guler/websec/business-logic)
Your own site
<a href="https://agentmods.dev/skills/emre-guler/websec/business-logic"><img src="https://agentmods.dev/badge/skills/emre-guler/websec/business-logic.svg" alt="Measured on agentmods" height="20"></a>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,221 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00085 $0.06221
Opus 5 $0.00043 $0.03111
Sonnet 5 $0.00017 $0.01244
Haiku 4.5 $0.00009 $0.00622

Measured 8d ago against content hash 3caf7f1a40be, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

business-logic scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/business-logic/SKILL.md · 172 lines

How it starts

The opening of the file, as written. The whole thing — 172 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Business Logic Detection

Overview

A business logic flaw is a defect in how the application enforces its own rules, so an attacker can steer it into a state the designers never intended. There is no dangerous API to grep for: the input is well-formed and the code does exactly what it was written to do — the rule it encodes is wrong, incomplete, or enforced in the wrong place. These flaws live in server-side decision logic, after input is parsed and before the state change is committed, wherever the application decides what a request is allowed to do to money, inventory, entitlement, or workflow state. The attacker is an ordinary user, authenticated or not, sending requests the front end would never produce: a negative amount, a removed parameter, a step out of order, an order mutated after a discount was granted. What they gain is goods without paying, value created from nothing, a limit exceeded, or a state they should not occupy. This skill finds such flaws by locating the decision points where a domain rule should be enforced, checking each one in parallel, and merging the results into <output_dir>/business-logic-results.md.

What it is NOT

  • Access control (/websec:access-control): a missing or wrong permission check on a resource or function. Test: if the fix is "check that this caller owns this object / holds this role", it is access control. Here the caller is entitled to use the function; the rule the function encodes is what fails.
  • Race conditions (/websec:race-conditions): if the flaw needs two overlapping requests and disappears when requests are processed one at a time, it is a timing flaw. Test: can you describe an exploit as a single ordinary sequence of requests? If yes, it stays here.
  • Property binding (/websec:api): setting isAdmin or price because the framework auto-binds every body field is mass assignment — the mechanism belongs to /websec:api. Judge here when the field is legitimately accepted but the value is never validated against the domain rule.
  • Injection (/websec:sql-injection, /websec:os-command-injection, /websec:ssti): those need input reaching an interpreter. A logic flaw needs no metacharacters; the payload is semantically abusive, syntactically ordinary.
  • GraphQL operation limits (/websec:graphql): a limit defeated by aliasing or batching many operations into one document is a missing operation limit in the executor and belongs there. Test: would the rule still break under a single plain REST call? If yes it is here; if the abuse needs GraphQL's own batching, it is theirs.
  • Information disclosure (/websec:information-disclosure): a verbose error or debug page is disclosure on its own. It is evidence here only when it reveals a rule that a request can then defeat.
  • Authentication (/websec:authentication): the login, registration, reset and multi-factor state machine is theirs, including a step that can be skipped, reordered, or replayed to arrive at an authenticated state — that skill owns every route to a session that was never legitimately issued. Guessable codes split by what the code stands for: one that substitutes for a credential (reset link, verification code, one-time factor) is theirs; one that carries value but no identity (coupon, referral, gift card, invite) is judged here. Workflow sequencing outside the credential flows — checkout, refunds, approvals — is this skill's.
  • Not a finding: client-side validation that the server also enforces; an odd response or truncated value with no money-, entitlement-, or security-relevant consequence; a rule deliberately relaxed and documented as such in architecture.md; an admin-only tool with no path from an ordinary user.

Read the full file on GitHub · 172 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 172 lines · 85 tokens per session scan A 3caf7f1a40be

Subscribe to this mod's changes

business-logic is a skill published in the GitHub repository emre-guler/websec (2 stars, last pushed 11d ago), licensed MIT. It adds 85 tokens to every session and 6,221 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

chief-financial-officer

Owns the financial position: planning, budgeting, forecasting, unit economics, cash, and the numbers the business is run and reported on. Use this to build or challenge a budget, model a decision's financial consequence, assess unit economics or runway, evaluate an investment or spend request, set financial controls…

cbrock84/headcount · 88 tokens

financial-statement-analysis

Reads a set of financial statements and establishes what changed and why — fluctuation analysis against prior period and against budget, profitability, liquidity, solvency and efficiency ratios, benchmarking, and the non-GAAP measures presented alongside them. Use this to interpret results, review a counterparty's or…

cbrock84/headcount · 93 tokens

revenue-recognition

Determines when and how revenue is recognized — performance obligations, contract terms that change the answer, and the deal structures that create accounting problems. Use this to work out how a contract should be recognized, review a non-standard deal before it is signed, understand deferred revenue, or spot terms…

cbrock84/headcount · 69 tokens

payroll-operations

Runs the pay cycle so it is right, on time, and provable — the calendar and cutoffs, what feeds pay from the HRIS and time systems, gross-to-net and the deductions in it, multi-jurisdiction registration and tax filing, off-cycle payments and corrections, and the reconciliation to the general ledger. Use this to design…

cbrock84/headcount · 104 tokens

mergers-and-acquisitions

Runs corporate development — deal thesis, target screening, valuation framing, diligence, and integration planning. Use this when considering an acquisition or being approached about one, when evaluating build-versus-buy at company scale, when running or reviewing diligence, or when planning how an acquired business…

cbrock84/headcount · 66 tokens

treasury-and-liquidity

Manages cash and liquidity — cash forecasting, runway, working capital, banking structure, and currency and counterparty exposure. Use this to build a cash forecast, extend runway, improve working capital, decide where cash should sit, or assess exposure to a bank, currency, or customer concentration.

cbrock84/headcount · 65 tokens