Awesome-omni-skill skill-claude-code
Use when the user asks to run Claude Code CLI (claude) for code analysis, refactoring, debugging, or automated edits, or references Claude Code workflows, sessions, permissions, or CLI flags.
install
source · Clone the upstream repo
git clone https://github.com/diegosouzapw/awesome-omni-skill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/diegosouzapw/awesome-omni-skill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/tools/skill-claude-code" ~/.claude/skills/diegosouzapw-awesome-omni-skill-skill-claude-code && rm -rf "$T"
manifest:
skills/tools/skill-claude-code/SKILL.mdsource content
Claude Code
Overview
Run Claude Code from the terminal to analyze, plan, refactor, or edit codebases via the
claude CLI. Default to non-interactive print mode in this environment and summarize results back to the user.
Quick Start
- Use non-interactive (print) mode:
for one-shot tasks. Interactive sessions are disabled here due to flaky TTY prompts.claude -p "prompt" - Select model (ask the user). Default suggestion:
.opus - Choose permissions and scope.
- Run the command, capture output, and summarize key results and next steps.
Workflow
1) Ask for model and session intent
- Ask the user which model to use.
- If the user doesn't specify, propose
and confirm.--model opus
accepts--model
orsonnet
aliases, or a full model name.opus
2) Pick the right command form
Non-interactive / print mode (default):
to run a single request and exit.claude -p "prompt"
to pipe content in.cat file | claude -p "prompt"- Use
or--output-format json
for machine-readable output when scripting.--output-format stream-json - Use
to limit agentic turns in print mode.--max-turns N - Use
for--input-format
ortext
inputs.stream-json - Use
to avoid saving sessions in print mode.--no-session-persistence - Use
with--include-partial-messages
to emit partial streaming events.--output-format stream-json
Session management (print mode only):
- Continue the most recent session in print mode:
.claude -c -p "prompt" - Resume a specific session in print mode:
.claude -r "<session-id>" -p "prompt"
creates a new session ID when resuming.--fork-session
3) Permissions and safety
- Prefer default permission prompts. Only use
if the user explicitly approves and the task is low-risk or sandboxed.--dangerously-skip-permissions - Use
to start in a specific mode and--permission-mode
only to permit the bypass option.--allow-dangerously-skip-permissions - For larger changes, explore first, then plan, then implement.
- Use
/--allowedTools
or--disallowedTools
to control tool access when needed.--tools
4) Run, summarize, and follow up
- Execute the command, capture stdout (and stderr if needed).
- Summarize results, list changes or findings, and ask the user for next steps.
Notes
Assume the user already has Claude Code installed and configured. If
claude is not found, report the error and ask the user to fix their environment before retrying.
When prompting, prefer rich context: reference files with @ and pipe logs.
Troubleshooting
If the prompt passed to
--print / -p is misinterpreted (e.g., flags inside the prompt), use -- before the prompt or pipe it via stdin:
claude -p -- "prompt with -dashes or --flags"echo "prompt" | claude -p