Index of every page on this site: llms.txt
All skills
h3xar0n avatar

/security-test-writer

@b1b34c0
Run it yourself

Authors test-first unit and integration tests covering functional behavior, edge cases, and security boundaries in Phase B RED. Use when creating failing automated tests before writing production code, asserting HTTP status codes and contract responses, establishing boundary limits, or asserting that exploit payloads are rejected cleanly. Do not use for threat modeling during initial planning, writing production feature code, or running refactor sweeps.

  • 1 file
  • 2.7 KB
  • Updated 2 months ago
  • GitHub
Use this Skill: https://skilld.dev/gh/h3xar0n/secure-tdd-agent-framework/security-test-writer

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈120 tokens for metadata: the name and description. ≈567 when used: this file.

Description uses 6.0% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈480 characters, or 6.0%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

QA & Security Test Writer Skill (Phase B: RED Phase)

Overview

Translate functional requirements and security criteria from threat_model.md and CONTEXT.md into executable test cases that fail initially (RED), asserting expected business logic, edge-case handling, and security boundaries before production code is authored.

Three Verification Pillars

  1. Behavior-Driven Outcomes:
    • Assert strictly on API/HTTP outcomes (status codes 200/302 for valid requests, 400/401/403 for invalid/unauthorized, expected JSON responses) rather than mocking internal private methods.
  2. Strict Test Isolation:
    • Ensure test setup and teardown cleanly isolate state (e.g., transaction rollbacks, fresh test contexts) so state never bleeds between test runs.
  3. Integration Over Fragile Mocking:
    • Utilize local test databases or real server contexts rather than fragile fake mocks to verify realistic functional and security behavior.

Execution Sequence

  1. Consume Requirements & Threat Model: Read the task scope, threat_model.md, and CONTEXT.md for functional requirements and security acceptance criteria.
  2. Author Test Cases:
    • Functional Happy Path: Test validating standard user workflows and expected output payloads.
    • Functional Edge Cases: Test missing optional/required parameters, boundary limits, and unexpected data types.
    • Authentication Boundary: Assert requests without valid credentials return 401 Unauthorized.
    • Authorization Boundary: Assert requests with insufficient role/scope return 403 Forbidden.
    • Input Validation: Assert malformed, oversized, or un-whitelisted data returns 400 Bad Request.
    • Exploit Payloads: Assert dangerous inputs (SQLi, path traversal ../../, XSS) are rejected cleanly.
  3. Execute & Verify RED:
    • Run the project's test command (e.g., pytest, python3 -m unittest discover -s tests).
    • Requirement: Confirm the tests fail due to the expected missing feature logic/boundary assertion and not due to a syntax or import error.
  4. Multi-Finding Handling:
    • When remediating multiple scanner findings, write and verify one boundary test for one finding at a time before proceeding to defensive implementation.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at b1b34c0. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 weeks ago.

Activeupdated 2 months ago

README badge

README badge for h3xar0n/secure-tdd-agent-framework/security-test-writer