skill-dag-run

skill-dag-run is a cursor rule for Cursor from dewtech-technologies/dare-method. It costs 0 tokens per session (1,197 once invoked), scanned A, original, MIT.

A procedure for executing an already-approved task graph, or DAG, in dependency order. A DAG is a plan where each task can depend on earlier tasks but cannot form a loop.

In plain words
What is it for?
Use it to implement task specifications, run tests and linting, and mark each task as complete or failed.
Why use it?
It avoids starting tasks before their prerequisites are complete and keeps the execution status recorded in the project.

Cursor rule for Cursor

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/dewtech-technologies/dare-method/skill-dag-run
Clone the repo
git clone --depth 1 https://github.com/dewtech-technologies/dare-method

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for skill-dag-run

README.md
[![agentmods](https://agentmods.dev/badge/rules/dewtech-technologies/dare-method/skill-dag-run.svg)](https://agentmods.dev/rules/dewtech-technologies/dare-method/skill-dag-run)
Your own site
<a href="https://agentmods.dev/rules/dewtech-technologies/dare-method/skill-dag-run"><img src="https://agentmods.dev/badge/rules/dewtech-technologies/dare-method/skill-dag-run.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 1,197 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.01197
Opus 5 $0.00000 $0.00598
Sonnet 5 $0.00000 $0.00239
Haiku 4.5 $0.00000 $0.00120

Measured today against content hash 0ce5f6c6867e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

skill-dag-run scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

implementations/cursor/.cursor/rules/skill-dag-run.mdc · 135 lines

How it starts

The opening of the file, as written. The whole thing — 135 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Skill: DAG Run — Executar o grafo

Esta skill executa o grafo que já foi construído — não regenera o dare-dag.yaml, não modifica o BLUEPRINT, não cria specs novas. Apenas roda as tasks na ordem topológica correta.

Para (re)construir o grafo, use skill-dag-build. Para visualizar o grafo, use o comando /dag-viz. Para build + run num único passo, use skill-dag-runner.

Sem API keys. Você (Cursor) usa o plano nativo da IDE. O CLI dare apenas coordena estado, monta prompts e atualiza o canvas.

Quando usar

  • DARE/dare-dag.yaml está aprovado e pronto
  • As specs em DARE/EXECUTION/task-<id>.md estão geradas
  • É hora de implementar as tasks na ordem do grafo
  • O usuário aprovou os ANTI-STUB contracts

Pré-requisitos

  • DARE/dare-dag.yaml existe e foi aprovado pelo usuário
  • Specs em DARE/EXECUTION/task-<id>.md geradas (se não, use skill-dag-build)
  • dare disponível no PATH (npm i -g @dewtech/dare-cli)

Procedimento

1. Validar pré-condições

  • Confirme que DARE/dare-dag.yaml existe. Se não, oriente /generate-blueprint ou skill-dag-build
  • Leia o YAML e verifique: sem ciclos, ids únicos, ranks paralelizáveis
  • Liste para o usuário: total de tasks, ranks, próximas ready

2. Pegar próximas tasks

dare execute --next

O CLI imprime as tasks ready do rank atual com o prompt completo (snippets de até 2000 chars dos outputs dos pais já costurados). Use esses prompts diretamente.

3. Sugerir abrir o canvas

Antes de começar, peça ao usuário abrir DARE/.canvas.md em outra aba do Cursor. Esse é o feedback visual ao vivo da execução.

4. Executar cada task

Para cada task ready:

  1. Leia spec_file se houver (DARE/EXECUTION/task-<id>.md)
  2. Implemente conforme o subtask_promptnão invente, não use mock fora de tests, sem TODOs
  3. Rode o Ralph Loop completo: build → test → lint
  4. Registre o resultado no CLI:
# Sucesso
dare execute --complete task-001 --output "Resumo curto + paths dos arquivos criados/modificados"

# Falha
dare execute --fail task-002 --reason "Mensagem clara da falha"

Read the full file on GitHub · 135 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 135 lines · 0 tokens per session scan A 0ce5f6c6867e

Subscribe to this mod's changes

skill-dag-run is a cursor rule published in the GitHub repository dewtech-technologies/dare-method (5 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,197 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.