技能 2agent
🤖

2agent

安全 ⚡ 包含脚本📁 文件系统访问⚙️ 外部命令

使用 Cursor 和 Claude Code 設定雙代理人工作流程

管理兩個具有不同角色的人工智慧代理程式很複雜。此技能在 Cursor 的專案管理與 Claude Code 的實作之間建立明確的分工,包含適當的檔案結構和記憶體管理。

支持: Claude Code(CC)
📊 69 充足
1

下载技能 ZIP

2

在 Claude 中上传

前往 设置 → 功能 → 技能 → 上传技能

3

开启并开始使用

测试它

正在使用“2agent”。 Set up 2-agent workflow for my project

预期结果:

  • Created .cursor/commands/ directory with 5 command templates
  • Initialized .claude/rules/ with workflow.md and coding-standards.md
  • Set up .claude/memory/ with session-log.md, decisions.md, and patterns.md
  • Created version file: .claude-code-harness-version
  • Copied auto-cleanup-hook.sh to .claude/scripts/
  • Restart Cursor to see new commands in the command palette

正在使用“2agent”。 Update the 2-agent configuration

预期结果:

  • Checked current version and files
  • Created backup of existing configuration
  • Updated workflow.md and coding-standards.md rules
  • Preserved all existing tasks in Plans.md
  • Updated version tracking file
  • Backup available at .claude-code-harness-backup-*

安全审计

安全
v5 • 1/16/2026

This is a documentation-only skill containing file setup instructions. All operations are confined to project directories using standard shell commands. No network access, no credential handling, no external data flow. All 167 static findings are false positives - they occur in markdown documentation files showing example commands, not executable code.

5
已扫描文件
955
分析行数
3
发现项
5
审计总数
审计者: claude 查看审计历史 →

质量评分

38
架构
100
可维护性
85
内容
21
社区
100
安全
91
规范符合性

你能构建什么

在 Cursor 中定義任務

將 Cursor 設定為專案管理代理程式來規劃和委派任務,同時由 Claude Code 處理實作。

協調 AI 協作

在規劃和編碼階段之間的 AI 代理程式之間建立明確的交接協議。

建構 AI 輔助工作流程

建立有組織的工作流程,包含記憶體持續性和決策追蹤,以實現更好的 AI 協作。

试试这些提示

初始設定
設定 Cursor 和 Claude Code 之間的雙代理人工作流程。我希望 Cursor 負責規劃,我希望 Claude Code 負責實作。
更新配置
將雙代理人配置更新到最新版本。保留我現有的任務和決策。
產生指令
產生 Cursor 自訂指令,用於專案概覽、與 Claude Code 規劃,以及交接任務。
重設工作流程
重設雙代理人設定。建立新的記憶體檔案並重新初始化所有配置檔案。

最佳实践

  • 在委派給 Claude Code 之前,先使用 Cursor 指令進行規劃階段
  • 定期檢閱工作階段記錄以追蹤 AI 協作歷史
  • 定期更新到最新版本以獲得新的工作流程改進

避免

  • 在沒有明確角色分工的情況下對同一任務使用兩個代理程式
  • 跳過初始設定並嘗試手動配置
  • 未理解工作流程結構就修改產生的檔案

常见问题

在此設定中 Cursor 和 Claude Code 有什麼區別?
Cursor 作為專案管理代理程式負責規劃和任務定義。Claude Code 作為實作代理程式負責編碼任務。
此技能可以在 VS Code 中使用嗎?
不行。此整合特定於支援 .cursor/commands/ 中自訂指令的 Cursor IDE。
此技能會建立哪些檔案?
Cursor 指令、Claude 規則、記憶體結構,以及隱藏專案目錄中的版本追蹤檔案。
我的專案資料安全嗎?
是的。所有檔案僅在您的專案目錄中建立。不會有任何資料傳送到外部伺服器。
日後如何更新配置?
執行更新技能以取得最新範本,同時保留您的任務和決策。
我可以將其與其他人工智慧助理一起使用嗎?
此設定專門為 Claude Code 設計。其他人工智慧助理可能不支援相同的規則格式。

开发者详情

文件结构