π€― LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
π docs(agents): track work in LobeHub tasks instead of Linear (#22840)
YuTengjingeb1d2266306e
diff --git a/.agents/skills/deep-review/references/claude-code/main.md b/.agents/skills/deep-review/references/claude-code/main.mdindex 56f3470fe13..0228aa08e5c 100644--- a/.agents/skills/deep-review/references/claude-code/main.md+++ b/.agents/skills/deep-review/references/claude-code/main.md@@ -97,10 +97,10 @@ Ask about confirmed `can_auto_fix: false` findings and `needsContext`, up to foucall. Order P0 β P1 β P2, blocking first. Exclude every legacy hand-off item. Skip low-likelihood,non-blocking items on repeat review unless the user asks.-## Step 8 β Offer legacy hand-off issues+## Step 8 β Offer legacy hand-off tasks-When `Hand off to owner` is non-empty, ask once whether to create all, some, or no Linear issues.-Create nothing before approval. On approval, use the `linear` skill and include location, culprit,+When `Hand off to owner` is non-empty, ask once whether to create all, some, or no LobeHub tasks.+Create nothing before approval. On approval, create them with `lh task create` and include location, culprit,scenario, likelihood, and verification evidence.## Notesdiff --git a/.agents/skills/deep-review/references/codex/main.md b/.agents/skills/deep-review/references/codex/main.mdindex 65142a302d2..d27debc4933 100644--- a/.agents/skills/deep-review/references/codex/main.md+++ b/.agents/skills/deep-review/references/codex/main.md@@ -144,10 +144,10 @@ Ask one finding at a time for confirmed `can_auto_fix: false` items and `needsCoP1 β P2 and blocking first. Exclude legacy hand-offs. Skip low-likelihood, non-blocking items onrepeat review unless requested.-## Step 8 β Offer legacy hand-off issues+## Step 8 β Offer legacy hand-off tasks-When legacy hand-offs exist, ask once whether to create all, some, or no Linear issues. Create-nothing before approval. On approval, use the `linear` skill and include location, culprit,+When legacy hand-offs exist, ask once whether to create all, some, or no LobeHub tasks. Create+nothing before approval. On approval, create them with `lh task create` and include location, culprit,scenario, likelihood, and verification evidence.## Notesdiff --git a/.agents/skills/deep-review/references/dimensions/workflow.md b/.agents/skills/deep-review/references/dimensions/workflow.mdindex cd45f85d5ba..6cbea6b94f0 100644--- a/.agents/skills/deep-review/references/dimensions/workflow.md+++ b/.agents/skills/deep-review/references/dimensions/workflow.md@@ -10,7 +10,7 @@ Is the process around this change healthy? These are objective state checks β## Quick checklist-- Tracked issue exists for non-trivial work (Linear for team members β see `.agents/skills/linear/`; GitHub issue otherwise) and its status matches reality+- Tracked work item exists for non-trivial work (a LobeHub task managed with `lh task` for team members; GitHub issue otherwise) and its status matches reality- PR description still matches the diff β scope drift after review rounds leaves descriptions describing code that no longer exists- Key decisions made during implementation (trade-offs, rejected alternatives, scope cuts) recorded in the issue/PR, not only in a chat transcript- Decision records still match the implementation: when the implementation legitimately diverged from a decision written earlier in the issue/PR/conversation, the record is updated in the same PR β a stale decision record misleads every later reader, and reviewers without the session context can only trust what is written@@ -21,7 +21,7 @@ Is the process around this change healthy? These are objective state checks β## Rule sources-- `.agents/skills/linear/SKILL.md`, `.agents/skills/pr/SKILL.md` β expected issue/PR lifecycle+- `.agents/skills/pr/SKILL.md` β expected task/PR lifecycle- Repo `AGENTS.md` β branch strategy, commit conventions## How to checkdiff --git a/.agents/skills/deep-review/references/report-template.md b/.agents/skills/deep-review/references/report-template.mdindex c8bfa5b4bfe..5d3f578fdb2 100644--- a/.agents/skills/deep-review/references/report-template.md+++ b/.agents/skills/deep-review/references/report-template.md@@ -10,7 +10,7 @@ Only `verdict: confirmed` findings are rendered (plus unverified dimensions β- **Two questions decide a finding's fate, and both render**: _did this change introduce it_ (`nature` / `exposure`) and _how likely is it to fire_ (`likelihood`). Severity alone never decides whether something blocks the merge β see the scope and de-escalation rules below.- **Nature line**: `nature: "introduced"` β omit the line (default). `nature: "exposed_legacy"` β render `**Nature**: legacy surfaced by this change (triggered by this diff)` or `... (bystander find)` per `exposure`.- **Likelihood line** renders on every confirmed finding: `**Likelihood**: high | medium | low`. Never omit β together with severity it is what tells the user whether a finding is worth another fix round. For `low`, append the precondition chain from `scenario` in parentheses.-- **Scope rule β legacy findings do not get fixed in this PR.** `nature: "exposed_legacy"` findings never render `Fix options` and never appear in `Safe to fix now`; they render under `Hand off to owner` with a Linear issue draft instead (see below). The only exception: `exposure: "triggered"` P0 β this diff is what makes the old bug fire, so it renders as a normal finding in the severity buckets **and** blocks merge. Everything else legacy is somebody else's task, and pulling it into this PR is exactly the scope creep this rule exists to prevent.+- **Scope rule β legacy findings do not get fixed in this PR.** `nature: "exposed_legacy"` findings never render `Fix options` and never appear in `Safe to fix now`; they render under `Hand off to owner` with a LobeHub task draft instead (see below). The only exception: `exposure: "triggered"` P0 β this diff is what makes the old bug fire, so it renders as a normal finding in the severity buckets **and** blocks merge. Everything else legacy is somebody else's task, and pulling it into this PR is exactly the scope creep this rule exists to prevent.- **Low-likelihood de-escalation**: a confirmed finding with `likelihood: "low"` and `blocks_release: false` renders at its verified severity but never enters `Merge verdict` prerequisites β it goes to `Follow-ups`. If the user says this is a repeat review of the same PR (second round or later), render `low` + non-blocking findings as one line each under `More P2` regardless of their severity, prefixed `[low likelihood]`. Rationale: after a couple of fix rounds the marginal value of chasing rare edges is below the churn and regression risk it creates; say so in the TL;DR rather than silently dropping them.- **Issue type** renders the finding's `issue_type` verbatim β never the dimension name.- **Blocks release** renders verify's `blocks_release` (`yes`/`no`) on every confirmed finding β this is the user's ship/no-ship signal; never omit. Same-root merged entries take the value belonging to the highest merged severity.@@ -23,7 +23,7 @@ Only `verdict: confirmed` findings are rendered (plus unverified dimensions βentry's end; entry severity upgrades to the highest among merged; statistics count merged entriesonce.- **P2 cap (noise control)**: if confirmed P2 count > 6, render the top 6 fully and collapse the rest into one line each under `More P2`: `**#n** [issue_type] summary (file:line)`. Rank `low` likelihood last when choosing which 6 to render fully.-- **Hand off to owner**: every `exposed_legacy` finding except triggered-P0 renders here. Do NOT create the Linear issues β render the draft and let the user decide; a deep review can surface several legacy items and auto-filing them is noisy and duplicates existing issues. The culprit comes from verify's `culprit` field (the verifier already had the file open) β render it verbatim; `culprit: null` renders "attribution unclear" and no suggested assignee. Do not re-run `git blame` in the render phase.+- **Hand off to owner**: every `exposed_legacy` finding except triggered-P0 renders here. Do NOT create the LobeHub tasks β render the draft and let the user decide; a deep review can surface several legacy items and auto-filing them is noisy and duplicates existing tasks. The culprit comes from verify's `culprit` field (the verifier already had the file open) β render it verbatim; `culprit: null` renders "attribution unclear" and no suggested assignee. Do not re-run `git blame` in the render phase.- Empty severity buckets omit their heading entirely.- **Release checks**: the `release_checks` array (release-risk only) renders under `Pre-deploy checklist`, outside the severity buckets and excluded from all finding statistics. These are unverified by design β they are questions about production state, not claims about the code. Never merge them into findings, and never let one become a merge-verdict prerequisite; `blocks_deploy: true` items render first and are called out in the verdict's `Basis` line as a deploy-time condition, not a code blocker.- **Unverified dimensions**: `workflow` findings render under `Process`, `skill-freshness` under `Skill updates` β outside the severity buckets, excluded from P0/P1/P2 statistics. These findings use the same JSON schema as everything else; render one line each mapped from those fields: fact = `summary`, evidence = `location` (plus `scenario` when present), suggested action = the first `fix_options` entry. Their `severity` is advisory and never rendered.diff --git a/.agents/skills/linear/SKILL.md b/.agents/skills/linear/SKILL.mddeleted file mode 100644index 56fab53fbfb..00000000000--- a/.agents/skills/linear/SKILL.md+++ /dev/null@@ -1,100 +0,0 @@-----name: linear-description: 'Use for Linear issues, LOBE-xxx links, status updates, completion comments and sub-issue trees.'-user-invocable: false------# Linear Issue Management--Before using Linear workflows, discover the available Linear tools, including deferred tools, and inspect their current schemas. Select tools by capability (issue lookup, images, sub-issues, create/update, comments), not a fixed MCP prefix or historical tool name. Report a missing capability only after discovery.--## Workflow--1. **Retrieve issue details** before starting using the issue lookup capability.-2. **Read images** β issue descriptions often contain screenshots with critical context (mockups, error states, before/after). Use the available image extraction or viewing capability; reading raw markdown alone misses what the reporter was looking at.-3. **Check for sub-issues** using the available parent filter or issue relation fields.-4. **Mark as In Progress** at the moment you start planning or implementing β this signals to teammates the issue is owned, so they don't double-pick it up.-5. Follow [Per-Issue Completion](#per-issue-completion) before moving to the next issue.--## Creating Issues--When creating issues, add the `claude code` label. Reason: the label is how the team filters/audits AI-generated issues; without it those issues vanish into the general backlog and the team loses visibility into AI contribution patterns.--Unless the user explicitly specifies another assignee or asks for the issue to remain unassigned, pass `assignee: "me"` so the issue is assigned to the authenticated Linear user. Always honor explicit assignment instructions over this default.--## Language--Match the issue language to the conversation that produced it β if you're discussing in δΈζοΌwrite the issue in δΈζοΌif discussing in English, write it in English. Reason: the issue is a continuation of the conversation, and forcing a language switch creates translation friction for the collaborator who started the thread.--Specifics:--- δΈζ conversation β δΈζ body; technical terms (file paths, identifiers, library names, commands, error messages) stay in English.-- English conversation β English body.-- Code blocks, file paths, and quoted strings always stay in their original form regardless of surrounding language.-- This applies equally to **updates** β when editing an existing issue (description **and titles**), preserve the language of the conversation that triggered the edit; don't switch the issue language mid-refactor.--## Creating Sub-issue Trees--When breaking a parent issue into a tree of sub-issues (e.g., task decomposition for LOBE-xxx), follow these conventions and check the available tool capabilities.--### 1. Prefix titles with an ordering index--Linear supports sub-issue ordering, but tool support varies. Check the discovered create/update schema for ordering fields rather than assuming a particular MCP tool exposes them.--Workaround: encode execution order in the title itself:--```plaintext-[1] [db] add schema fields-[2] [db] new table + repository-[3] [service] business logic layer-[4] [api] REST endpoints-[4.1] [sdk] client SDK wrapper-[4.1.1] [app] consumer integration-[4.1.2] [app] UI surface-[4.2] [ui] dashboard page-```--Even when the panel shuffles, the reader can mentally reconstruct the dependency graph at a glance. Dotted numbering `[n.m.k]` should mirror the parent-child nesting so the index and the tree agree.--### 2. Nest sub-issues by logical parent-child, not flat under the root--Linear supports **unlimited sub-issue depth**. A flat list of 8+ siblings under one root is hard to scan. Group by main-subordinate logic:--- Core service β its SDK β SDK consumers-- Don't create a sibling when a child is more accurate--Set the parent relation when creating or moving an issue using the discovered schema (for example, `parentId: "LOBE-xxxx"` when supported). Moving the parent does not require rewriting `blockedBy` relations.--### 3. Sub-issue creation order is dictated by `blockedBy`--`blockedBy` requires the blocker to exist first (you need its LOBE-id). So:--1. **Topologically sort** the DAG β leaves (no deps) first, roots last-2. Create issues with zero deps in the first wave-3. Create dependent issues only after collecting the blocker IDs from prior responses-4. `blockedBy` is **append-only**; passing it again does not overwrite β safe to re-run--### 4. Respect dependency order--Collect blocker IDs before creating dependent issues. Do not assume parallel execution from how tool calls appear in a message; use the active tool's supported execution behavior.--### 5. Keep each sub-issue description self-contained--Each sub-issue should state:--- Goal (1β2 lines)-- Key files to touch-- Concrete changes / acceptance criteria-- Dependencies (link to blocker issues by `LOBE-xxxx`)-- Validation steps--The implementer may open only the sub-issue, not the parent β don't rely on context that lives only in the parent description.--## Per-Issue Completion--Close out each issue before starting the next; do not defer all Linear updates to the end. Reuse existing authorization for that issue's status updates and comments without asking again.--1. Complete implementation and the repository-required checks, including related tests; follow the Quality Check section of the repository's `AGENTS.md` (`bun run check` in LobeHub).-2. Create a PR when needed using the **pr** skill. Include `Fixes LOBE-123` (or `Closes` / `Resolves`) in the PR body so Linear can link it and close the issue on merge.-3. Update the issue to **In Review** while its PR awaits merge, then **Done** after merge. For work that needs no PR, mark **Done** when its outcome and verification are complete.-4. Proactively add or update a concise completion comment with the resulting behavior, important changes, validation, and PR link. PR linkage does not replace this human-readable summary. If an existing comment already covers the same result, do not post a duplicate.diff --git a/.agents/skills/pr/SKILL.md b/.agents/skills/pr/SKILL.mdindex ef6167bad0d..5597bd633e6 100644--- a/.agents/skills/pr/SKILL.md+++ b/.agents/skills/pr/SKILL.md@@ -57,7 +57,7 @@ A feature or fix needs a published acceptance round before the PR is opened (AGE- Body: based on PR template (`.github/PULL_REQUEST_TEMPLATE.md`)- Obey the `AGENT-INSTRUCTIONS` HTML comments in that template. Keep them commented out, and do not copy them into the visible description.- Link related GitHub issues using magic keywords (`Fixes #123`, `Closes #123`)-- Link Linear issues if applicable (`Fixes LOBE-xxx`)+- Link the LobeHub task if applicable (`LobeHub task: [T-<n>](url)`)- Put the acceptance link (or the explicit skip reason) under **Test** in the Summary section.- Follow the source-label, privacy, and AI assistance rules in **PR Template** below when creating or updating a PR. Do not request prompt disclosure or block the normal PR workflow waiting for consent to publish a conversation.- Write the body to a temporary file and use `--body-file` to preserve formatting.@@ -164,11 +164,11 @@ cd apps/cli && bun run type-check 2>&1 | grep -iE "connect\.ts|device\.register"Filter to your touched files β this repo's standalone type-check emits pre-existing env noise (`__ELECTRON__`, `@/types/llm`, unbuilt `@lobechat/types`) that isn't yours.-## PR + Linear bookkeeping+## PR + task bookkeeping-- **Each PR closes only its own layer's issues.** Server PR: `Closes LOBE-<server>`. Client PR: `Closes LOBE-<pkg> / <desktop> / <cli>`. Don't let one PR's body claim another layer's issue.-- Both PRs are `Part of LOBE-<parent>`.-- On PR creation, move each closed sub-issue to **In Review** (not Done) and add a completion comment β see the `linear` skill.+- **Each PR links only its own layer's LobeHub tasks.** Server PR: `LobeHub task: [T-<server>](url)`. Client PR: the `<pkg>` / `<desktop>` / `<cli>` tasks. Don't let one PR's body claim another layer's task.+- Both PRs are `Part of T-<parent>`.+- On PR creation, add a completion comment to each linked subtask with `lh task comment <id> -m`, finish the rest of the stack bookkeeping, and only then set the subtasks to `paused` with `lh task edit <id> --status paused`: pausing a task interrupts its running operations, including the agent doing this bookkeeping. Complete each with `lh task complete <id>` only after merge.## Gotchas