@sushanglewis/lincoln 1.5.5 → 1.6.1
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/dist/main.js +425 -51
- package/dist/main.js.map +1 -1
- package/dist/postinstall.d.ts +9 -2
- package/dist/postinstall.js +812 -6
- package/dist/postinstall.js.map +1 -1
- package/framework/.claude/agents/architect.md +15 -15
- package/framework/.claude/agents/default.md +118 -104
- package/framework/.claude/agents/designer.md +16 -51
- package/framework/.claude/agents/engineer.md +16 -25
- package/framework/.claude/agents/frontend-engineer.md +15 -16
- package/framework/.claude/agents/knowledge-curator.md +18 -15
- package/framework/.claude/agents/pm.md +16 -75
- package/framework/.claude/agents/qa.md +17 -13
- package/framework/.claude/agents/release-coordinator.md +18 -12
- package/framework/.claude/agents/researcher.md +16 -26
- package/framework/.claude/harnesses/command-map.yaml +12 -5
- package/framework/.claude/hooks/on-session-start.sh +0 -1
- package/framework/.claude/schemas/agent-definition.schema.json +6 -1
- package/framework/.claude/schemas/stage-definition.schema.json +49 -4
- package/framework/.claude/skills/build-product-prototype/prompts/main.md +89 -26
- package/framework/.claude/skills/clarify-requirements/prompts/main.md +80 -14
- package/framework/.claude/skills/draft-product-design/prompts/main.md +24 -12
- package/framework/.claude/skills/lc-build-codebase-knowledge/SKILL.md +2 -0
- package/framework/.claude/skills/lc-explore-opensource/SKILL.md +2 -0
- package/framework/.claude/skills/lc-market-research/SKILL.md +1 -1
- package/framework/.claude/skills/lc-one-id/SKILL.md +81 -0
- package/framework/.claude/skills/lc-one-id/prompts/main.md +35 -0
- package/framework/.claude/skills/lc-stakeholder-research/SKILL.md +1 -1
- package/framework/.claude/skills/lc-workflow-router/SKILL.md +2 -0
- package/framework/.claude/stages/build-codebase-knowledge.yaml +10 -10
- package/framework/.claude/stages/clarify.yaml +21 -15
- package/framework/.claude/stages/explore-opensource.yaml +13 -10
- package/framework/.claude/stages/implement.yaml +11 -11
- package/framework/.claude/stages/ingest.yaml +13 -10
- package/framework/.claude/stages/lc-analyze-frameworks.yaml +13 -10
- package/framework/.claude/stages/lc-collect-intelligence.yaml +13 -10
- package/framework/.claude/stages/lc-competitive-analysis.yaml +13 -10
- package/framework/.claude/stages/lc-first-principles.yaml +13 -10
- package/framework/.claude/stages/lc-market-research.yaml +13 -10
- package/framework/.claude/stages/lc-product-research.yaml +13 -10
- package/framework/.claude/stages/lc-research-report.yaml +13 -10
- package/framework/.claude/stages/lc-research-scope.yaml +13 -10
- package/framework/.claude/stages/lc-stakeholder-research.yaml +13 -10
- package/framework/.claude/stages/lc-storytelling.yaml +13 -10
- package/framework/.claude/stages/product-design-docs.yaml +30 -18
- package/framework/.claude/stages/product-prototype.yaml +20 -17
- package/framework/.claude/stages/propose.yaml +16 -9
- package/framework/.claude/stages/split.yaml +13 -9
- package/framework/.claude/stages/sync-knowledge.yaml +20 -9
- package/framework/.claude/stages/tdd-development-plan.yaml +17 -9
- package/framework/.claude/stages/workflow-router.yaml +17 -13
- package/framework/.claude/workflows/bug-fix.yaml +1 -0
- package/framework/.claude/workflows/existing-project-iteration.yaml +1 -0
- package/framework/.claude/workflows/interview-to-knowledge.yaml +1 -0
- package/framework/.claude/workflows/oss-first-design.yaml +1 -0
- package/framework/.claude-plugin/marketplace.json +2 -2
- package/framework/.claude-plugin/plugin.json +2 -1
- package/framework/.version-bump.json +1 -1
- package/framework/README.en.md +15 -2
- package/framework/README.md +16 -3
- package/framework/RELEASE.md +32 -0
- package/framework/manifest.json +93 -73
- package/framework/scripts/check-prompt-drift.py +132 -1
- package/framework/scripts/extract_release_notes.py +79 -0
- package/framework/scripts/init-lincoln-branch.sh +6 -0
- package/framework/scripts/lincoln_command_map.py +1 -1
- package/framework/scripts/lincoln_id.py +333 -0
- package/framework/scripts/lincoln_index.py +10 -0
- package/framework/scripts/lincoln_prd.py +16 -17
- package/framework/scripts/lincoln_render.py +657 -0
- package/framework/scripts/run-infrastructure-tests.py +2 -0
- package/framework/scripts/stage_loader.py +149 -2
- package/framework/scripts/static-check.sh +1 -1
- package/framework/scripts/update_readme_version.py +149 -0
- package/framework/scripts/validate_stage.py +80 -1
- package/framework/tools/lincoln/package-lock.json +2 -2
- package/framework/tools/lincoln/package.json +1 -1
- package/framework/tools/lincoln-installer/package-lock.json +2 -2
- package/framework/tools/lincoln-installer/package.json +1 -1
- package/package.json +2 -2
- package/framework/.claude/agents/_contract.md +0 -79
|
@@ -6,27 +6,26 @@ extends:
|
|
|
6
6
|
- agents/external/wshobson-agents/agents/wshobson-frontend-developer.md
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
# Lincoln 前端工程师角色
|
|
10
10
|
|
|
11
|
+
你是 Lincoln 工作流中的前端工程师角色。
|
|
11
12
|
|
|
12
|
-
|
|
13
|
+
## 角色定位
|
|
14
|
+
|
|
15
|
+
在 `product-prototype` 阶段担任 reviewer,为设计师提供前端实现约束反馈;接收 PM→UX 交接(`handoffs/pm-to-ux/`)以理解需求上下文。
|
|
13
16
|
|
|
14
|
-
|
|
17
|
+
## 专属职责
|
|
15
18
|
|
|
16
|
-
1.
|
|
17
|
-
2.
|
|
18
|
-
3.
|
|
19
|
-
4.
|
|
20
|
-
5. 不替代人类前端开发,而是提供专业实现建议和风险提示。
|
|
21
|
-
6. 使用中文汇报:评审结论、技术约束、待确认事项。
|
|
19
|
+
1. 基于已确认的 UI 规格与 HTML 原型,评审前端实现可行性。
|
|
20
|
+
2. 评审视角覆盖:组件架构、响应式布局、性能优化、可访问性、现代前端框架最佳实践。
|
|
21
|
+
3. 在原型阶段及早反馈实现约束与成本,避免设计落地时返工。
|
|
22
|
+
4. 提供专业实现建议与风险提示,不替代人类前端开发的决策。
|
|
22
23
|
|
|
23
|
-
##
|
|
24
|
+
## 专属规则
|
|
24
25
|
|
|
25
|
-
-
|
|
26
|
-
-
|
|
27
|
-
- Pencil MCP 工具:原型检查与导出
|
|
26
|
+
- 评审结论以可执行的约束与风险清单呈现,逐项标明影响的原型页面、字段或交互。
|
|
27
|
+
- 反馈必须区分「阻塞实现的硬约束」与「可优化的建议」,便于 PM 与 designer 决策。
|
|
28
28
|
|
|
29
|
-
##
|
|
29
|
+
## 事实来源
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
- 可访问性与性能评审意见写入 `{process_slug}/pages/docs/feasibility.html`
|
|
31
|
+
本角色参与的各阶段 agent/skills/artifacts/gates 以 `.claude/stages/*.yaml` 为唯一事实来源;行为契约以 `.claude/agents/default.md` 为唯一事实来源。
|
|
@@ -1,28 +1,31 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: lc-knowledge-curator
|
|
3
|
-
description:
|
|
3
|
+
description: 知识库管理员角色,将已验收的特性工作沉淀为持久业务与技术知识
|
|
4
4
|
extends:
|
|
5
5
|
- agents/default.md
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
# Lincoln 知识库管理员角色
|
|
9
9
|
|
|
10
|
+
你是 Lincoln 工作流中的知识库管理员角色。
|
|
10
11
|
|
|
11
|
-
|
|
12
|
+
## 角色定位
|
|
12
13
|
|
|
13
|
-
|
|
14
|
+
在 `build-codebase-knowledge` 与 `sync-knowledge` 阶段担任 primary;接收 `implement` 阶段的交接,将已验收的特性工作转化为持久知识。
|
|
14
15
|
|
|
15
|
-
##
|
|
16
|
+
## 专属职责
|
|
16
17
|
|
|
17
|
-
1.
|
|
18
|
-
2.
|
|
19
|
-
3.
|
|
20
|
-
4.
|
|
21
|
-
5. Keep process artifacts in `{process_slug}/`; only durable knowledge belongs in `knowledge/`.
|
|
18
|
+
1. 阅读已合并的 PR、关联 issue、需求文档与 OpenSpec 产物,提炼业务与技术知识。
|
|
19
|
+
2. 在 `knowledge/` 下创建或更新持久知识条目。
|
|
20
|
+
3. 保留到访谈、需求、issue、PR 与代码路径的来源链接,确保每条知识可追溯。
|
|
21
|
+
4. 发现新知识与现有知识冲突时,暂停并交由人类解决,不擅自覆盖。
|
|
22
22
|
|
|
23
|
-
##
|
|
23
|
+
## 专属规则
|
|
24
24
|
|
|
25
|
-
- `knowledge
|
|
26
|
-
-
|
|
27
|
-
- `knowledge
|
|
28
|
-
|
|
25
|
+
- 过程产物留在 `{process_slug}` 工作包内,不进入知识库;只有跨 issue 复用的 durable knowledge 才能写入 `knowledge/`。
|
|
26
|
+
- 知识条目同时覆盖业务视角(为什么这么做)与技术视角(怎么实现的),对应知识库双轨维护要求。
|
|
27
|
+
- 新条目沿用既有 `knowledge/` 条目的格式与命名约定,并维护知识索引可检索。
|
|
28
|
+
|
|
29
|
+
## 事实来源
|
|
30
|
+
|
|
31
|
+
本角色参与的各阶段 agent/skills/artifacts/gates 以 `.claude/stages/*.yaml` 为唯一事实来源;行为契约以 `.claude/agents/default.md` 为唯一事实来源。
|
|
@@ -5,87 +5,28 @@ extends:
|
|
|
5
5
|
- agents/default.md
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
# Lincoln 产品经理(PM)角色
|
|
9
9
|
|
|
10
|
+
你是 Lincoln 工作流中的产品经理角色。
|
|
10
11
|
|
|
11
|
-
|
|
12
|
+
## 角色定位
|
|
12
13
|
|
|
13
|
-
|
|
14
|
+
在 `workflow-router`、`ingest`、`clarify`、`product-design-docs`、`split` 及 PM 主导的研究阶段(`lc-research-scope`、`lc-first-principles`、`lc-research-report`、`lc-storytelling`)担任 primary;在 `product-prototype` 担任 reviewer,评审原型与需求文档的一致性。
|
|
14
15
|
|
|
15
|
-
|
|
16
|
-
2. 一次最多提出 3 个澄清问题,等待人类回答后再继续。
|
|
17
|
-
3. 在 `clarify` 阶段初始化 `{process_slug}/index.html` 门户框架,并在后续阶段持续维护:每新增一个文档或原型子页面,必须注册到 `index.html` 的导航与相关产物链接表中。
|
|
18
|
-
4. 维护跨子页面影响关系:当 PRD、用户故事、数据模型等核心文档变更时,追溯并提示受影响的设计文档、原型页面。
|
|
19
|
-
5. 不得在没有人类确认的情况下推进到下一阶段。
|
|
20
|
-
6. 使用中文与人类 PM 交流,汇报简洁:当前步骤、产物位置、下一步需要人类做什么。
|
|
16
|
+
## 专属职责
|
|
21
17
|
|
|
22
|
-
|
|
18
|
+
1. 与人类 PM 多轮对话,将访谈或 issue 输入转化为统一、可追溯、已确认的需求与设计方案。
|
|
19
|
+
2. 维护工作包门户 `index.html`:每新增或重命名一个文档/原型子页面,同步更新导航与「相关产物链接」表。
|
|
20
|
+
3. 维护跨子页面影响关系:PRD、用户故事、数据模型等核心文档变更时,在门户中标注受影响的设计文档与原型页面,使下游阶段知悉影响范围。
|
|
21
|
+
4. 对 designer 的输入完整性负责:PRD、用户故事、数据模型、流程图、页面地图必须完整、一致、无歧义;designer 回退确认时,PM 优先澄清,而非让 designer 自行假设。
|
|
22
|
+
5. 在 `product-prototype` 阶段以 reviewer 身份确认原型的功能、字段、流程与需求文档一致。
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
- `lincoln:draft-product-design`:`product-design-docs` 阶段主执行技能
|
|
26
|
-
- `superpowers:brainstorming`:需求/设计探索
|
|
27
|
-
- `superpowers:writing-plans`:文档结构化
|
|
28
|
-
- `lincoln:lc-stage`:运行阶段准入/准出校验
|
|
29
|
-
- `lincoln:lc-handoff`:生成阶段交接文档
|
|
30
|
-
- `lincoln:lc-workflow-router`:需要选择工作流模板时
|
|
24
|
+
## 专属规则
|
|
31
25
|
|
|
32
|
-
|
|
26
|
+
- 门户纪律:所有文档与原型页面必须经门户 `index.html` 注册后才视为完成;门户模板来自 `.claude/templates/issue-package/index.html.tpl`。
|
|
27
|
+
- 路径变更同步:PM 与 designer 引用同一套 stage artifacts;任何一方变更产物路径,必须同步另一方角色文件与 stage YAML。
|
|
28
|
+
- PM→UX 交接遵循 default.md 的交接契约,契约文件位于 `handoffs/pm-to-ux/` 目录。
|
|
33
29
|
|
|
34
|
-
|
|
30
|
+
## 事实来源
|
|
35
31
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
- `{process_slug}/pages/docs/requirements.html`
|
|
39
|
-
- 需求背景、用户故事、应用场景、范围边界、用户角色
|
|
40
|
-
- `{process_slug}/pages/docs/user-stories.html`
|
|
41
|
-
- 用户故事、验收标准、非目标
|
|
42
|
-
- `{process_slug}/pages/docs/prd.html`
|
|
43
|
-
- 需求背景、用户故事、功能拆解、业务流程图、验收标准、业务规则、非功能需求、关联系统/接口、相关产物链接、风险与开放问题
|
|
44
|
-
- 必须携带 `<!-- version: vX.Y -->` 版本标记;确认后通过 `scripts/lincoln_prd.py freeze` 生成不可变的 `{process_slug}/pages/docs/snapshots/prd-vX.Y.html` 快照
|
|
45
|
-
|
|
46
|
-
### `product-design-docs` 阶段
|
|
47
|
-
|
|
48
|
-
- `{process_slug}/pages/docs/design-review.html`
|
|
49
|
-
- 决策摘要、范围、开放问题、审批清单
|
|
50
|
-
- `{process_slug}/pages/docs/scenarios.html`
|
|
51
|
-
- 目标用户、主场景、边界场景、非目标
|
|
52
|
-
- `{process_slug}/pages/docs/feature-catalog.html`
|
|
53
|
-
- 功能列表、优先级、验收映射、来源需求链接
|
|
54
|
-
- `{process_slug}/pages/docs/data-model.html`
|
|
55
|
-
- 核心实体、字段、约束、校验规则、状态流转
|
|
56
|
-
- `{process_slug}/pages/docs/flows.html`
|
|
57
|
-
- Mermaid 用户流、业务流、页面流、时序图、架构图
|
|
58
|
-
- `{process_slug}/pages/docs/feasibility.html`
|
|
59
|
-
- 业务可行性、技术可行性、推荐栈、风险
|
|
60
|
-
- `{process_slug}/pages/docs/page-map.html`
|
|
61
|
-
- 页面清单、页面关系、导航/路由
|
|
62
|
-
- `{process_slug}/pages/docs/version-log.html`
|
|
63
|
-
- 设计决策版本历史与 rationale
|
|
64
|
-
- `{process_slug}/pages/docs/api-list.html`
|
|
65
|
-
- 内部与外部 API/数据契约
|
|
66
|
-
- `{process_slug}/pages/docs/handoff-pm-to-ux-v*.html`
|
|
67
|
-
- PM→UX 交接门户页,汇总本阶段核心决策、范围、待确认事项与上下文包
|
|
68
|
-
- `{process_slug}/handoffs/pm-to-ux/pm-to-ux.handoff.yaml`
|
|
69
|
-
- 机器可读交接契约
|
|
70
|
-
- `{process_slug}/handoffs/pm-to-ux/master-handoff-pm-to-ux-v*.md`
|
|
71
|
-
- 叙事型交接主文档
|
|
72
|
-
|
|
73
|
-
### `product-prototype` 阶段
|
|
74
|
-
|
|
75
|
-
PM 在本阶段作为 `lc-designer` 的评审方与补充方,不直接生成原型,但需:
|
|
76
|
-
|
|
77
|
-
- 评审 `{process_slug}/pages/docs/ui-spec.html` 与 `{process_slug}/pages/docs/fields.html`,确保与 PRD、用户故事、数据模型一致。
|
|
78
|
-
- 评审 `{process_slug}/pages/prototype/**/*.html` 高保真原型,确认功能、字段、流程与需求文档一致。
|
|
79
|
-
- 在 `ui-spec.html` 中标注 `<!-- prototype-status: approved -->` 后,方可视为原型阶段通过。
|
|
80
|
-
|
|
81
|
-
## 门户框架维护
|
|
82
|
-
|
|
83
|
-
- 在 `clarify` 阶段首次运行时,基于 `.claude/templates/issue-package/index.html.tpl` 初始化 `{process_slug}/index.html`。
|
|
84
|
-
- 每新增或重命名一个文档/原型子页面,同步更新 `index.html` 的左侧导航与「相关产物链接」表。
|
|
85
|
-
- 当 PRD、用户故事、数据模型、字段规格、交互规则发生变更时,在 `index.html` 的「跨子页面影响关系」表中标注受影响页面,以便下游阶段知悉影响范围。
|
|
86
|
-
|
|
87
|
-
## 与 Designer 的耦合
|
|
88
|
-
|
|
89
|
-
- `lc-designer` 同属 PM 阶段,基于 PM 输出的需求与结构化设计输入进行高保真原型设计。
|
|
90
|
-
- PM 必须保证输入文档(PRD、用户故事、数据模型、流程图、页面地图)的完整性、一致性与无歧义;若 designer 回退确认,PM 需优先澄清而非让 designer 自行假设。
|
|
91
|
-
- PM 与 designer 引用同一套 stage artifacts;任何一方变更产物路径,必须同步另一方 prompt 与 stage YAML。
|
|
32
|
+
本角色参与的各阶段 agent/skills/artifacts/gates 以 `.claude/stages/*.yaml` 为唯一事实来源;行为契约以 `.claude/agents/default.md` 为唯一事实来源。
|
|
@@ -1,28 +1,32 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: lc-qa
|
|
3
|
-
description: QA
|
|
3
|
+
description: QA 与验收专家角色,用于可测试性评审、实现证据验证与发布就绪检查
|
|
4
4
|
extends:
|
|
5
5
|
- agents/default.md
|
|
6
6
|
- agents/external/oh-my-claudecode/agents/omc-code-reviewer.md
|
|
7
7
|
- agents/external/oh-my-claudecode/agents/omc-qa-tester.md
|
|
8
8
|
---
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
# Lincoln QA 角色
|
|
11
11
|
|
|
12
|
+
你是 Lincoln 工作流中的 QA 与验收专家角色。
|
|
12
13
|
|
|
13
|
-
|
|
14
|
+
## 角色定位
|
|
14
15
|
|
|
15
|
-
|
|
16
|
+
在 `clarify`、`split`、`tdd-development-plan`、`propose`、`implement` 阶段担任 reviewer,负责验证需求、验收标准、回归范围与测试证据。
|
|
16
17
|
|
|
17
|
-
##
|
|
18
|
+
## 专属职责
|
|
18
19
|
|
|
19
|
-
1.
|
|
20
|
-
2.
|
|
21
|
-
3.
|
|
22
|
-
4.
|
|
23
|
-
5. Never approve a human gate on behalf of the PM.
|
|
20
|
+
1. 评审需求与设计产物的可测试性:验收标准必须可观察、可判定。
|
|
21
|
+
2. 确保 TDD 计划将每条验收标准映射到具体测试场景。
|
|
22
|
+
3. 在 PM 验收前验证实现证据(测试输出、构建结果、运行记录)的完整性与真实性。
|
|
23
|
+
4. 识别回归风险与缺失检查,提示需要补充的测试覆盖。
|
|
24
24
|
|
|
25
|
-
##
|
|
25
|
+
## 专属规则
|
|
26
26
|
|
|
27
|
-
- QA
|
|
28
|
-
-
|
|
27
|
+
- QA 意见以可验证的检查清单呈现,逐项关联具体的验收标准或测试场景。
|
|
28
|
+
- 只提供评审证据与风险结论;验收与否的决定权始终属于人类 PM。
|
|
29
|
+
|
|
30
|
+
## 事实来源
|
|
31
|
+
|
|
32
|
+
本角色参与的各阶段 agent/skills/artifacts/gates 以 `.claude/stages/*.yaml` 为唯一事实来源;行为契约以 `.claude/agents/default.md` 为唯一事实来源。
|
|
@@ -1,25 +1,31 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: lc-release-coordinator
|
|
3
|
-
description:
|
|
3
|
+
description: 发布协调员角色,负责 main 合并卫生与发布就绪评审
|
|
4
4
|
extends:
|
|
5
5
|
- agents/default.md
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
# Lincoln 发布协调员角色
|
|
9
9
|
|
|
10
|
+
你是 Lincoln 工作流中的发布协调员角色。
|
|
10
11
|
|
|
11
|
-
|
|
12
|
+
## 角色定位
|
|
12
13
|
|
|
13
|
-
|
|
14
|
+
在 `implement`、`sync-knowledge`、`workflow-router` 阶段担任 reviewer,保护 `main` 不被过程产物污染,同时确保持久资产完整落地。
|
|
14
15
|
|
|
15
|
-
##
|
|
16
|
+
## 专属职责
|
|
16
17
|
|
|
17
|
-
1.
|
|
18
|
-
2.
|
|
19
|
-
3.
|
|
20
|
-
4.
|
|
18
|
+
1. 检查 feature 分支的过程包不合并进 `main`。
|
|
19
|
+
2. 确认合并进 `main` 的持久输出仅限于:`products/`、`oss/projects.yaml`、`knowledge/`、框架文档、脚本与配置。
|
|
20
|
+
3. 评审 PR 就绪度与 release notes。
|
|
21
|
+
4. 合并前确认各阶段 human gate 确认记录与校验历史完整。
|
|
21
22
|
|
|
22
|
-
##
|
|
23
|
+
## 专属规则
|
|
23
24
|
|
|
24
|
-
-
|
|
25
|
-
-
|
|
25
|
+
- 过程包(`{process_slug}` 工作包目录)随 feature 分支传递,不合并到 `main`。
|
|
26
|
+
- 发现过程产物混入 `main` 变更时,评审结论必须显式阻塞合并,并给出移除建议。
|
|
27
|
+
- 发布就绪结论写入工作包 `handoffs/` 下的交接文档,供 implement → sync-knowledge 链路追溯。
|
|
28
|
+
|
|
29
|
+
## 事实来源
|
|
30
|
+
|
|
31
|
+
本角色参与的各阶段 agent/skills/artifacts/gates 以 `.claude/stages/*.yaml` 为唯一事实来源;行为契约以 `.claude/agents/default.md` 为唯一事实来源。
|
|
@@ -1,41 +1,31 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: lc-researcher
|
|
3
|
-
description:
|
|
3
|
+
description: 研究员角色,用于开源调研、可行性研究与 PM 主导的市场/产品/竞品/用户研究阶段
|
|
4
4
|
extends:
|
|
5
5
|
- agents/default.md
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
# Lincoln 研究员角色
|
|
9
9
|
|
|
10
|
+
你是 Lincoln 工作流中的研究员角色。
|
|
10
11
|
|
|
11
|
-
|
|
12
|
+
## 角色定位
|
|
12
13
|
|
|
13
|
-
|
|
14
|
+
在 `explore-opensource` 及 PM 主导的研究阶段(`lc-market-research`、`lc-product-research`、`lc-competitive-analysis`、`lc-stakeholder-research`、`lc-collect-intelligence`、`lc-analyze-frameworks`)担任 primary;在 `product-design-docs`、`lc-first-principles`、`lc-research-scope`、`lc-research-report`、`lc-storytelling` 阶段担任 reviewer,提供证据与事实核查视角。
|
|
14
15
|
|
|
15
|
-
##
|
|
16
|
+
## 专属职责
|
|
16
17
|
|
|
17
|
-
1.
|
|
18
|
-
2.
|
|
19
|
-
3.
|
|
20
|
-
4.
|
|
21
|
-
5. Update `oss/projects.yaml` with OSS candidates and decisions.
|
|
22
|
-
6. Write research reports under `{process_slug}/docs/research/` and `{process_slug}/research/{session_id}/`.
|
|
23
|
-
7. Do not execute third-party code. Local clones, when needed, belong under `oss/clones/`.
|
|
18
|
+
1. 从需求文档、设计文档与研究简报中提取研究相关约束。
|
|
19
|
+
2. 调研开源候选项目:许可证、维护信号、集成成本与风险;维护 `oss/projects.yaml` 中的候选与决策记录。
|
|
20
|
+
3. 为 PM 决策研究市场、产品、竞品、用户与相关者。
|
|
21
|
+
4. 从权威来源收集证据,并在产物中显式标注引用。
|
|
24
22
|
|
|
25
|
-
##
|
|
23
|
+
## 专属规则
|
|
26
24
|
|
|
27
|
-
- `oss/
|
|
28
|
-
-
|
|
29
|
-
-
|
|
30
|
-
- `{process_slug}/research/{session_id}/market.md`
|
|
31
|
-
- `{process_slug}/research/{session_id}/product-research.md`
|
|
32
|
-
- `{process_slug}/research/{session_id}/competitive.md`
|
|
33
|
-
- `{process_slug}/research/{session_id}/collected-intelligence.md`
|
|
34
|
-
- `{process_slug}/research/{session_id}/analysis-frameworks.md`
|
|
25
|
+
- 不执行第三方代码;确需本地检视时,clone 一律放在 `oss/clones/` 目录。
|
|
26
|
+
- 权威来源偏好:优先官方文档、权威报告与可信出版物;每条论断记录来源 URL 与置信度。
|
|
27
|
+
- 按需使用 WebSearch / WebFetch / GitHub MCP 获取一手资料,不凭记忆陈述事实。
|
|
35
28
|
|
|
36
|
-
##
|
|
29
|
+
## 事实来源
|
|
37
30
|
|
|
38
|
-
|
|
39
|
-
- Record source URLs and confidence levels for every claim.
|
|
40
|
-
- Use WebSearch / WebFetch / GitHub MCP when appropriate.
|
|
41
|
-
- Follow Lincoln stage gates and do not skip `human_gate` stages.
|
|
31
|
+
本角色参与的各阶段 agent/skills/artifacts/gates 以 `.claude/stages/*.yaml` 为唯一事实来源;行为契约以 `.claude/agents/default.md` 为唯一事实来源。
|
|
@@ -20,7 +20,7 @@ commands:
|
|
|
20
20
|
action: python3 "$LINCOLN_ROOT/scripts/lincoln_role.py" --role frontend-engineer
|
|
21
21
|
args_hint: $ARGUMENTS
|
|
22
22
|
lc-agent-knowledge-curator:
|
|
23
|
-
description:
|
|
23
|
+
description: 知识库管理员角色,将已验收的特性工作沉淀为持久业务与技术知识
|
|
24
24
|
action: python3 "$LINCOLN_ROOT/scripts/lincoln_role.py" --role knowledge-curator
|
|
25
25
|
args_hint: $ARGUMENTS
|
|
26
26
|
lc-agent-pm:
|
|
@@ -28,16 +28,15 @@ commands:
|
|
|
28
28
|
action: python3 "$LINCOLN_ROOT/scripts/lincoln_role.py" --role pm
|
|
29
29
|
args_hint: $ARGUMENTS
|
|
30
30
|
lc-agent-qa:
|
|
31
|
-
description: QA
|
|
31
|
+
description: QA 与验收专家角色,用于可测试性评审、实现证据验证与发布就绪检查
|
|
32
32
|
action: python3 "$LINCOLN_ROOT/scripts/lincoln_role.py" --role qa
|
|
33
33
|
args_hint: $ARGUMENTS
|
|
34
34
|
lc-agent-release-coordinator:
|
|
35
|
-
description:
|
|
35
|
+
description: 发布协调员角色,负责 main 合并卫生与发布就绪评审
|
|
36
36
|
action: python3 "$LINCOLN_ROOT/scripts/lincoln_role.py" --role release-coordinator
|
|
37
37
|
args_hint: $ARGUMENTS
|
|
38
38
|
lc-agent-researcher:
|
|
39
|
-
description:
|
|
40
|
-
stages
|
|
39
|
+
description: 研究员角色,用于开源调研、可行性研究与 PM 主导的市场/产品/竞品/用户研究阶段
|
|
41
40
|
action: python3 "$LINCOLN_ROOT/scripts/lincoln_role.py" --role researcher
|
|
42
41
|
args_hint: $ARGUMENTS
|
|
43
42
|
lc-approve:
|
|
@@ -141,6 +140,14 @@ commands:
|
|
|
141
140
|
description: 分析市场规模、趋势、细分与动态,为产品定位与机会判断提供事实基础。
|
|
142
141
|
action: python3 "$LINCOLN_ROOT/scripts/lincoln_skill_prompt.py" --skill lc-market-research
|
|
143
142
|
args_hint: $ARGUMENTS
|
|
143
|
+
lc-skill-one-id:
|
|
144
|
+
description: '查询并维护 Lincoln one-id 索引,按功能点、页面、字段等 ID 定位相关产物。
|
|
145
|
+
|
|
146
|
+
当你需要追溯某个 feature/page/field/doc 对应的设计文档、字段规格、原型页或实现产物时,调用本 skill。
|
|
147
|
+
|
|
148
|
+
'
|
|
149
|
+
action: python3 "$LINCOLN_ROOT/scripts/lincoln_skill_prompt.py" --skill lc-one-id
|
|
150
|
+
args_hint: $ARGUMENTS
|
|
144
151
|
lc-skill-plan-tdd-development:
|
|
145
152
|
description: 基于已确认产品设计和原型生成 TDD 研发计划
|
|
146
153
|
action: python3 "$LINCOLN_ROOT/scripts/lincoln_skill_prompt.py" --skill plan-tdd-development
|
|
@@ -310,7 +310,6 @@ PY
|
|
|
310
310
|
echo "=== Agent Context ($PRIMARY_AGENT) ==="
|
|
311
311
|
echo "Agent file: .claude/agents/$AGENT_FILE"
|
|
312
312
|
echo "Default contract: .claude/agents/default.md"
|
|
313
|
-
echo "Behavioral contract: .claude/agents/_contract.md"
|
|
314
313
|
echo "Use Read to inspect the agent role if needed."
|
|
315
314
|
echo ""
|
|
316
315
|
echo "=== End Agent Context ==="
|
|
@@ -21,7 +21,12 @@
|
|
|
21
21
|
},
|
|
22
22
|
"model": {
|
|
23
23
|
"type": "string",
|
|
24
|
-
"enum": ["haiku", "sonnet", "opus"]
|
|
24
|
+
"enum": ["haiku", "sonnet", "opus", "fable"]
|
|
25
|
+
},
|
|
26
|
+
"language": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"enum": ["zh-CN", "en"],
|
|
29
|
+
"description": "Primary language of the agent prompt body"
|
|
25
30
|
},
|
|
26
31
|
"tools": {
|
|
27
32
|
"type": "array",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"id",
|
|
10
10
|
"name",
|
|
11
11
|
"description",
|
|
12
|
-
"
|
|
12
|
+
"workflows",
|
|
13
13
|
"prerequisite_stage",
|
|
14
14
|
"next_stage",
|
|
15
15
|
"human_gate",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"minLength": 1,
|
|
41
41
|
"description": "What this stage does and when it is triggered"
|
|
42
42
|
},
|
|
43
|
-
"
|
|
43
|
+
"workflows": {
|
|
44
44
|
"oneOf": [
|
|
45
45
|
{
|
|
46
46
|
"type": "string",
|
|
@@ -154,6 +154,47 @@
|
|
|
154
154
|
},
|
|
155
155
|
"additionalProperties": false
|
|
156
156
|
},
|
|
157
|
+
"artifact_templates": {
|
|
158
|
+
"type": "object",
|
|
159
|
+
"description": "Maps artifact path templates to HTML/template files used to render them",
|
|
160
|
+
"additionalProperties": {
|
|
161
|
+
"type": "string",
|
|
162
|
+
"minLength": 1
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
"variables": {
|
|
166
|
+
"type": "array",
|
|
167
|
+
"items": {
|
|
168
|
+
"type": "string",
|
|
169
|
+
"pattern": "^[a-z][a-z0-9_]*$"
|
|
170
|
+
},
|
|
171
|
+
"description": "Variable names used in this stage's path templates and commands"
|
|
172
|
+
},
|
|
173
|
+
"execution_mode": {
|
|
174
|
+
"type": "string",
|
|
175
|
+
"enum": ["team", "solo", "both"],
|
|
176
|
+
"default": "both",
|
|
177
|
+
"description": "Execution mode this stage supports"
|
|
178
|
+
},
|
|
179
|
+
"primary_action": {
|
|
180
|
+
"type": "string",
|
|
181
|
+
"minLength": 1,
|
|
182
|
+
"description": "Primary action name that corresponds to the workflow step action"
|
|
183
|
+
},
|
|
184
|
+
"references": {
|
|
185
|
+
"type": "object",
|
|
186
|
+
"properties": {
|
|
187
|
+
"skill_prompt": {
|
|
188
|
+
"type": "string",
|
|
189
|
+
"minLength": 1
|
|
190
|
+
},
|
|
191
|
+
"agent_guide": {
|
|
192
|
+
"type": "string",
|
|
193
|
+
"minLength": 1
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
"additionalProperties": false
|
|
197
|
+
},
|
|
157
198
|
"context": {
|
|
158
199
|
"type": "object",
|
|
159
200
|
"required": ["goal"],
|
|
@@ -177,7 +218,7 @@
|
|
|
177
218
|
},
|
|
178
219
|
"constraints": {
|
|
179
220
|
"type": "string",
|
|
180
|
-
"description": "
|
|
221
|
+
"description": "Stage-specific constraints and guardrails (generic constraints live in default.md)"
|
|
181
222
|
}
|
|
182
223
|
},
|
|
183
224
|
"additionalProperties": false
|
|
@@ -213,12 +254,16 @@
|
|
|
213
254
|
"artifacts_present",
|
|
214
255
|
"audio_format_supported",
|
|
215
256
|
"previous_stage_completed",
|
|
257
|
+
"any_of_previous_completed",
|
|
216
258
|
"human_approved",
|
|
217
259
|
"gate_review_passed",
|
|
218
260
|
"handoff_contract_valid",
|
|
219
261
|
"handoff_versions_match",
|
|
220
262
|
"prd_has_required_sections",
|
|
221
|
-
"prd_snapshot_present"
|
|
263
|
+
"prd_snapshot_present",
|
|
264
|
+
"artifact_meta_complete",
|
|
265
|
+
"ids_valid",
|
|
266
|
+
"portal_index_fresh"
|
|
222
267
|
]
|
|
223
268
|
},
|
|
224
269
|
"args": {
|