{"data":{"slug":"discovered-4163ead8643345994732d030aa3c1415e51e7cfcc700d35a","title":"Controls Test","summary":"Verify every interactive element (button, link, menu item, setting) of a site or app in real Chrome and ensure each has an observable effect; fix every DEAD, BROKEN-LINK, DISABLED-FOREVER, PLACEHOLDER, or UNREACHABLE control until none is left.","url":"https:\/\/skillshunter.net\/skills\/discovered-4163ead8643345994732d030aa3c1415e51e7cfcc700d35a","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-4163ead8643345994732d030aa3c1415e51e7cfcc700d35a","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-4163ead8643345994732d030aa3c1415e51e7cfcc700d35a.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-4163ead8643345994732d030aa3c1415e51e7cfcc700d35a\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Write a test-only `.lilac\/controls-login.json` file with test credentials for apps behind a sign-in, and pass `--credentials <file>` to the tool. Never commit this file, and ensure it only targets the local server. The file must not contain real passwords or reference other hosts.","instructions":"---\nname: controls-test\ndescription: Click, toggle, fill and key-press every button, link, menu item and setting of a site or app in real Chrome and prove each one has an observable effect; fix every DEAD, BROKEN-LINK, DISABLED-FOREVER, PLACEHOLDER and UNREACHABLE control until none is left.\ndisable-model-invocation: false\n---\n# Lilac controls test\n\nThe owner wants no stale or inoperable button, link, menu item or setting in any site or app. This skill proves it, control by control.\n\n## Run\n\n`node \"${CLAUDE_PLUGIN_ROOT}\/scripts\/controls-test.mjs\" \"<project>\"` (add `--site <dir>`, `--json`). It starts its own local server and headless Chrome, sweeps every page and every screen reachable by clicking (tabs, accordions, dialogs, menus), and prints a table per page (control, kind, verdict, detail), totals, an UNVERIFIED list and a last line `controls-test: N controls, D dead, B broken, P placeholder, U unreachable (X% operable)`. If it prints `controls-test: SKIPPED(no browser)`, no Chrome was found: say the sweep was not done (set `CHROME=\/path\/to\/chrome`).\n\nApps behind a sign-in: write a test-only file, e.g. `.lilac\/controls-login.json`: `{\"loginPath\":\"\/login.html\",\"fields\":{\"email\":\"test@example.com\",\"password\":\"<test value>\"},\"submit\":\"button[type=submit]\"}` and pass `--credentials <file>`. Test values only, never a real password; the file is used only against the local server and is refused if it names any other host. Values are redacted from every report. Never commit that file.\n\n## Verdicts and the fix for each (Builder role)\n\n| Verdict | Meaning | Fix |\n|---|---|---|\n| OK | An effect was observed within 1.5 s | none |\n| DEAD | Click, toggle, typing or key press changed nothing observable | Wire the handler, or delete the control. A control that does nothing must not ship |\n| DISABLED-FOREVER | `disabled` and filling the form with valid sample values never enabled it | Make the enabling condition reachable, or remove it; show why it is disabled if it is legitimately off |\n| BROKEN-LINK | 404, `href=\"#\"` or empty, `javascript:` URL, missing anchor target, mailto\/tel malformed or missing an expected subject, non-https `window.open`, `target=_blank` without `rel=\"noopener\"` | Point it at a real target; add `?subject=` to mailto links named quote, order, support and similar |\n| PLACEHOLDER | TODO\/lorem text, or a link to example.com not documented as a SAMPLE | Replace with real content, or mark it `data-sample` and say SAMPLE next to it |\n| UNREACHABLE | Covered by another element, cannot be scrolled into view, or never visible in any reachable screen | Fix the overlay or z-index, or delete the dead markup |\n| TOO-SMALL | Works but is under 24 px (not a failure) | Give it at least 24x24 px, aim for 44 |\n\nExit code 1 means at least one DEAD, BROKEN-LINK, DISABLED-FOREVER, PLACEHOLDER or UNREACHABLE. The `dead` count in the last line includes DISABLED-FOREVER.\n\n## Loop\n\n1. Run it. 2. Fix every failing row in the Builder role, using the detail text (failure screenshots are in `<project>\/.lilac\/controls\/`). Read-only roles (Tester, Reviewer, Security) hand the list to the Builder and do not edit. 3. Re-run until the last line shows `0 dead, 0 broken, 0 placeholder, 0 unreachable`. Never loosen the tool, add a fake handler or hide a control to get a pass.\n\n## How it decides\n\nPer control the page is reloaded first, so a destructive control (delete, reset) cannot hide later ones. A native `confirm()` is cancelled first (the dialog must appear), then confirmed once on a throwaway reload. Clipboard, `window.open`, mailto\/tel and `target=_blank` are intercepted and validated, never executed. Keyboard shortcuts written in the page text (\"press n\", `<kbd>`, ctrl+k) are pressed. Say \"works\" for a control only when a row shows an observed effect.\n\n## Limits (report these as UNVERIFIED, never as a pass)\n\nFile inputs and native pickers, canvas-only controls, controls inside iframes or shadow roots, hover-only, long-press and drag-only controls, external link destinations (not fetched), and mobile-only menus (swept at 1280 px). An effect proves a control is wired, not that it does the right thing; a page whose DOM changes by itself (clock, carousel) only gets URL, focus, dialog, storage, copy and download effects trusted. A human still judges whether each control does what its label says.\n","use_cases":["Ensure all buttons, links, and settings on a web application are functional and do not lead to dead or broken states.","Automate the verification of interactive elements in a site or app using a local server and headless Chrome.","Fix issues such as DEAD, BROKEN-LINK, DISABLED-FOREVER, PLACEHOLDER, or UNREACHABLE controls in a Builder role."],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/DevPatel128\/lilac-plugin\/blob\/7e77aadbd31442412fba6856e43e4a2d8b781a6d\/skills\/controls-test\/SKILL.md","source_commit":"7e77aadbd31442412fba6856e43e4a2d8b781a6d","license":null,"version":null,"listing_approved_at":"2026-11-29","created_at":"2026-11-28T18:57:44.000000Z","updated_at":"2026-11-29T10:53:53.000000Z","seo_title":"Verify Interactive Elements with Controls Test","seo_description":"Run a comprehensive test to ensure every interactive element on a site or app functions correctly and has an observable effect.","seo_keywords":["controls test","interactive element verification","web application testing","headless chrome testing","observable effect validation"]}}