Approved catalog listing
SKILL #1528
skillshunter.net
Home / Software & Development / Manage Task Lifecycle and Subtasks with LobeHub CLI
Listing Approved Approved on: November 22, 2026

Manage Task Lifecycle and Subtasks with LobeHub CLI

Use the LobeHub CLI to create, update, and organize tasks and subtasks, track progress, and manage dependencies and documents within the LobeHub task system.

Rate this skill

No ratings yet

Editor's 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.

When to Use It

  • 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.

SKILL.md

SkillsHunter provides this listing for informational purposes only. Review the skill’s source, license, and required permissions before use. You are responsible for deciding whether to install or run it. Terms of Use

↓ Download .md

<task_skill_guides> You are executing a task within the LobeHub task system. Use the lh task CLI via runCommand to manage your task and related resources.

Task Lifecycle

Command Description
lh task view <id> View task details, instruction, documents, activities
lh task edit <id> Update task name, instruction, status, priority, labels
lh task complete <id> Mark task as completed
lh task comment <id> -m "..." Add a progress comment
lh task tree <id> View subtask tree with dependencies

Working with Subtasks

Command Description
lh task create -i "..." --parent <id> Create a subtask
lh task list --parent <id> List subtasks
lh task sort <parentId> <id1> <id2> ... Reorder subtasks
lh task dep add <id> <dependsOnId> Add dependency
lh task dep rm <id> <dependsOnId> Remove dependency

Task Documents

Command Description
lh task doc create <id> -t "title" -b "content" Create and pin a document
lh task doc pin <id> <docId> Pin existing document
lh task doc unpin <id> <docId> Unpin document

Task Topics (Conversations)

Command Description
lh task topic list <id> List conversation topics
lh task topic view <id> <topicId> View topic messages

Usage Pattern

  1. Read the reference file for detailed command options: readReference('references/commands')
  2. Run commands via runCommand — the lh prefix is automatically handled
  3. Use --json flag on any command for structured output
  4. Use lh task <subcommand> --help for full command-line help

Task Execution Guidelines

  • Use stable task references: Commands accept display identifiers (for example T-12) and stable ids (task_…). 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.
  • Check your task first: Use lh task view to understand the full instruction and context
  • Use task documents: Store outputs and deliverables as task documents
  • 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.
  • Respect dependencies: Check lh task tree to understand task ordering
  • Complete when done: Use lh task complete when all deliverables are ready
  • Automation tasks are the exception — NEVER complete them: a task with automation (heartbeat or schedule — 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 — 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.
  • 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 — nobody reads a tick's reply in real time. </task_skill_guides>
View original Markdown
\<task_skill_guides>
You are executing a task within the LobeHub task system. Use the `lh task` CLI via `runCommand` to manage your task and related resources.

# Task Lifecycle

| Command                         | Description                                             |
| ------------------------------- | ------------------------------------------------------- |
| `lh task view <id>`             | View task details, instruction, documents, activities   |
| `lh task edit <id>`             | Update task name, instruction, status, priority, labels |
| `lh task complete <id>`         | Mark task as completed                                  |
| `lh task comment <id> -m "..."` | Add a progress comment                                  |
| `lh task tree <id>`             | View subtask tree with dependencies                     |

# Working with Subtasks

| Command                                   | Description       |
| ----------------------------------------- | ----------------- |
| `lh task create -i "..." --parent <id>`   | Create a subtask  |
| `lh task list --parent <id>`              | List subtasks     |
| `lh task sort <parentId> <id1> <id2> ...` | Reorder subtasks  |
| `lh task dep add <id> <dependsOnId>`      | Add dependency    |
| `lh task dep rm <id> <dependsOnId>`       | Remove dependency |

# Task Documents

| Command                                           | Description               |
| ------------------------------------------------- | ------------------------- |
| `lh task doc create <id> -t "title" -b "content"` | Create and pin a document |
| `lh task doc pin <id> <docId>`                    | Pin existing document     |
| `lh task doc unpin <id> <docId>`                  | Unpin document            |

# Task Topics (Conversations)

| Command                             | Description              |
| ----------------------------------- | ------------------------ |
| `lh task topic list <id>`           | List conversation topics |
| `lh task topic view <id> <topicId>` | View topic messages      |

# Usage Pattern

1. Read the reference file for detailed command options: `readReference('references/commands')`
2. Run commands via `runCommand` — the `lh` prefix is automatically handled
3. Use `--json` flag on any command for structured output
4. Use `lh task <subcommand> --help` for full command-line help

# Task Execution Guidelines

- **Use stable task references**: Commands accept display identifiers (for example `T-12`) and stable ids (`task_…`). 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.
- **Check your task first**: Use `lh task view` to understand the full instruction and context
- **Use task documents**: Store outputs and deliverables as task documents
- **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.
- **Respect dependencies**: Check `lh task tree` to understand task ordering
- **Complete when done**: Use `lh task complete` when all deliverables are ready
- **Automation tasks are the exception — NEVER complete them**: a task with automation (heartbeat or schedule — 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 — 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.
- **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 — nobody reads a tick's reply in real time.
  \</task_skill_guides>

Community Reviews & Field Notes

Tried this skill on your own project? Share the model you used and the results you got.

Add Your Review

Approved reviews appear publicly with the name or role you enter. See the Privacy Notice.