raven-harden

raven-harden is a command for Claude Code from giggsoinc/raven. It costs 61 tokens per session (926 once invoked), scanned A, original, MIT.

A command for reviewing security observations and turning confirmed patterns into lasting project rules or reusable specialist skills. It is intended as a recurring review of what the project has learned.

In plain words
What is it for?
Use it to review open security observations, add approved rules to project guidance, or promote frequently used specialist profiles.
Why use it?
It prevents useful security findings from remaining only in temporary logs. It also requires a choice before changing permanent project guidance.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md.

Part of the raven plugin — 63 skills, 13 commands, 10 agents, 5 hooks, 1 MCP server shipped together

Good fit Use it to review open security observations, add approved rules to project guidance, or promote frequently used specialist profiles.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/giggsoinc/raven/raven-harden
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.

Clone the repo
git clone --depth 1 https://github.com/giggsoinc/raven

Made for: Claude Code.

Or install raven, the plugin that ships this one along with the rest of its 63 skills, 13 commands, 10 agents, 5 hooks, 1 MCP server.

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 raven-harden

README.md
[![agentmods](https://agentmods.dev/badge/commands/giggsoinc/raven/raven-harden/github.svg)](https://agentmods.dev/commands/giggsoinc/raven/raven-harden)
Your own site
<a href="https://agentmods.dev/commands/giggsoinc/raven/raven-harden"><img src="https://agentmods.dev/badge/commands/giggsoinc/raven/raven-harden/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 raven-harden

Your own site · 80×15
<a href="https://agentmods.dev/commands/giggsoinc/raven/raven-harden"><img src="https://agentmods.dev/badge/commands/giggsoinc/raven/raven-harden.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 926 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00061 $0.00926
Opus 5 $0.00030 $0.00463
Sonnet 5 $0.00012 $0.00185
Haiku 4.5 $0.00006 $0.00093

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

Security

Grade A, and why

raven-harden 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 10d 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.

commands/raven-harden.md · 151 lines

How it starts

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

/raven-harden

Turns session observations into permanent Raven intelligence. Run when prompted by Task-Observer or whenever you want to solidify what's been learned.


Steps

1. Read the Log

Read: docs/observations/security_log.md
Find: all entries with Status: open
Find: all entries with Status: promotion-candidate
Count: total open, total candidates

Report summary before doing anything:

Raven Harden — Review
══════════════════════════════════════
Open observations:      [N]
Promotion candidates:   [N platform(s)]
Last hardened:          [date or never]

Open observations:
  [date] [platform] — [one-line summary]
  ...

Promotion candidates:
  [platform] — used [N] times, [N] log entries
  ...
══════════════════════════════════════
What would you like to do?
  [A] Harden all open observations
  [S] Select which to harden
  [P] Promote candidates to curated skills
  [N] Nothing — just reviewing

Wait for user input before proceeding.


2. Harden Observations → CLAUDE.md

For each approved observation:

Assess where it belongs:

  • Rule that should never be broken → add to CLAUDE.md Non-Negotiable Rules
  • Platform-specific Giggso pattern → add to docs/knowledge/internal_raven_ops.md
  • General engineering pattern → add to docs/knowledge/general_security_patterns.md

CLAUDE.md hardening — append to relevant section:

## Hardened Rules (from observations)

| Date | Rule | Source |
|---|---|---|
| [date] | [rule in one line] | [platform / observation type] |

Mark entry in log:

Status: hardened → [date]

3. Promote Candidates → Curated Skills

For each platform with Status: promotion-candidate:

1. Read all log entries for that platform
2. Read cache: .raven/.cache/dynamic-skills/[platform-slug].md
3. Assemble SKILL.md using accumulated profile

Template for promoted skill:
---
name: [platform]-specialist
description: [generated from log observations]
allowed-tools: Agent, WebSearch, Read, Write
---

# [Platform] Specialist — [Expert Name]

**Expert persona:** [from cache]
**Promoted from:** dynamic-specialist after [N] sessions
**Last updated:** [date]

## Core Focus
[from cache + log]

## Key Rules (from observations)
[all confirmed patterns from log entries]

## Known Gotchas (confirmed in practice)
[gotchas from log entries]

## Agent Chain
Step 1 → check guard agents relevant to this platform
Step 2 → [platform] expertise below
Step 3 → search agent ON DEMAND only

[rest of specialist content from cache profile]

---

4. Write to: core/skills/[platform]-specialist/SKILL.md
5. Mark log entries: Status: promoted → [date]
6. Commit to giggsoinc/raven and push
7. raven-sync automatically distributes to all registered projects

Read the full file on GitHub · 151 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. 10d ago First seen · 151 lines · 61 tokens per session scan A 1c53232d2a96

Subscribe to this mod's changes

raven-harden is a command published in the GitHub repository giggsoinc/raven (5 stars, last pushed 9d ago), licensed MIT. It adds 61 tokens to every session and 926 once invoked, about $0.0003 per session on Opus 5. 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-31.