setup-agent-config

Installation
SKILL.md

Setup LLM Optimization

What This Sets Up

  • SessionStart hook setting AI_AGENT=1, CLAUDECODE=1, and NODE_OPTIONS=--max-old-space-size=8192
  • UserPromptSubmit hook injecting project state (git branch, dirty files, last commit, available scripts, session violations, active config) into every prompt as additionalContext — Claude starts each response knowing the project state without wasting tool calls
  • PreToolUse hook optimizing test commands:
    • Strip --verbose (hard enforcement via updatedInput rewrite — wastes tokens)
    • Suggest --pool=forks (prevents zombie processes)
    • Suggest --bail=1 (fail fast, save tokens)
    • Suggest --teardownTimeout=5000 (prevent hanging teardown)
    • Suggest --reporter=github in CI
    • Jest: suggest --bail --forceExit
  • PostToolUse hook truncating verbose bash output to reduce context bloat

Steps

1. Create hook scripts

Related skills
Installs
2
GitHub Stars
3
First Seen
Apr 3, 2026