fuzz-mind
Use to generate adversarial edge-case test inputs targeting the actual code paths. AI reads the function, finds the assumptions, and writes inputs that violate them. Beats random fuzzing for code with structure.
What this skill does
# fuzz-mind Targeted adversarial test generation. Reads the function, finds implicit assumptions, generates inputs that break them. ## Method 1. **Read the function.** Understand: - Parameter types (declared and implicit) - Branches and what triggers each - External dependencies (file IO, network, time, randomness) - Stated invariants (in comments, types, asserts) - **Unstated invariants** (this is the goldmine — what the code "obviously" assumes) 2. **Mine for assumptions:** - Length: empty, 1-element, max+1 - Numeric: 0, negative, NaN, Infinity, max-int - String: empty, unicode-edge, RTL, very long, control chars - Time: pre-epoch, future, leap second, DST boundaries - Concurrency: parallel calls with same/different inputs - State: called twice, called from inside itself - File: missing, permission-denied, race-deleted mid-read 3. **Generate inputs.** Top 10 most likely to expose bugs. 4. **Write tests.** Each input gets a test with: - Input description - Expected behaviour (defined behaviour, error, or undefined-but-must-not-crash) 5. **Run.** Surface results. Failed tests are findings. ## Output shape ``` Target: <fn signature, file:line> Assumptions found (implicit): - Input string is non-empty - Number is positive integer - File path exists at call time ... Adversarial inputs (top 10): 1. <input> Expected: <error type | graceful return | undefined> 2. ... Test results: ✓ 7 passed (correct behaviour) ✗ 3 failed (real bugs found) Findings: Bug #1: <input> caused <unexpected behaviour> at <file:line> Bug #2: ... ``` ## Rules - **Targeted, not random.** Each input must target a specific assumption, not be random. - **Expected behaviour is explicit.** "Should not crash" is fine for undefined; for defined behaviour, name the expected outcome. - **Real bugs go to `/siftcoder:fix`.** fuzz-mind finds; fix repairs. - **Don't propose "validate input everywhere".** Fix the actual bug, not blanket defence. ## Anti-patterns - Random string fuzzing without targeting structure - Tests that assert "doesn't throw" — too weak; specify the actual contract - Fuzzing private internals (test the public surface) - Generating 10000 inputs when 10 carefully chosen find the bugs ## When NOT to use - Functions with no input variability (constants, pure config) - Code with already-extensive property-based tests - Pre-shipping crunch — fuzz-mind is exploratory ## Subagent dispatch - `Explore` to read the function and callers - `tester` agent for generating the test bodies - `investigator` if a found bug needs deeper diagnosis ## Value over native CC CC will write tests. CC won't naturally focus on adversarial inputs that target unstated invariants. The targeting IS the value — better than 10000 random inputs.
Related in Security
mac-ops
IncludedComprehensive macOS workstation operations — diagnose kernel panics, identify failing drives, audit launchd startup items, decode wake reasons, triage TCC permission denials, manage APFS snapshots, recover from no-boot. Use for: Mac is slow, slow bootup, won't boot, kernel panic, kernel_task hot, mds_stores CPU, photoanalysisd, cloudd, login loop, gray screen, sleep wake failure, drive failing, IO errors, APFS snapshots eating space, Time Machine local snapshots, Spotlight indexing, launchd, LaunchAgent, LaunchDaemon, login items, TCC permissions, Full Disk Access, Screen Recording denied, Gatekeeper, quarantine, com.apple.quarantine, app is damaged, helper tool, /Library/PrivilegedHelperTools, pmset, wake reasons, dark wake, sysdiagnose, panic.ips, DiagnosticReports, configuration profile, MDM profile, remote diagnostics over SSH.
a11y-audit
IncludedRun accessibility audits on web projects combining automated scanning (axe-core, Lighthouse) with WCAG 2.1 AA compliance mapping, manual check guidance, and structured reporting. Output is configurable: markdown report only, markdown plus machine-readable JSON, or markdown plus issue tracker integration. Use this skill whenever the user mentions "accessibility audit", "a11y audit", "WCAG audit", "accessibility check", "compliance scan", or asks to check a web project for accessibility issues. Also trigger when the user wants to verify WCAG conformance or map findings to a specific standard (CAN-ASC-6.2, EN 301 549, ADA/AODA).
erpclaw
IncludedAI-native ERP system with self-extending OS. Full accounting, invoicing, inventory, purchasing, tax, billing, HR, payroll, advanced accounting (ASC 606/842, intercompany, consolidation), and financial reporting. 413 actions across 14 domains, 43 expansion modules. Constitutional guardrails, adversarial audit, schema migration. Double-entry GL, immutable audit trail, US GAAP.
assess
IncludedAssesses and rates quality 0-10 across multiple dimensions (correctness, maintainability, security, performance, testability, simplicity) with pros/cons analysis. Compares against project conventions and prior decisions from memory. Produces structured evaluation reports with actionable improvement suggestions. Use when evaluating code, designs, architectures, or comparing alternative approaches.
spring-boot-security-jwt
IncludedProvides JWT authentication and authorization patterns for Spring Boot 3.5.x covering token generation with JJWT, Bearer/cookie authentication, database/OAuth2 integration, and RBAC/permission-based access control using Spring Security 6.x. Use when implementing authentication or authorization in Spring Boot applications.
code-hardcode-audit
IncludedDetect hardcoded values, magic numbers, and leaked secrets. TRIGGERS - hardcode audit, magic numbers, PLR2004, secret scanning.