redpanda-data/ui-harness · Archived

setup-agent-config

Token-efficient AI agent hooks -- env vars, test flag optimization, output truncation, NODE_OPTIONS. Use when optimizing Claude Code for fewer tokens or reducing context waste.

First seen May 20, 2026

Installation

$ npx skills add redpanda-data/ui-harness --skill setup-agent-config

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from redpanda-data/ui-harness · top by installs.

npx skills add redpanda-data/ui-harness

Browse all from redpanda-data/ui-harness

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 34
License LICENSE
Default branch main
Open issues 0
Status Archived

Skill metadata

Parsed from SKILL.md frontmatter.

Declared agents claude-code

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,235 B
  • docs SUMMARY.md 202 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 2 installs

SKILL.md

Setup LLM Optimization

What This Sets Up

  • SessionStart: AIAGENT=1, CLAUDECODE=1, NODEOPTIONS=--max-old-space-size=8192
  • UserPromptSubmit: inject project state (git branch, dirty files, scripts, violations, config) -> Claude know state, no tool calls
  • PreToolUse (Bash): optimize vitest commands -- strip --verbose, suggest --pool=forks, --bail=1, --teardownTimeout=5000. Also handle jest/bun test (back-compat)
  • PostToolUse (Bash): truncate verbose output, cut context bloat

Steps

  1. Copy scripts/llm-env.sh, scripts/llm-test-flags.sh, scripts/llm-truncate.sh -> .claude/hooks/. chmod +x.
  2. Configure in .claude/settings.json:

- SessionStart: llm-env.sh - PreToolUse (Bash): llm-test-flags.sh - PostToolUse (Bash): llm-truncate.sh

Verify

  • AI_AGENT/CLAUDECODE set after session start
  • vitest --verbose rewrite to vitest
  • Long output truncated

See [REFERENCE.md](REFERENCE.md) for vitest config optimizations.