Communitygithub.com

curiositech/windags-skills

dag-orchestrator 的別名。原始的 DAG 執行技能,現已與編排器合併為 dag-orchestrator。使用 dag-orchestrator 以獲得完整的 HTDAG 體驗。

windags-skills 是什麼?

此別名技能 `dag-orchestrator` 用於在 Claude Code 中,透過任務工具協調並行代理執行。它能將複雜任務分解成多個波次,根據任務類型(研究、設計、複雜推理)自動選擇合適的模型(haiku、sonnet、opus),並依據依賴關係和檔案衝突偵測,決定任務是並行還是序列執行。它內建衝突檢測機制(例如檔案重疊時自動改為序列執行)、錯誤恢復策略(如逾時重試、資源衝突等待),以及處理循環依賴和上下文溢位等常見問題的指引。此技能透過提供結構化的波次執行策略與整合的品質檢查清單,幫助開發者有效管理多代理工作流程,避免資源競爭和執行錯誤。

相容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/curiositech/windags-skills/tree/HEAD/skills/dag-executor

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

你是一個 DAG 執行器,使用 Claude Code 的 Task 工具編排並行代理執行。你會分解任務、偵測衝突,並協調多波次的並行執行。

決策點

模型選擇啟發式

  • 如果任務需要研究/分析 → 使用 haiku
    • 範例:市場研究、競爭分析、資料提取
  • 如果任務需要設計/規劃 → 使用 sonnet
    • 範例:線框圖、系統設計、架構規劃
  • 如果任務需要複雜推理/綜合 → 使用 opus
    • 範例:多步驟問題解決、程式碼生成、策略決策

波次執行策略

  • 如果波次標記為 parallelizable: true → 在單一訊息中執行所有任務
    // 同時呼叫 BOTH
    Task({...}); Task({...});
    
  • 如果波次標記為 parallelizable: false → 序列執行
    // 等待完成後再呼叫下一個
    Task({...}); // 等待 → Task({...});
    

衝突偵測回應

  • 如果偵測到檔案重疊 → 任務自動改為序列執行
  • 如果存在單例任務(建置/測試/部署)→ 強制序列執行
  • 如果無衝突 → 繼續並行執行

錯誤恢復策略

  • 如果任務因逾時失敗 → 使用更長的逾時時間重試一次
  • 如果任務因資源衝突失敗 → 等待 30 秒,以序列方式重試
  • 如果任務因驗證錯誤失敗 → 跳過依賴任務,繼續執行獨立任務

失敗模式

並行執行競賽條件

症狀: 多個任務同時宣告同一個檔案、並發寫入、輸出損毀 偵測: 錯誤訊息包含 "file locked" 或 "concurrent modification" 修復: 對受影響的任務強制序列執行,實施正確的檔案鎖定

模型不匹配導致的效能問題

症狀: 簡單任務花費太長時間(用 opus 做研究)或複雜任務失敗(用 haiku 做推理) 偵測: 簡單任務持續時間 >5 分鐘,或多次重試 修復: 套用模型選擇啟發式,使用適當的模型重新啟動

波次間上下文溢位

症狀: 任務接收到過多不相關資料、達到 token 限制、效能緩慢 偵測: 任務回應提及 "too much information" 或輸出被截斷 修復: 將上下文過濾為僅包含下一波次所需的必要資料,使用 TodoWrite 追蹤進度

循環相依性導致的死結

症狀: 任務無限期等待,執行無進展 偵測: 波次卡住超過 10 分鐘且無任何完成 修復: 透過讓一個任務使用佔位資料來打破循環相依性,重新排序執行

單例任務衝突

症狀: 多個建置/測試程序同時執行,資源耗盡 偵測: 並行記錄中出現多個 "npm run" 或建置程序 修復: 取消除一個外的所有程序,將其他排入序列執行

工作範例

複雜 SaaS 登陸頁面建置

輸入: "為 SaaS 產品建立一個登陸頁面,包含使用者研究、品牌設計和部署"

步驟 1 - 分解:

cd website/
npx tsx src/dag/demos/decompose-and-execute.ts simple

輸出分析:

Wave 1: [user-research] (haiku - 研究任務)
Wave 2: [brand-identity, wireframe-structure] (兩個都是 sonnet - 設計任務)
Wave 3: [copywriting, component-development] (sonnet 用於兩者)
Wave 4: [integration-testing] (haiku - 簡單驗證)
Wave 5: [deployment] (opus - 複雜編排)

步驟 2 - 波次 1 執行(序列):

Task({
  description: "Execute user-research",
  subagent_type: "design-archivist", 
  model: "haiku", // 研究任務
  prompt: "Analyze 20-30 SaaS landing pages for conversion patterns..."
});

步驟 3 - 波次 2 執行(並行): 由於未偵測到檔案衝突:

// 單一訊息中包含兩個任務
Task({
  description: "Execute brand-identity",
  subagent_type: "design-system-creator",
  model: "sonnet", // 設計任務
  prompt: "Create brand identity using research insights: [filtered context]"
});

Task({
  description: "Execute wireframe-structure", 
  subagent_type: "interior-design-expert",
  model: "sonnet", // 設計任務
  prompt: "Design wireframe structure based on user research findings"
});

專家妙招: 使用過濾後的上下文,而不是傾倒完整的研究輸出。新手會傳遞所有東西。

品質閘門

  • 所有波次以正確的依賴順序執行
  • 並行任務已完成且無檔案衝突
  • 所有 Task 呼叫都包含適當的模型選擇 (haiku/sonnet/opus)
  • 失敗的任務已正確報告,並附有具體錯誤詳情
  • 波次之間傳遞的上下文已過濾且相關
  • 單例任務(建置/測試/部署)以序列方式執行
  • 檔案鎖定已獲取/釋放且無死結
  • 最終交付物符合原始任務要求
  • 執行時間在合理範圍內(無無限迴圈)
  • 所有暫存檔案和鎖定已清理

不適用範圍

請勿對以下情況使用 DAG 執行:

  • 簡單的單一代理任務 → 改用直接技能調用
  • 即時互動任務 → 改用基於聊天的技能
  • 需要在執行中獲得人為輸入的任務 → 改用人工編排
  • 檔案上傳/下載 → 改用檔案管理技能
  • 子任務少於 3 個的任務 → 直接執行更有效率

將以下情況委派給其他技能:

  • 無需執行的任務規劃 → 使用 task-decomposer
  • 簡單的檔案操作 → 使用 file-manager
  • 直接程式碼生成 → 使用 code-architect
  • 單一代理對話 → 使用特定技能的代理

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

curiositech/windags-skills

Expert in 2000s-era music visualization (Milkdrop, AVS, Geiss) and modern WebGL implementations. Specializes in Butterchurn integration, Web Audio API AnalyserNode FFT data, GLSL shaders for audio-reactive visuals, and psychedelic generative art. Activate on "Milkdrop", "music visualization", "WebGL visualizer", "Butterchurn", "audio reactive", "FFT visualization", "spectrum analyzer". NOT for simple bar charts/waveforms (use basic canvas), video editing, or non-audio visuals.

curiositech/windags-skills

Expert legal research agent for finding and scraping expungement data state by state. Knows authoritative sources, URL patterns, Firecrawl configuration, and 2026 legal landscape.

curiositech/windags-skills

Expert in 3D computer vision labeling tools, workflows, and AI-assisted annotation for LiDAR, point clouds, and sensor fusion. Covers SAM4D/Point-SAM, human-in-the-loop architectures, and vertical-specific training strategies. Activate on '3D labeling', 'point cloud annotation', 'LiDAR labeling', 'SAM 3D', 'SAM4D', 'sensor fusion annotation', '3D bounding box', 'semantic segmentation point cloud'. NOT for 2D image labeling (use clip-aware-embeddings), general ML training (use ml-engineer), video annotation without 3D (use computer-vision-pipeline), or VLM prompt engineering (use prompt-engineer).

curiositech/windags-skills

Implement WCAG 2.2 AA/AAA compliance with automated testing, keyboard navigation, screen reader support, and focus management. Activate on: accessibility audit, WCAG compliance, keyboard navigation, screen reader, aria attributes, axe-core, focus trap. NOT for: design-level accessibility review (use design-accessibility-auditor), color contrast only (use css-in-js-architect).

curiositech/windags-skills

Time-blind friendly planning, executive function support, and daily structure for ADHD brains. Specializes in realistic time estimation, dopamine-aware task design, and building systems that actually work for neurodivergent minds.

curiositech/windags-skills

Designs digital experiences for ADHD brains using neuroscience research and UX principles. Expert in reducing cognitive load, time blindness solutions, dopamine-driven engagement, and compassionate design patterns. Activate on 'ADHD design', 'cognitive load', 'accessibility', 'neurodivergent UX', 'time blindness', 'dopamine-driven', 'executive function'. NOT for general accessibility (WCAG only), neurotypical UX design, or simple UI styling without ADHD context.

curiositech/windags-skills

>- Apply crisis decision-making research to agent routing, uncertainty triage, and coordination failure analysis in time-pressured systems. Use when diagnosing handoff failures, analytical paralysis, or expert judgment under incomplete information. NOT for routine coding, simple CRUD design, or static single-agent tasks with complete information.

curiositech/windags-skills

Extend and modify the admin dashboard, developer portal, and operations console. Use when adding new admin tabs, metrics, monitoring features, or internal tools. Activates for dashboard development, analytics, user management, and internal tooling.

curiositech/windags-skills

Conversation patterns and interaction protocols for multi-agent systems. Covers request/response, pub/sub, blackboard, delegation chains, debate, critique, consensus, fan-out/fan-in, supervisor-worker, and peer negotiation. Deep analysis of AutoGen conversation patterns, CrewAI delegation, LangGraph state passing, and FIPA-ACL performatives. Teaches how to design what agents say to each other and in what order. Activate on: "agent conversation", "agent protocol", "multi-agent debate", "agent delegation", "supervisor worker pattern", "agent voting", "consensus protocol", "fan-out fan-in", "agent negotiation", "blackboard pattern", "agent dialogue", "conversation topology", "agent handoff". NOT for: wire format or serialization (use agent-interchange-formats), orchestration infrastructure (use agentic-infrastructure-2026), single agent behavior (use agentic-patterns).

curiositech/windags-skills

Meta-agent for creating new custom agents, skills, and MCP integrations. Expert in agent design, MCP development, skill architecture, and rapid prototyping. Activate on 'create agent', 'new skill', 'MCP server', 'custom tool', 'agent design'. NOT for using existing agents (invoke them directly), general coding (use language-specific skills), or infrastructure setup (use deployment-engineer).

curiositech/windags-skills

AI-powered calendar management and agent-based scheduling coordination. Covers calendar APIs (Google Calendar, CalDAV/iCal), AI scheduling assistants (Reclaim, Clockwise, Motion, Cal.com), building custom calendar agents with MCP, multi-calendar merging, timezone management, focus block protection, meeting fatigue detection, and agent-to-agent meeting negotiation protocols. Activate on: "calendar agent", "AI scheduling", "calendar coordination", "meeting scheduling", "calendar API", "focus time protection", "calendar optimization", "Google Calendar MCP", "Reclaim", "Clockwise", "Motion", "Cal.com", "smart scheduling", "calendar-aware agent", "timezone scheduling", "agent negotiation meetings". NOT for: manual calendar UI component design (use form-validation-architect), project management scheduling or Gantt charts (use project-management-guru-adhd), general time-tracking or pomodoro apps (use adhd-daily-planner for time-awareness), building the agent itself from scratch (use agent-creator).

curiositech/windags-skills

Build and adopt production AI agent infrastructure in 2026. Covers framework selection (LangGraph, CrewAI, AutoGen, MCP), orchestration patterns, evaluation, observability, memory systems, and tool use. Also covers the SOCIAL dimension: how to sell agent infrastructure internally, change management, measuring ROI, building trust in autonomous systems, and scaling adoption across teams. Activate on: "agent infrastructure", "agent framework comparison", "which agent framework", "sell AI tools internally", "agent adoption", "agent observability", "agent evaluation", "MCP architecture", "agentic mesh", "enterprise AI agents", "AI change management", "agent ROI". NOT for: building specific agents (use ai-engineer), designing agent behavior patterns (use agentic-patterns), prompt tuning (use prompt-engineer).

curiositech/windags-skills

Fundamental patterns for effective agentic behavior. Teaches decomposition, tool orchestration, error recovery, context management, quality self-assessment, and knowing when to stop. Model-agnostic principles that make any agent more effective regardless of domain. Activate on: "how should I structure this agent", "agentic workflow", "agent patterns", "multi-step task", "tool orchestration", "/agentic-patterns", "decompose this", "agent best practices", "chain of actions", "when should the agent stop", "agent loop design". NOT for: creating agent infrastructure (use agent-creator), building DAGs (use windags-architect), specific tool implementation.

curiositech/windags-skills

Automated discovery and matching of agent skills for dynamic task routing and capability assessment

curiositech/windags-skills

Cryptographic security for agentic systems — zero-trust agent networking, signed message envelopes (JWS/JWE), capability-based security (ocaps), Merkle tree audit trails, WASM sandboxing, and formal verification. Covers CLI dev tool security, mTLS between agents, permission boundaries (least privilege for AI agents), and supply chain security for skills/plugins. Activate on: "agent security", "zero trust agents", "secure agent communication", "capability-based security", "ocap", "signed messages between agents", "agent audit trail", "sandbox agent execution", "agent permissions", "mTLS agents", "cryptographic verification", "agent supply chain", "OWASP agentic", "prove agent did X", "tamper-proof agent logs". NOT for: application-level SAST scanning (use security-auditor), network firewall rules (use infrastructure), SOC2/HIPAA compliance (organizational), or prompt injection defense (use prompt-engineer).

curiositech/windags-skills

Data structures and serialization formats for agent-to-agent communication. Covers message envelopes, structured output schemas, capability declarations, task handoff payloads, error/retry signaling, and context windows as data structures. Deep comparison of A2A protocol, MCP, OpenAI function calling, and LangChain message types. Teaches when to use rigid schemas vs free-form with validation, typed vs untyped, streaming vs batch. Activate on: "agent message format", "agent communication schema", "agent-to-agent protocol", "A2A protocol", "MCP message format", "structured output for agents", "agent interop", "interchange format", "agent serialization", "task handoff format", "capability declaration". NOT for: what agents say to each other (use agent-conversation-protocols), orchestration topology (use multi-agent-coordination), building agent infrastructure (use agentic-infrastructure-2026).

curiositech/windags-skills

Logic-based agent programming language implementing BDI architecture for practical autonomous agent development

curiositech/windags-skills

>- Design AgentSpeak(L)-style BDI agents with context-guarded plans, selection functions, and intention stacks. Use for interruptible autonomy, agent policy, and multi-agent orchestration in dynamic environments. NOT for simple rule engines, static planners, or centralized workflows.

curiositech/windags-skills

Foundational concurrent computation model where actors communicate exclusively through asynchronous message passing

curiositech/windags-skills

license: Apache-2.0 NOT for unrelated tasks outside this domain.

相關技能