openai

Installation
SKILL.md

openai - OpenAI API Integration

The openai module provides a comprehensive CLI interface for OpenAI services, enabling users to perform complex AI tasks like text generation, translation, image creation, and audio conversion directly from the terminal.

When to Activate

  • When the user wants to use OpenAI for chat or text generation (e.g., generating commit messages).
  • When the user needs to translate file contents using AI.
  • When the user wants to generate images based on text prompts.
  • When the user needs to convert text to speech or transcribe audio.
  • When managing OpenAI API keys or model configurations.

Core Principles & Rules

  • API Key Management: Use init or --cfg apikey=<key> to set up the environment.
  • File Input: Use the --file flag to provide context from local files to the chat/generation subcommands.
  • Reproducibility: Be aware that AI outputs can vary; use appropriate parameters for consistent results if needed.

Additional Scenarios

  • Git Commit Messages: Pipe git diff into @gpt to generate standardized commit messages.
  • Audio Processing: Use the audio subcommand for TTS (Text-to-Speech) or transcription tasks.
Related skills

More from x-cmd/skill

Installs
3
Repository
x-cmd/skill
GitHub Stars
20
First Seen
Apr 10, 2026