DQIII8: Skill for Claude Code

.claude/skills/blue-team/SKILL.md

blue-team is a skill for Claude Code from senda-labs/DQIII8. It costs 41 tokens per session (784 once invoked), scanned A, original, MIT.

A defensive security guide that applies fixes based on findings from a red-team report. Red-team findings are documented attempts to identify weaknesses in software.

In plain words
What is it for?
Use it to address vulnerabilities such as injection, unsafe permissions, exposed secrets, authentication gaps, and debug output.
Why use it?
It turns a security review into a prioritized set of code and configuration changes, then checks the fixes.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

This is senda-labs/DQIII8's own configuration. It tells Claude Code how to work on DQIII8 itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything DQIII8 configures →

Part of the dqiii8 plugin — 22 skills, 14 commands, 17 agents shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to senda-labs/DQIII8. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/senda-labs/DQIII8/main/.claude/skills/blue-team/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/senda-labs/DQIII8

Made for: Claude Code.

Or install dqiii8, the plugin that ships this one along with the rest of its 22 skills, 14 commands, 17 agents.

Wrote 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.

agentmods badge for blue-team

README.md
[![agentmods](https://agentmods.dev/badge/skills/senda-labs/dqiii8/blue-team/github.svg)](https://agentmods.dev/skills/senda-labs/dqiii8/blue-team)
Your own site
<a href="https://agentmods.dev/skills/senda-labs/dqiii8/blue-team"><img src="https://agentmods.dev/badge/skills/senda-labs/dqiii8/blue-team/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for blue-team

Your own site · 80×15
<a href="https://agentmods.dev/skills/senda-labs/dqiii8/blue-team"><img src="https://agentmods.dev/badge/skills/senda-labs/dqiii8/blue-team.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 784 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00041 $0.00784
Opus 5 $0.00020 $0.00392
Sonnet 5 $0.00008 $0.00157
Haiku 4.5 $0.00004 $0.00078

Measured 11d ago against content hash 672e69f570f1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

blue-team scanned grade A with 1 finding 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 11d 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.

Asks for rootlowPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

| File permissions | `chmod 600` on `.env`, `.db`, `.pem`, `.key` files |

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

.claude/skills/blue-team/SKILL.md · 102 lines

How it starts

The opening of the file, as written. The whole thing — 102 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/blue-team — Defensive Security Hardening

Read the latest red-team report and systematically fix every finding.

Usage

/blue-team                          # Fix all findings from latest report
/blue-team $ARGUMENTS               # Fix specific finding (e.g. RT-001)

Pipeline

Step 1: Load latest red-team report

ls -t tasks/audit/red-team-*.md | head -1

Read and parse all findings.

Step 2: Prioritize fixes

Order: CRITICAL → HIGH → MEDIUM → LOW

Within same severity: kill chain findings first (they have multiplied impact).

Step 3: For each finding, apply fix pattern

Finding type Fix pattern
SQL injection Replace f-strings with parameterized queries (?)
Command injection Use shlex.quote() on user input, whitelist commands
Path traversal Use pathlib.resolve() + check prefix matches allowed dir
XSS Escape HTML output with html.escape() or template engine
Auth bypass Add auth decorator/middleware to unprotected routes
Hardcoded secrets Move to .env, use os.environ.get()
Debug exposure Remove print(error), use logging with appropriate level
File permissions chmod 600 on .env, .db, .pem, .key files
Missing validation Add type checks, range checks, sanitization
Dependency vuln pip install --upgrade {package}
Vibe-coding pattern Rewrite the specific pattern with secure alternative

Step 4: Verify each fix

After applying a fix:

  1. Run the original proof-of-concept from the red-team report
  2. It should now FAIL (vulnerability patched)
  3. Run tests to ensure the fix didn't break functionality
  4. Document: "Finding RT-XXX: PATCHED, verified, tests pass"
python3 -m pytest tests/ -q

Step 5: Generate blue-team report

Generate: tasks/audit/blue-team-{date}.md

# Blue Team Report — {date}
Source: {red-team report filename}

## Fixes Applied
| ID | Finding | Severity | Fix | Verified | Tests |
|----|---------|----------|-----|----------|-------|
| RT-001 | SQL injection in db.py | CRITICAL | Parameterized queries | ✅ | ✅ |
| RT-002 | .env readable | HIGH | chmod 600 | ✅ | N/A |

## Kill Chains Broken
### Kill Chain 1: {name}
- Step broken at: {step N}
- Fix applied: {description}
- Chain now terminates at: {safe state}

## Remaining Risks
{Any findings that could not be fully fixed, with justification}

## Security Score
Before: {red-team score}/100
After: {blue-team score}/100
Improvement: +{delta} points

Read the full file on GitHub · 102 lines

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. 11d ago First seen · 102 lines · 41 tokens per session scan A 672e69f570f1

Subscribe to this mod's changes

blue-team is a skill published in the GitHub repository senda-labs/DQIII8 (11 stars, last pushed 23d ago), licensed MIT. It adds 41 tokens to every session and 784 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.