Agent skill

tuning-panel

Create visual parameter tuning panels for iterative adjustment of animations, layouts, colors, typography, physics, or any numeric/visual values. Use when the user asks to "create a tuning panel", "add parameter controls", "build a debug panel", "tweak parameters visually", "fine-tune values", "dial in the settings", or "adjust parameters interactively". Also triggers on mentions of "leva", "dat.GUI", or "tweakpane".

Stars 3
Forks 1

Install this agent skill to your Project

npx add-skill https://github.com/petekp/agent-skills/tree/main/skills/tuning-panel

SKILL.md

Tuning Panel Skill

Create bespoke parameter tuning panels that give users visual control over values they're iterating on. These panels surface all relevant parameters for the current task, enable real-time adjustment, and export tuned values in an LLM-friendly format.

Core Philosophy

Err on the side of exhaustive. When a user is tuning something, surface every parameter that could reasonably affect the outcome. Missing a parameter forces context-switching; having "too many" parameters costs only scroll distance.

Debug-mode only. Tuning panels should never appear in production. Use environment checks, build flags, or URL parameters.

Export changed values only. LLM exports should show only what was tuned, not all 100+ parameters.

Platform Selection

Platform Library Reference
React Leva (recommended) references/react-leva.md
SwiftUI Native controls references/swiftui.md
Vanilla JS Tweakpane or dat.GUI references/vanilla-js.md

Implementation Workflow

Step 1: Identify All Tunable Parameters

Analyze the code being tuned and extract every parameter that affects the output. See references/parameter-categories.md for exhaustive lists by domain.

Common categories:

  • Animation: duration, delay, easing, spring physics (stiffness, damping, mass)
  • Layout: padding, margin, gap, width, height, position
  • Visual: colors, opacity, shadows, borders, transforms
  • Typography: font size, line height, letter spacing, weight

Discovery strategies:

  1. Search for magic numbers (any hardcoded numeric value)
  2. Look for style objects (CSS-in-JS, inline styles, theme values)
  3. Find animation definitions (Framer Motion, CSS transitions, SwiftUI animations)
  4. Identify color values (hex, RGB, HSL anywhere in the file)
  5. Check component props with numeric or color defaults
  6. Examine CSS custom properties (--var-name declarations)

Step 2: Create Debug-Mode Panel

Wrap the tuning panel so it only appears in development:

  • React: process.env.NODE_ENV === 'development'
  • SwiftUI: #if DEBUG
  • Vanilla JS: URL parameter ?debug or environment check

See platform-specific references for code patterns.

Step 3: Implement Controls

Follow these principles:

  1. Group related parameters using folders/sections
  2. Use appropriate control types: sliders for numbers, color pickers for colors, dropdowns for enums
  3. Set sensible min/max/step values based on the parameter domain
  4. Include presets for common configurations
  5. Add reset buttons to return to defaults

Step 4: Add LLM Export

Critical requirements:

  1. Store defaults at initialization for comparison
  2. Use tolerance for floats (e.g., Math.abs(a - b) > 0.001)
  3. Filter to changed values only - don't show unchanged parameters
  4. Format for readability - group by category, use human-readable names

Export format:

markdown
## Tuned Parameters for [ComponentName]

### Changed Values
- Duration: 300 → 450
- Spring Damping: 0.80 → 0.65
- Corner Radius: 12 → 16

### Apply These Values
Update the component at `src/components/Card.tsx:42` with the values above.

Why this matters:

  • A panel might expose 100+ parameters
  • Exporting all values wastes tokens and obscures what changed
  • The default → current format makes diffs scannable

Additional Resources

Reference Files

  • references/react-leva.md - Complete React/Leva implementation guide
  • references/swiftui.md - SwiftUI native controls and export patterns
  • references/vanilla-js.md - Tweakpane and dat.GUI for plain JS
  • references/parameter-categories.md - Exhaustive parameter lists by domain

Example Files

  • examples/react-leva-animation.tsx - Complete animation tuning panel
  • examples/export-format.md - Full LLM export template

Expand your agent's capabilities with these related and highly-rated skills.

petekp/agent-skills

multi-model-meta-analysis

Synthesize outputs from multiple AI models into a comprehensive, verified assessment. Use when: (1) User pastes feedback/analysis from multiple LLMs (Claude, GPT, Gemini, etc.) about code or a project, (2) User wants to consolidate model outputs into a single reliable document, (3) User needs conflicting model claims resolved against actual source code. This skill verifies model claims against the codebase, resolves contradictions with evidence, and produces a more reliable assessment than any single model.

3 1
Explore
petekp/agent-skills

capture-learning

Analyze recent conversation context and capture learnings to project knowledge files (for project-specific insights) or skills/commands/subagents (for cross-project patterns). Use when the user asks to "capture this learning", "update the docs with this", "remember this for next time", "document this issue", "add this to CLAUDE.md", "save this knowledge", or "update project knowledge". Also triggers after resolving build/setup issues, discovering non-obvious patterns, or completing debugging sessions with valuable insights.

3 1
Explore
petekp/agent-skills

optimize-agent-docs

Build a retrieval-optimized knowledge layer over agent documentation in dotfiles (.claude, .codex, .cursor, .aider). Use when asked to "optimize docs", "improve agent knowledge", "make docs more efficient", or when documentation has accumulated and retrieval feels inefficient. Generates a manifest mapping task-contexts to knowledge chunks, optimizes information density, and creates compiled artifacts for efficient agent consumption.

3 1
Explore
petekp/agent-skills

agent-changelog

Compile an agent-optimized changelog by cross-referencing git history with plans and documentation. Use when asked to "update changelog", "compile history", "document project evolution", or proactively after major milestones, architectural changes, or when stale/deprecated information is detected that could confuse coding agents.

3 1
Explore
petekp/agent-skills

literate-guide

Create a narrative guide to a codebase or feature in the style of Knuth's Literate Programming — code and prose interwoven as a single essay, ordered for human understanding rather than compiler needs. Use when the user asks to 'explain this codebase as a story', 'write a literate guide', 'create a narrative walkthrough', 'tell the story of this code', 'Knuth-style documentation', 'weave a guide for this feature', or when they want deep, readable documentation that treats the program as literature. Also trigger when someone wants a document that a thoughtful reader could follow from start to finish and come away understanding both WHAT the code does and WHY every design choice was made.

3 1
Explore
petekp/agent-skills

autonomous-agent-readiness

Assess a codebase's readiness for autonomous agent development and provide tailored recommendations. Use when asked to evaluate how well a project supports unattended agent execution, assess development practices for agent autonomy, audit infrastructure for agent reliability, or improve a codebase for autonomous agent workflows. Triggers on requests like "assess this project for agent readiness", "how autonomous-ready is this codebase", "evaluate agent infrastructure", or "improve development practices for agents".

3 1
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results