Skip to content
cccskills
FreePublished on GitHub

subagents

Use subagents to throw more compute at hard problems, keep the main context window clean, and auto-approve safe permissions via hooks. Use when a task is complex, exploratory, or can be parallelized across multiple independent workstreams.

The English summary is being prepared. Showing the original description.

See how to install

Files included (1)

  • SKILL.md5.7 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Invoke this skill when a task is complex, exploratory, or parallel in nature. Subagents keep the main context clean and focused.

When to Use Subagents

  • Append "use subagents" to any request where you want Claude to throw more compute at the problem
  • Use for: codebase exploration, parallel analysis, research, large refactors, test writing
  • Do NOT use for: simple one-file edits, quick lookups, single-step tasks

Three Subagent Strategies

A. Parallelization

Offload independent tasks to separate subagents running simultaneously:

use 5 subagents to explore the codebase
→ Explore entry points and startup
→ Explore React component structure
→ Explore tools implementation
→ Explore state management
→ Explore testing infrastructure

B. Context Isolation

Offload heavy research or analysis to a subagent so the main agent's context stays focused on the implementation.

  • Research → subagent → returns a structured result (see Standard return contract below)
  • Main agent uses the result, never sees the raw noise

Reframe for the 1M-context era: with a 1M-token window, token savings is no longer the main reason to isolate. Isolate for parallelism (independent work running at once) and adversarial independence (a fresh subagent with zero authoring context reviews work without self-review bias). Treat context savings as a side benefit, not the goal.

C. Permission Routing via Hook

Auto-approve obviously-safe tool calls so they don't interrupt with a prompt, while anything risky still falls through to human review. 100xprism ships this as a real, installable artifact — not just advice:

  • Artifact: ~/100xprism/hooks/permission-router.py (a PreToolUse Bash hook).
  • Tier 1 (offline): a deterministic allowlist auto-approves read-only commands (ls, cat, git status, grep, …); destructive/network/credential commands are never auto-approved.
  • Tier 2 (optional): set HOOK_ROUTER_MODEL=claude-haiku-5-5 (needs the claude CLI) to route ambiguous commands to a cheap model; only a confident "safe" verdict grants permission, so escalation to a deeper model (e.g. Opus 5) or a human is the default for anything uncertain. The router never blocks — it only grants.
  • Enable it: re-run the installer and turn on the permission-router hook (it ships off by default), or run python3 ~/100xprism/adapters/lib/modules.py emit-hooks with HOOK_ROUTER=1.
  • See ~/100xprism/hooks/README.md and the hooks docs: https://docs.claude.com/en/docs/claude-code/hooks

Fan-out ladder (how to parallelize)

When a skill says "fan out" or "run these in parallel", pick the highest rung your platform supports — they all reach the same outcome, only the determinism differs:

  1. Workflow tool (best — Claude Code). Use it for deterministic, auditable fan-out: one stage per independent unit, structured-output return per agent, a reduce step that aggregates verdicts. Phase order and concurrency caps are enforced by the runtime, not by prose.
  2. Parallel Agent/Task subagents (good). Dispatch the independent units as concurrent subagents in a single message; gather their structured returns and reduce. No runtime enforcement, but real parallelism.
  3. Serial in-context (fallback — any platform). If neither tool exists (most non-Claude-Code platforms), run the units one after another in the main context. The outcome is identical; only wall-clock and isolation are lost.

A fan-out site is only worth it when the units are genuinely independent (no shared mutable state, no ordering dependency). Anything that shares a resource — one Docker DB, one build dir — stays serial or needs isolation (worktrees).

Standard return contract

Exploration / research / review / verdict subagents return a fixed structure, not prose, so the parent can reduce deterministically (sort by severity, filter by confidence, dedup by file):

{
  "summary":    "one-line headline of what was found",
  "findings":   [{ "severity": "critical|high|medium|low", "title": "", "file": "path:line", "detail": "" }],
  "files":      ["paths touched or inspected"],
  "risks":      ["what could be wrong / what wasn't covered"],
  "confidence": "high|medium|low"
}

Skills adapt the shape to their job (e.g. gate subagents return {gate, status, findings[], severity}), but the principle is constant: structured in, structured out. With the Workflow tool, pass this as the agent's schema so the return is validated automatically.

Model routing for fan-out: route breadth/mechanical scans (file sweeps, lint, simple greps) to Haiku for cheap concurrency; route depth/judgment (security triage, root-cause analysis, go/no-go verdicts) to Opus with extended thinking. Default cheap, escalate on uncertainty.

Usage Patterns

# More compute on a hard problem
"Refactor the auth system. Use subagents."

# Parallel exploration
"Use 5 subagents to map out every API endpoint and their dependencies"

# Background agent (Claude Code only)
ctrl+b  →  runs current task in background agent

Principles

  • One focused task per subagent
  • Subagents return summaries, not raw data dumps
  • Use background agents (ctrl+b, Claude Code only) for long-running tasks so you can keep working
  • Subagents are especially valuable for: codebase mapping, test generation, doc writing, and competitive analysis

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Act as a Senior Accessibility Engineer to audit a page, component, or design against WCAG 2.2 AA. Produces a triaged finding list (critical/serious/moderate), focus-order map, contrast report, ARIA decision tree, and a screen-reader test plan. Use when shipping new UI, hardening an existing flow, or preparing for VPAT/accessibility conformance.

The English summary is being prepared. Showing the original description.

rajitsaha/100xprism10Updated Oct 14, 2026

When the user wants to plan, design, or implement an A/B test or experiment — "split test," "variant copy," "multivariate test," "hypothesis," "statistical significance," "how long should I run this test," or comparing two versions. For tracking implementation, see analytics-tracking. For page-level conversion optimization, see page-cro.

The English summary is being prepared. Showing the original description.

rajitsaha/100xprism10Updated Oct 14, 2026

When the user wants to generate, iterate, or scale ad creative — headlines, descriptions, primary text, full variations — for any paid platform; 'ad copy variations,' 'RSA headlines,' 'bulk ad copy,' 'creative testing,' 'write me some ads.' For campaign strategy and targeting, see paid-ads. For landing page copy, see copywriting.

The English summary is being prepared. Showing the original description.

rajitsaha/100xprism10Updated Oct 14, 2026

ai-seo

Free

When the user wants content cited by LLMs or surfaced in AI-generated answers — 'AI SEO,' 'AEO,' 'GEO,' 'LLMO,' 'answer engine optimization,' 'AI Overviews,' 'optimize for ChatGPT/Perplexity/Claude,' 'AI citations,' 'zero-click search.' For traditional technical/on-page audits, see seo-audit. For structured data, see schema-markup.

The English summary is being prepared. Showing the original description.

rajitsaha/100xprism10Updated Oct 14, 2026

When the user wants to set up, improve, or audit analytics tracking and measurement — "GA4," "conversion tracking," "event tracking," "UTM parameters," "tag manager," "GTM," "tracking plan," "attribution," "Mixpanel," "Segment," "are my events firing," or how to measure marketing results. For A/B test measurement, see ab-test-setup.

The English summary is being prepared. Showing the original description.

rajitsaha/100xprism10Updated Oct 14, 2026

Architectural decision advisor for cloud, data, and SaaS distributed systems. Use when the user asks "should we use X or Y", weighs a tradeoff, or needs a decision matrix, scaling analysis, cost-at-scale review, data-tier design, multi-tenancy model, or API/resilience guidance. For full technical blueprints, use enterprise-design.

The English summary is being prepared. Showing the original description.

rajitsaha/100xprism10Updated Oct 14, 2026

See all skills by rajitsaha

Report a problem with this skill