AGENT SKILL

with

Routes tasks to external AI CLI agents (Codex, Antigravity, Copilot) with automatic complexity-based model routing. Supports collaboration, delegation, and parallel execution modes.

License 许可
Apache-2.0
最近更新
2026-10-29
Stars
★ 1
Forks
0

01 前言 Front Matter

name
with
context
fork
description
Routes tasks to external AI CLI agents (Codex, Antigravity, Copilot) with automatic complexity-based model routing. Supports collaboration, delegation, and parallel execution modes.
allowed-tools
Bash(codex *), Bash(agy *), Bash(copilot *), Bash(mktemp *), Bash(cat *), Bash(rm *), Bash(wait *), Bash(which *), Read, Grep, Glob
argument-hint
<agent|all> <task description>
disable-model-invocation
true

03 SKILL.md 正文

Agent Orchestration

외부 AI CLI 에이전트에 작업을 전달합니다. 복잡도를 자동 분석하여 최적의 모델/설정을 선택합니다.

When to Use

  • 외부 AI 에이전트의 의견이나 분석이 필요할 때
  • 특정 에이전트의 강점을 활용하고 싶을 때 (Codex: 코드 실행, Antigravity: 웹 검색/멀티모델, Copilot: GitHub)
  • 여러 에이전트의 응답을 비교하여 최적안을 도출하고 싶을 때
  • 작업을 외부 에이전트에 위임하고 싶을 때

Agent Availability

  • Codex: !which codex 2>/dev/null && echo "available" || echo "not installed"
  • Antigravity: !which agy 2>/dev/null && echo "available" || echo "not installed"
  • Copilot: !which copilot 2>/dev/null && echo "available" || echo "not installed"

Supported Agents

Agent CLI 강점 기본 모델
Codex codex 코드 생성/실행, 디버깅, 샌드박스 gpt-5.4
Antigravity agy 웹 검색, 리서치, 멀티모델 Gemini 3.1 Pro (High)
Copilot copilot GitHub 연동, 멀티모델 지원 claude-sonnet-4.6

Antigravity CLI(agy)는 Gemini CLI의 후속이며 Gemini·Claude·GPT-OSS 모델을 단일 CLI에서 제공합니다. --model에는 식별자가 아닌 따옴표 표시명을 전달합니다 (정확한 목록은 agy models).

Instructions

1. Parse Arguments

$ARGUMENTS에서 다음을 파싱합니다:

  • 에이전트: 첫 번째 단어가 codex, antigravity(별칭 agy), copilot, all 중 하나인지 확인
    • 매칭되면 해당 에이전트 사용
    • all 또는 매칭 안 되면 → 모드 판별로 이동
  • 모드 감지 (프롬프트 내 키워드):
    • 협업: "같이", "상의", "물어봐", "의견" → Claude 주도 + 에이전트 참고
    • 위임: "맡겨", "시켜", "처리해" → 에이전트 주도
    • 병렬: "비교", "전부", "다 같이", "all" → 모든 에이전트 병렬
    • 기본값: 위 키워드가 없으면 협업 모드로 동작
  • 에이전트 미지정 시: 작업 유형으로 자동 선택
    • 코드 생성/실행/디버깅 → Codex
    • 리서치/설명/웹 관련 → Antigravity
    • GitHub/PR/리뷰 관련 → Copilot

2. Complexity Analysis

작업 내용에서 복잡도를 분석합니다 (각 1점):

  1. 키워드: refactor, migrate, architecture, system, optimize, redesign, 리팩토링, 마이그레이션, 아키텍처, 최적화
  2. 멀티파일/모듈 변경 필요
  3. 의존성/관계 이해 필요
  4. 테스트 전략 포함
  5. 횡단 관심사 (보안, 성능, 동시성)
  6. 외부 시스템/API 연동

3. Model Routing

복잡도 점수에 따라 모델/effort를 자동 선택합니다:

복잡도 점수 Codex effort Copilot model Antigravity model
Simple 0-2 low claude-sonnet-4.6 Gemini 3.5 Flash (High)
Medium 3-4 high claude-opus-4.6 Gemini 3.1 Pro (Low)
Complex 5+ xhigh gpt-5.4 Gemini 3.1 Pro (High)

4. Execute

단일 에이전트:

PROMPT='<task, shell-escaped>'

# Codex
codex --model gpt-5.4 <effort> exec "$PROMPT"

# Antigravity
agy --model "<model>" -p "$PROMPT"

# Copilot
copilot --model <model> -p "$PROMPT"

병렬 실행 (all 또는 Complex 위임):

PROMPT='<task, shell-escaped>'
TMPDIR=$(mktemp -d)

# 설치된 에이전트만 실행
(codex --model gpt-5.5 medium exec "$PROMPT" > "$TMPDIR/codex.txt" 2>/dev/null; echo $? > "$TMPDIR/codex.exit") &
(agy --model "Gemini 3.1 Pro (High)" -p "$PROMPT" > "$TMPDIR/antigravity.txt" 2>/dev/null; echo $? > "$TMPDIR/antigravity.exit") &
(copilot --model gpt-5.4 -p "$PROMPT" > "$TMPDIR/copilot.txt" 2>/dev/null; echo $? > "$TMPDIR/copilot.exit") &

wait

5. Present Results

단일 에이전트:

## <Agent> (<model>) — Complexity: <level> (score: <N>)
<response>

협업 모드 (단일): 에이전트 응답 표시 후, Claude가 해설과 최적안을 종합합니다.

위임 모드 (단일): 에이전트 응답을 그대로 전달합니다.

병렬 모드:

## Agent Comparison — Complexity: <level> (score: <N>)

### Codex (gpt-5.4)
<response>

### Antigravity (<model>)
<response>

### Copilot (<model>)
<response>

---

## Synthesis
- **Agreements**: 합의점
- **Differences**: 차이점
- **Recommendation**: 추천안

6. Cleanup

병렬 실행 후:

rm -r "$TMPDIR"

Timeout

복잡도 단일 병렬 (각)
Simple 5m 5m
Medium 10m 10m
Complex 20m 20m

Antigravity 비대화형(-p) 호출이 오래 걸릴 경우 --print-timeout <duration>(기본 5m)으로 대기 한도를 조정합니다.

Error Handling

  • CLI 미설치: 설치 명령 안내
    • Codex: npm i -g @openai/codex
    • Antigravity: curl -fsSL https://antigravity.google/cli/install.sh | bash
    • Copilot: npm i -g @github/copilot
  • 타임아웃: 보고 후 더 간단한 프롬프트 제안
  • exit code 비정상: stderr 표시
  • 병렬 시 일부 실패: 성공한 에이전트 결과만 표시

Examples

  • /with codex 이 함수 리팩토링해줘 → Simple, Codex 단일
  • /with antigravity 맡겨 - REST API 설계 → Medium 위임, Antigravity
  • /with copilot 같이 - 인증 모듈 보안 검토 → 협업, Copilot
  • /with all 이 아키텍처 접근법 비교해줘 → Complex 병렬
  • /with 이 에러 디버깅해줘 → 에이전트 자동 선택 (Codex)

04 同仓库更多 Skills

Dokkabei97
Dokkabei97/dokkabei-harness

sync-claude-md

커밋·푸시·PR/MR 직전에 이번 변경이 프로젝트 CLAUDE.md 를 낡게 만드는지 검토하고, 필요할 때만 갱신 diff 를 제안한다 — 아키텍처·디렉터리 구조, 새 통합/MCP, 컨벤션, 빌드·CI·도구, 주요 의존성 변화가 대상. 해당 없으면 한 줄로 끝낸다. Reviews whether pending changes make the project CLAUDE.md stale (architecture, integrations, conventions, build/CI/tooling, major dependencies) and proposes a minimal update diff only when needed. Use when: "CLAUDE.md 갱신 필요해?", "CLAUDE.md 동기화", 커밋/푸시/MR 전에 구조·도구가 바뀐 변경을 정리할 때, sync CLAUDE.md, check CLAUDE.md before commit or PR.

★ 1
Dokkabei97
Dokkabei97/dokkabei-harness

spec-driven-dev

새 기능·프로젝트·큰 변경을 코드보다 스펙 먼저로 진행하는 게이트 워크플로(SPECIFY → PLAN → TASKS → IMPLEMENT) — 가정 명시, 측정 가능한 성공 기준, Always/Ask/Never 경계, 단계별 사람 검토로 범위 이탈과 재작업을 줄인다. Spec-before-code gated workflow for new features or significant changes: explicit assumptions, measurable success criteria, boundaries, and a human review between stages. Use when: "스펙 먼저", "기능 명세", "요구사항 정리", starting a new feature or project, a significant change with vague requirements. 단순 버그 수정·1~2줄 변경엔 불필요.

★ 1
Dokkabei97
Dokkabei97/dokkabei-harness

shipping-guide

프로덕션 배포 전후 가이드 — 배포 전 체크리스트, 피처 플래그 수명주기, 단계적 롤아웃과 진행/보류/롤백 임계값, 롤백 계획 템플릿, 배포 후 모니터링. Production shipping guide: pre-launch checklist, feature-flag lifecycle, staged rollout with go/hold/rollback thresholds, rollback plan template, post-launch monitoring. Use when: "배포 준비", "릴리즈 전 점검", "롤아웃 계획", "롤백 계획", preparing a production deploy, staged rollout, feature flags.

★ 1
Dokkabei97
Dokkabei97/dokkabei-harness

retro

세션 회고·교훈 컴파운딩 — 이번 세션의 교정·실수·발견을 추출해 품질 기준(재현·일반화·판정 가능성)으로 거르고, 컨벤션 변화는 sync-claude-md 위임, 반복 실수는 tasks/lessons.md(#가드-훅-후보 태그), 스킬 지식 갱신은 수정 제안으로 나눈다. 모든 적용은 승인 후. Session retrospective that turns corrections, mistakes, and discoveries into vetted lessons routed to CLAUDE.md sync, tasks/lessons.md, or skill-edit proposals, with user approval before any write. Use when: "회고", "레트로", "교훈 정리", "같은 실수 반복", "재발 방지 규칙", retrospective, lessons learned, wrapping up a task, review, or loop. 여러 실행에 걸친 하네스 개선은 harness:evolve.

★ 1
Dokkabei97
Dokkabei97/dokkabei-harness

project-rules

현재 프로젝트의 스택(빌드 파일 버전, 마이그레이션 도구, ORM 유무, ES 사용, git 호스트)을 감지해 프로젝트 루트 AGENTS.md 의 마커 블록(스택 사실 + 항상 적용되는 스페셜리스트 핵심 ≤15줄 — Claude Code·Codex·Antigravity 공통)과 CLAUDE.md 의 `@AGENTS.md` 연결, Claude 전용 경로 한정 .claude/rules/<stack>-specialist.md(해당 버전에 실제로 맞는 상세 함정)를 diff 로 제안하고, 스택 플러그인을 런타임별로 프로젝트 범위에서 켜는 법을 안내한다. 이전 버전 출력(CLAUDE.md 블록·specialist-core.md)은 AGENTS.md 로 이전을 제안. --check 는 버전 불일치·사라진 ID·크기 한도·연결 누락을 점검. Detects the project's stack and proposes a cross-runtime AGENTS.md block (stack facts + always-on specialist core) linked from CLAUDE.md via @AGENTS.md, plus Claude-only path-scoped specialist rules; migrates the older CLAUDE.md-block layout; --check audits drift. Use when: "이 프로젝트 세팅", "프로젝트 규칙 생성", "AGENTS.md/CLAUDE.md 점검", project setup, generate project rules, audit AGENTS.md or CLAUDE.md drift.

★ 1
Dokkabei97
Dokkabei97/dokkabei-harness

post-merge

MR 머지 완료 후 Plane 이슈 종료와 Outline 문서 업데이트를 자동으로 처리하는 오케스트레이터 스킬입니다. issue-tracker와 document-latest 스킬을 연계 실행하여 머지 후 후속 작업을 일괄 처리합니다. Orchestrates post-merge follow-up after an MR is merged: chains the issue-tracker and document-latest skills to close the Plane issue and update Outline wiki docs in a single batch. Use when: an MR was just merged, closing tickets and syncing documentation after a merge, post-merge cleanup.

★ 1