chatgpt-worker — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited chatgpt-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.
Send a prompt to ChatGPT via browser and return the response.
browser-start.js, browser-nav.js, browser-eval.js, browser-screenshot.jsprompt: string # The text to send to ChatGPT
task_type: string # qa | summary | translation | rewrite | extraction | comparison | brainstorming | analysisAlways output this JSON block first:
{
"site": "chatgpt",
"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).
ChatGPT uses ProseMirror as its rich text editor. The real input element is a div.ProseMirror, NOT the <textarea> on the page. The textarea (wcDTda_fallbackTextarea) is a hidden accessibility fallback that React does not monitor for input. Writing to the textarea will never trigger the send button — it will always launch voice mode instead.
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://chatgpt.comTake a screenshot and verify:
If login page appears: return error_reason: "login_required", stop.
ChatGPT's real input is a ProseMirror div, NOT a textarea.
Check:
!!document.querySelector('div.ProseMirror[contenteditable="true"]')Fallback selectors in order:
div.ProseMirror[contenteditable="true"]div[role="textbox"][aria-label="Chat with ChatGPT"]div[contenteditable="true"][role="textbox"]DO NOT use textarea — it is the wrong element.
If no selector works after 3 attempts: trigger retry.
Use execCommand("insertText") — this is the correct method for ProseMirror editors. Do NOT set innerHTML or textContent directly as ProseMirror will not register the change.
(function() {
const input = document.querySelector('div.ProseMirror[contenteditable="true"]')
|| document.querySelector('div[role="textbox"][aria-label="Chat with ChatGPT"]')
|| document.querySelector('div[contenteditable="true"][role="textbox"]');
if (!input) return "NOT_FOUND";
input.focus();
input.innerHTML = "";
const sel = window.getSelection();
const range = document.createRange();
range.selectNodeContents(input);
sel.removeAllRanges();
sel.addRange(range);
document.execCommand("insertText", false, PROMPT_TEXT);
return input.textContent;
})()Verify returned value matches the intended prompt. If mismatch: retry.
Take a screenshot to confirm text appears in the input area.
After Step 4 succeeds, the composer-submit-button-color button will behave as a send button. Click it:
document.querySelector('button.composer-submit-button-color')?.click()After clicking, take a screenshot to confirm:
If the input area is NOT cleared: Step 4 likely wrote to the wrong element. Re-check Step 3 selector and retry from Step 4.
Poll every 3 seconds, maximum 120 seconds total. Do NOT use fixed sleep.
Use response length stability as the primary completion signal:
Response extraction for polling:
(function() {
const msgs = document.querySelectorAll('[data-message-author-role="assistant"]');
if (msgs.length > 0) return msgs[msgs.length - 1].innerText?.trim()?.length || 0;
return 0;
})()If 120 seconds pass with no stable response: trigger retry.
(function() {
const msgs = document.querySelectorAll('[data-message-author-role="assistant"]');
if (msgs.length > 0) {
return msgs[msgs.length - 1].innerText?.trim();
}
const candidates = document.querySelectorAll('[class*="markdown"], [class*="prose"]');
if (candidates.length > 0) {
return candidates[candidates.length - 1].innerText?.trim();
}
return "EXTRACTION_FAILED";
})()Validate the result:
If validation fails: trigger retry.
https://chatgpt.com before retryingstatus: "error" with error_reason explaining which step failedIf a selector stops working:
browser-eval.js to list all [contenteditable] elements: Array.from(document.querySelectorAll('[contenteditable]')).map(e => ({tag: e.tagName, role: e.getAttribute('role'), aria: e.getAttribute('aria-label'), cls: String(e.className).slice(0, 80)}))textarea element — it is always the wrong target{
"site": "chatgpt",
"task_type": "qa",
"status": "success",
"answer": "TEST-CHATGPT",
"retry_count": 0,
"elapsed_ms": 14000,
"error_reason": null
}~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.