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.
/plugin marketplace add emre-guler/websec/plugin install websecWrote 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.
[](https://agentmods.dev/skills/emre-guler/websec/business-logic)<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>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.
| Model | Per session | Once 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 |
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.
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): settingisAdminorpricebecause 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.
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.
- 8d ago First seen · 172 lines · 85 tokens per session scan A 3caf7f1a40be
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.
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…
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…
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…
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…
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…
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.