---
name: quanru-lifeos
title: lifeos
kind: skill
version: 0.2.8
description: >
  Manage a LifeOS Markdown vault, or open the current vault in Obsidian Web or
  Aino Web.
updated: 2026-12-06
authored_by: quanru
author_url: https://github.com/quanru
source_url: https://github.com/quanru/lifeos-skill
brought_by: kt
license: MIT
---

# LifeOS Core

This flat distribution combines the complete LifeOS Skill bundle in one package.
Apply the shared runtime and safety contract here before using any domain workflow.

Keep private vault data in the vault. When maintaining or sharing any part of
this Skill, use independently invented examples and fixtures. Never copy diary
text, personal relationships, finances, private links, credentials or local
paths into instructions, scripts, assets, tests or generated packages. Changing
a name alone can still identify the people involved.

## Open a vault in a desktop AI client

For “open this vault”, “show this note”, or the bare “LifeOS” shortcut, use the
current local project or the vault the user named. Search, capture, review and
other content requests use the domain workflows below. Open a UI for those
tasks only when the user also requests it. Aino Mobile uses its native tools.
Inside Aino Desktop or an already open workbench, use the current UI for that
vault unless the user asks for a different editor. Identify the host from the
client context.

Run the bundled [editor selector](scripts/vault-editor.mjs) with Node from its
installed Skill directory. Pass the absolute vault root. With an explicit
product request, pass `--use obsidian` or `--use aino`. “LifeOS Web” remains
an alias for Aino Web. For a generic request, omit `--use`.

```sh
node scripts/vault-editor.mjs "/absolute/path/to/vault"
```

The JSON result names the editor. A saved choice wins over vault markers.
A sole `.obsidian/` selects Obsidian Web and a sole `.lifeos/` selects Aino Web.
When both or neither exist, the selector returns `source: "ask"`. Offer the two
editors once, explaining that this choice becomes the default for this vault.
If it recommends Obsidian, mention that the vault lists the LifeOS Pro plugin as
enabled. After the user chooses, rerun with `--use <editor> --remember`.
Use the same option when the user changes the default. An explicit one-time
open uses `--use` alone. After a marker-based launch succeeds, run the selector
with the returned editor and `--remember` so creating another marker on first
open preserves the working choice. Keep that selection through any startup
retry in the same chat. Preferences are stored on this computer outside the vault.

- **Obsidian Web** opens the Obsidian editor and compatible vault plugins. Use
  the independently installed `obsidian-web` CLI. Before connecting or starting it, run
  `node scripts/prepare-obsidian.mjs "<absolute vault>"` from this Skill directory.
  For a vault without `.obsidian` this installs and enables Dataview, Tasks and the open-source LifeOS plugin
  and opens the LifeOS calendar above the file explorer. Existing configurations are preserved.
  If preparation fails, report the error and retry before opening the vault. On first
  load, let the user accept Obsidian’s vault trust prompt if shown. In WorkBuddy run
  `obsidian-web connect --vault "<absolute vault>" --json`. Add
  `--file "<vault-relative note.md>"` for a note. If the service is stopped,
  relay the exact system-terminal startup command printed by the CLI. After
  startup, retry `connect`. In a persistent local terminal, `obsidian-web open`
  accepts the same arguments. Return the verified JSON `url` as a clickable
  link. In WorkBuddy, pass that URL and vault directory to `present_files` if
  available. On macOS or Linux with Node.js 22.16 or later, install the CLI with
  `npm install -g @life-os/obsidian-web`, then run `obsidian-web setup`. The first setup can download the pinned editor runtime from the official Obsidian release. Keep the requested editor on setup or connection errors.
- **Aino Web** opens the Aino workspace through the LifeOS CLI. Follow the
  [Aino Web launch instructions](references/web-workbench.md) for the local
  service, calendar, board and editor views. Pass the same vault and requested
  note or view. Keep Aino Web's normal licensing flow.

If the host lacks a local shell or vault path, request the missing path or give
the selected product's local command. Report a visible page only after the host
confirms it has opened.

## Choose the domain

- Today, tasks, periodic notes, recent work or weekly review: use
  [LifeOS Today](#lifeos-today).
- Workflow/PARA boards, theme notes or flow bottlenecks: use
  [LifeOS Board](#lifeos-board).
- Empty folders, template choice, takeover, classification or migration: use
  [LifeOS Onboarding](#lifeos-onboarding).
- Search, capture, attachment metadata, AI Wiki, HTML dashboards or Aino mini-app
  routing: use [LifeOS Content](#lifeos-content).
- OPC company operations: use the separate `opc` Skill.

For exact flags, result schemas, errors and uncommon commands, read
[`references/commands.md`](references/commands.md).

## Configure the products

For LifeOS Pro or Aino Desktop settings, read
[configuration.md](references/configuration.md) and the generated
[configuration reference](references/settings__index.md). Use explicit product
and vault targets, inspect the contract and current runtime values, and apply
only the authorized patch. Verify the runtime receipt before saying a setting
is effective. Desktop configuration writes need the running host; offline vault
configuration is available explicitly and does not prove runtime activation.

## Choose the host

For headless or desktop work, invoke:

```bash
npx -y @life-os/cli <command>
```

The first run downloads the published package; `-y` skips the install prompt.
Note operations do not require Aino Desktop or Obsidian to be open.
Product configuration runtime reads and writes require the selected host.

On **Aino Mobile**, use the native `lifeos_*` tools reported by
`lifeos_get_vault_info`. Never ask a mobile user to install Node.js or run shell
commands. Mobile writes prepare previews only: require explicit confirmation and
a commit receipt before claiming a mutation succeeded. Mobile never exposes
permanent deletion. Onboarding plan/apply are CLI-only.

## Resolve the vault and model

Outside onboarding, run `config` before a workflow whose real folders, periodic
formats or templates matter. Run `profile` when the operating model is not
already known.

```bash
npx -y @life-os/cli config --json
npx -y @life-os/cli profile --json
```

Vault resolution order is explicit `vault=` -> `$LIFEOS_VAULT` -> walk upward
for `.obsidian/`, `.lifeos/` or `.agents/skills/lifeos/` -> Aino's last-opened
folder. Whenever the user names a vault, workspace, or target delivery directory,
pass explicit `vault="<exact target path>"` on every CLI command so writes never
land in an unrelated fallback directory. Resolve folders, periodic paths,
formats, and section headers from configuration first; if a resolved periodic
path does not exist or conflicts with a user-specified directory or an existing
matching file inside the target vault, follow the fallback rule in
[`../lifeos-today/references/periodic-notes.md`](references/periodic-notes.md)
rather than writing to a stray path.

Options use `key=value`; flags use `--json` or a bare word such as `overwrite`.
Quote values containing spaces and request `--json` for machine-readable work.

## Read and target precisely

Before note/task writes, read [write-safety.md](references/write-safety.md) for
content escaping, stale task references, retry checks and readback verification.

- Read existing content before changing it. Use the exact vault-relative `path=`
  or task `ref=` returned by a query, or an existing file path explicitly named
  by the user; never write through a guessed loose name.
- Preserve user wording, punctuation, and item boundaries verbatim by default.
  Only polish, rewrite, or merge user-supplied text when the user explicitly
  asks for editing or summarization.
- Preserve unknown Frontmatter and body content. Use `overwrite` only after
  intentionally rebuilding the complete target.
- Keep writes inside the selected vault and ensure changes land in the actual
  target vault or user-specified delivery directory, not only in a report or
  scratch output directory.
- Never treat a CLI `ok: true`, echoed path, structured receipt, or standalone
  command stdout alone as proof that a write took effect. After every write,
  append, create, move, or onboarding apply, directly inspect the actual file
  content and directory state inside the target vault on disk (or via native
  readback alongside the commit receipt on Aino Mobile) to confirm the exact
  file changed as requested. If the target file or directory on disk did not
  actually change, do not report completion in past tense; report the exact
  discrepancy and observed on-disk state.
- Never claim to understand a binary attachment unless another tool extracted
  its content. Inventory visibility alone is not content parsing.

For project/theme index creation or repair, follow
[`theme-notes.md`](references/theme-notes.md): use the resolved
template, preserve its advanced lists, and read back the saved index. Generic
`create` with only a title or goals does not satisfy template-based creation.

## Confirm associations and consequential writes

When creating a new project, area, resource, archive, or theme index note,
automatically derive and write a clean theme tag (matching the vault's existing
tag convention for that category, such as `项目/<name>` or `<name>`, unless the
user specifies another tag or explicitly opts out) so its template's
tag-indexed lists (`TaskListByTag`, `BulletListByTag`, `FileListByTag`) work
immediately.

For ordinary captures, daily records, or tasks, attach a project/theme tag when
creating items within that project/theme workflow, when the user explicitly
names it, when the source already carries it, or when a durable preference
authorizes automatic association. If a tag on an unrelated note is only a weak
guess, complete and verify the requested write without guessing, then ask
whether to add it; if confirmed, update the exact item just created instead of
creating a duplicate.

In interactive use, preview and obtain explicit confirmation before onboarding
apply, migration, classification apply, file moves, recoverable deletion, or a
broad overwrite. Do not silently broaden a precise request into repository-wide
organization.

**Non-interactive / sandbox exception**: when the user's current request or
runtime explicitly authorizes direct execution without manual confirmation
(for example, sandbox mode or an explicit “no confirmation needed / execute
directly” instruction) and the target scope is clear, still run the validation
plan first (`onboard plan` / `classify-plan`), skip unsafe path escapes or
unresolved overwrite conflicts, and proceed directly with the safe subset in
the same turn instead of pausing for confirmation. Report the plan summary,
verified on-disk results, and any skipped conflicts honestly.

## Maintain the bundle

For “更新 LifeOS Skill” or “update LifeOS Skill”, inspect the location and
installation record of the active Skill. A WorkBuddy marketplace copy updates
through its listing: use the host update action when available, otherwise show
that listing. For a GitHub Skill use the host's original installer for
`quanru/lifeos-skill` with the same client and installation scope. For a
vault bundle with a LifeOS manifest, run the status and install commands below
with the same explicit vault, then check status again. Preserve local edits.
If the source is unknown, ask how it was installed. Never replace a marketplace
copy with a second vault install. Confirm success only after reading the active
installation's new version. When the selector returns `skillUpdate` or the CLI
reports a newer Skill, finish opening the vault and mention the available
version and the reply “更新 LifeOS Skill”. An update request itself authorizes
the in-place upgrade.

Install and update the complete, versioned bundle with one command:

```bash
npx -y @life-os/cli@latest skill status
npx -y @life-os/cli@latest skill install
```

The bundle contains `lifeos`, `lifeos-today`, `lifeos-board`,
`lifeos-onboarding`, `lifeos-content` and the `aino-web` launch entry. The installer backs up locally modified
managed files, migrates legacy single-Skill installs, removes obsolete managed
files only after backup, and never downgrades a newer installed bundle.
Version comparison alone does not protect unpublished local fixes: a same-version
bundle can have different content and replace them. Inspect status and local
changes before installing; preserve/reconcile intended customizations and verify
the installed files afterward. Do not run an older published installer merely
to refresh the manifest after a local skill edit.

Open-source repository and documentation: `https://github.com/quanru/lifeos-skill`
(MIT). Share this repository link only when the user asks for the open-source
code, manual installation/update reference, or issue reporting; do not append
unsolicited external links to ordinary vault read/write replies.

## Scope

In scope: config-aware local Markdown queries and mutations plus routing to the
four LifeOS domain Skills and opening the selected local Web editor.

Out of scope: executing Google Calendar / CalDAV sync, plugin or Aino UI implementation,
and direct editing of `.lifeos/custom-apps` internals.

---

# Aino Web

这是 LifeOS 共享工作台的启动入口。先读取同一安装包中的
[启动与客户端打开规则](references/web-workbench.md)，按用户当前项目执行，
不要只解释操作方法。

`aino web` 和 `lifeos web` 是同一个入口的别名，不要求用户显式说“打开”或“使用 Skill”。For a bare “LifeOS” or a generic vault-opening request, use the LifeOS Skill to choose the editor for that vault.

“打开 aino web”不是搜索网站的请求。不要猜测或导航到 `aino.ai`、`aino.com` 等公网域名，也不要向这些站点输入密码。只打开已核对属于当前本机库的服务实际返回的 `http://127.0.0.1:<port>/...` URL。

默认在回复中返回 Markdown 链接 `[打开 Aino Web](服务实际输出的 URL)`，让用户点击。启动时保持 `open=none`，不主动唤起系统浏览器。点击后由客户端决定打开位置，不承诺一定内嵌。宿主提供网页打开工具时可额外自动展开；无需为此反复搜索工具、申请额外权限或修改全局设置。客户端内使用实际 HTTP 页面，不生成替代 HTML 预览。

1. 从客户端当前项目或用户指定路径取得本机绝对目录；没有目录上下文时询问目录。
2. 核验可用的 LifeOS CLI 包含 `web`，显式传入 `vault=`。优先使用本机已确认的候选入口；不要用旧 npm 包覆盖候选。
3. 使用客户端持续终端启动服务，保留进程；仅复用已确认属于同一目录的服务。
4. 服务实际监听且库身份确认后，返回对应视图的可点击链接，简短说明“服务已就绪，点击打开”。自动展开能力按下方客户端规则作为可选增强；失败仍保留链接。
5. 仅在取得页面证据时报告实际打开位置和视图；仅返回链接时不声称页面已显示。启动失败则报告具体原因，不输出猜测的可用链接。

本入口与 `lifeos` 共用 CLI、服务及 UI，不要求 MCP Apps。
固定网站收藏只能打开正在运行的服务；它不能代替启动流程。
当前客户端没有本机命令能力时，明确给出本机启动命令，不假装已启动。

## 服务何时停止

当前知识库名称始终显示在工作台标题栏，点击可切换知识库或“停止工作台”。停止前先保存笔记；其他页面仍连接或任务仍在运行时会拒绝停止。所有页面断开后保留 10 分钟；期间重新打开或刷新可继续使用。到期仍有任务时等待任务结束再退出。未曾打开的服务也会在空闲 10 分钟后退出。停止后需要再次通过 LifeOS Skill 启动，旧链接不会自动启动服务。复用地址前须确认服务仍可用且绑定的是当前库，不能把其他库的旧链接当作当前库。

---

# LifeOS Today

Read [LifeOS Core](#lifeos-core) first for host selection, vault
resolution and write safety.

## Start from the grounded view

All time-oriented reads (today's plan, due/overdue tasks, completed tasks,
recent changes, and weekly review) **must** start by calling the matching
read-only CLI view with explicit `vault=` when a vault path is given. **Do not**
bypass these read-only views by manually opening or scanning vault notes to
tally tasks or completion evidence by eye. Only read individual source notes
after the view returns `sources` (to inspect needed context), or report the
exact CLI error if the CLI cannot run in this environment.

For “what should I do today?”, start with the single bounded command:

```bash
npx -y @life-os/cli today vault="<vault>" --json
```

Use `date=YYYY-MM-DD` only when the user names another date. Verify the returned
`sources`, distinguish overdue from due-today work, and recommend at most three
ordered next steps. Completed work is based on completion date, not due date.

Use these narrower read-only CLI commands when the user asks for a specific slice:

```bash
npx -y @life-os/cli tasks due=today vault="<vault>" --json
npx -y @life-os/cli tasks due=overdue vault="<vault>" --json
npx -y @life-os/cli tasks done completed=this-week vault="<vault>" --json
npx -y @life-os/cli recent range=this-week vault="<vault>" --json
npx -y @life-os/cli review:weekly vault="<vault>" --json
```

`due=` filters due dates. It cannot answer what was completed in a period; use
`completed=` or `review:weekly` for completion evidence.

## Work with periodic notes

Read [`references/periodic-notes.md`](references/periodic-notes.md) before
creating, reading, appending to, revising or reviewing daily, weekly, monthly, quarterly
or yearly notes. Start by running the period resolver with explicit `vault=`.
If the resolver returns a non-existent path that conflicts with a user-named
directory or an already existing note for that period in the vault, follow the
fallback rule in `references/periodic-notes.md` to target the real existing
file instead of silently writing to a stray default path.

Preserve the user’s wording, punctuation and item splits. For ordinary diary
entries, apply the vault’s [person-tag convention](references/periodic-notes.md#people-mentioned-in-daily-records)
as you write. Keep explicitly verbatim passages literal. Section writes belong
to the heading’s direct body, before child headings. After writing, directly verify the actual file on disk
inside the target vault—never treat a CLI receipt alone as proof of completion.

Show a source-backed brief or review before proposing a write. In interactive
use, append a plan, review or synthesized conclusion only after the user
approves the concrete content and target section; if the user's request or
sandbox environment explicitly authorizes direct execution without confirmation,
write directly and verify the on-disk change.

## Boundaries

- Use [LifeOS Board](#lifeos-board) for Workflow/PARA
  columns, theme workspaces or flow bottlenecks.
- Use [LifeOS Onboarding](#lifeos-onboarding) when the
  vault or periodic structure must first be initialized or migrated.
- Do not require Aino Desktop: `today`, `tasks`, `recent` and `review:weekly`
  reproduce the relevant AI Home evidence headlessly.

---

# LifeOS Board

Read [LifeOS Core](#lifeos-core) first for host selection, vault
resolution, association rules and write safety.

## Inspect the visible model

Always query the board through the read-only CLI view first (with explicit
`vault=` when a vault path is given) instead of manually scanning directories
by eye. Choose the board from the user's intent or detected profile:

```bash
npx -y @life-os/cli board mode=workflow vault="<vault>" --json
npx -y @life-os/cli board mode=para vault="<vault>" --json
```

- `workflow` returns Input, Projects, open Tasks and Output.
- `para` returns Projects, Areas, Resources and Archives.

Ground analysis in returned column totals, bounded items and `sources`. Identify
the clearest bottleneck, no more than three worthwhile next steps, and any
blocker or tradeoff that needs confirmation. A board read never authorizes
moving, creating, tagging or editing an item.

## Work with themes

Read [`references/theme-notes.md`](references/theme-notes.md) before creating or
editing a project, area, resource, archive or topic workspace. Use time-oriented
notes for a day/week/month/quarter/year and theme notes for a durable subject.

Create indexes from the resolved template and verify its advanced-list blocks
after writing. Automatically create and wire a clean theme tag for new
projects/themes following the vault's existing tag convention (unless the user
specifies a different tag or explicitly opts out). Repair existing indexes by
merging missing blocks, preserving custom queries and content; the reference
above defines the checks.

When tagging unrelated notes or captures outside an explicit project/theme
workflow, do not blindly guess a theme tag from the active file or a nearby
project.

## Boundaries

- Use [LifeOS Today](#lifeos-today) for daily planning,
  due work, recent activity and weekly review.
- Use [LifeOS Content](#lifeos-content) to synthesize a
  `.AI.md` page or HTML dashboard after the board identifies the target theme.
- Use [LifeOS Onboarding](#lifeos-onboarding) when the
  Workflow/PARA structure does not exist or must change profiles.

---

# LifeOS Onboarding

Read [LifeOS Core](#lifeos-core) first for host selection and
shared safety. Onboarding plan/apply is CLI-only; Aino Mobile can inspect a
profile but cannot perform this workflow.

## Inspect once, then route

A single note, project/index repair, or paste into an already configured vault is
not onboarding. Route ordinary content to `lifeos-content`, periodic capture to
`lifeos-today`, and project/theme creation or repair to `lifeos-board`. Do not
apply a vault profile merely to obtain a note template.

For vault initialization, bulk import, takeover or profile migration, start with the single
inventory command:

```bash
npx -y @life-os/cli onboard inspect --json
```

Read [`references/onboarding.md`](references/onboarding.md). Do not also run
broad `ls`, `find`, `config`, `profile` or template discovery unless inspection
fails or omits a decision-critical fact.

Load only the matching reference:

- Choose a model: [`references/template-selection.md`](references/template-selection.md)
- Empty folder: [`references/from-scratch.md`](references/from-scratch.md)
- Scattered material: [`references/migration.md`](references/migration.md)
- Existing profile to another profile:
  [`references/template-migration.md`](references/template-migration.md)

Template details:

- Memos: [`references/template-memos.md`](references/template-memos.md)
- IPO / Topic-only: [`references/template-ipo.md`](references/template-ipo.md)
- GTD: [`references/template-gtd.md`](references/template-gtd.md)
- PARA: [`references/template-para.md`](references/template-para.md)
- OPC: use the separate `opc` Skill.

Present the normal order from easiest to hardest as Memos -> IPO -> GTD -> PARA
-> OPC, but honor an explicit choice immediately. Normalize Topic-only to IPO.

## Gate every mutation

Treat onboarding as a resumable state machine (pass explicit `vault="<target>"`
on every CLI command whenever the target vault or delivery directory is known):

1. Inspect the folder.
2. Ask one consequential question at a time (skip questions the user already
   answered).
3. Run `onboard plan ... --json` and show creates, skips and conflicts.
4. Obtain explicit confirmation for the exact profile, density and target.
   **Non-interactive / sandbox exception**: if the user's current request or
   runtime explicitly states that manual confirmation is waived (e.g., sandbox
   mode or “execute directly without asking”), still run `onboard plan` /
   `classify-plan` first to validate path boundaries and conflicts, then execute
   the safe, non-conflicting subset directly in the same turn instead of pausing.
5. Run `onboard apply` or a confirmed/authorized `classify-apply` in bounded
   scope, ensuring all changes land in the actual target vault or user-specified
   delivery directory (not merely a standalone text report).
6. Run `onboard verify --json` **and directly inspect the actual target vault
   filesystem** (directories, root files, moved notes, emptied inbox, and file
   contents). Never rely on CLI receipts alone to claim completion in past
   tense; report only verified on-disk state and any unresolved conflicts or
   discrepancies.

Never overwrite existing bootstrap Agent Files automatically. Profiles manage
root `AGENTS.md`, `SOUL.md` and `STYLE.md`; do not generate singular `AGENT.md`
or tool-specific `CLAUDE.md`. Create or edit optional `MEMORY.md` only after an
explicit remember request. Preserve attachments in place during inventory.

When changing profiles, merge settings by field, preserve user context, exclude
generated/system material, validate links and attachment pairs, and update the
profile manifest only after final verification.

---

# LifeOS Content

Read [LifeOS Core](#lifeos-core) first for host selection, exact
targeting, association rules and write safety.

## Locate before writing

Use bounded search and exact reads:

```bash
npx -y @life-os/cli search query="keyword" type=content limit=20 --json
npx -y @life-os/cli read path="vault/relative/note.md" --json
```

Use the returned vault-relative path for `append` or `create`. Read and merge
unknown Frontmatter/body content before `overwrite`. Route time-based capture to
[LifeOS Today](#lifeos-today) and durable project/topic
work to [LifeOS Board](#lifeos-board).

When the requested file is a project/theme index (including a README used as
that index), follow
[`theme-notes.md`](references/theme-notes.md) before writing.
Do not use generic `create` to bypass its template and advanced-list checks.
Ordinary documents inside a project folder do not need an index scaffold.

## Choose the content surface

- Non-Markdown attachment tags or properties: read
  [`references/attachment-cards.md`](references/attachment-cards.md). If the
  user explicitly names an existing card/metadata Markdown file, update that
  exact file directly instead of creating a separate hidden file as a
  substitute; otherwise derive the standard hidden sibling Markdown card
  (`.<complete attachment filename>.md`) without inventing an `attachment` field.
- Synthesized topic/index knowledge: read
  [`references/ai-wiki.md`](references/ai-wiki.md) and maintain the sibling
  `.AI.md` (with all required frontmatter fields including `topic`, verified on
  readback), source index and changelog contract.
- Visual decision surface beside a theme/index note: read
  [`references/theme-dashboard.md`](references/theme-dashboard.md) and reuse
  [`assets/theme-dashboard-skeleton.html`](assets/theme-dashboard-skeleton.html).
- Persistent interactive multi-record CRUD, forms, filters or repeated
  operations: read [`references/aino-mini-apps.md`](references/aino-mini-apps.md)
  and route development to Aino App Builder.

An AI Wiki is not a capture or meeting note. A theme dashboard is not a Markdown
export. An Aino mini app is not a replacement for Markdown as the business
source of truth.

## Boundaries

- Do not read binary content unless another tool actually extracts it.
- Do not generate or edit Aino App Builder project internals or operate
  `.lifeos/custom-apps` directly.
- Use [LifeOS Onboarding](#lifeos-onboarding) when the
  request changes the vault profile or classifies scattered folders.
