-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathexample_dag.json
More file actions
41 lines (41 loc) · 2.21 KB
/
Copy pathexample_dag.json
File metadata and controls
41 lines (41 loc) · 2.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{
"title": "Build a tiny CLI todo app",
"tasks": [
{
"id": "research-stack",
"depends_on": [],
"complexity": "LOW",
"subtask_prompt": "Sketch the smallest reasonable design for a single-file Node.js CLI todo app that stores items in a local JSON file. List the supported commands (add, list, done, rm), the JSON schema, and the file layout. Output as markdown bullets only — do not write any code yet."
},
{
"id": "research-cli-conventions",
"depends_on": [],
"complexity": "LOW",
"subtask_prompt": "Summarize the conventions a small Node CLI should follow: shebang line, exit codes, stdout vs stderr usage, --help output shape, and how to parse argv without a dependency. Output as markdown bullets only — do not write code."
},
{
"id": "design",
"depends_on": ["research-stack", "research-cli-conventions"],
"complexity": "MED",
"subtask_prompt": "Combine the upstream research into a one-page implementation plan for the todo CLI. Specify file paths, function signatures, error handling, and the JSON storage shape. Output a markdown design doc — still no code."
},
{
"id": "implement",
"depends_on": ["design"],
"complexity": "MED",
"subtask_prompt": "Implement the design as `todo.mjs` in the current working directory. It must be a single file with no dependencies, support the four commands from the design, and persist to `./todos.json`. After writing the file, run it once with `node todo.mjs --help` and include the output in your reply."
},
{
"id": "tests",
"depends_on": ["implement"],
"complexity": "LOW",
"subtask_prompt": "Add a `test_todo.mjs` script in the cwd that exercises add → list → done → rm against `todo.mjs` using a temp JSON file. Use only the Node `node:test` and `node:assert` modules. Run it with `node --test test_todo.mjs` and include the output in your reply."
},
{
"id": "docs",
"depends_on": ["implement"],
"complexity": "LOW",
"subtask_prompt": "Write a short `README.md` in the cwd describing what `todo.mjs` does, the supported commands with examples, and where data is stored. Do not modify `todo.mjs`."
}
]
}