| name | ask-pro |
|---|---|
| description | Escalate hard engineering questions to ChatGPT Pro through browser automation with focused repo context. Use when an agent needs a stronger external review, architecture plan, migration strategy, production-debugging second opinion, or when the user explicitly asks to use $ask-pro. |
Use $ask-pro to ask ChatGPT Pro for a focused second opinion on hard engineering work.
The calling agent still owns the work. Use Pro for judgment, architecture, risk review, or implementation planning when the decision is consequential enough to justify a browser run.
On a display-less Linux host, install Xvfb (sudo apt install xvfb); ask-pro
manages a private display for headed Chrome queries. Set CHROME_PATH if Chrome
is not discovered. Before the first query, the human logs in on a personal
browser and imports only the session cookies directly through stdin with
--import-session. Give them Linux setup; never ask them to
send cookies to the agent or paste them in chat. A later needs_auth result
includes an import command for the saved profile. Import checks login without
sending a query; after ready, resume the saved session or start the requested query.
Session import transfers login only. When a headless run returns
needs_human_check, ask the user: "ask-pro needs a Cloudflare check clicked:
<check_url>". The human opens the link and clicks the checkbox in the live page.
The page reports when the check clears, without a Done button. Then run the
emitted resume command. Never open or click that real challenge yourself,
capture its frames, or automate its controls. The link expires after 15 minutes;
resume for a fresh link if needed. ASK_PRO_CHECK_HOST overrides the link's
hostname (for example, the server's Tailscale IP); the viewer binds 0.0.0.0.
Use a trusted private network such as Tailscale for this HTTP link.
On a desktop, --login opens Chrome for human sign-in.
This skill folder contains ask-pro itself; nothing else needs installing. In
the commands below, ask-pro stands for:
node <skill-folder>/scripts/ask-pro.mjs<skill-folder> is the directory containing this SKILL.md. Run it from the
target repo root. The first run after an install or update installs
dependencies and builds, which can take a few minutes; wait for it. The CLI's
emitted resume and harvest commands already contain the full launcher path;
run them as printed. Node.js 24+, npm, and Chrome are required.
Use this skill when the user explicitly asks for $ask-pro, or when a second opinion would materially reduce risk for:
- backend architecture
- schema or data migrations
- auth, sessions, permissions, or billing
- queues, workers, idempotency, caching, scaling, or latency
- production debugging and observability
- ambiguous implementation paths where a second opinion would reduce risk
Do not use it for trivial syntax fixes, formatting, obvious dependency updates, or small bugs with a clear cause.
- Long waits are normal. ask-pro can take a super long time to run; do not close or kill the browser window/run until at least 3 hours have passed unless the CLI has completed, failed, or explicitly asks for human action.
When invoked:
- Inspect the repo and the relevant files.
- Identify the exact decision Pro should answer.
- For committed code on GitHub, prefer
--githuband give Pro the repository, ref, relevant paths, and question. Let it retrieve the code instead of assembling a source bundle. Add a small--filesbundle only for uncommitted changes, local-only evidence, or repository content the connection cannot access. - Write the prompt yourself using the Prompt Shape below.
- Run the smallest useful command:
ask-pro --github "<prompt>"for GitHub evidence, orask-pro --no-temporary --files "<glob>" "<prompt>"for a file bundle. For multiline prompts, write a temporary prompt file and useask-pro --no-temporary --prompt-file <path> --files "<glob>"; do not rely on shell multiline quoting. - If auth is required, stop and ask the human to log in in the opened browser.
- Read the CLI's compact
ask_prorecord and run the emittedresumeorharvestcommand when that is the next action. - Treat the answer as advisory; turn it into your own plan before editing code.
ask-pro selects Latest when available, otherwise the highest numbered available
GPT model, then Pro intelligence. Do not require a
different dated model label or a separate thinking-effort control in the prompt
or workflow.
Fresh runs try ChatGPT Temporary Chat by default and automatically fall back to
normal ChatGPT if the current account/UI does not expose Pro there. For repo
advisories, large bundles, review rounds, or anything where recovery matters,
prefer --no-temporary from the start. Add --temporary only when Temporary
Chat is required and falling back would be wrong. Temporary Chat is less
recoverable after browser/tab loss.
On Windows, ordinary managed Chrome runs start minimized. First login, resume/recovery, and stale-auth paths stay visible or are restored for human action. Local managed Chrome guards browser input while Pro is answering. If login, MFA, a browser challenge, or incomplete-answer debugging needs human attention, ask-pro should restore or retain the browser and emit the next action.
Do not set ASK_PRO_AGENT_ID for ordinary or concurrent use; the shared
ask-pro browser profile under ~/.agents/state/ask-pro/ handles concurrent
agents automatically. Set ASK_PRO_AGENT_ID only when explicitly testing an
isolated profile or when the human requests a separate browser login. Use a
stable reusable lowercase id like review-t1, not a one-off task slug, because
each new id creates a new Chrome profile and may require the human to log in
again. Example:
ASK_PRO_AGENT_ID=review-t1 ask-pro ....
Assume Pro has no caller context or local checkout. Include each material fact and instruction once: the goal, current state, hard constraints, evidence, success criteria, and required output. Do not rely on the agent's conversation context, repo folklore, prior ask-pro runs, branch names, or unstated user preferences. Keep advisory design consults as plain answer requests. Start advisory prompts with:
Return final Markdown only, with no preamble or implementation package.
The CLI wrapper already tells Pro to read CONTEXT.zip and call out missing or
conflicting context. Do not repeat that instruction. Add task-specific output
requirements only when needed. For risk or review work, ask Pro to rank
findings by severity. For architecture or design consults, ask directly for the
recommendation and tradeoffs.
Use --artifacts only when the standard implementation package is needed. The
wrapper supplies the zip name, standard files, and markdown fallback; add only
task-specific deliverables not covered by that package. Keep advisory consults
inline by default.
Keep bundles focused: source files under review, focused tests, relevant docs,
known recent changes, and validation status. Avoid whole-repo bundles unless the
question is explicitly architectural.
Prefer --github for remote repository evidence. It checks
the connection before uploading or submitting, and defaults to normal ChatGPT.
Do not require GitHub for file-based consults. Availability varies by account,
workspace, model, and ChatGPT experience.
If the CLI returns needs_github_connection / connect_github_then_resume,
direct the human to the opened GitHub page in ask-pro's browser. They install the
plugin if needed, complete sign-in, review permissions, and select repositories;
organization approval may be needed. Wait for them to finish, then run the
emitted resume command without adding --github. The requirement is saved with
the session and checked again. Do not start a second session or submit through
the browser yourself. Never collect GitHub credentials or automate authorization.
If available, GitHub's Allow read actions permission can avoid read approval
prompts. The human chooses that setting. It controls approval behavior, not the
underlying permissions of a write-capable app; see
app permissions.
The live GitHub plugin advertises write capabilities despite the Help Center's
read-only description. --github requests read-only work; it does not restrict
the provider's permissions or prove that writes are impossible.
If GitHub is already connected, proceed without a setup question or source-file
bundle. For the consult, name the repository (owner/repo), relevant paths, and
requested branch or commit in the prompt. Explicitly ask Pro
to answer the specific question. The wrapper requests the connected GitHub app,
read-only work, citations, the revision inspected, and access gaps. Do not
infer repository access from ChatGPT login or a successful CLI exit.
Keep --files for local/uncommitted changes, non-GitHub evidence, and snapshots
that the app cannot retrieve. Distinguish
uploaded evidence from GitHub evidence, and ask Pro to flag revision conflicts.
If the app or requested revision is unavailable, offer a new consult with a
focused file bundle and
disclose that limitation. Do not silently switch away from Pro. The CLI submits
text; it does not select an app in the composer or handle app approval prompts.
Until a live run demonstrates retrieval, describe this as an available setup
path, not a verified connection. Confirm material claims against the repo.
Normal ask-pro stdout is compact TOON-style telemetry. Use state, action,
resume, and harvest to decide the next command. Browser progress may appear
on stderr and can be ignored unless diagnosing a stuck run.
AWAITING_ANSWERS / answer_questions means Pro is asking native interactive
questions. Read the printed questions/options or QUESTIONS.json, answer from
the caller's context, and ask the human only for decisions you cannot infer.
Write UTF-8 JSON {"requestId":"<request_id>","answers":[2,3,"free text"]}
with one answer per question in order, then run the emitted
ask-pro --resume <session-id> --answers <answers.json> command. Numbers select
1-based choices; strings enter the native free-text field. --answers - accepts
piped JSON. Do not submit defaults or treat the question preamble as the answer.
Repeat for further question rounds, then harvest the final answer normally.
When present, use profile, profile_path, chrome, and language only as
diagnostic hints. They tell you whether the run used the shared profile, an
isolated agent profile, saved DevTools state, and English browser steering.
When present, conversation_url is a recoverable non-temporary ChatGPT
conversation URL.
ask-pro --harvest <session-id> prints the raw markdown answer only for
answer-bearing states such as COMPLETED or HARVESTED.
For pending/incomplete sessions it prints compact status/action instead. For
sessions run with --artifacts, any provided ask-pro-response.zip is
extracted under the session's pro-output/ directory and described in
PRO_OUTPUT_MANIFEST.json. Inline-default sessions should not expect a zip.
INCOMPLETE_ANSWER / stopped_without_answer means ChatGPT stopped without
an answer after ask-pro attempted one automatic continue. Present the caller
with the emitted resume command or a full retry of the original request in a new
chat, and wait for their choice. Do not automatically resume or retry this state.
An explicit --resume allows one more continuation attempt.
COMPLETED means harvest now; the run browser may already be closed. If the
state is INCOMPLETE_ANSWER / preamble_without_artifacts, do not treat
ANSWER.md as final. Try resume/harvest if recoverable; otherwise rerun with
--no-temporary, a tighter bundle, and a more direct prompt.
ask-pro "Review the async billing webhook migration plan and return an implementation plan."
ask-pro --no-temporary --prompt-file question.md --files src --files tests
ask-pro --github "In owner/repo at <commit>, inspect src/auth and explain token validation."
ask-pro --temporary "Review this sensitive migration plan, and fail if Temporary Chat cannot use Pro."
ask-pro --no-temporary "Review this in normal ChatGPT instead of Temporary Chat."
ask-pro --prompt-file question.md --files .\src
ask-pro --artifacts --prompt-file implementation-plan.md --files src
ask-pro --files "src/api/stripe/**" --files "prisma/**" --files "src/lib/billing/**" \
"Review whether this Stripe webhook flow should use a queue or transactional outbox."
ask-pro --dry-run "Prepare the Pro handoff but do not open the browser."
ask-pro --resume <session-id>
ask-pro --harvest <session-id>--files must be inside the target repo. Use repo-relative paths.
Never ask for, read, store, type, or log passwords, MFA codes, recovery codes, session cookies, or raw auth tokens. The human alone may supply session cookies directly to --import-session stdin; do not inspect that input or the resulting profile.
Browser auth is human-controlled. Continue only after the human says the ChatGPT composer is visible.
After submit, avoid interacting with any retained Chrome run window while Pro is thinking. ask-pro guards input after submit, but the safest agent behavior is to let the run finish or resume/harvest from CLI telemetry.