phatblat

Optimize Harness — Security skill for Claude Code

Security community

Audit one or all supported agent harnesses for config efficiency, hook overhead, permission friction, plugin and MCP cost, and measured session friction.

How to install Optimize Harness

Installs to ~/.claude/commands/phatblat-dotfiles-optimize-harness.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/phatblat/dotfiles/HEAD/.claude/commands/optimize-harness.md -o ~/.claude/commands/phatblat-dotfiles-optimize-harness.md

Restart Claude Code, or start a new session, for it to be picked up.

What Optimize Harness does


name: optimize-harness description: Audit one or all supported agent harnesses for config efficiency, hook overhead, permission friction, plugin and MCP cost, and measured session friction. argument_hint: "[harness: claude|codex|opencode|pi|omp|antigravity|cursor|grok ...] [focus: config|hooks|permissions|plugins|mcp|context|sessions|friction|all] [since:DAYS]"

Load and follow the shared skill at `~/.agents/skills/optimize-harness/SKILL.md`.

Arguments: $ARGUMENTS

Alternatives in Security

  • Security Guidance — Hook that warns about command injection, XSS, and unsafe patterns 14k ★
  • Security Guardian — Comprehensive security analysis for RTK CLI tool, focusing on command injection, shell escaping, hook security 11.9k ★
  • Reflexion — Audit and optimize the .claude/ ecosystem — skills, hooks, guides, patterns, agents, and settings — for qualit 224 ★

Full documentation available on GitHub

View Source Repository