agentleFS
zyphr-labszyphr-labs/bounty-harness/.claude/skills/business-logic/SKILL.md

business-logic

Skill1 starsChanged 3 months agoMITView on GitHub

8 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use open-redirect, nosql-injection and 1 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • yaklangSkill

    open-redirect

    Open redirect playbook. Use when URL parameters, form actions, or JavaScript sinks control navigation targets and may redirect users to attacker-controlled destinations.

    Also in 4 projects that use this

  • yaklangSkill

    nosql-injection

    NoSQL injection playbook. Use when MongoDB-style operators, JSON query objects, flexible search filters, or backend query DSLs may allow data or logic abuse.

    Also in 3 projects that use this

  • VercelSkill

    oauth

    Configure OAuth providers (Google, Apple, Microsoft, Facebook, GitHub, etc.) to work with portless local dev URLs. Use when setting up OAuth redirect URIs, fixing "redirect_uri_mismatch" or "invalid redirect" errors, configuring sign-in providers for local development, or when a provider rejects .localhost subdomains. Triggers include "OAuth not working with portless", "redirect URI mismatch", "Google/Apple/Microsoft sign-in fails locally", "configure OAuth for local dev", or any task involving OAuth callback URLs with portless domains.

    Also in 3 projects that use this

The file

We found no rules to list in this file: it reads as prose or reference rather than instructions.

Files
SKILL.md

Business Logic Testing

Overview

Model application workflows as state machines and test for invalid transitions, race windows, idempotency violations, and invariant breaks. Targets the bugs that scanners never find.

Quick Reference

  • Skill: business-logic
  • Version: 1.0.0
  • Bounded Context: BusinessLogicContext
  • Required tools: python3, curl, jq
  • Risk tier: intrusive (tests state-changing operations)

Workflow Selection

  • Setup: infer-workflows from traffic corpus and domain model.
  • Targeted test: define-workflow manually, then test specific transitions.
  • Broad scan: test-skip-step, test-repeat-step, test-reorder-steps.
  • Race testing: test-race-window, test-idempotency.
  • Value abuse: test-coupon-race, test-refund-after-cancel.

Available Workflows

WorkflowPurpose
infer-workflowsGenerate workflow models from traffic corpus and archetype data.
define-workflowManually define a multi-step workflow for testing.
test-skip-stepTest bypassing required workflow steps.
test-repeat-stepTest re-executing already completed steps.
test-reorder-stepsTest executing steps out of intended order.
test-race-windowTest concurrent requests at sensitive transition points.
test-idempotencyVerify operations handle duplicate requests correctly.
test-coupon-raceTest concurrent coupon/gift-card redemption.
test-refund-after-cancelTest refund trigger after subscription cancellation.
summarize-violationsProduce report of violated invariants.

Evidence Required

  • Workflow model showing intended states and transitions.
  • Request/response trace for each violated invariant.
  • Concurrency evidence for race conditions (timestamps, thread IDs).
  • Persona context for cross-user workflow abuse.

References

  • OWASP WSTG-BUSL-01 through WSTG-BUSL-09
  • OWASP Business Logic Security Cheat Sheet
  • CWE-840: Business Logic Errors
  • PortSwigger Business Logic Vulnerabilities Academy

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.