技能 swarm
🐝

swarm

低風險 ⚡ 包含腳本⚙️ 外部命令📁 檔案系統存取

자율형 에이전트 스웜으로 복잡한 작업 실행

복잡한 코딩 작업은 여러 번의 반복과 파일 간 조정된 변경이 필요합니다. 이 스킬은 내장된 검토 게이트와 함께 구조화된 계획을 수행하는 자율형 에이전트를 생성합니다. 스웜은 지속적인来回 상호작용 없이 다단계 개발 작업을 완료합니다.

支援: Claude Codex Code(CC)
⚠️ 66
1

下載技能 ZIP

2

在 Claude 中上傳

前往 設定 → 功能 → 技能 → 上傳技能

3

開啟並開始使用

測試它

正在使用「swarm」。 Use swarm to refactor the payment processing code to use the new Stripe API version.

預期結果:

  • Starting swarm for: STRIPE_REFACTOR.md
  • Done file: .context/.done-stripe-refactor
  • Max iterations: 20
  • Agent: codex (full-auto mode)
  • Iteration 1: Updating payment service
  • Iteration 2: Adding webhook handlers
  • Iteration 5: Reviewer checks progress
  • Iteration 8: Simplifier reviews complexity
  • Iteration 10: Tester adds integration tests
  • Iteration 12: Gatekeeper verifies all checks pass
  • Swarm completed after 12 iterations

正在使用「swarm」。 Use swarm to add comprehensive test coverage to the user authentication module.

預期結果:

  • Starting swarm for: AUTH_TESTS.md
  • Done file: .context/.done-auth-tests
  • Iteration 1: Analyzing existing auth code structure
  • Iteration 3: Writing unit tests for token generation
  • Iteration 5: Reviewer evaluates test coverage
  • Iteration 7: Adding integration tests for login flow
  • Iteration 9: Tester verifies all tests pass
  • Swarm completed after 9 iterations

安全審計

低風險
v5 • 1/17/2026

After semantic evaluation, all 115 static findings are false positives. The scanner detected shell patterns, file operations, and hash strings without understanding context. Documentation examples are not executable code. Template placeholders are user-customizable. AI agent spawning is intentional core functionality. The skill operates transparently as open-source workflow automation tooling with no malicious intent or data exfiltration.

6
已掃描檔案
1,124
分析行數
5
發現項
5
審計總數
中風險問題 (1)
Headless agent execution with permission bypass flags
The swarm.sh script executes AI agents with flags that bypass permission prompts. Codex uses --full-auto and Claude uses --dangerously-skip-permissions. This allows autonomous execution.
低風險問題 (1)
Script creates files in .context directory
The script creates a .context/ directory and .done files within it.
審計者: claude 查看審計歷史 →

品質評分

36
架構
100
可維護性
87
內容
23
社群
83
安全
91
規範符合性

你能建構什麼

레거시 코드베이스 리팩토링

여러 파일에 걸쳐 콜백 기반 코드를 async/await 패턴으로 현대화하고 테스트와 커버리지 검증을 수행합니다.

포괄적인 테스트 커버리지 추가

적절한 모킹과 엣지 케이스 커버리지와 함께 기존 기능에 대한 단위 및 통합 테스트를 구현합니다.

코드베이스를 프레임워크 간 마이그레이션

REST API에서 GraphQL로 또는 테스트 프레임워크 간에 체계적으로 마이그레이션하고 롤백 체크포인트를 설정합니다.

試試這些提示

간단한 리팩토리 요청
Use swarm to refactor the auth module. Goal: Convert all files in auth/ to async/await, ensure npm test passes with 80% coverage. Create the plan at AUTH_REFACTOR.md.
기능 구현
Use swarm to add user notification preferences. Goal: Create settings UI, API endpoints, database migration. Plan at NOTIFICATIONS.md. Test command: npm test.
코드 마이그레이션
Use swarm to migrate from Jest to Vitest. Goal: All tests pass, coverage maintained, jest removed from dependencies. Plan at MIGRATION.md.
대규모 변경
Use swarm for the database modernization project. Goal: Convert all models to use Prisma, update all controllers, maintain 100% test pass rate. Plan at DATABASE_MODERNIZATION.md.

最佳實務

  • 완료가什么样인지를 정확히 정의하는 구체적이고 측정 가능한 목표 진술로 시작하세요
  • 특정 테스트 명령어와 검증 단계를 포함한 게이트키퍼 체크리스트를 포함하세요
  • 작업 범위에 맞게 MAX_ITERATIONS를 적절하게 설정하세요 (기본값은 20)

避免

  • 한 줄 수정이나 오타 수정에 스웜 사용
  • 인증 시스템을 개선과 같이 모호한 목표를 설정하는 것 대신 구체적인 측정 가능한 결과를 정의하세요
  • 반복을節約하기 위해 검토 게이트를 건너뛰는 것은 품질 보증 목적을 무력화합니다

常見問題

스웜은 어떤 AI 도구를 지원합니까?
Swarm은 Claude CLI와 Codex CLI를 모두 지원합니다. Codex의 경우 --codex 플래그를 사용하거나 (기본값) Claude의 경우 --claude를 사용하세요.
스웜은 몇 번 반복 실행합니까?
기본적으로 스웜은 최대 20번 반복 실행됩니다. MAX_ITERATIONS 환경 변수로 재정의할 수 있습니다.
스웜이 무엇을 할지 미리 볼 수 있습니까?
예, --dry-run 또는 -n 플래그를 사용하여 실제로 에이전트를 실행하지 않고 실행할 명령어를 미리 볼 수 있습니다.
스웜을 사용하면 내 데이터가 안전합니까?
스웜은 로컬에서 구성된 AI 도구를 사용하여 실행됩니다. AI 도구가 사용하는 것 외에는 외부 서버로 데이터가 전송되지 않습니다.
왜 에이전트가 멈추거나 같은 작업을 반복합니까?
계획 목표가 충분히 구체적인지 확인하세요. 모호한 목표는 에이전트가 작업을 반복하게 만듭니다. 각 단계에 명확한 체크박스가 있는지 확인하세요.
스웜은 단일 에이전트와 어떻게 다릅니까?
스웜은 단일 에이전트와 어떻게 다릅니까? 스웜은 여러 반복과 다양한 에이전트 역할(작업자, 검토자, 단순화자, 테스터, 게이트키퍼)을 사용하여 터널 비전을 방지하고 품질을 보장합니다.

開發者詳情

作者

nbashaw

授權

MIT

引用

main

檔案結構