lifeos 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.en.md +202 -0
- package/README.md +202 -0
- package/assets/lifeos-rules.en.md +162 -0
- package/assets/lifeos-rules.zh.md +162 -0
- package/assets/lifeos.yaml +56 -0
- package/assets/prompts/AI_LLMResearch_Prompt.en.md +120 -0
- package/assets/prompts/AI_LLMResearch_Prompt.zh.md +120 -0
- package/assets/prompts/Art_ChinesePainting_Prompt.en.md +147 -0
- package/assets/prompts/Art_ChinesePainting_Prompt.zh.md +148 -0
- package/assets/prompts/Cryptography_Prompt.en.md +148 -0
- package/assets/prompts/Cryptography_Prompt.zh.md +147 -0
- package/assets/prompts/History_ChineseCulture_Prompt.en.md +98 -0
- package/assets/prompts/History_ChineseCulture_Prompt.zh.md +98 -0
- package/assets/prompts/Math_HigherMathematics_Prompt.en.md +117 -0
- package/assets/prompts/Math_HigherMathematics_Prompt.zh.md +116 -0
- package/assets/schema/Frontmatter_Schema.md +139 -0
- package/assets/skills/_shared/completion-report.en.md +30 -0
- package/assets/skills/_shared/completion-report.zh.md +30 -0
- package/assets/skills/_shared/dual-agent-orchestrator.en.md +40 -0
- package/assets/skills/_shared/dual-agent-orchestrator.zh.md +40 -0
- package/assets/skills/_shared/learning-lifecycle.en.md +53 -0
- package/assets/skills/_shared/learning-lifecycle.zh.md +53 -0
- package/assets/skills/_shared/lifecycle.en.md +84 -0
- package/assets/skills/_shared/lifecycle.zh.md +84 -0
- package/assets/skills/_shared/memory-protocol.en.md +36 -0
- package/assets/skills/_shared/memory-protocol.zh.md +36 -0
- package/assets/skills/_shared/template-loading.en.md +26 -0
- package/assets/skills/_shared/template-loading.zh.md +26 -0
- package/assets/skills/archive/SKILL.en.md +300 -0
- package/assets/skills/archive/SKILL.zh.md +300 -0
- package/assets/skills/ask/SKILL.en.md +164 -0
- package/assets/skills/ask/SKILL.zh.md +164 -0
- package/assets/skills/brainstorm/SKILL.en.md +242 -0
- package/assets/skills/brainstorm/SKILL.zh.md +242 -0
- package/assets/skills/brainstorm/references/action-options.en.md +65 -0
- package/assets/skills/brainstorm/references/action-options.zh.md +65 -0
- package/assets/skills/knowledge/SKILL.en.md +202 -0
- package/assets/skills/knowledge/SKILL.zh.md +202 -0
- package/assets/skills/project/SKILL.en.md +133 -0
- package/assets/skills/project/SKILL.zh.md +133 -0
- package/assets/skills/project/references/execution-agent-prompt.en.md +148 -0
- package/assets/skills/project/references/execution-agent-prompt.zh.md +148 -0
- package/assets/skills/project/references/planning-agent-prompt.en.md +162 -0
- package/assets/skills/project/references/planning-agent-prompt.zh.md +162 -0
- package/assets/skills/read-pdf/SKILL.en.md +199 -0
- package/assets/skills/read-pdf/SKILL.zh.md +199 -0
- package/assets/skills/read-pdf/scripts/read_pdf.py +354 -0
- package/assets/skills/research/SKILL.en.md +107 -0
- package/assets/skills/research/SKILL.zh.md +107 -0
- package/assets/skills/research/references/execution-agent-prompt.en.md +166 -0
- package/assets/skills/research/references/execution-agent-prompt.zh.md +166 -0
- package/assets/skills/research/references/planning-agent-prompt.en.md +129 -0
- package/assets/skills/research/references/planning-agent-prompt.zh.md +129 -0
- package/assets/skills/revise/SKILL.en.md +258 -0
- package/assets/skills/revise/SKILL.zh.md +258 -0
- package/assets/skills/revise/references/grading-protocol.en.md +99 -0
- package/assets/skills/revise/references/grading-protocol.zh.md +99 -0
- package/assets/skills/today/SKILL.en.md +211 -0
- package/assets/skills/today/SKILL.zh.md +211 -0
- package/assets/templates/en/Daily_Template.md +25 -0
- package/assets/templates/en/Draft_Template.md +29 -0
- package/assets/templates/en/Knowledge_Template.md +86 -0
- package/assets/templates/en/Project_Template.md +110 -0
- package/assets/templates/en/Research_Template.md +46 -0
- package/assets/templates/en/Retrospective_Template.md +89 -0
- package/assets/templates/en/Revise_Template.md +24 -0
- package/assets/templates/en/Wiki_Template.md +35 -0
- package/assets/templates/zh/Daily_Template.md +26 -0
- package/assets/templates/zh/Draft_Template.md +29 -0
- package/assets/templates/zh/Knowledge_Template.md +86 -0
- package/assets/templates/zh/Project_Template.md +110 -0
- package/assets/templates/zh/Research_Template.md +46 -0
- package/assets/templates/zh/Retrospective_Template.md +89 -0
- package/assets/templates/zh/Revise_Template.md +24 -0
- package/assets/templates/zh/Wiki_Template.md +35 -0
- package/bin/lifeos.js +24 -0
- package/dist/active-docs/citations.d.ts +20 -0
- package/dist/active-docs/citations.js +74 -0
- package/dist/active-docs/citations.js.map +1 -0
- package/dist/active-docs/derived-memory.d.ts +57 -0
- package/dist/active-docs/derived-memory.js +161 -0
- package/dist/active-docs/derived-memory.js.map +1 -0
- package/dist/active-docs/index.d.ts +51 -0
- package/dist/active-docs/index.js +165 -0
- package/dist/active-docs/index.js.map +1 -0
- package/dist/active-docs/long-term-profile.d.ts +24 -0
- package/dist/active-docs/long-term-profile.js +75 -0
- package/dist/active-docs/long-term-profile.js.map +1 -0
- package/dist/active-docs/taskboard.d.ts +12 -0
- package/dist/active-docs/taskboard.js +146 -0
- package/dist/active-docs/taskboard.js.map +1 -0
- package/dist/active-docs/userprofile.d.ts +12 -0
- package/dist/active-docs/userprofile.js +169 -0
- package/dist/active-docs/userprofile.js.map +1 -0
- package/dist/cli/commands/doctor.d.ts +9 -0
- package/dist/cli/commands/doctor.js +125 -0
- package/dist/cli/commands/doctor.js.map +1 -0
- package/dist/cli/commands/init.d.ts +1 -0
- package/dist/cli/commands/init.js +129 -0
- package/dist/cli/commands/init.js.map +1 -0
- package/dist/cli/commands/rename.d.ts +7 -0
- package/dist/cli/commands/rename.js +188 -0
- package/dist/cli/commands/rename.js.map +1 -0
- package/dist/cli/commands/upgrade.d.ts +6 -0
- package/dist/cli/commands/upgrade.js +66 -0
- package/dist/cli/commands/upgrade.js.map +1 -0
- package/dist/cli/index.d.ts +1 -0
- package/dist/cli/index.js +52 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/utils/assets.d.ts +3 -0
- package/dist/cli/utils/assets.js +20 -0
- package/dist/cli/utils/assets.js.map +1 -0
- package/dist/cli/utils/install-assets.d.ts +39 -0
- package/dist/cli/utils/install-assets.js +141 -0
- package/dist/cli/utils/install-assets.js.map +1 -0
- package/dist/cli/utils/lang.d.ts +1 -0
- package/dist/cli/utils/lang.js +32 -0
- package/dist/cli/utils/lang.js.map +1 -0
- package/dist/cli/utils/managed-assets.d.ts +9 -0
- package/dist/cli/utils/managed-assets.js +20 -0
- package/dist/cli/utils/managed-assets.js.map +1 -0
- package/dist/cli/utils/mcp-register.d.ts +2 -0
- package/dist/cli/utils/mcp-register.js +132 -0
- package/dist/cli/utils/mcp-register.js.map +1 -0
- package/dist/cli/utils/sync-vault.d.ts +14 -0
- package/dist/cli/utils/sync-vault.js +132 -0
- package/dist/cli/utils/sync-vault.js.map +1 -0
- package/dist/cli/utils/ui.d.ts +14 -0
- package/dist/cli/utils/ui.js +78 -0
- package/dist/cli/utils/ui.js.map +1 -0
- package/dist/cli/utils/version.d.ts +1 -0
- package/dist/cli/utils/version.js +4 -0
- package/dist/cli/utils/version.js.map +1 -0
- package/dist/config.d.ts +127 -0
- package/dist/config.js +356 -0
- package/dist/config.js.map +1 -0
- package/dist/core.d.ts +106 -0
- package/dist/core.js +286 -0
- package/dist/core.js.map +1 -0
- package/dist/db/consolidation.d.ts +14 -0
- package/dist/db/consolidation.js +28 -0
- package/dist/db/consolidation.js.map +1 -0
- package/dist/db/index.d.ts +22 -0
- package/dist/db/index.js +39 -0
- package/dist/db/index.js.map +1 -0
- package/dist/db/schema.d.ts +7 -0
- package/dist/db/schema.js +175 -0
- package/dist/db/schema.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -0
- package/dist/server.d.ts +6 -0
- package/dist/server.js +303 -0
- package/dist/server.js.map +1 -0
- package/dist/services/capture.d.ts +101 -0
- package/dist/services/capture.js +297 -0
- package/dist/services/capture.js.map +1 -0
- package/dist/services/enhance.d.ts +51 -0
- package/dist/services/enhance.js +184 -0
- package/dist/services/enhance.js.map +1 -0
- package/dist/services/layer0.d.ts +24 -0
- package/dist/services/layer0.js +90 -0
- package/dist/services/layer0.js.map +1 -0
- package/dist/services/maintenance.d.ts +27 -0
- package/dist/services/maintenance.js +73 -0
- package/dist/services/maintenance.js.map +1 -0
- package/dist/services/retrieval.d.ts +120 -0
- package/dist/services/retrieval.js +571 -0
- package/dist/services/retrieval.js.map +1 -0
- package/dist/services/startup.d.ts +28 -0
- package/dist/services/startup.js +112 -0
- package/dist/services/startup.js.map +1 -0
- package/dist/skill-context/ask-global.d.ts +8 -0
- package/dist/skill-context/ask-global.js +21 -0
- package/dist/skill-context/ask-global.js.map +1 -0
- package/dist/skill-context/base.d.ts +48 -0
- package/dist/skill-context/base.js +5 -0
- package/dist/skill-context/base.js.map +1 -0
- package/dist/skill-context/daily-global.d.ts +8 -0
- package/dist/skill-context/daily-global.js +25 -0
- package/dist/skill-context/daily-global.js.map +1 -0
- package/dist/skill-context/index.d.ts +32 -0
- package/dist/skill-context/index.js +171 -0
- package/dist/skill-context/index.js.map +1 -0
- package/dist/skill-context/knowledge-strict.d.ts +8 -0
- package/dist/skill-context/knowledge-strict.js +26 -0
- package/dist/skill-context/knowledge-strict.js.map +1 -0
- package/dist/skill-context/review-strict.d.ts +8 -0
- package/dist/skill-context/review-strict.js +26 -0
- package/dist/skill-context/review-strict.js.map +1 -0
- package/dist/skill-context/revise-strict.d.ts +8 -0
- package/dist/skill-context/revise-strict.js +26 -0
- package/dist/skill-context/revise-strict.js.map +1 -0
- package/dist/skill-context/seed-profiles.d.ts +21 -0
- package/dist/skill-context/seed-profiles.js +80 -0
- package/dist/skill-context/seed-profiles.js.map +1 -0
- package/dist/types.d.ts +165 -0
- package/dist/types.js +76 -0
- package/dist/types.js.map +1 -0
- package/dist/utils/context-policy.d.ts +57 -0
- package/dist/utils/context-policy.js +333 -0
- package/dist/utils/context-policy.js.map +1 -0
- package/dist/utils/scan-state.d.ts +41 -0
- package/dist/utils/scan-state.js +79 -0
- package/dist/utils/scan-state.js.map +1 -0
- package/dist/utils/segmenter.d.ts +19 -0
- package/dist/utils/segmenter.js +75 -0
- package/dist/utils/segmenter.js.map +1 -0
- package/dist/utils/shared.d.ts +103 -0
- package/dist/utils/shared.js +313 -0
- package/dist/utils/shared.js.map +1 -0
- package/dist/utils/vault-indexer.d.ts +53 -0
- package/dist/utils/vault-indexer.js +256 -0
- package/dist/utils/vault-indexer.js.map +1 -0
- package/package.json +59 -0
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: execution-agent-prompt
|
|
3
|
+
description: Execution Agent prompt for the Project skill
|
|
4
|
+
role: execution
|
|
5
|
+
parent_skill: project
|
|
6
|
+
---
|
|
7
|
+
# Project Execution Agent Instructions
|
|
8
|
+
|
|
9
|
+
> Path logical names (e.g., `{projects directory}`, `{drafts directory}`) are resolved by the Orchestrator from `lifeos.yaml` and injected into context. See the main skill file `project/SKILL.md` for the mapping.
|
|
10
|
+
|
|
11
|
+
> This file is read by the `project/SKILL.md` Orchestrator after the user confirms the plan, and used as the complete prompt for the Task tool.
|
|
12
|
+
> Replace `[plan file path]` with the actual plan file path when using.
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
Execute the project plan at the following path: [plan file path]
|
|
17
|
+
|
|
18
|
+
## Step 1: Read the Plan File
|
|
19
|
+
|
|
20
|
+
Carefully read the plan file and note:
|
|
21
|
+
|
|
22
|
+
- Project category (learning / development / creative / general)
|
|
23
|
+
- Knowledge domain (Domain)
|
|
24
|
+
- Source draft field (for subsequent status update)
|
|
25
|
+
|
|
26
|
+
## Step 2: Obtain Template (Critical)
|
|
27
|
+
|
|
28
|
+
**Before generating any content**, read `{system directory}/{templates subdirectory}/Project_Template.md`.
|
|
29
|
+
|
|
30
|
+
Do not guess the structure. Remember:
|
|
31
|
+
|
|
32
|
+
- Exact Obsidian Callouts format (e.g., `> [!info]`, `> [!note]`)
|
|
33
|
+
- Frontmatter field structure
|
|
34
|
+
|
|
35
|
+
## Step 3: Create Project Note
|
|
36
|
+
|
|
37
|
+
Path rules:
|
|
38
|
+
|
|
39
|
+
- `development`: must create `{projects directory}/ProjectName/ProjectName.md`
|
|
40
|
+
- `learning / creative / general`: may create `{projects directory}/ProjectName.md`, or use `{projects directory}/ProjectName/ProjectName.md` when there are many files
|
|
41
|
+
|
|
42
|
+
### Development Project Directory Convention (Mandatory)
|
|
43
|
+
|
|
44
|
+
If the project category is `development`, the following rules must be followed during execution:
|
|
45
|
+
|
|
46
|
+
1. There can only be one main project file: `{projects directory}/ProjectName/ProjectName.md`
|
|
47
|
+
2. If supporting documents are needed, place them in `{projects directory}/ProjectName/Docs/`
|
|
48
|
+
3. Supporting documents must use `type: project-doc`
|
|
49
|
+
4. Supporting documents must include `project: "[[{projects directory}/ProjectName/ProjectName]]"`
|
|
50
|
+
5. Do not create versioned main project files like `ProjectNameV0.2.md`, `ProjectNameV0.3.md`
|
|
51
|
+
6. If the plan includes a version roadmap, write version information in the main project's fields or body, not in filenames
|
|
52
|
+
|
|
53
|
+
**Frontmatter specification:**
|
|
54
|
+
|
|
55
|
+
```yaml
|
|
56
|
+
---
|
|
57
|
+
type: project
|
|
58
|
+
status: active
|
|
59
|
+
domain: "[[DomainName]]"
|
|
60
|
+
created: "YYYY-MM-DD"
|
|
61
|
+
tags: [project]
|
|
62
|
+
aliases: []
|
|
63
|
+
---
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
If the project category is `development` and the plan has an explicit version roadmap, you may add:
|
|
67
|
+
|
|
68
|
+
```yaml
|
|
69
|
+
current_version: V0.1
|
|
70
|
+
target_version: V0.2
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
**C.A.P. Structure (learning projects use mastery table):**
|
|
74
|
+
|
|
75
|
+
```markdown
|
|
76
|
+
## Background
|
|
77
|
+
|
|
78
|
+
[Project objective and background]
|
|
79
|
+
|
|
80
|
+
## Content Plan
|
|
81
|
+
|
|
82
|
+
### Mastery Overview
|
|
83
|
+
|
|
84
|
+
| Chapter | Mastery | Notes | Wiki |
|
|
85
|
+
|---------|---------|-------|------|
|
|
86
|
+
| Chapter 1 [Name] | ⚪ Not started | — | — |
|
|
87
|
+
| Chapter 2 [Name] | ⚪ Not started | — | — |
|
|
88
|
+
|
|
89
|
+
<!-- Mastery dot mapping: ⚪ Not started 🔴 Not reviewed (draft) 🟡 Needs reinforcement (revise) 🟢 Mastered (mastered) -->
|
|
90
|
+
<!-- /revise will automatically update this table after grading -->
|
|
91
|
+
|
|
92
|
+
### 📖 Chapter 1: [Chapter Name]
|
|
93
|
+
|
|
94
|
+
> **Objective:** [What you can do after completing this chapter]
|
|
95
|
+
|
|
96
|
+
**Reference:** [[{resources directory}/Books/<ResourceName>]] Chapter 1
|
|
97
|
+
|
|
98
|
+
**Core content:** [3-5 sentence summary]
|
|
99
|
+
|
|
100
|
+
**Output paths:**
|
|
101
|
+
- 📝 Knowledge note: [[{knowledge directory}/{notes subdirectory}/<Domain>/<BookName>/<ChapterName>/<ChapterName>]]
|
|
102
|
+
- 📝 Wiki: [[{knowledge directory}/{wiki subdirectory}/<Domain>/ConceptName]]
|
|
103
|
+
|
|
104
|
+
## Progress
|
|
105
|
+
|
|
106
|
+
[Progress log area, left empty for user to fill]
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
**Formatting rules:**
|
|
110
|
+
|
|
111
|
+
- Use wikilinks `[[NoteName]]` to connect all related notes and resources
|
|
112
|
+
- Fill in all chapters/phases according to the outline draft in the plan file, do not truncate
|
|
113
|
+
- Content must be in English
|
|
114
|
+
- Development projects must include a "Project Documents" section in the main project body, stating that supporting documents are stored in the `Docs/` directory
|
|
115
|
+
|
|
116
|
+
## Step 4: Update Draft Status (Critical)
|
|
117
|
+
|
|
118
|
+
Check the "Source Draft" field in the plan file:
|
|
119
|
+
|
|
120
|
+
- If a draft file path is listed (not "None"): update the `status` in that draft file's frontmatter to `projected`
|
|
121
|
+
- This marks the draft as processed, allowing `/archive` to identify and archive it
|
|
122
|
+
|
|
123
|
+
## Step 5: Update Plan Status (Critical)
|
|
124
|
+
|
|
125
|
+
- After the project is created, update the plan file frontmatter `status` to `done`
|
|
126
|
+
- Keep the plan file at `{plans directory}/Plan_YYYY-MM-DD_Project_ProjectName.md`
|
|
127
|
+
- `/archive` later moves plans with `status: done` into `{system directory}/{archived plans subdirectory}/`
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
131
|
+
## Completion Report
|
|
132
|
+
|
|
133
|
+
After completion, report in English:
|
|
134
|
+
|
|
135
|
+
```
|
|
136
|
+
## Project Creation Complete
|
|
137
|
+
|
|
138
|
+
**Project:** [[ProjectName]] has been created
|
|
139
|
+
**Knowledge domain:** [Domain]
|
|
140
|
+
**Linked Vault resources:** [List actually linked notes and resources]
|
|
141
|
+
**Source draft status:** [{drafts directory}/filename.md → status updated to projected, or "No source draft"]
|
|
142
|
+
**Plan status:** {plans directory}/Plan_YYYY-MM-DD_Project_ProjectName.md → `status: done` (waiting for `/archive` to move it into `{system directory}/{archived plans subdirectory}/`)
|
|
143
|
+
|
|
144
|
+
If it is a development project, also include:
|
|
145
|
+
|
|
146
|
+
**Main project path:** `{projects directory}/ProjectName/ProjectName.md`
|
|
147
|
+
**Supporting documents directory:** `{projects directory}/ProjectName/Docs/`
|
|
148
|
+
```
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: execution-agent-prompt
|
|
3
|
+
description: Project 技能的执行 Agent 提示词
|
|
4
|
+
role: execution
|
|
5
|
+
parent_skill: project
|
|
6
|
+
---
|
|
7
|
+
# 项目执行 Agent 指令
|
|
8
|
+
|
|
9
|
+
> 路径逻辑名(如 `{项目目录}`、`{草稿目录}`)由 Orchestrator 从 `lifeos.yaml` 解析后注入上下文。映射关系见主技能文件 `project/SKILL.md` 的配置块。
|
|
10
|
+
|
|
11
|
+
> 此文件由 `project/SKILL.md` 的 Orchestrator 在用户确认计划后读取,作为 Task 工具的完整 prompt 使用。
|
|
12
|
+
> 使用时将 `[计划文件路径]` 替换为实际计划文件路径。
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
执行以下路径的项目计划:[计划文件路径]
|
|
17
|
+
|
|
18
|
+
## 步骤一:读取计划文件
|
|
19
|
+
|
|
20
|
+
仔细读取计划文件,记录:
|
|
21
|
+
|
|
22
|
+
- 项目类别(learning / development / creative / general)
|
|
23
|
+
- 知识领域(Domain)
|
|
24
|
+
- 来源草稿字段(用于后续状态更新)
|
|
25
|
+
|
|
26
|
+
## 步骤二:获取模板(关键)
|
|
27
|
+
|
|
28
|
+
**在生成任何内容之前**,读取 `{系统目录}/{模板子目录}/Project_Template.md`。
|
|
29
|
+
|
|
30
|
+
禁止猜测结构。记住:
|
|
31
|
+
|
|
32
|
+
- 精确的 Obsidian Callouts 格式(如 `> [!info]`, `> [!note]`)
|
|
33
|
+
- frontmatter 字段结构
|
|
34
|
+
|
|
35
|
+
## 步骤三:创建项目笔记
|
|
36
|
+
|
|
37
|
+
路径规则:
|
|
38
|
+
|
|
39
|
+
- `development`:必须创建 `{项目目录}/ProjectName/ProjectName.md`
|
|
40
|
+
- `learning / creative / general`:可创建 `{项目目录}/ProjectName.md`,或在文件较多时使用 `{项目目录}/ProjectName/ProjectName.md`
|
|
41
|
+
|
|
42
|
+
### 开发类项目目录规范(强制)
|
|
43
|
+
|
|
44
|
+
若项目类别为 `development`,执行时必须遵守以下规则:
|
|
45
|
+
|
|
46
|
+
1. 主项目文件只能有一个:`{项目目录}/ProjectName/ProjectName.md`
|
|
47
|
+
2. 若需要配套文档,统一放在 `{项目目录}/ProjectName/文档/`
|
|
48
|
+
3. 配套文档必须使用 `type: project-doc`
|
|
49
|
+
4. 配套文档必须写 `project: "[[{项目目录}/ProjectName/ProjectName]]"`
|
|
50
|
+
5. 禁止创建 `ProjectNameV0.2.md`、`ProjectNameV0.3.md` 之类的版本化主项目文件
|
|
51
|
+
6. 若计划中包含版本路线,版本信息写在主项目字段或正文中,不写入文件名
|
|
52
|
+
|
|
53
|
+
**Frontmatter 规范:**
|
|
54
|
+
|
|
55
|
+
```yaml
|
|
56
|
+
---
|
|
57
|
+
type: project
|
|
58
|
+
status: active
|
|
59
|
+
domain: "[[DomainName]]"
|
|
60
|
+
created: "YYYY-MM-DD"
|
|
61
|
+
tags: [project]
|
|
62
|
+
aliases: []
|
|
63
|
+
---
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
若项目类别为 `development` 且计划中有明确版本路线,可增加:
|
|
67
|
+
|
|
68
|
+
```yaml
|
|
69
|
+
current_version: V0.1
|
|
70
|
+
target_version: V0.2
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
**C.A.P. 结构(学习类项目使用掌握度表格):**
|
|
74
|
+
|
|
75
|
+
```markdown
|
|
76
|
+
## 背景
|
|
77
|
+
|
|
78
|
+
[项目目标与背景]
|
|
79
|
+
|
|
80
|
+
## 内容规划
|
|
81
|
+
|
|
82
|
+
### 掌握度总览
|
|
83
|
+
|
|
84
|
+
| 章节 | 掌握度 | 笔记 | 百科 |
|
|
85
|
+
|------|--------|------|------|
|
|
86
|
+
| 第1章 [章节名] | ⚪ 未学 | — | — |
|
|
87
|
+
| 第2章 [章节名] | ⚪ 未学 | — | — |
|
|
88
|
+
|
|
89
|
+
<!-- 掌握度小圆点映射:⚪未学 🔴未复习(draft) 🟡待巩固(revise) 🟢已掌握(mastered) -->
|
|
90
|
+
<!-- /revise 批改完成后会自动回写此表格 -->
|
|
91
|
+
|
|
92
|
+
### 📖 第1章: [章节名称]
|
|
93
|
+
|
|
94
|
+
> **目标:** [学完这个章节后能做什么]
|
|
95
|
+
|
|
96
|
+
**参考:** [[{资源目录}/Books/<资源名>]] 第1章
|
|
97
|
+
|
|
98
|
+
**核心内容:** [3-5句话概括]
|
|
99
|
+
|
|
100
|
+
**产出路径:**
|
|
101
|
+
- 📝 体系笔记: [[{知识目录}/{笔记子目录}/<Domain>/<BookName>/<ChapterName>/<ChapterName>]]
|
|
102
|
+
- 📝 百科: [[{知识目录}/{百科子目录}/<Domain>/概念名称]]
|
|
103
|
+
|
|
104
|
+
## 进展
|
|
105
|
+
|
|
106
|
+
[进展记录区,留空供用户填写]
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
**格式规范:**
|
|
110
|
+
|
|
111
|
+
- 使用 wikilinks `[[NoteName]]` 连接所有相关笔记和资源
|
|
112
|
+
- 按计划文件中的大纲草案填充所有章节/阶段,不截断
|
|
113
|
+
- 内容必须为中文
|
|
114
|
+
- 开发类项目必须在主项目正文中写明“项目文档”区块,说明配套文档统一存放在 `文档/` 目录
|
|
115
|
+
|
|
116
|
+
## 步骤四:更新草稿状态(关键)
|
|
117
|
+
|
|
118
|
+
检查计划文件中的「来源草稿」字段:
|
|
119
|
+
|
|
120
|
+
- 若列出了草稿文件路径(非"无"):将该草稿文件的 frontmatter 中 `status` 更新为 `projected`
|
|
121
|
+
- 这标记该草稿已被处理,使 `/archive` 可识别并归档
|
|
122
|
+
|
|
123
|
+
## 步骤五:更新计划状态(关键)
|
|
124
|
+
|
|
125
|
+
- 项目创建完成后,将计划文件的 frontmatter 中 `status` 更新为 `done`
|
|
126
|
+
- 保持计划文件仍位于 `{计划目录}/Plan_YYYY-MM-DD_Project_ProjectName.md`
|
|
127
|
+
- 后续由 `/archive` 统一将 `status: done` 的计划移动到 `{系统目录}/{归档计划子目录}/`
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
131
|
+
## 完成报告
|
|
132
|
+
|
|
133
|
+
完成后用中文汇报:
|
|
134
|
+
|
|
135
|
+
```
|
|
136
|
+
## 项目创建完成
|
|
137
|
+
|
|
138
|
+
**项目:** [[ProjectName]] 已创建
|
|
139
|
+
**知识领域:** [Domain]
|
|
140
|
+
**已链接的 Vault 资源:** [列出实际链接到的笔记和资源]
|
|
141
|
+
**来源草稿状态:** [{草稿目录}/文件名.md → status 已更新为 projected,或"无来源草稿"]
|
|
142
|
+
**计划状态:** {计划目录}/Plan_YYYY-MM-DD_Project_ProjectName.md → `status: done`(待 `/archive` 归档到 `{系统目录}/{归档计划子目录}/`)
|
|
143
|
+
|
|
144
|
+
若为开发类项目,再补充:
|
|
145
|
+
|
|
146
|
+
**主项目路径:** `{项目目录}/ProjectName/ProjectName.md`
|
|
147
|
+
**配套文档目录:** `{项目目录}/ProjectName/文档/`
|
|
148
|
+
```
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: planning-agent-prompt
|
|
3
|
+
description: Planning Agent prompt for the Project skill
|
|
4
|
+
role: planning
|
|
5
|
+
parent_skill: project
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Project Planning Agent Instructions
|
|
9
|
+
|
|
10
|
+
> Path logical names (e.g., `{projects directory}`, `{drafts directory}`) are resolved by the Orchestrator from `lifeos.yaml` and injected into context. See the main skill file `project/SKILL.md` for the mapping.
|
|
11
|
+
|
|
12
|
+
> This file is read by the `project/SKILL.md` Orchestrator and used as the complete prompt for the Task tool.
|
|
13
|
+
> Replace `[user's idea/draft note]` with the user's actual input when using.
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
Create a project launch plan for the following: [user's idea/draft note]
|
|
18
|
+
|
|
19
|
+
Execute the following steps:
|
|
20
|
+
|
|
21
|
+
## Step 1: Gather Context (Broad Search)
|
|
22
|
+
|
|
23
|
+
- If the input is a draft file path in `{drafts directory}/`: read its full content as the project seed idea
|
|
24
|
+
- Search `{projects directory}/` for any related existing projects
|
|
25
|
+
- Search `{resources directory}/` (Books, Papers, Courses, Links)
|
|
26
|
+
- Record the source draft file path (if any) — the Execution Agent will need it to update the draft status later
|
|
27
|
+
|
|
28
|
+
Summarize all related content already in the Vault.
|
|
29
|
+
|
|
30
|
+
## Step 2: Project Classification
|
|
31
|
+
|
|
32
|
+
- **Project category**: learning / development / creative / general
|
|
33
|
+
- **Knowledge domain** (required for learning): Math / AI / CS / Art / History / Other
|
|
34
|
+
|
|
35
|
+
If the project category is `development`, the plan must include directory structure design following these rules:
|
|
36
|
+
|
|
37
|
+
- Main project path is fixed at `{projects directory}/<ProjectName>/<ProjectName>.md`
|
|
38
|
+
- Supporting documents directory is fixed at `{projects directory}/<ProjectName>/Docs/`
|
|
39
|
+
- Main project filename must not contain version numbers
|
|
40
|
+
- If version information exists, write it in the main project's fields or body; do not generate separate `V0.2`, `V0.3` project files
|
|
41
|
+
|
|
42
|
+
## Step 3: Create Plan File
|
|
43
|
+
|
|
44
|
+
Path: `{plans directory}/Plan_YYYY-MM-DD_Project_ProjectName.md`
|
|
45
|
+
|
|
46
|
+
```markdown
|
|
47
|
+
---
|
|
48
|
+
title: "Plan: [Project Name]"
|
|
49
|
+
type: plan
|
|
50
|
+
status: active
|
|
51
|
+
created: "YYYY-MM-DD"
|
|
52
|
+
source: project
|
|
53
|
+
project: "[Project Name]"
|
|
54
|
+
tags: [plan, project]
|
|
55
|
+
aliases: []
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
# Launch Plan: [Project Name]
|
|
59
|
+
|
|
60
|
+
## Classification
|
|
61
|
+
|
|
62
|
+
- Project category: [learning / development / creative / general]
|
|
63
|
+
- Knowledge domain (Domain): [e.g., Math, AI — determines knowledge base subdirectory]
|
|
64
|
+
- Difficulty: [Beginner / Intermediate / Advanced] (required for learning)
|
|
65
|
+
- Estimated effort: [X hours/week × Y weeks] or [approx. X hours total]
|
|
66
|
+
|
|
67
|
+
## Objective
|
|
68
|
+
|
|
69
|
+
[One-sentence summary of the project goal]
|
|
70
|
+
|
|
71
|
+
## Target Directory Structure (Required for Development Projects)
|
|
72
|
+
|
|
73
|
+
- Main project file: `{projects directory}/<ProjectName>/<ProjectName>.md`
|
|
74
|
+
- Supporting documents directory: `{projects directory}/<ProjectName>/Docs/`
|
|
75
|
+
- Single main project rule: there is only one main project; requirements, design, implementation, testing, etc. are all managed as supporting documents
|
|
76
|
+
- Version rule: version information goes in the main project, not in filenames
|
|
77
|
+
|
|
78
|
+
## Source Draft
|
|
79
|
+
|
|
80
|
+
[{drafts directory}/filename.md, or "None (direct input)"]
|
|
81
|
+
|
|
82
|
+
## Existing Resources in the Vault
|
|
83
|
+
|
|
84
|
+
### Existing Projects
|
|
85
|
+
|
|
86
|
+
- [List related existing project wikilinks, or "None"]
|
|
87
|
+
|
|
88
|
+
### Existing Learning Resources
|
|
89
|
+
|
|
90
|
+
- Books: [List related wikilinks in {resources directory}/Books/]
|
|
91
|
+
- Papers: [List related wikilinks in {resources directory}/Papers/]
|
|
92
|
+
- Courses: [List related wikilinks in {resources directory}/Courses/]
|
|
93
|
+
|
|
94
|
+
## Project Outline Draft
|
|
95
|
+
|
|
96
|
+
### Background
|
|
97
|
+
|
|
98
|
+
[What problem does it solve / why is it important]
|
|
99
|
+
|
|
100
|
+
### Prerequisites (Required for Learning)
|
|
101
|
+
|
|
102
|
+
- [ ] [Concepts/skills that need to be mastered first, wikilink to existing notes]
|
|
103
|
+
|
|
104
|
+
### Content Plan
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
**Key rule: Chapter coverage requirement (Learning projects)**
|
|
108
|
+
|
|
109
|
+
When generating chapter structure:
|
|
110
|
+
|
|
111
|
+
- Must include **every chapter** from the source resource, never truncate
|
|
112
|
+
- Count the chapters before writing, verify the count matches after writing
|
|
113
|
+
- Never use "..." or "remaining chapters follow the same pattern"
|
|
114
|
+
- Must use the exact, complete filename of the resource (including extension .pdf/.epub etc.)
|
|
115
|
+
|
|
116
|
+
```markdown
|
|
117
|
+
**Learning project — chapter structure:**
|
|
118
|
+
|
|
119
|
+
#### Chapter 1: [Chapter Name]
|
|
120
|
+
|
|
121
|
+
- Objective: [What you can do after completing this chapter]
|
|
122
|
+
- Reference resource: [[{resources directory}/Books/ExactResourceName.pdf]] Chapter 1
|
|
123
|
+
- Expected knowledge note: [[{knowledge directory}/{notes subdirectory}/Domain/BookName/Chapter1NoteName/Chapter1NoteName]] (chapter directory structure)
|
|
124
|
+
- Expected Wiki: [[{knowledge directory}/{wiki subdirectory}/Domain/ConceptName]]
|
|
125
|
+
|
|
126
|
+
#### Chapter 2: [Chapter Name]
|
|
127
|
+
|
|
128
|
+
...(exhaustively list all chapters)
|
|
129
|
+
|
|
130
|
+
**Development project — phase structure:**
|
|
131
|
+
|
|
132
|
+
#### Phase 1: [Phase Name]
|
|
133
|
+
|
|
134
|
+
- Deliverables: [...]
|
|
135
|
+
- Reference resources: [if applicable]
|
|
136
|
+
|
|
137
|
+
> For development projects, if requirements, design, implementation, testing, or refactoring documents are expected, the plan must explicitly state these documents will be stored in `{projects directory}/<ProjectName>/Docs/`.
|
|
138
|
+
|
|
139
|
+
**Creative/General project — phase structure:**
|
|
140
|
+
|
|
141
|
+
#### Phase 1: [Phase Name]
|
|
142
|
+
|
|
143
|
+
- Deliverables: [...]
|
|
144
|
+
- Reference resources: [if applicable]
|
|
145
|
+
|
|
146
|
+
---
|
|
147
|
+
|
|
148
|
+
## Missing Resources Alert
|
|
149
|
+
|
|
150
|
+
- [List needed but missing resources, or "None"]
|
|
151
|
+
|
|
152
|
+
## Clarification Questions
|
|
153
|
+
|
|
154
|
+
- What is the timeline/deadline for this project?
|
|
155
|
+
- What is the priority? (P0=Urgent, P1=High, P2=Medium, P3=Low, P4=Later)
|
|
156
|
+
- How many hours per week do you plan to invest?
|
|
157
|
+
- Do you have a preferred learning resource or method? (video/books/hands-on/mixed)
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
## Step 4: Return Result
|
|
161
|
+
|
|
162
|
+
Return the path to the plan file.
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: planning-agent-prompt
|
|
3
|
+
description: Project 技能的规划 Agent 提示词
|
|
4
|
+
role: planning
|
|
5
|
+
parent_skill: project
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# 项目规划 Agent 指令
|
|
9
|
+
|
|
10
|
+
> 路径逻辑名(如 `{项目目录}`、`{草稿目录}`)由 Orchestrator 从 `lifeos.yaml` 解析后注入上下文。映射关系见主技能文件 `project/SKILL.md` 的配置块。
|
|
11
|
+
|
|
12
|
+
> 此文件由 `project/SKILL.md` 的 Orchestrator 读取,作为 Task 工具的完整 prompt 使用。
|
|
13
|
+
> 使用时将 `[用户输入的想法或草稿]` 替换为用户实际输入内容。
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
为以下内容创建项目启动计划:[用户输入的想法或草稿]
|
|
18
|
+
|
|
19
|
+
按以下步骤执行:
|
|
20
|
+
|
|
21
|
+
## 步骤一:收集上下文(广泛搜索)
|
|
22
|
+
|
|
23
|
+
- 若输入为 `{草稿目录}/` 中的草稿文件路径:读取其完整内容作为项目种子想法
|
|
24
|
+
- 搜索 `{项目目录}/` 中是否有相关的已有项目
|
|
25
|
+
- 搜索 `{资源目录}/`(Books、Papers、Courses、Links)
|
|
26
|
+
- 记录来源草稿文件路径(如有)——后续 Execution Agent 需用此路径更新草稿状态
|
|
27
|
+
|
|
28
|
+
汇总 Vault 中已有的相关内容。
|
|
29
|
+
|
|
30
|
+
## 步骤二:项目分类
|
|
31
|
+
|
|
32
|
+
- **项目类别**:learning / development / creative / general
|
|
33
|
+
- **知识领域**(学习类必填):Math / AI / CS / Art / History / 其他
|
|
34
|
+
|
|
35
|
+
若项目类别为 `development`,规划时必须同时设计目录结构,并遵守以下规则:
|
|
36
|
+
|
|
37
|
+
- 主项目路径固定为 `{项目目录}/<项目名>/<项目名>.md`
|
|
38
|
+
- 配套文档目录固定为 `{项目目录}/<项目名>/文档/`
|
|
39
|
+
- 主项目文件名不得包含版本号
|
|
40
|
+
- 版本信息若存在,写入主项目字段或正文,不单独生成 `V0.2`、`V0.3` 项目文件
|
|
41
|
+
|
|
42
|
+
## 步骤三:创建计划文件
|
|
43
|
+
|
|
44
|
+
路径:`{计划目录}/Plan_YYYY-MM-DD_Project_ProjectName.md`
|
|
45
|
+
|
|
46
|
+
```markdown
|
|
47
|
+
---
|
|
48
|
+
title: "Plan: [项目名称]"
|
|
49
|
+
type: plan
|
|
50
|
+
status: active
|
|
51
|
+
created: "YYYY-MM-DD"
|
|
52
|
+
source: project
|
|
53
|
+
project: "[项目名称]"
|
|
54
|
+
tags: [plan, project]
|
|
55
|
+
aliases: []
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
# 启动计划: [项目名称]
|
|
59
|
+
|
|
60
|
+
## 分类
|
|
61
|
+
|
|
62
|
+
- 项目类别: [learning / development / creative / general]
|
|
63
|
+
- 知识领域 (Domain): [如 Math, AI 等,决定知识库子目录]
|
|
64
|
+
- 难度: [入门 / 进阶 / 高级](学习类必填)
|
|
65
|
+
- 预估投入: [X小时/周 × Y周] 或 [总计约X小时]
|
|
66
|
+
|
|
67
|
+
## 目标
|
|
68
|
+
|
|
69
|
+
[一句话总结项目目标]
|
|
70
|
+
|
|
71
|
+
## 目标目录结构(开发类项目必填)
|
|
72
|
+
|
|
73
|
+
- 主项目文件:`{项目目录}/<项目名>/<项目名>.md`
|
|
74
|
+
- 配套文档目录:`{项目目录}/<项目名>/文档/`
|
|
75
|
+
- 单主项目规则:主项目只有一个,需求、设计、实施、测试等都作为配套文档管理
|
|
76
|
+
- 版本规则:版本信息写入主项目,不写入文件名
|
|
77
|
+
|
|
78
|
+
## 来源草稿
|
|
79
|
+
|
|
80
|
+
[{草稿目录}/文件名.md,或"无(直接输入)"]
|
|
81
|
+
|
|
82
|
+
## Vault 中的已有资源
|
|
83
|
+
|
|
84
|
+
### 已有项目
|
|
85
|
+
|
|
86
|
+
- [列出相关的已有项目 wikilinks,或"无"]
|
|
87
|
+
|
|
88
|
+
### 已有学习资源
|
|
89
|
+
|
|
90
|
+
- 书籍: [列出 {资源目录}/Books/ 中相关 wikilinks]
|
|
91
|
+
- 论文: [列出 {资源目录}/Papers/ 中相关 wikilinks]
|
|
92
|
+
- 课程: [列出 {资源目录}/Courses/ 中相关 wikilinks]
|
|
93
|
+
|
|
94
|
+
## 项目大纲草案
|
|
95
|
+
|
|
96
|
+
### 背景
|
|
97
|
+
|
|
98
|
+
[解决什么问题 / 为什么重要]
|
|
99
|
+
|
|
100
|
+
### 前置依赖(学习类必填)
|
|
101
|
+
|
|
102
|
+
- [ ] [需要先掌握的概念/技能,wikilink 到已有笔记]
|
|
103
|
+
|
|
104
|
+
### 内容规划
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
**关键规则:章节覆盖要求(学习类项目)**
|
|
108
|
+
|
|
109
|
+
生成章节结构时:
|
|
110
|
+
|
|
111
|
+
- 必须包含来源资源的**每一章**,绝不截断
|
|
112
|
+
- 写之前先数章节数,写完后验证数量一致
|
|
113
|
+
- 禁止使用"..."或"其余章节同上"
|
|
114
|
+
- 必须使用资源的精确完整文件名(含扩展名 .pdf/.epub 等)
|
|
115
|
+
|
|
116
|
+
```markdown
|
|
117
|
+
**学习类项目——章节结构:**
|
|
118
|
+
|
|
119
|
+
#### 第1章: [章节名称]
|
|
120
|
+
|
|
121
|
+
- 目标: [学完能做什么]
|
|
122
|
+
- 参考资源: [[{资源目录}/Books/ExactResourceName.pdf]] 第1章
|
|
123
|
+
- 预计产出体系笔记: [[{知识目录}/{笔记子目录}/Domain/BookName/第1章笔记名/第1章笔记名]](章节目录结构)
|
|
124
|
+
- 预计产出百科: [[{知识目录}/{百科子目录}/Domain/概念名]]
|
|
125
|
+
|
|
126
|
+
#### 第2章: [章节名称]
|
|
127
|
+
|
|
128
|
+
...(对所有章节穷尽列出)
|
|
129
|
+
|
|
130
|
+
**开发项目——阶段结构:**
|
|
131
|
+
|
|
132
|
+
#### 阶段1: [阶段名称]
|
|
133
|
+
|
|
134
|
+
- 交付物: [...]
|
|
135
|
+
- 参考资源: [如适用]
|
|
136
|
+
|
|
137
|
+
> 对开发项目,若预计会产生需求、设计、实施、测试或重构文档,必须在计划中明确这些文档将存放于 `{项目目录}/<项目名>/文档/`。
|
|
138
|
+
|
|
139
|
+
**创作/通用项目——阶段结构:**
|
|
140
|
+
|
|
141
|
+
#### 阶段1: [阶段名称]
|
|
142
|
+
|
|
143
|
+
- 交付物: [...]
|
|
144
|
+
- 参考资源: [如适用]
|
|
145
|
+
|
|
146
|
+
---
|
|
147
|
+
|
|
148
|
+
## 缺失资源提醒
|
|
149
|
+
|
|
150
|
+
- [列出需要但缺失的资源,或"暂无"]
|
|
151
|
+
|
|
152
|
+
## 澄清问题
|
|
153
|
+
|
|
154
|
+
- 这个项目的时间线/截止日期是什么?
|
|
155
|
+
- 优先级是多少?(P0=紧急, P1=高, P2=中, P3=低, P4=以后)
|
|
156
|
+
- 每周计划投入多少时间?
|
|
157
|
+
- 有偏好的学习资源或方式吗?(视频/书籍/实践/混合)
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
## 步骤四:返回结果
|
|
161
|
+
|
|
162
|
+
返回计划文件的路径。
|