Using ask-question CLI

Community

Query ChatGPT from the CLI with headless browser.

Authorjohnnymo87
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill automates querying ChatGPT from the command line by driving a headless Playwright browser session. It eliminates the friction of switching to a browser for quick prompts and enables integration with Claude's /ask-question slash command.

Core Features & Use Cases

  • Headless CLI access: Run prompts from the terminal without opening a visible browser.
  • Slash Command Integration: Seamlessly connect with Claude's /ask-question workflow to draft and submit prompts.
  • Deterministic Interactions: Maintain a session for faster responses and repeatable results across prompts.

Quick Start

Install dependencies and prepare the environment:

  • Install Node.js, then run npm install and npm link in the repository root.
  • Run ask-question-login to authenticate to ChatGPT.
  • Start the daemon with ask-question-server and keep it running in a dedicated terminal. Example usage:
  • Direct prompt: ask-question "What is the capital of France?"
  • From file: ask-question -f question.md -o answer.md
  • Pipe input: echo "Explain async/await in JavaScript" | ask-question

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: Using ask-question CLI
Download link: https://github.com/johnnymo87/chatgpt-relay/archive/main.zip#using-ask-question-cli

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.