Claude-skill-registry ask-claude
Asks Claude CLI for coding assistance. Use for getting a second opinion, code generation, debugging, or delegating coding tasks.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/ask-claude" ~/.claude/skills/majiayu000-claude-skill-registry-ask-claude && rm -rf "$T"
manifest:
skills/data/ask-claude/SKILL.mdsource content
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):
claude -p "Your question or task here"
Common options
| Option | Description |
|---|---|
| Non-interactive print mode (required for scripting) |
| Specify model (e.g., , , ) |
| Output format: , , |
| Continue the most recent conversation |
For all available options, run
claude --help
Examples
Ask a coding question:
claude -p "How do I implement a binary search in Python?"
Use a specific model:
claude -p --model opus "Review this code for potential issues"
Get JSON output:
claude -p --output-format json "List the main functions in this file"
Continue a previous conversation:
claude -p -c "Now add error handling to that function"
Notes
- The
flag runs Claude non-interactively and outputs result to stdout-p - If
is not specified, the default model is used--model
outputs responses incrementally as they are generatedstream-json- Warning: The
flag skips the workspace trust dialog. Only use in directories you trust.-p - The command inherits the current working directory