跳到正文
cccskills
免费在 GitHub 公开

dev-lead-routing

Routes development tasks to the correct language or framework expert agent. Use when user requests code review, implementation, refactoring, or debugging.

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

查看安装方法

包含的文件(1)

  • SKILL.md8.2 KB

SKILL.md(原文)

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

Mandatory delegation directive (R010 Universal /tmp Script Bypass)

When this skill spawns a subagent via the Agent tool, the spawned prompt MUST include this directive verbatim (or equivalent):

ALL tool calls targeting .claude/ paths MUST go through /tmp/*.sh script via Bash. This includes read-only measurement (sed/cat/wc/ls/grep), Write, Edit. Read tool is exempt. Direct Write/Edit/Bash on .claude/ triggers user approval prompts that block unattended automation. See R010 for the full pattern.

This directive is preserved inline because Agent-tool prompt synthesis can drop SKILL.md notes; inline mandatory directives survive (#1046 lesson).

Dev Lead Routing

Engineers

TypeAgents
Languagelang-golang-expert, lang-python-expert, lang-rust-expert, lang-kotlin-expert, lang-typescript-expert, lang-java-expert
Frontendfe-vercel-agent, fe-vuejs-agent, fe-svelte-agent, fe-flutter-agent, fe-design-expert
Backendbe-fastapi-expert, be-springboot-expert, be-go-backend-expert, be-nestjs-expert, be-express-expert, be-django-expert
Toolingtool-npm-expert, tool-optimizer, tool-bun-expert
Databasedb-supabase-expert, db-postgres-expert, db-redis-expert, db-alembic-expert, db-neo4j-expert
Architectarch-documenter, arch-speckit-agent
Securitysec-codeql-expert
Infrainfra-docker-expert, infra-aws-expert
Slackslack-cli-expert

File Extension Mapping

ExtensionAgent
.golang-golang-expert
.pylang-python-expert
.rslang-rust-expert
.kt, .ktslang-kotlin-expert
.ts, .tsxlang-typescript-expert
.javalang-java-expert
.js/.jsx (React)fe-vercel-agent
.vuefe-vuejs-agent
.sveltefe-svelte-agent
.dart, pubspec.yamlfe-flutter-agent
.sql (PG)db-postgres-expert
.sql (Supabase)db-supabase-expert
alembic.ini, alembic/versions/*.pydb-alembic-expert
.cypherdb-neo4j-expert
Dockerfile, *.dockerfileinfra-docker-expert
*.tf, *.tfvarsinfra-aws-expert
*.yaml, *.yml (CloudFormation)infra-aws-expert

Keyword Mapping

KeywordsAgent
go, golanglang-golang-expert
python, pylang-python-expert
rustlang-rust-expert
kotlinlang-kotlin-expert
typescript, tslang-typescript-expert
javalang-java-expert
react, next.js, vercelfe-vercel-agent
vuefe-vuejs-agent
sveltefe-svelte-agent
flutter, dart, riverpod, bloc, widgetfe-flutter-agent
design, typography, color, motion, ux writing, ui design, "design system", "design review", impeccablefe-design-expert
fastapibe-fastapi-expert
djangobe-django-expert
spring, springbootbe-springboot-expert
nestjsbe-nestjs-expert
expressbe-express-expert
npmtool-npm-expert
optimize, bundletool-optimizer
buntool-bun-expert
postgres, postgresql, psql, pg_statdb-postgres-expert
redis, cache, pub/sub, sorted setdb-redis-expert
supabase, rls, edge functiondb-supabase-expert
alembic, migration, db revision, db upgrade, db downgradedb-alembic-expert
neo4j, cypher, graph database, knowledge graph, text2cypherdb-neo4j-expert
docker, dockerfile, container, composeinfra-docker-expert
aws, cloudformation, vpc, iam, s3, lambda, cdk, terraforminfra-aws-expert
security, codeql, cve, vulnerability, sarif, sast, security auditsec-codeql-expert
architecture, adr, openapi, swagger, diagramarch-documenter
spec, specification, tdd, requirementsarch-speckit-agent
slack, slack-cli, slack app, slack deploy, slack trigger, slack datastoreslack-cli-expert

Model Selection

TaskModel
Architecture analysisopus
Code review/implementationsonnet
Quick validation/searchhaiku

Routing Decision (Priority Order)

Before selecting an expert agent, evaluate in this order:

Step 1: Agent Teams Eligibility (R018)

Check if Agent Teams is available (CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 or TeamCreate/SendMessage tools present).

ScenarioPreferred
Single-language reviewTask Tool
Multi-language code review (3+)Agent Teams
Code review + fix cycleAgent Teams
Cross-layer debugging (FE + BE + DB)Agent Teams
Simple file search/validationTask Tool

Step 2: Codex-Exec Hybrid (Implementation Tasks)

For new file creation, boilerplate, or test code generation:

  1. Check /tmp/.claude-env-status-* for codex, gemini, and rtk availability
  2. If codex available AND task involves new file creation → automatically delegate to /codex-exec for scaffolding:
    • Display: [Codex Hybrid] Delegating to codex-exec...
    • codex-exec generates initial code (strength: fast generation)
    • Selected Claude expert reviews and refines codex output (strength: reasoning, quality)
  3. If codex unavailable but gemini available → delegate to /gemini-exec for scaffolding:
    • Display: [Gemini Hybrid] Delegating to gemini-exec...
    • gemini-exec generates initial code
    • Selected Claude expert reviews and refines output
  4. If RTK available (RTK=available in env status) → optionally wrap Claude expert output through RTK to reduce token consumption by 60-90%:
    • Display: [RTK Proxy] Token optimization active via rtk-exec
    • RTK acts as a transparent proxy — no change to expert selection
  5. If none available → display [External CLI] Unavailable — proceeding with {expert} directly and use Claude expert directly

Suitable: New file creation, boilerplate, scaffolding, test code Unsuitable: Existing code modification, architecture decisions, bug fixes

Step 3: Expert Agent Selection

Route to appropriate language/framework expert based on file extension and keyword mapping.

Permission Mode: When spawning agents via Agent tool, always pass mode: "bypassPermissions". The Agent tool default (acceptEdits) overrides agent frontmatter permissionMode, causing permission prompts during unattended execution.

Step 4: Ontology-RAG Enrichment (R019)

If get_agent_for_task MCP tool is available, call it with the original query and inject suggested_skills into the agent prompt. Skip silently on failure.

Step 4b: Wiki-RAG Enrichment

For ambiguous routing (confidence < 90%), query the wiki for context:

  1. Search wiki/index.yaml for agent/skill pages matching detected keywords
  2. If wiki suggests a specific skill or guide for the task, inject as suggested_context in the agent prompt
  3. This helps agents receive relevant guide references automatically
wiki-rag query: "{user_request}" → wiki agent/skill pages → suggested_context injection

Advisory only — skip silently if wiki unavailable.

Step 5: Soul Injection (R006)

If the selected agent has soul: true in frontmatter, read and prepend .claude/agents/souls/{agent-name}.soul.md content to the prompt. Skip silently if file doesn't exist.

Routing Rules

Multi-language: detect all languages, route to parallel experts (max 4). Single-language: route to matching expert. Cross-layer (frontend + backend): multiple experts in parallel.

No Match Fallback

When file extension or keyword doesn't match any existing agent:

User Input → No matching development agent
  ↓
Detect: File extension (.rb, .swift, .php, etc.) or language keyword
  ↓
Delegate to mgr-creator with context:
  domain: detected language/framework
  type: sw-engineer
  keywords: extracted from user input
  file_patterns: detected extensions
  skills: auto-discover from .claude/skills/
  guides: auto-discover from templates/guides/

Examples of dynamic creation triggers:

  • Unrecognized file extension (e.g., .rb → Ruby expert, .swift → Swift expert)
  • New framework keyword (e.g., "Flutter 앱 리뷰해줘", "Rails API 만들어줘")
  • Language detected but no specialist exists

Not user-invocable. Auto-triggered on development intent.

评价

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

评论

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

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

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

0 / 1000 字

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

同一仓库的技能

Pre-action boundary checking — validates agent tool calls against declared capabilities and task contracts

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

baekenough/second-brain152026年10月8日 更新

Auto-detect project context and optimize harness — deactivate unused agents/skills, suggest missing experts, generate project profile

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

baekenough/second-brain152026年10月8日 更新

Adversarial code review using attacker mindset — trust boundary, attack surface, business logic, and defense evaluation

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

baekenough/second-brain152026年10月8日 更新

Apache Airflow best practices for DAG authoring, testing, and production deployment

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

baekenough/second-brain152026年10月8日 更新

Alembic migration patterns for naming conventions, safety checks, expand-contract, env.py configuration, and CI integration

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

baekenough/second-brain152026年10月8日 更新

Pre-routing ambiguity analysis — scores request clarity and asks clarifying questions when needed (inspired by ouroboros)

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

baekenough/second-brain152026年10月8日 更新

查看 baekenough 的全部技能

报告此技能的问题