Optimize Harness — Security skill for Claude Code
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
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 ★
- ThinkWatch — Self-hosted AI API and MCP gateway for organizations: SSO and RBAC, per-user identity for MCP tool calls, PII 817 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
AI Spend
Audit Claude Code token efficiency: MCP overhead, session patterns, skill cost, cache hit rate. Add --full for
Auth Security UX Specialist
Use when a login or security flow feels either unsafe or full of friction. Signup, password reset, 2FA and pas
Mine Permissions Audit
Analyze frequent permission prompts and recommend allow-list entries to reduce friction.
Reflexion
Audit and optimize the .claude/ ecosystem — skills, hooks, guides, patterns, agents, and settings — for qualit
Optimizing Skills Performance
Audit and optimize AI agent skills for token efficiency using progressive disclosure principles
Audit Harnesses
Audit AI Harness Consistency
Related Agents
Efficiency Advisor
Efficiency Advisor on the Master's Consultant Panel. Views every decision through the lens of simplicity, reso
Harness Radar
Weekly movement briefing on the AI agent harness space — what climbed, what entered the radar, what died — fro
Harness Architect
Expert in designing and building agent harnesses — agent/skill/tool decomposition, subagent teams, hooks, MCP