testing-pr-security

A coding agent for testing web applications, reviewing pull requests, and checking security-sensitive code. It uses Vitest, a JavaScript and TypeScript testing tool, with tests run in the project's test environment.

In plain words
What is it for?
Use it to add or update tests, run targeted or full test suites, check type errors and formatting, and review authentication, permissions, parsing, redirects, and other security-sensitive behavior.
Why use it?
It helps catch broken behavior, typing and linting problems, unsafe access rules, and mistakes in server actions or caching before code is merged.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/icoretech/airbroke/testing-pr-security
Clone the repo
git clone --depth 1 https://github.com/icoretech/airbroke
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 438 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.00438
Opus 5 $0.00000 $0.00219
Sonnet 5 $0.00000 $0.00088
Haiku 4.5 $0.00000 $0.00044

Measured 2d ago against content hash b120dff90bf7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

testing-pr-security 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 2d 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.

docs/agents/testing-pr-security.md · 51 lines

What it actually says

Testing, PRs, and Security

Testing Workflow

  • Run tests from the test service, not from web
  • Use targeted runs first during iteration, then widen before closing the task
  • Typical commands:
docker compose -f docker-compose.yml --profile test run --rm test yarn test --run
docker compose -f docker-compose.yml --profile test run --rm test \
  yarn test --run __tests__/lib/projectActions.test.ts
docker compose exec web yarn typecheck
docker compose exec web yarn biome:lint

Vitest Contracts

  • Default environment is jsdom
  • Files that need server-only behavior should declare // @vitest-environment node
  • next/navigation is aliased to __tests__/helpers/nextNavigation.ts for redirect and refresh assertions
  • Coverage includes lib/**/*.ts, app/**/*.ts(x), components/**/*.tsx, and proxy.ts
  • Coverage excludes tests, generated code, and lib/db.ts
  • Test sequencing runs with concurrency 1

What to Test

  • Add or update tests in __tests__/ alongside the touched area
  • Prefer contract coverage around collector parsing, auth restrictions, server actions, and cache or redirect behavior
  • Do not rely only on mocks when a narrow runtime-facing test is practical

Security-Sensitive Areas

  • Treat BETTER_AUTH_SECRET, AIRBROKE_MCP_API_KEY, repo_provider_api_key, and repo_provider_api_secret as sensitive
  • Use redacted fixtures and env values in tests and docs
  • When touching auth, MCP, or collector endpoints, cover both accepted and rejected flows
  • Keep CORS and origin rules explicit when changing /api/v3/*, /api/sentry/*, or /api/mcp

PR and Doc Hygiene

  • Keep README.md, .env.dist, deploy manifests, and UPGRADE.md in sync when changing env vars, runtime commands, auth requirements, or deployment steps
  • Use release-please compatible commit semantics
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. 2d ago First seen · 51 lines · 0 tokens per session scan A b120dff90bf7

Subscribe to this mod's changes

testing-pr-security is an agent published in the GitHub repository icoretech/airbroke (222 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 438 tokens. 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-30.

Related

Other agents, from other repositories

software-engineer

Implements Accepted specs end to end, fixes bugs, and refactors without changing behaviour. Use proactively for new features once the spec is Accepted, domain/Prisma/Server Action changes, and technical approach decisions. Do not use when the request is a problem without a spec — that is product-manager.

krivoox/agent-stack-template · 65 tokens

code-reviewer

Reviews a change against this repository's layer, tenancy, security and testing contracts. Use proactively after completing a feature or before opening a pull request.

krivoox/agent-stack-template · 33 tokens

product-manager

Turns a raw idea or vague request into scoped user stories with acceptance criteria. Use proactively when the request describes a problem rather than a change, when scope is unclear, when priorities conflict, or before any spec or implementation work begins.

krivoox/agent-stack-template · 49 tokens

devops-engineer

Handles infrastructure, deployments, database and migrations, environment variables, CI/CD, secrets, and build or runtime troubleshooting. Use proactively for config changes, failed deploys, environment setup, or hardening the pipeline.

krivoox/agent-stack-template · 47 tokens

domain-architect

Designs domain rules, invariants and pure function contracts before implementation. Use proactively for new features with non-trivial rules, ambiguous or conflicting requirements, calculations and state machines, inconsistencies between a spec and the code, or when deciding what belongs in domain versus services.

krivoox/agent-stack-template · 58 tokens

ui-ux-developer

Designs and builds product interfaces — screens, layouts, forms, sheets, tables, dashboards, empty and error states. Use proactively when creating or refining any user-facing surface, or auditing an existing one.

krivoox/agent-stack-template · 47 tokens