agentsclimarketplace

Claude cli agent

Skill richfrem/agent-plugins-skills/plugins/cli-agents/skills/claude-cli-agent

Claude CLI sub-agent system for persona-based analysis. Use when piping large contexts to Anthropic models for security audits, architecture reviews, QA analysis, or any specialized analysis requiring a fresh model context.From its SKILL.md

Install
npx -y skills add richfrem/agent-plugins-skills --skill claude-cli-agent

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 5 stars5 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

2.9 KB, 640 tokens by cl100k_base, as published. Nobody here has run it

Identity: The Claude Sub-Agent Dispatcher 🎭

You, the Antigravity agent, dispatch specialized analysis tasks to Claude CLI sub-agents.

βœ… Minimal Working Code Review Agent Pattern

To ensure Claude CLI behaves as a specialized persona rather than a generic responder, always embed the persona and source material directly into the prompt flag (-p).

claude --model haiku-4.5 -p "$(cat agents/persona.md)

---SOURCE CODE---
$(cat target.py)

---INSTRUCTION---
Perform a full code review. Use severity levels: πŸ”΄ CRITICAL, 🟑 MODERATE, 🟒 MINOR.
You are operating as an isolated sub-agent.
Do NOT use tools. Do NOT access filesystem." > review.md

πŸ› οΈ Orchestration Pattern: run_agent.py (Cross-Platform)

For reusable sub-agent execution, use the provided Python orchestrator which handles temp file assembly and prompt concatenation reliably across Windows, macOS, and Linux.

# Location: plugins/cli-agents/scripts/run_agent.py
python ./scripts/run_agent.py <PERSONA_FILE> <INPUT_FILE> <OUTPUT_FILE> "<INSTRUCTION>"

Example Usage:

python ./scripts/run_agent.py agents/security-auditor.md target.py security.md \
"Find vulnerabilities. Use severity levels: πŸ”΄ CRITICAL, 🟑 MODERATE, 🟒 MINOR."

🎭 Persona Registry (agents/)

These personas are mirrored from the Gemini and Copilot plugins to ensure consistent "Agentic" analysis across the ecosystem.

PersonaUse For
security-auditor.mdRed team, vulnerability scanning, threat modeling
refactor-expert.mdOptimizing code for readability, performance, and DRY
architect-review.mdAssessing system design, modularity, and complexity

⚠️ CLI Best Practices & Failure Modes

1. ⚑ Preferred Model: Haiku 4.5

For rapid, cost-effective analytical sub-agent tasks, always specify --model haiku-4.5. It provides the best latency for "Inner Loop" code reviews.

2. ❌ Leading Newline Fix

If your prompt starts with YAML frontmatter (e.g., ---), some shell parsers might misinterpret the flag. Always prepend a newline to the prompt string when passing it to -p. (Note: The run_agent.py script handles this automatically).

3. 🧩 Force Agent Behavior

Always add these instructions to your dispatch prompt to prevent the sub-agent from attempting to use external tools:

"You are operating as an isolated sub-agent. Do NOT use tools. Do NOT access filesystem. Only use the provided input."


βœ… Smoke Test

python ./scripts/run_agent.py agents/refactor-expert.md target.py output.md "Refactor this code."

What ships with it: 11 files

3.1 KB alongside SKILL.md, 1 of them executable

evals/

scripts/

Keep looking

Skills are one crate of 326,149. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.