tweak-controls
Skill8 starsChanged 2 months agoMITView on GitHub
Add temporary floating, draggable controls for tuning UI values live in a running app. Use when the user asks for tweak controls, a tweaks panel, knobs, temporary controls, or an easy way to try UI states and values without repeatedly editing source.
In this repository8 other files it gives its agents.
- agent-skill-inventory-and-consolidationSkill
- bloggerSkill
- copy-to-clipboardSkill
- dialkitSkill
- explain-with-canvasSkill
- pressableSkill
- project-setupSkill
- pr-review-guideSkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 12 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈12
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Create a small temporary control panel inside the target app so the user can adjust the requested values while judging the real rendered UI.
- Distinctive: line 12
Treat phrases such as “I need tweaks for this,” “give me tweak controls,” or “add some knobs” as a request for this panel.
- Distinctive: line 15
Use local component state.
- Distinctive: line 19
Keep the panel consistent across tasks:
- Distinctive: line 22
Use a compact width around 220–280 px, a theme-aware surface, subtle border/elevation, and the app’s existing design tokens.
- Distinctive: line 23
Put a short contextual title in a dedicated drag handle.
- Distinctive: line 28
Keep the implementation isolated in a clearly named temporary component and adjacent styles so it can be removed cleanly.
- Distinctive: line 37
Do not commit or push the panel unless the user explicitly asks.
- Distinctive: line 38
Do not let the panel alter production behavior when it is disabled or removed.
- Distinctive: line 42
Run focused tests, typechecking, linting, and the build needed for the preview.
- Distinctive: line 45
Do not control, click, navigate, reload, inspect, or capture the browser unless the user explicitly asks for browser-based verification.
- Distinctive: line 46
After the user settles on values, apply the selected values to the real implementation and remove the temporary panel before committing …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Tweak Controls
Create a small temporary control panel inside the target app so the user can adjust the requested values while judging the real rendered UI. Keep the product UI itself unchanged apart from responding to the temporary override values.
Interpret the request
- Treat phrases such as “I need tweaks for this,” “give me tweak controls,” or “add some knobs” as a request for this panel.
- Infer the useful controls from the current UI change and conversation. Prefer implementing obvious controls immediately over asking the user to enumerate them.
- Expose the smallest set that makes the design decision easy: exact numeric/text/color inputs where precision matters, a few named presets for important states, and a reset to the real value.
- Use local component state. Do not write tweak values to the backend, account, config, browser storage, or production data unless explicitly requested.
Standard panel
Keep the panel consistent across tasks:
- Float above the app with
position: fixed, a high stacking order, and an initial offset of about 16 px from the top/start edge. - Use a compact width around 220–280 px, a theme-aware surface, subtle border/elevation, and the app’s existing design tokens.
- Put a short contextual title in a dedicated drag handle. Use pointer capture so dragging continues smoothly outside the handle; clamp the panel so its top/start position cannot become negative.
- Stack labeled controls with predictable spacing. Keep buttons and inputs keyboard accessible.
- Include named presets for the key scenarios under discussion. Presets are state shortcuts, not claims about an exact scale unless the product truly has one.
- Apply changes immediately to the actual UI. Do not add an Apply button unless live updating would be unsafe or expensive.
- Include a Reset control when the panel overrides real application data.
- Keep the implementation isolated in a clearly named temporary component and adjacent styles so it can be removed cleanly.
Adapt the implementation to the project’s framework and conventions rather than adding a new UI dependency. Reuse an existing debug-panel pattern when the project already has one.
Temporary activation
The panel is a development aid, not a product feature.
- Choose the simplest activation that works in the user’s actual test build: an existing development flag, a local-only/query-parameter gate, or a temporary unconditional render in the working branch.
- Do not commit or push the panel unless the user explicitly asks. Keep it as an uncommitted testing aid by default, separate from the intended product diff.
- Do not let the panel alter production behavior when it is disabled or removed.
Handoff
- Run focused tests, typechecking, linting, and the build needed for the preview.
- Launch the preview and leave its processes and any existing browser tab intact.
- Tell the user the exact URL, what each control changes, the preset values, and whether the tweak panel remains uncommitted.
- Do not control, click, navigate, reload, inspect, or capture the browser unless the user explicitly asks for browser-based verification.
- After the user settles on values, apply the selected values to the real implementation and remove the temporary panel before committing unless they request otherwise.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

