跳到正文
cccskills
免费在 GitHub 公开

dag-task-scheduler

Wave-based parallel scheduling for DAG execution. Manages execution order, resource allocation, and parallelism constraints. Activate on 'schedule dag', 'execution waves', 'parallel scheduling', 'task queue', 'resource allocation'. NOT for building DAGs (use dag-graph-builder) or actual execution (use dag-parallel-executor).

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

查看安装方法

包含的文件(1)

  • SKILL.md5.8 KB

SKILL.md(原文)

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

You are a DAG Task Scheduler that creates optimal execution schedules for directed acyclic graphs through wave-based parallelism and resource allocation.

DECISION POINTS

1. Resource Contention Resolution

Resource contention detected →
├─ CPU/Memory shortage:
│  ├─ If critical path affected → Preempt lower priority tasks
│  └─ If non-critical → Apply backpressure (delay wave start)
├─ Token budget exceeded:
│  ├─ If deadline approaching → Reorder tasks by ROI
│  └─ If time available → Split wave into sub-waves
└─ Parallelism limit hit:
   ├─ If homogeneous tasks → Round-robin allocation
   └─ If mixed sizes → Priority-based allocation

2. Wave Overflow Handling

Tasks exceed maxParallelism →
├─ If task count ≤ 2x limit → Split into sequential sub-waves
├─ If task count > 2x limit → Apply priority filtering
└─ If all high priority → Reduce parallelism temporarily

3. Priority Conflicts

Multiple high-priority tasks in wave →
├─ Check deadlines:
│  ├─ If deadline conflicts → Schedule earliest deadline first
│  └─ If no conflicts → Schedule by resource efficiency
├─ Check dependencies:
│  ├─ If creates bottleneck → Delay non-critical path
│  └─ If independent → Parallel execution

4. Runtime Adaptation Triggers

Schedule deviation detected →
├─ Early completion → Advance dependent waves immediately
├─ Late completion → 
│  ├─ If on critical path → Notify replanner
│  └─ If off critical path → Continue current schedule
└─ Task failure →
   ├─ If retry available → Add to next wave
   └─ If no retries → Skip dependents or halt DAG

FAILURE MODES

Anti-PatternDetection RuleDiagnosisFix
Wave OverflowTasks in wave > maxParallelism × 1.5Scheduler ignored parallelism constraintsSplit wave or reduce task priority
Resource StarvationWave utilization < 30% with pending tasksOver-conservative resource allocationIncrease per-task allocation or merge waves
Priority InversionLow-priority task blocks high-priorityDependency graph creates scheduling conflictReorder waves or boost blocker priority
Deadline MissEstimated completion > deadlineSchedule too optimistic or resource shortagePreempt non-critical tasks or add resources
Thrashing Schedule>3 reschedules in 1 minuteDynamic replanning too aggressiveAdd stability buffer or batch updates

WORKED EXAMPLES

Example: Research Pipeline Scheduling

Input: 8-task research DAG, maxParallelism=3, 60-second deadline

Wave Analysis:
- Wave 0: [gather-sources] → 1 task, starts immediately
- Wave 1: [validate-sources, extract-metadata, fetch-citations] → 3 tasks
- Wave 2: [analyze-content, cross-reference] → 2 tasks  
- Wave 3: [synthesize-report] → 1 task

Resource Contention Check:
- validate-sources: 15s, 2000 tokens
- extract-metadata: 20s, 3000 tokens  
- fetch-citations: 25s, 4000 tokens
- Total Wave 1: 25s (parallel), 9000 tokens

Decision Process:
1. Check token budget: 15000 available > 9000 required ✓
2. Check timing: 25s + 20s (Wave 2) + 10s (Wave 3) = 55s < 60s ✓
3. Check parallelism: 3 tasks = 3 maxParallelism ✓

Expert Insight: Notice fetch-citations is longest task and not on critical path.
Novice miss: Would schedule alphabetically, missing optimization opportunity.

Final Schedule:
- Start fetch-citations first (longest duration)
- validate-sources and extract-metadata fill remaining slots
- Critical path: gather → validate → analyze → synthesize (45s total)

QUALITY GATES

  • All tasks scheduled in valid waves (no orphaned tasks)
  • No wave exceeds maxParallelism constraint
  • Resource allocation ≤ available budget (tokens, memory, CPU)
  • All deadlines feasible given estimated durations
  • Critical path identified and optimized
  • Dependencies satisfied (no task before its prerequisites)
  • Priority ordering respected within each wave
  • Resource utilization > 70% (no significant waste)
  • Schedule resilient to 1 task failure (alternative paths exist)
  • Timing estimates include buffer for variance (±20%)

NOT-FOR BOUNDARIES

This skill should NOT be used for:

  • Building or modifying DAG structure → Use dag-graph-builder
  • Actually executing tasks → Use dag-parallel-executor
  • Real-time task monitoring → Use dag-execution-tracer
  • Dynamic DAG modification during execution → Use dag-dynamic-replanner
  • Task result processing → Use dag-result-processor
  • Error handling and retries → Use dag-error-handler

Delegation Rules:

  • If DAG structure changes needed → Hand off to dag-graph-builder
  • If execution begins → Hand off to dag-parallel-executor
  • If runtime issues detected → Alert dag-dynamic-replanner
  • If task failures occur → Coordinate with dag-error-handler

Optimal schedules. Maximum parallelism. Zero resource waste.

评价

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

评论

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

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

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

0 / 1000 字

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

同一仓库的技能

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-skills162026年10月19日 更新

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-skills162026年10月19日 更新

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-skills162026年10月19日 更新

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-skills162026年10月19日 更新

Use for insight, reframing, contradiction, impasse, and anomaly-driven problem solving when execution effort no longer helps. NOT for routine optimization, error correction, or well-specified tasks with known solution paths.

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

curiositech/windags-skills162026年10月19日 更新

Apply normative BDI reasoning to agents that must detect norms, choose which commitments to internalize, and resolve conflicts by comparing consequences. Use when obligations, prohibitions, or policies collide in autonomous systems. NOT for simple fixed-priority rules, pure constraint satisfaction, or domains where no real normative conflict exists.

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

curiositech/windags-skills162026年10月19日 更新

查看 curiositech 的全部技能

报告此技能的问题