{"data":{"slug":"discovered-0033a9a930dc287abd071e56a100c7b1816d7c1ceda77c5a","title":"Nj Agent Halo","summary":"Apply a colored halo to windows opened by NJ-QA, identifying the agent type and name at the top of the window. The halo is cosmetic and does not affect clicks, page text, or screenshots.","url":"https:\/\/skillshunter.net\/skills\/discovered-0033a9a930dc287abd071e56a100c7b1816d7c1ceda77c5a","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-0033a9a930dc287abd071e56a100c7b1816d7c1ceda77c5a","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-0033a9a930dc287abd071e56a100c7b1816d7c1ceda77c5a.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-0033a9a930dc287abd071e56a100c7b1816d7c1ceda77c5a\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"To use the halo, ensure the window is opened by NJ-QA and the `halo.js` script is installed. The halo is applied automatically by `halo_keeper.js` for windows in the NJ-QA registry. For manual application, use `installHalo(context, page, 'role', 'name')` in a Playwright script or call `halo.js` via `browser_run_code_unsafe` in the Playwright MCP.","instructions":"---\nname: nj-agent-halo\ndescription: \"Only windows opened by NJ-QA carry the halo, a coloured edge and the crew member's type at the top, so a person can tell them apart. No other window gets one. Use whenever an NJ-QA agent opens a headed browser through Playwright, a script or the Playwright MCP. Cosmetic: no effect on clicks, page text or screenshots.\"\n---\n\n# Agent halo: which agent owns this window\n\n**Only windows opened by NJ-QA carry the halo. No other window gets one.** The style is the dusk ribbon with a light outline and dark keyline (Nader, 2026-11-13).\n\n| Agent | Name (EN \/ AR) | Halo key | Colour |\n|---|---|---|---|\n| Scavenger | Kashif \/ \u0643\u0627\u0634\u0641 | `scavenger` | \ud83d\udd35 blue `#38B6FF` |\n| Tester | Burhan \/ \u0628\u0631\u0647\u0627\u0646 | `tester` | \ud83d\udfe0 orange `#FF8A1F` |\n| Leader | Bonanza \/ \u0628\u0648\u0646\u0627\u0646\u0632\u0627 | `leader` | \ud83d\udfe2 green `#2EDB82` |\n| Director | Farid \/ \u0641\u0631\u064a\u062f | `director` | \ud83d\udd34 red `#FF4D4D` |\n| Harvester | Rasid \/ \u0631\u0627\u0635\u062f | `harvester` | \ud83d\udfe3 purple `#B87CFF` |\n| Batch Monitor | Nader \/ \u0646\u0627\u062f\u0631 | `monitor` | \ud83e\ude75 teal `#17D4C0` |\n| Evidence judge | Adil \/ \u0639\u0627\u062f\u0644 | `judge` | \ud83d\udfe1 gold `#FFE23A` |\n| Scribe | Katib \/ \u0643\u0627\u062a\u0628 | `scribe` | \ud83d\udd37 indigo `#4046EE` |\n| Regression keeper | Hafiz \/ \u062d\u0627\u0641\u0638 | `regression` | \ud83d\udfe3 magenta `#EE3FDA` |\n| Test-data keeper | Amin \/ \u0623\u0645\u064a\u0646 | `data` | \ud83e\uded2 olive `#B5E61D` |\n| Awn \/ \u0639\u0648\u0646 | | none | no halo |\n\nThe hues come from NJ-QA's `brand\/palette.md` and live in `scripts\/halo.js` (`COLOURS`). A role outside the crew draws nothing, and a name change never changes a key. Each crew member's clay face is in `faces\/<key>.webp`.\n\n## The look: one switch\n\n`STYLE` in `scripts\/halo.js` picks one of three directions (`a` lit glow edge with the face in a glass tab, `b` corner tab badge, `c` dusk ribbon with an outline). `c` is the default. Every direction stays at the window edge (rim at most 28 px deep, label at most 28 px tall), uses Thmanyah when installed, and is `pointer-events:none`. `NJ_QA_HALO_STYLE=a|b|c` overrides it for one run.\n\n## The text\n\n`TYPE: name`. **TYPE** is capitals, bold. The name, as in the agent map, is small letters, not bold, except codes such as PROJ-5494, which stay in capitals: **TESTER:** tester-r1 PROJ-4285.\n\n## It is automatic (the keeper)\n\n`scripts\/halo_keeper.js` redraws the halo from outside on the windows NJ-QA launched, so it comes back within about 2 seconds after a page loads. Which windows: only those in the registry NJ-QA's engine writes when it starts a Chrome (`<dir>\/<pid>.json`: pid, port, profile, role, name; `<dir>` is `$NJQA_HALO_DIR`, else `njqa-halo` in the system temp folder). A Chrome that is not in the registry, such as your everyday Chrome or another tool's, never gets one, so without NJ-QA the skill draws nothing.\n\nNJ-QA's engine starts the keeper itself (`halo_keeper.js --ensure`); there is no machine hook. It ends by itself about 20 seconds after the last NJ-QA window is gone. Runs a person starts stay plain.\n\nThe Playwright MCP's browser has no debugging port, so inside an NJ-QA run it needs the manual call below; outside NJ-QA, don't add one.\n\n## How to apply it by hand\n\n**A Playwright script** (Node), right after creating the context and page:\n\n```js\nconst { installHalo } = require('<plugin>\/skills\/nj-agent-halo\/scripts\/halo.js');\nawait installHalo(context, page, 'tester', 'tester-r1 PROJ-4285'); \/\/ type, agent-map name\n```\n\nThese can also come from the environment: `NJ_QA_ROLE=tester AGENT_NAME=\"tester-r1 PROJ-4285\"`. Without a name it does nothing, so a person's own runs stay plain.\n\n**The Playwright MCP:** call `browser_run_code_unsafe` once, right after the first navigation, with the code `printCode` prints:\n\n```bash\nnode <plugin>\/skills\/nj-agent-halo\/scripts\/halo.js tester \"tester-r1 PROJ-4285\"\n```\n\n## Evidence\n\nEvery capture method is allowed; use whichever suits the job (owner, 2026-11-09).\n\n| Capture | Halo in the result |\n|---|---|\n| `page.screenshot`, `locator.screenshot`, helpers built on them such as `shotOf` | Hidden automatically |\n| Page text, DOM queries, text scans | Never included |\n| A script's own `page.screenshot` when it doesn't use `freshWindow`, Playwright MCP screenshot, raw CDP capture, video, OS screen capture | Visible, and that's fine |\n\nWhy it can't disturb anything: clicks pass through (`pointer-events: none`), its text sits in a closed shadow root that page queries and text scans never see, and any failure to draw is swallowed.\n","use_cases":["Identify which NJ-QA agent owns a browser window during testing or automation","Distinguish between different agent roles (e.g., Tester, Leader) in a multi-agent environment"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/NJ-Burrito\/NJ-Kit\/blob\/2644ffdccb94c9eb0a65b23624abe9795e005faa\/nj-plugin\/skills\/nj-agent-halo\/SKILL.md","source_commit":"2644ffdccb94c9eb0a65b23624abe9795e005faa","license":null,"version":null,"listing_approved_at":"2026-11-29","created_at":"2026-11-28T18:51:32.000000Z","updated_at":"2026-11-29T10:53:39.000000Z","seo_title":"NJ-QA Agent Halo Identification","seo_description":"Apply a colored halo to NJ-QA agent windows for visual identification. The halo is cosmetic and does not interfere with browser functionality.","seo_keywords":["NJ-QA agent halo","agent window identification","cosmetic browser overlay","NJ-QA Playwright automation","agent role visualization"]}}