跳到正文
cccskills
免费在 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.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md5.7 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

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

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

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.

中文简介正在准备中。当前显示原文说明。

rajitsaha/100xprism102026年10月14日 更新

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.

中文简介正在准备中。当前显示原文说明。

rajitsaha/100xprism102026年10月14日 更新

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.

中文简介正在准备中。当前显示原文说明。

rajitsaha/100xprism102026年10月14日 更新

ai-seo

免费

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.

中文简介正在准备中。当前显示原文说明。

rajitsaha/100xprism102026年10月14日 更新

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.

中文简介正在准备中。当前显示原文说明。

rajitsaha/100xprism102026年10月14日 更新

architect

免费

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.

中文简介正在准备中。当前显示原文说明。

rajitsaha/100xprism102026年10月14日 更新

查看 rajitsaha 的全部技能

报告此技能的问题