grok-worker — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited grok-worker (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
When passing JavaScript to browser-eval.js, always use double quotes for the outer shell argument and single quotes inside the JavaScript. Example: browser-eval.js "document.querySelector('.class')?.innerText"
Send a prompt to Grok via browser and return the response.
browser-start.js, browser-nav.js, browser-eval.js, browser-screenshot.jsprompt: string # The text to send to Grok
task_type: string # qa | summary | translation | rewrite | extraction | comparison | brainstorming | analysisAlways output this JSON block first:
{
"site": "grok",
"task_type": "<task_type>",
"status": "success | partial | error",
"answer": "<extracted response text>",
"retry_count": 0,
"elapsed_ms": 0,
"error_reason": null
}Then follow with a short human-readable summary (2–3 sentences max).
node ~/.pi/agent/skills/local-browser-tools/browser-start.jsExpected: ✓ Chrome already running on :9222 or ✓ Chrome started on :9222
If fails: return error status, stop.
node ~/.pi/agent/skills/local-browser-tools/browser-nav.js https://grok.comTake a screenshot and verify:
If login page appears with no input box: return error_reason: "login_required", stop.
Grok uses a div[contenteditable] with role="textbox" and aria-label="Ask Grok anything".
Check:
!!document.querySelector('[aria-label="Ask Grok anything"]')Fallback selectors in order:
[aria-label="Ask Grok anything"][contenteditable="true"][role="textbox"]div[contenteditable]If no selector works after 3 attempts: trigger retry.
(function() {
const input = document.querySelector('[aria-label="Ask Grok anything"]')
|| document.querySelector('[contenteditable="true"][role="textbox"]')
|| document.querySelector('div[contenteditable]');
if (!input) return "NOT_FOUND";
input.focus();
input.textContent = "";
input.textContent = PROMPT_TEXT;
input.dispatchEvent(new Event("input", { bubbles: true }));
return input.textContent;
})()Verify returned value matches the intended prompt. If mismatch: retry.
Take a screenshot to confirm text appears in the input box.
Grok has no send button with aria-label. Use Enter key to send:
document.querySelector('[aria-label="Ask Grok anything"]')
?.dispatchEvent(new KeyboardEvent("keydown", { key: "Enter", bubbles: true, cancelable: true }))After sending, take a screenshot to confirm the message bubble appears in the chat.
Poll every 3 seconds, maximum 120 seconds total. Do NOT use fixed sleep.
Spinner selectors are unreliable. Use response length stability as the primary completion signal:
Response extraction for polling:
``javascript (function() { const els = document.querySelectorAll('.response-content-markdown'); if (els.length > 0) return els[els.length - 1].innerText?.trim()?.length || 0; return 0; })() ``
If 120 seconds pass with no stable response: trigger retry.
``javascript (function() { const els = document.querySelectorAll('.response-content-markdown'); if (els.length > 0) return els[els.length - 1].innerText?.trim(); return "EXTRACTION_FAILED"; })() ``
Validate the result:
If validation fails: trigger retry.
https://grok.com before retryingstatus: "error" with error_reason explaining which step failedIf a selector stops working:
browser-eval.js to list all [contenteditable] and button and [role="button"] elementsaria-label, role, placeholder, or visible text{
"site": "grok",
"task_type": "qa",
"status": "success",
"answer": "Here is the latest news...",
"retry_count": 0,
"elapsed_ms": 22000,
"error_reason": null
}~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.