task-forest
Skill764 starsChanged 3 months agoMITView on GitHub
Maintains a repo-local task forest or task DAG for the current workspace. Use when the user asks to initialize or update a task forest, close a session, summarize evolving project work, align a request with a global goal, track progress/history/deviations/todos, save or apply a task proposal, or export the client-readable task-forest HTML. Do not use for executing the tracked tasks themselves or for generic HTML work.
In this repository10 other files it gives its agents.
- AGENTS.mdAGENTS.md
- academic-humanizerSkill
- assess-interview-candidateSkill
- clear-communicationSkill
- pause-and-resumeSkill
- run-history-skill-builderSkill
- run-history-skill-upgraderSkill
- session-handoff-promptSkill
- task-clarifierSkill
- user-profile-keeperSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. About 0 are common, 5 are distinctive, and 12 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
12
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Use the user's language for task content, proposals, reports, and HTML.
- Very specific: line 22
Read and write task-forest data only through scripts/task_forest.py.
- Very specific: line 23
Use one primary child_of parent per node, contributes_to for secondary ownership, and depends_on for prerequisites.
- Distinctive: line 25
Keep low-confidence inference in a question or proposal.
- Very specific: line 26
Write visible task titles and purposes in plain language.
- Distinctive: line 28
Keep HTML interactions read-only.
- Distinctive: line 33
When initializing, updating, or closing a session:
- Very specific: line 36
Read list --json and todo --json.
- Very specific: line 41
After confirmation, run proposal-apply --yes, validate, and export.
- Very specific: line 44
Use $task-clarifier when user intent or the target global goal is genuinely unclear.
- Distinctive: line 81
Do not present those JSON files as delivery artifacts unless the user explicitly asks for machine-readable data.
- Very specific: line 85
Read references/schema.md for node fields, proposal actions, and canonical invariants.
- Very specific: line 86
Read references/goal-alignment.md only when judging global-goal fit or competing candidate plans.
- Very specific: line 87
Read references/node-types.md only when node classification is unclear.
- Very specific: line 88
Read references/concurrency.md before resolving stale proposals or concurrent writes.
- Very specific: line 89
Read references/html-visualization-contract.md when changing or validating the HTML.
- Very specific: line 90
Read references/integration-contract.md only when changing JSON or registry compatibility.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Task Forest
Purpose
Maintain the current workspace's task structure, proposals, history, and progress. Produce one standalone HTML deliverable that a first-time reader can understand without opening another task list or internal file.
Use the user's language for task content, proposals, reports, and HTML. Default to Chinese when unknown.
Portability
This skill is agent-agnostic. Install the whole task-forest directory in any host-supported skill location, then resolve scripts, references, and assets from the directory containing this SKILL.md. Do not assume a specific agent name, skill root, home-directory layout, shell, path separator, or operating system.
Use an available Python 3 launcher on the host (python3, python, or py -3). The scripts use the Python standard library and support macOS, Linux, and Windows. To label task history with the calling agent, set COMPASS_AGENT_NAME or AGENT_NAME, or pass --actor; otherwise the neutral value agent is used.
Core Rules
- Read and write task-forest data only through
scripts/task_forest.py; never hand-edit.agent-workbench/task-forest/canonical files. - Use one primary
child_ofparent per node,contributes_tofor secondary ownership, anddepends_onfor prerequisites. - Save graph changes as a proposal and wait for user confirmation before
proposal-apply --yes. - Keep low-confidence inference in a question or proposal. Record material execution drift as a deviation.
- Write visible task titles and purposes in plain language. A reader must understand what the task delivers, why it exists, and what has been completed without knowing internal codes such as
P04or reading another file. - Export one HTML surface:
exports/task-forest.html. It showsdone,in_progress, and their necessarychild_ofancestors, with history playback. Do not expose internal discussions, evidence, queues, filesystem paths, sessions, or proposal content in the HTML. - Keep HTML interactions read-only. Formal changes always return through the proposal workflow.
- Keep task data and discovery metadata repo-local by default. Cross-workspace discovery is optional: enable it only after the user explicitly opts in by setting
TASK_FOREST_ENABLE_GLOBAL_REGISTRY=1. This writes lightweight workspace paths and health summaries toAGENT_WORKBENCH_DB, or to~/.agent-workbench/agent-workbench.sqlite3when that variable is unset; it never stores task content.
Main Workflow
When initializing, updating, or closing a session:
- Run
init. - Read
list --jsonandtodo --json. - Identify the global goal served by the session and the task structure that must remain visible.
- When the workspace has an authoritative task list, preserve its meaningful
goal -> phase -> module -> concrete taskhierarchy and sibling order for everydoneorin_progresstask. Include necessary ancestors, omit wholly unstarted branches, and attach extra fixes under the feature they improve. Never collapse several phases into one node or rely on edge creation order. If one sibling needsdisplay_order, set a unique numeric value for the whole sibling group; partial, duplicate, or invalid values must fail validation. - Make every visible node independently understandable. Use a clear title plus
summaryorpurpose; add outcomes or acceptance criteria when they clarify delivery. Treat internal codes as secondary labels, not as the task name. - Show and save a proposal. Do not apply it before confirmation.
- After confirmation, run
proposal-apply --yes,validate, andexport. - Return the proposal path and the single HTML path.
Use $task-clarifier when user intent or the target global goal is genuinely unclear.
Commands
Resolve <skill-dir> from this file and use an available Python 3 executable. The examples use python3; substitute the host's available launcher when needed.
python3 <skill-dir>/scripts/task_forest.py init
python3 <skill-dir>/scripts/task_forest.py list --json
python3 <skill-dir>/scripts/task_forest.py todo --json
python3 <skill-dir>/scripts/task_forest.py proposal-save --proposal-file /path/to/proposal.json
python3 <skill-dir>/scripts/task_forest.py proposal-apply <proposal-id> --yes
python3 <skill-dir>/scripts/task_forest.py validate
python3 <skill-dir>/scripts/task_forest.py exportThe default workspace is the current directory. Use --workspace only when another workspace is explicit. Use --root only when the caller explicitly selected a non-default task-forest root.
Global registry integration is off by default. TASK_FOREST_DISABLE_GLOBAL_REGISTRY=1 remains an explicit override when a host sets the enable flag globally.
Outputs
The user-facing artifacts are:
proposals/<proposal_id>.json
exports/task-forest.htmlThe exporter also maintains three internal compatibility files for gap-router and local-agent-control-room:
exports/task-forest.graph.json
exports/task-forest.todos.json
exports/task-forest.timeline.jsonDo not present those JSON files as delivery artifacts unless the user explicitly asks for machine-readable data.
References and Validation
- Read
references/schema.mdfor node fields, proposal actions, and canonical invariants. - Read
references/goal-alignment.mdonly when judging global-goal fit or competing candidate plans. - Read
references/node-types.mdonly when node classification is unclear. - Read
references/concurrency.mdbefore resolving stale proposals or concurrent writes. - Read
references/html-visualization-contract.mdwhen changing or validating the HTML. - Read
references/integration-contract.mdonly when changing JSON or registry compatibility.
For HTML or exporter changes, run:
python3 <skill-dir>/scripts/validate_task_forest_export.py --skill-dir <skill-dir>The HTML remains a derived, read-only view. Canonical task data and proposal history stay repo-local.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

