{"data":{"slug":"github-lobehub-lobehub-packages-builtin-skills-src-task-cfdef609db58","title":"Manage Task Lifecycle and Subtasks with LobeHub CLI","summary":"Use the LobeHub CLI to create, update, and organize tasks and subtasks, track progress, and manage dependencies and documents within the LobeHub task system.","url":"https:\/\/skillshunter.net\/skills\/github-lobehub-lobehub-packages-builtin-skills-src-task-cfdef609db58","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-lobehub-lobehub-packages-builtin-skills-src-task-cfdef609db58","markdown_url":"https:\/\/skillshunter.net\/skills\/github-lobehub-lobehub-packages-builtin-skills-src-task-cfdef609db58.md","download_url":"https:\/\/skillshunter.net\/skills\/github-lobehub-lobehub-packages-builtin-skills-src-task-cfdef609db58\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Before using commands, ensure you have access to the LobeHub CLI and a valid task ID. Use `lh task view <id>` to check task details before making changes. When adding comments, use `lh task comment <id> -m \"...\"` and mention users via `<mention name=\"Name\" id=\"user_xxx\" \/>` for notifications.","instructions":"\\<task_skill_guides>\nYou are executing a task within the LobeHub task system. Use the `lh task` CLI via `runCommand` to manage your task and related resources.\n\n# Task Lifecycle\n\n| Command                         | Description                                             |\n| ------------------------------- | ------------------------------------------------------- |\n| `lh task view <id>`             | View task details, instruction, documents, activities   |\n| `lh task edit <id>`             | Update task name, instruction, status, priority, labels |\n| `lh task complete <id>`         | Mark task as completed                                  |\n| `lh task comment <id> -m \"...\"` | Add a progress comment                                  |\n| `lh task tree <id>`             | View subtask tree with dependencies                     |\n\n# Working with Subtasks\n\n| Command                                   | Description       |\n| ----------------------------------------- | ----------------- |\n| `lh task create -i \"...\" --parent <id>`   | Create a subtask  |\n| `lh task list --parent <id>`              | List subtasks     |\n| `lh task sort <parentId> <id1> <id2> ...` | Reorder subtasks  |\n| `lh task dep add <id> <dependsOnId>`      | Add dependency    |\n| `lh task dep rm <id> <dependsOnId>`       | Remove dependency |\n\n# Task Documents\n\n| Command                                           | Description               |\n| ------------------------------------------------- | ------------------------- |\n| `lh task doc create <id> -t \"title\" -b \"content\"` | Create and pin a document |\n| `lh task doc pin <id> <docId>`                    | Pin existing document     |\n| `lh task doc unpin <id> <docId>`                  | Unpin document            |\n\n# Task Topics (Conversations)\n\n| Command                             | Description              |\n| ----------------------------------- | ------------------------ |\n| `lh task topic list <id>`           | List conversation topics |\n| `lh task topic view <id> <topicId>` | View topic messages      |\n\n# Usage Pattern\n\n1. Read the reference file for detailed command options: `readReference('references\/commands')`\n2. Run commands via `runCommand` \u2014 the `lh` prefix is automatically handled\n3. Use `--json` flag on any command for structured output\n4. Use `lh task <subcommand> --help` for full command-line help\n\n# Task Execution Guidelines\n\n- **Use stable task references**: Commands accept display identifiers (for example `T-12`) and stable ids (`task_\u2026`). Prefer the id returned by a tool for subsequent calls. Use identifier short links (for example `\/task\/T-12`) in user-facing output; identifiers also remain compatible user input.\n- **Check your task first**: Use `lh task view` to understand the full instruction and context\n- **Use task documents**: Store outputs and deliverables as task documents\n- **Report progress**: Use `lh task comment` to log key milestones. To notify a member who needs to act, mention them with `<mention name=\"Name\" id=\"user_xxx\" \/>`, taking the id from `lh workspace members` (never guess it); a plain \"@Name\" is only text. Each mention sends a notification, so do not @ people in routine progress notes.\n- **Respect dependencies**: Check `lh task tree` to understand task ordering\n- **Complete when done**: Use `lh task complete` when all deliverables are ready\n- **Automation tasks are the exception \u2014 NEVER complete them**: a task with automation (heartbeat or schedule \u2014 shown as an `Automation:` line in the task context) is a recurring loop, and this run is one tick of it. NEVER run `lh task complete` (or set a terminal status via `lh task edit --status`) on that task: a terminal status permanently disarms the loop \u2014 no future tick will fire and nothing recovers it. A tick with nothing to do, or whose condition is not met yet, is still a successful run; just finish your turn and the next tick is armed automatically. Only the user retires a recurring task.\n- **End conditions**: the one exception is when the instruction itself defines when the loop ends (\"until X\", \"stop once Y\", \"after Z is merged\") and this tick has verified it is now met. Then run `lh task complete <id>` as your final step: it is finalized after this run finishes and retires the loop. Do not ask the user to stop it instead \u2014 nobody reads a tick's reply in real time.\n  \\<\/task_skill_guides>\n","use_cases":["Create and organize subtasks under a parent task using the LobeHub CLI.","Track progress and add comments to task updates with notifications.","Pin important documents for easy access during task execution."],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/lobehub\/lobehub\/blob\/54382b5c8e81544da454fa6d7b50f461a562c1ee\/packages\/builtin-skills\/src\/task\/SKILL.md","source_commit":"54382b5c8e81544da454fa6d7b50f461a562c1ee","license":null,"version":null,"listing_approved_at":"2026-11-22","created_at":"2026-11-21T11:45:38.000000Z","updated_at":"2026-11-22T11:17:19.000000Z","seo_title":"Manage Task Lifecycle and Subtasks with LobeHub CLI","seo_description":"Learn how to manage tasks, subtasks, and dependencies using the LobeHub CLI for efficient workflow and progress tracking.","seo_keywords":["task management","subtask creation","task dependencies","progress tracking","document pinning","LobeHub CLI"]}}