setup-agent-config

Community

Token-efficient agent hooks for Claude Code.

Authormalinskibeniamin
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Claude-based agent workflows often bloat prompts and context with verbose tooling traces, tests, and environment noise. This Skill provides a compact, repeatable setup to minimize token usage and ensure stable performance by configuring session-wide hooks and lean test flags.

Core Features & Use Cases

  • Session optimization: automatically enables AI_AGENT=1, CLAUDECODE=1, and NODE_OPTIONS=--max-old-space-size=8192 to reduce token waste and improve tooling traces.
  • Prompt-context injection: injects project state (git branch, dirty state, scripts, violations, and config) into prompts to inform Claude without extra tool calls.
  • Tooling efficiency: reduces verbose test outputs and truncates long results for compact context in PreToolUse and PostToolUse.

Quick Start

Copy scripts/llm-env.sh, scripts/llm-test-flags.sh, and scripts/llm-truncate.sh into .claude/hooks/ and chmod +x, then configure in .claude/settings.json: SessionStart -> llm-env.sh, PreToolUse (Bash) -> llm-test-flags.sh, PostToolUse (Bash) -> llm-truncate.sh.

Dependency Matrix

Required Modules

jq

Components

scriptsreferences

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: setup-agent-config
Download link: https://github.com/malinskibeniamin/skills/archive/main.zip#setup-agent-config

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.