ask-claude

Asks Claude CLI for coding assistance. Use for getting a second opinion, code generation, debugging, or delegating coding tasks.

16 stars

Best use case

ask-claude is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Asks Claude CLI for coding assistance. Use for getting a second opinion, code generation, debugging, or delegating coding tasks.

Teams using ask-claude should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/ask-claude/SKILL.md --create-dirs "https://raw.githubusercontent.com/diegosouzapw/awesome-omni-skill/main/skills/development/ask-claude/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/ask-claude/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How ask-claude Compares

Feature / Agentask-claudeStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Asks Claude CLI for coding assistance. Use for getting a second opinion, code generation, debugging, or delegating coding tasks.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Ask Claude

Executes the local `claude` CLI to get coding assistance.

**Note:** This skill requires the `claude` CLI to be installed and available in your system's PATH.

## Quick start

Run a single query with `-p` (print mode):

```bash
claude -p "Your question or task here"
```

## Common options

| Option | Description |
|--------|-------------|
| `-p` | Non-interactive print mode (required for scripting) |
| `--model MODEL` | Specify model (e.g., `sonnet`, `opus`, `haiku`) |
| `--output-format FORMAT` | Output format: `text`, `json`, `stream-json` |
| `-c, --continue` | Continue the most recent conversation |

> For all available options, run `claude --help`

## Examples

**Ask a coding question:**

```bash
claude -p "How do I implement a binary search in Python?"
```

**Use a specific model:**

```bash
claude -p --model opus "Review this code for potential issues"
```

**Get JSON output:**

```bash
claude -p --output-format json "List the main functions in this file"
```

**Continue a previous conversation:**

```bash
claude -p -c "Now add error handling to that function"
```

## Notes

- The `-p` flag runs Claude non-interactively and outputs result to stdout
- If `--model` is not specified, the default model is used
- `stream-json` outputs responses incrementally as they are generated
- **Warning**: The `-p` flag skips the workspace trust dialog. Only use in directories you trust.
- The command inherits the current working directory

Related Skills

acc-claude-code-knowledge

16
from diegosouzapw/awesome-omni-skill

Knowledge base for Claude Code formats and patterns. Use when creating or improving commands, agents, skills, or hooks.

claude-cowork-guidelines

16
from diegosouzapw/awesome-omni-skill

Règles comportementales pour éviter les erreurs courantes des LLM dans Claude Cowork. S'active pour TOUTES les tâches (documents, spreadsheets, présentations, scripts, automatisations). Basé sur les observations d'Andrej Karpathy - assumptions silencieuses, overcomplexité, modifications non demandées. Utiliser pour toute tâche impliquant création de fichiers, édition, ou automatisation multi-étapes.

moai-cc-claude-md

16
from diegosouzapw/awesome-omni-skill

Authoring CLAUDE.md Project Instructions. Design project-specific AI guidance, document workflows, define architecture patterns. Use when creating CLAUDE.md files for projects, documenting team standards, or establishing AI collaboration guidelines.

claude-player

16
from diegosouzapw/awesome-omni-skill

An AI-powered Game Boy emulator agent that uses Claude's vision and reasoning to autonomously play Game Boy games.

claude-opus-4-5-migration

16
from diegosouzapw/awesome-omni-skill

Migrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5. Use when the user wants to update their codebase, prompts, or API calls to use Opus 4.5. Handles model string updates and prompt adjustments for known Opus 4.5 behavioral differences. Does NOT migrate Haiku 4.5.

claude-config-management

16
from diegosouzapw/awesome-omni-skill

Claude Code設定(リポジトリルート)の構成管理ガイド。ファイルレベルsymlinkによる設定管理、管理対象の追加・削除、Taskfileタスクの実行方法を提供する。「設定ファイルを追加して」「新しいスキルを追加して」「symlinkの状態を確認して」「Claude設定を変更して」のようにClaude Code設定の構成変更を行うときに使用する。

varlock-claude-skill

16
from diegosouzapw/awesome-omni-skill

Secure environment variable management ensuring secrets are never exposed in Claude sessions, terminals, logs, or git commits

templar-miner-claude-skill

16
from diegosouzapw/awesome-omni-skill

This skill should be used when setting up, optimizing, or managing Templar AI miners on Bittensor Subnet 3 (netuid 3). Use it for tasks involving miner configuration, performance optimization, troubleshooting gradient scoring issues, managing Bittensor wallets with btcli, monitoring miner metrics, renting GPUs via Basilica for mining operations, or strategizing to achieve top miner ranking in the Templar decentralized training network. Integrates seamlessly with the basilica-cli-helper skill for GPU rentals.

programmatic-claude

16
from diegosouzapw/awesome-omni-skill

Run Claude Code programmatically via CLI (-p flag), Python SDK, or TypeScript SDK. For automation, CI/CD, session chaining, headless execution, and orchestrating multiple Claude instances. Triggers: programmatic, headless, CLI automation, session chaining, -p flag, Python SDK, orchestrate Claude, CI/CD Claude, run Claude automatically.

linear-claude-skill

16
from diegosouzapw/awesome-omni-skill

Manage Linear issues, projects, and teams

claude-cli

16
from diegosouzapw/awesome-omni-skill

Use claude CLI for interactive AI sessions, scripting with print mode, MCP server management, and plugin configuration. Master session management, tool control, and automation workflows.

verify-claude-setup

16
from diegosouzapw/awesome-omni-skill

Verify .claude directory configuration is complete and correct. Use when checking if agents, hooks, rules, and memory are properly set up, or after making changes to .claude configuration.