AGENT SKILL

cxb-ask

Send the user's request to specified AI provider asynchronously

License 许可
MIT
最近更新
2026-05-06
Stars
★ 2
Forks
0

01 前言 Front Matter

name
cxb-ask
metadata
{ "short-description": "Ask AI provider asynchronously" }
description
Send the user's request to specified AI provider asynchronously

03 SKILL.md 正文

Ask AI Provider

Send the user's request to the specified AI provider via ask.

Usage

The first argument must be the provider name. The message MUST be provided via stdin (heredoc or pipe), not as CLI arguments, to avoid shell globbing issues:

  • gemini - Send to Gemini
  • claude - Send to Claude
  • opencode - Send to OpenCode

Execution (MANDATORY)

CURDX_CALLER=codex cxb-ask $PROVIDER <<'EOF'
$MESSAGE
EOF

Rules

  • After running the command, say "[Provider] processing..." and immediately end your turn.
  • Do not wait for results or check status in the same turn.
  • The task ID and log file path will be displayed for tracking.

Examples

  • /cxb-ask gemini What is 12+12? (send via heredoc)
  • CURDX_CALLER=codex cxb-ask gemini <<'EOF' What is 12+12? EOF

Notes

  • If it fails, check backend health with the corresponding ping command (curdx-ping <provider> (e.g., curdx-ping gemini)).
  • Codex-managed sessions default to foreground; use --background or CURDX_ASK_BACKGROUND=1 for async.

04 同仓库更多 Skills