@sushanglewis/lincoln 1.5.0 → 1.5.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.d.ts +3 -0
- package/dist/main.js +1231 -906
- package/dist/main.js.map +1 -1
- package/dist/postinstall.d.ts +3 -0
- package/dist/postinstall.js +18 -0
- package/dist/postinstall.js.map +1 -0
- package/framework/.claude/agents/_contract.md +79 -0
- package/framework/.claude/agents/architect.md +31 -0
- package/framework/.claude/agents/default.md +151 -0
- package/framework/.claude/agents/designer.md +33 -0
- package/framework/.claude/agents/engineer.md +42 -0
- package/framework/.claude/agents/external/NOTICES.md +12 -0
- package/framework/.claude/agents/external/everything-claude-code.manifest.yaml +23 -0
- package/framework/.claude/agents/external/oh-my-claudecode.manifest.yaml +26 -0
- package/framework/.claude/agents/external/wshobson-agents.manifest.yaml +23 -0
- package/framework/.claude/agents/frontend-engineer.md +32 -0
- package/framework/.claude/agents/knowledge-curator.md +28 -0
- package/framework/.claude/agents/pm.md +38 -0
- package/framework/.claude/agents/qa.md +28 -0
- package/framework/.claude/agents/release-coordinator.md +25 -0
- package/framework/.claude/agents/researcher.md +41 -0
- package/framework/.claude/harnesses/claude-code.yaml +15 -0
- package/framework/.claude/harnesses/codex.yaml +40 -0
- package/framework/.claude/harnesses/command-map.yaml +255 -0
- package/framework/.claude/harnesses/opencode.yaml +32 -0
- package/framework/.claude/harnesses/scenarios.yaml +45 -0
- package/framework/.claude/hooks/on-pr-event.sh +69 -0
- package/framework/.claude/hooks/on-session-start.sh +427 -0
- package/framework/.claude/hooks/on-stop.sh +104 -0
- package/framework/.claude/hooks/post-tool-use.sh +161 -0
- package/framework/.claude/hooks/pre-tool-use.sh +246 -0
- package/framework/.claude/schemas/agent-definition.schema.json +35 -0
- package/framework/.claude/schemas/benchmark-report.schema.json +148 -0
- package/framework/.claude/schemas/pm-to-ux-handoff.schema.yaml +128 -0
- package/framework/.claude/schemas/stage-definition.schema.json +233 -0
- package/framework/.claude/schemas/workflow-stage.schema.json +86 -0
- package/framework/.claude/schemas/workflow-template.schema.json +88 -0
- package/framework/.claude/settings.json +14 -0
- package/framework/.claude/skills/build-product-prototype/SKILL.md +35 -0
- package/framework/.claude/skills/build-product-prototype/prompts/main.md +78 -0
- package/framework/.claude/skills/clarify-requirements/SKILL.md +32 -0
- package/framework/.claude/skills/clarify-requirements/prompts/main.md +81 -0
- package/framework/.claude/skills/dependencies.yaml +139 -0
- package/framework/.claude/skills/draft-product-design/SKILL.md +40 -0
- package/framework/.claude/skills/draft-product-design/prompts/main.md +47 -0
- package/framework/.claude/skills/lc-analyze-frameworks/SKILL.md +43 -0
- package/framework/.claude/skills/lc-analyze-frameworks/prompts/main.md +95 -0
- package/framework/.claude/skills/lc-benchmark/SKILL.md +61 -0
- package/framework/.claude/skills/lc-build-codebase-knowledge/SKILL.md +38 -0
- package/framework/.claude/skills/lc-build-codebase-knowledge/prompts/build-codebase-knowledge.md +61 -0
- package/framework/.claude/skills/lc-collect-intelligence/SKILL.md +43 -0
- package/framework/.claude/skills/lc-collect-intelligence/prompts/main.md +72 -0
- package/framework/.claude/skills/lc-competitive-analysis/SKILL.md +43 -0
- package/framework/.claude/skills/lc-competitive-analysis/prompts/main.md +70 -0
- package/framework/.claude/skills/lc-explore-opensource/SKILL.md +36 -0
- package/framework/.claude/skills/lc-explore-opensource/prompts/explore-opensource.md +77 -0
- package/framework/.claude/skills/lc-first-principles/SKILL.md +43 -0
- package/framework/.claude/skills/lc-first-principles/prompts/main.md +73 -0
- package/framework/.claude/skills/lc-handoff/SKILL.md +34 -0
- package/framework/.claude/skills/lc-init-branch/SKILL.md +52 -0
- package/framework/.claude/skills/lc-market-research/SKILL.md +43 -0
- package/framework/.claude/skills/lc-market-research/prompts/main.md +79 -0
- package/framework/.claude/skills/lc-product-research/SKILL.md +43 -0
- package/framework/.claude/skills/lc-product-research/prompts/main.md +80 -0
- package/framework/.claude/skills/lc-research-report/SKILL.md +43 -0
- package/framework/.claude/skills/lc-research-report/prompts/main.md +90 -0
- package/framework/.claude/skills/lc-research-scope/SKILL.md +43 -0
- package/framework/.claude/skills/lc-research-scope/prompts/main.md +82 -0
- package/framework/.claude/skills/lc-setup/SKILL.md +68 -0
- package/framework/.claude/skills/lc-setup/prompts/main.md +88 -0
- package/framework/.claude/skills/lc-stage/SKILL.md +45 -0
- package/framework/.claude/skills/lc-stakeholder-research/SKILL.md +43 -0
- package/framework/.claude/skills/lc-stakeholder-research/prompts/main.md +65 -0
- package/framework/.claude/skills/lc-status/SKILL.md +25 -0
- package/framework/.claude/skills/lc-storytelling/SKILL.md +43 -0
- package/framework/.claude/skills/lc-storytelling/prompts/main.md +77 -0
- package/framework/.claude/skills/lc-wf/SKILL.md +54 -0
- package/framework/.claude/skills/lc-workflow/SKILL.md +48 -0
- package/framework/.claude/skills/lc-workflow/validators/validate.py +755 -0
- package/framework/.claude/skills/lc-workflow-router/SKILL.md +41 -0
- package/framework/.claude/skills/lc-workflow-router/prompts/intake-prompt.md +91 -0
- package/framework/.claude/skills/lc-workflow-router/prompts/router-prompt.md +44 -0
- package/framework/.claude/skills/plan-tdd-development/SKILL.md +31 -0
- package/framework/.claude/skills/plan-tdd-development/prompts/main.md +44 -0
- package/framework/.claude/skills/process-interview/SKILL.md +32 -0
- package/framework/.claude/skills/process-interview/prompts/main.md +47 -0
- package/framework/.claude/skills/propose-with-openspec/SKILL.md +37 -0
- package/framework/.claude/skills/propose-with-openspec/prompts/main.md +53 -0
- package/framework/.claude/skills/split-to-github/SKILL.md +32 -0
- package/framework/.claude/skills/split-to-github/prompts/main.md +42 -0
- package/framework/.claude/skills/sync-to-knowledge/SKILL.md +35 -0
- package/framework/.claude/skills/sync-to-knowledge/prompts/main.md +54 -0
- package/framework/.claude/skills/workflow-continue/SKILL.md +24 -0
- package/framework/.claude/skills/workflow-continue/prompts/main.md +25 -0
- package/framework/.claude/stages/build-codebase-knowledge.yaml +42 -0
- package/framework/.claude/stages/clarify.yaml +59 -0
- package/framework/.claude/stages/explore-opensource.yaml +40 -0
- package/framework/.claude/stages/implement.yaml +60 -0
- package/framework/.claude/stages/ingest.yaml +40 -0
- package/framework/.claude/stages/lc-analyze-frameworks.yaml +37 -0
- package/framework/.claude/stages/lc-collect-intelligence.yaml +37 -0
- package/framework/.claude/stages/lc-competitive-analysis.yaml +37 -0
- package/framework/.claude/stages/lc-first-principles.yaml +37 -0
- package/framework/.claude/stages/lc-market-research.yaml +37 -0
- package/framework/.claude/stages/lc-product-research.yaml +37 -0
- package/framework/.claude/stages/lc-research-report.yaml +38 -0
- package/framework/.claude/stages/lc-research-scope.yaml +38 -0
- package/framework/.claude/stages/lc-stakeholder-research.yaml +37 -0
- package/framework/.claude/stages/lc-storytelling.yaml +37 -0
- package/framework/.claude/stages/product-design-docs.yaml +66 -0
- package/framework/.claude/stages/product-prototype.yaml +53 -0
- package/framework/.claude/stages/propose.yaml +45 -0
- package/framework/.claude/stages/split.yaml +41 -0
- package/framework/.claude/stages/sync-knowledge.yaml +49 -0
- package/framework/.claude/stages/tdd-development-plan.yaml +43 -0
- package/framework/.claude/stages/workflow-router.yaml +45 -0
- package/framework/.claude/templates/solo-workflow-context.yaml +23 -0
- package/framework/.claude/workflows/README.md +93 -0
- package/framework/.claude/workflows/bug-fix.yaml +81 -0
- package/framework/.claude/workflows/design-spike.yaml +55 -0
- package/framework/.claude/workflows/existing-project-iteration.yaml +106 -0
- package/framework/.claude/workflows/interview-to-knowledge.yaml +189 -0
- package/framework/.claude/workflows/oss-first-design.yaml +100 -0
- package/framework/.claude/workflows/pm-research.yaml +115 -0
- package/framework/.claude-plugin/hooks.json +6 -0
- package/framework/.claude-plugin/marketplace.json +32 -0
- package/framework/.claude-plugin/plugin.json +57 -0
- package/framework/.version-bump.json +43 -0
- package/framework/CLAUDE.md +140 -0
- package/framework/CONTRIBUTING.md +219 -0
- package/framework/LICENSE +21 -0
- package/framework/README.en.md +139 -0
- package/framework/README.md +139 -0
- package/framework/RELEASE.md +334 -0
- package/framework/SKILL.md +24 -0
- package/framework/USAGE.md +356 -0
- package/framework/manifest.json +1214 -0
- package/framework/requirements.txt +4 -0
- package/framework/scripts/__init__.py +0 -0
- package/framework/scripts/build_codebase_knowledge.py +76 -0
- package/framework/scripts/bump_version.py +181 -0
- package/framework/scripts/check-dependency-drift.py +69 -0
- package/framework/scripts/check-harness-drift.sh +57 -0
- package/framework/scripts/check-main-merge-hygiene.py +128 -0
- package/framework/scripts/check-skill-dependencies.sh +124 -0
- package/framework/scripts/init-lincoln-branch.sh +300 -0
- package/framework/scripts/init-project.sh +184 -0
- package/framework/scripts/lc-benchmark-cli.py +66 -0
- package/framework/scripts/lincoln-audit.py +288 -0
- package/framework/scripts/lincoln-setup.py +651 -0
- package/framework/scripts/lincoln-status.py +448 -0
- package/framework/scripts/lincoln_benchmark.py +224 -0
- package/framework/scripts/lincoln_benchmark_eval.py +104 -0
- package/framework/scripts/lincoln_benchmark_metrics.py +818 -0
- package/framework/scripts/lincoln_benchmark_report.py +141 -0
- package/framework/scripts/lincoln_command_map.py +289 -0
- package/framework/scripts/lincoln_dependency_manager.py +335 -0
- package/framework/scripts/lincoln_documents.py +175 -0
- package/framework/scripts/lincoln_harness_adapter.py +319 -0
- package/framework/scripts/lincoln_index.py +255 -0
- package/framework/scripts/lincoln_paths.py +198 -0
- package/framework/scripts/lincoln_prd.py +227 -0
- package/framework/scripts/lincoln_role.py +46 -0
- package/framework/scripts/lincoln_scenario.py +59 -0
- package/framework/scripts/lincoln_session_start_metrics.py +71 -0
- package/framework/scripts/lincoln_skill_prompt.py +48 -0
- package/framework/scripts/lincoln_trace.py +335 -0
- package/framework/scripts/lincoln_workflow.py +199 -0
- package/framework/scripts/list-active-lincoln-branches.sh +87 -0
- package/framework/scripts/package-lincoln-plugin.py +340 -0
- package/framework/scripts/run-infrastructure-tests.py +84 -0
- package/framework/scripts/stage_loader.py +1071 -0
- package/framework/scripts/static-check.sh +356 -0
- package/framework/scripts/sync-external-agents.sh +210 -0
- package/framework/scripts/sync-framework-package.mjs +218 -0
- package/framework/scripts/task_tool_guard.py +213 -0
- package/framework/scripts/track-artifacts.py +140 -0
- package/framework/scripts/validate_stage.py +350 -0
- package/{README.md → framework/tools/lincoln/README.md} +4 -4
- package/framework/tools/lincoln/package-lock.json +3349 -0
- package/framework/tools/lincoln/package.json +48 -0
- package/framework/tools/lincoln/src/cli.tsx +60 -0
- package/framework/tools/lincoln/src/components/AudioMeter.tsx +34 -0
- package/framework/tools/lincoln/src/components/CancelledScreen.tsx +11 -0
- package/framework/tools/lincoln/src/components/DevicesMenu.tsx +79 -0
- package/framework/tools/lincoln/src/components/HintBar.tsx +25 -0
- package/framework/tools/lincoln/src/components/LogView.tsx +36 -0
- package/framework/tools/lincoln/src/components/ModelMenu.tsx +122 -0
- package/framework/tools/lincoln/src/components/ReadyScreen.tsx +54 -0
- package/framework/tools/lincoln/src/components/RecordingApp.tsx +211 -0
- package/framework/tools/lincoln/src/components/RecordingScreen.tsx +41 -0
- package/framework/tools/lincoln/src/components/SelectMenu.tsx +53 -0
- package/framework/tools/lincoln/src/components/StatusPanel.tsx +52 -0
- package/framework/tools/lincoln/src/components/StopConfirmation.tsx +32 -0
- package/framework/tools/lincoln/src/config/args.ts +35 -0
- package/framework/tools/lincoln/src/config/loadConfig.ts +81 -0
- package/framework/tools/lincoln/src/config/resolveConfig.ts +85 -0
- package/framework/tools/lincoln/src/devices/listDevices.ts +11 -0
- package/framework/tools/lincoln/src/devices/parseDevices.ts +25 -0
- package/framework/tools/lincoln/src/hooks/useKeyHandler.ts +63 -0
- package/framework/tools/lincoln/src/main.tsx +4 -0
- package/framework/tools/lincoln/src/models/models.ts +34 -0
- package/framework/tools/lincoln/src/models/runWarmup.ts +46 -0
- package/framework/tools/lincoln/src/models/warmupProgress.ts +30 -0
- package/framework/tools/lincoln/src/recording/spawnRecorder.ts +127 -0
- package/framework/tools/lincoln/src/recording/useRecorder.ts +146 -0
- package/framework/tools/lincoln/src/utils/amplitudeToMeter.ts +4 -0
- package/framework/tools/lincoln/src/utils/formatDuration.ts +6 -0
- package/framework/tools/lincoln/src/utils/sessionId.ts +25 -0
- package/framework/tools/lincoln/tests/cli.test.tsx +52 -0
- package/framework/tools/lincoln/tests/components/AudioMeter.test.tsx +31 -0
- package/framework/tools/lincoln/tests/components/CancelledScreen.test.tsx +12 -0
- package/framework/tools/lincoln/tests/components/ReadyScreen.test.tsx +68 -0
- package/framework/tools/lincoln/tests/components/RecordingApp.menus.test.tsx +158 -0
- package/framework/tools/lincoln/tests/components/RecordingApp.test.tsx +248 -0
- package/framework/tools/lincoln/tests/components/RecordingScreen.test.tsx +37 -0
- package/framework/tools/lincoln/tests/components/SelectMenu.test.tsx +59 -0
- package/framework/tools/lincoln/tests/components/StopConfirmation.test.tsx +38 -0
- package/framework/tools/lincoln/tests/config/args.test.ts +49 -0
- package/framework/tools/lincoln/tests/config/loadConfig.test.ts +59 -0
- package/framework/tools/lincoln/tests/config/resolveConfig.test.ts +72 -0
- package/framework/tools/lincoln/tests/devices/parseDevices.test.ts +21 -0
- package/framework/tools/lincoln/tests/hooks/useKeyHandler.enabled.test.tsx +44 -0
- package/framework/tools/lincoln/tests/hooks/useKeyHandler.test.tsx +130 -0
- package/framework/tools/lincoln/tests/models/models.test.ts +27 -0
- package/framework/tools/lincoln/tests/models/warmupProgress.test.ts +25 -0
- package/framework/tools/lincoln/tests/recording/spawnRecorder.test.ts +85 -0
- package/framework/tools/lincoln/tests/recording/useRecorder.test.tsx +172 -0
- package/framework/tools/lincoln/tests/utils/amplitudeToMeter.test.ts +22 -0
- package/framework/tools/lincoln/tests/utils/formatDuration.test.ts +11 -0
- package/framework/tools/lincoln/tests/utils/sessionId.test.ts +30 -0
- package/framework/tools/lincoln/tsconfig.json +22 -0
- package/framework/tools/lincoln/tsconfig.tests.json +10 -0
- package/framework/tools/lincoln/tsup.config.ts +17 -0
- package/framework/tools/lincoln/vitest.config.ts +20 -0
- package/framework/tools/lincoln-installer/package-lock.json +3611 -0
- package/framework/tools/lincoln-installer/package.json +53 -0
- package/framework/tools/lincoln-installer/src/cli.tsx +63 -0
- package/framework/tools/lincoln-installer/src/components/HarnessSelectScreen.tsx +43 -0
- package/framework/tools/lincoln-installer/src/components/InstallerApp.tsx +98 -0
- package/framework/tools/lincoln-installer/src/components/OptionsScreen.tsx +56 -0
- package/framework/tools/lincoln-installer/src/components/ProgressScreen.tsx +25 -0
- package/framework/tools/lincoln-installer/src/components/ResultScreen.tsx +40 -0
- package/framework/tools/lincoln-installer/src/components/SelectMenu.tsx +73 -0
- package/framework/tools/lincoln-installer/src/components/SummaryScreen.tsx +49 -0
- package/framework/tools/lincoln-installer/src/components/UpdateApp.tsx +135 -0
- package/framework/tools/lincoln-installer/src/components/WelcomeScreen.tsx +22 -0
- package/framework/tools/lincoln-installer/src/config/args.ts +76 -0
- package/framework/tools/lincoln-installer/src/config/resolveConfig.ts +33 -0
- package/framework/tools/lincoln-installer/src/config/updateArgs.ts +67 -0
- package/framework/tools/lincoln-installer/src/hooks/useSetup.ts +149 -0
- package/framework/tools/lincoln-installer/src/main.tsx +11 -0
- package/framework/tools/lincoln-installer/src/types.ts +19 -0
- package/framework/tools/lincoln-installer/src/update-main.tsx +11 -0
- package/framework/tools/lincoln-installer/src/update.tsx +90 -0
- package/framework/tools/lincoln-installer/src/utils/detectHarness.ts +51 -0
- package/framework/tools/lincoln-installer/src/utils/runSetup.ts +62 -0
- package/framework/tools/lincoln-installer/src/utils/updateRelease.ts +454 -0
- package/framework/tools/lincoln-installer/tests/components/InstallerApp.test.tsx +88 -0
- package/framework/tools/lincoln-installer/tests/components/SelectMenu.test.tsx +26 -0
- package/framework/tools/lincoln-installer/tests/components/UpdateApp.test.tsx +170 -0
- package/framework/tools/lincoln-installer/tests/components/screens.test.tsx +310 -0
- package/framework/tools/lincoln-installer/tests/config/args.test.ts +66 -0
- package/framework/tools/lincoln-installer/tests/config/resolveConfig.test.ts +75 -0
- package/framework/tools/lincoln-installer/tests/config/updateArgs.test.ts +52 -0
- package/framework/tools/lincoln-installer/tests/hooks/useSetup.test.tsx +213 -0
- package/framework/tools/lincoln-installer/tests/update.test.tsx +108 -0
- package/framework/tools/lincoln-installer/tests/utils/detectHarness.test.ts +40 -0
- package/framework/tools/lincoln-installer/tests/utils/runSetup.test.ts +45 -0
- package/framework/tools/lincoln-installer/tests/utils/updateRelease.test.ts +559 -0
- package/framework/tools/lincoln-installer/tsconfig.json +22 -0
- package/framework/tools/lincoln-installer/tsconfig.tests.json +8 -0
- package/framework/tools/lincoln-installer/tsup.config.ts +17 -0
- package/framework/tools/lincoln-installer/vitest.config.ts +20 -0
- package/framework/tools/lincoln-record/Cargo.lock +1896 -0
- package/framework/tools/lincoln-record/Cargo.toml +24 -0
- package/framework/tools/lincoln-record/diarize/diarize.py +117 -0
- package/framework/tools/lincoln-record/diarize/merge.py +55 -0
- package/framework/tools/lincoln-record/src/audio/capture/microphone.rs +194 -0
- package/framework/tools/lincoln-record/src/audio/capture/mod.rs +1 -0
- package/framework/tools/lincoln-record/src/audio/devices.rs +20 -0
- package/framework/tools/lincoln-record/src/audio/mod.rs +5 -0
- package/framework/tools/lincoln-record/src/audio/resampler.rs +44 -0
- package/framework/tools/lincoln-record/src/audio/saver.rs +87 -0
- package/framework/tools/lincoln-record/src/audio/source.rs +104 -0
- package/framework/tools/lincoln-record/src/cli.rs +96 -0
- package/framework/tools/lincoln-record/src/config.rs +135 -0
- package/framework/tools/lincoln-record/src/lib.rs +6 -0
- package/framework/tools/lincoln-record/src/main.rs +242 -0
- package/framework/tools/lincoln-record/src/model/mod.rs +248 -0
- package/framework/tools/lincoln-record/src/output/metadata.rs +30 -0
- package/framework/tools/lincoln-record/src/output/mod.rs +2 -0
- package/framework/tools/lincoln-record/src/output/transcript.rs +42 -0
- package/framework/tools/lincoln-record/src/transcription/diarization.rs +64 -0
- package/framework/tools/lincoln-record/src/transcription/mod.rs +3 -0
- package/framework/tools/lincoln-record/src/transcription/provider.rs +43 -0
- package/framework/tools/lincoln-record/src/transcription/whisper.rs +176 -0
- package/framework/tools/lincoln-record/tests/cli_args.rs +103 -0
- package/framework/tools/lincoln-record/tests/config_test.rs +70 -0
- package/framework/tools/lincoln-record/tests/devices_test.rs +23 -0
- package/framework/tools/lincoln-record/tests/diarization_tests.rs +101 -0
- package/framework/tools/lincoln-record/tests/integration_tests.rs +44 -0
- package/framework/tools/lincoln-record/tests/model_test.rs +68 -0
- package/framework/tools/lincoln-record/tests/transcription_tests.rs +73 -0
- package/package.json +19 -13
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
schema_version: 2.0.0
|
|
2
|
+
id: product-design-docs
|
|
3
|
+
name: Product Design Docs
|
|
4
|
+
description: 'Produces the design-review package based on confirmed
|
|
5
|
+
|
|
6
|
+
requirements. May include early OpenSpec drafts.'
|
|
7
|
+
templates: all
|
|
8
|
+
prerequisite_stage: clarify
|
|
9
|
+
next_stage: product-prototype
|
|
10
|
+
human_gate: true
|
|
11
|
+
agent:
|
|
12
|
+
primary: lc-pm
|
|
13
|
+
reviewers:
|
|
14
|
+
- lc-designer
|
|
15
|
+
- lc-researcher
|
|
16
|
+
- lc-architect
|
|
17
|
+
handoff_to: lc-designer
|
|
18
|
+
skills:
|
|
19
|
+
required:
|
|
20
|
+
- superpowers:brainstorming
|
|
21
|
+
- superpowers:writing-plans
|
|
22
|
+
optional:
|
|
23
|
+
- gsd:spec-phase
|
|
24
|
+
- oh-my-claudecode:plan
|
|
25
|
+
- openspec:propose
|
|
26
|
+
artifacts:
|
|
27
|
+
required:
|
|
28
|
+
- '{process_slug}/pages/docs/design-review.html'
|
|
29
|
+
- '{process_slug}/pages/docs/scenarios.html'
|
|
30
|
+
- '{process_slug}/pages/docs/feature-catalog.html'
|
|
31
|
+
- '{process_slug}/pages/docs/data-model.html'
|
|
32
|
+
- '{process_slug}/pages/docs/flows.html'
|
|
33
|
+
- '{process_slug}/pages/docs/feasibility.html'
|
|
34
|
+
- '{process_slug}/pages/docs/page-map.html'
|
|
35
|
+
- '{process_slug}/pages/docs/version-log.html'
|
|
36
|
+
- '{process_slug}/pages/docs/api-list.html'
|
|
37
|
+
- '{process_slug}/handoffs/pm-to-ux/pm-to-ux.handoff.yaml'
|
|
38
|
+
context:
|
|
39
|
+
goal: 将已确认的需求转化为面向人类 PM 评审的简洁产品设计文档包,并完成 PM→UX 交接产物(agent-agent 契约),使人类 UX 能基于统一认知驱动 UX Agent。所有产物通过 {process_slug}/index.html 门户访问。
|
|
40
|
+
constraints: '- 仅通过 scripts/stage_loader.py 更新 {process_slug}/workflow-stage.yaml。
|
|
41
|
+
|
|
42
|
+
- 禁止修改 {process_slug}/recordings/ 中的原始文件。
|
|
43
|
+
|
|
44
|
+
- 本阶段设有 human_gate,必须获得人类 PM 显式确认后才能进入下一阶段。
|
|
45
|
+
|
|
46
|
+
- 本阶段 exit gate 要求 `handoffs/pm-to-ux/pm-to-ux.handoff.yaml` 存在。
|
|
47
|
+
|
|
48
|
+
- handoff_to 为 lc-designer / lc-frontend-engineer;接收方 Agent 必须从 `handoffs/pm-to-ux/pm-to-ux.handoff.yaml` 开始读取,再按 `context_pack` 顺序读取 Tier-2 文档。
|
|
49
|
+
|
|
50
|
+
- 门控评估优先使用 AI 能力:读取产物并推理其完整性,而非仅依赖脚本化检查。
|
|
51
|
+
|
|
52
|
+
- 详细执行步骤、模板与工具见对应 skill prompt 和 .claude/agents/<primary_agent>.md。'
|
|
53
|
+
gates:
|
|
54
|
+
entry:
|
|
55
|
+
- check: previous_stage_completed
|
|
56
|
+
args:
|
|
57
|
+
- clarify
|
|
58
|
+
exit:
|
|
59
|
+
- check: artifacts_present
|
|
60
|
+
- check: human_approved
|
|
61
|
+
- check: handoff_contract_valid
|
|
62
|
+
args:
|
|
63
|
+
- '{process_slug}/handoffs/pm-to-ux/pm-to-ux.handoff.yaml'
|
|
64
|
+
- check: handoff_versions_match
|
|
65
|
+
args:
|
|
66
|
+
- '{process_slug}/handoffs/pm-to-ux/pm-to-ux.handoff.yaml'
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
schema_version: 2.0.0
|
|
2
|
+
id: product-prototype
|
|
3
|
+
name: Product Prototype
|
|
4
|
+
description: Generates UI specs, field specs, and optionally Pencil prototypes (prototype.pen is produced by UI after the UX node).
|
|
5
|
+
templates:
|
|
6
|
+
- interview-to-knowledge
|
|
7
|
+
- existing-project-iteration
|
|
8
|
+
- design-spike
|
|
9
|
+
- oss-first-design
|
|
10
|
+
prerequisite_stage: product-design-docs
|
|
11
|
+
next_stage: tdd-development-plan
|
|
12
|
+
human_gate: true
|
|
13
|
+
agent:
|
|
14
|
+
primary: lc-designer
|
|
15
|
+
reviewers:
|
|
16
|
+
- lc-pm
|
|
17
|
+
- lc-frontend-engineer
|
|
18
|
+
handoff_to: lc-engineer
|
|
19
|
+
skills:
|
|
20
|
+
required:
|
|
21
|
+
- superpowers:brainstorming
|
|
22
|
+
optional:
|
|
23
|
+
- gsd:ui-phase
|
|
24
|
+
- superpowers:using-git-worktrees
|
|
25
|
+
- oh-my-claudecode:designer
|
|
26
|
+
artifacts:
|
|
27
|
+
required:
|
|
28
|
+
- '{process_slug}/pages/docs/ui-spec.html'
|
|
29
|
+
- '{process_slug}/pages/docs/fields.html'
|
|
30
|
+
optional:
|
|
31
|
+
- '{process_slug}/designs/{design_id}/prototype.pen'
|
|
32
|
+
- '{process_slug}/pages/prototype/**/*.html'
|
|
33
|
+
context:
|
|
34
|
+
goal: 将已确认的产品设计文档转化为开发可用的 UI/字段规格 HTML 文档;`prototype.pen` 由 UI 在 UX 节点之后产出,因此在本阶段 PM→UX 交接中视为 optional。所有产物通过 {process_slug}/index.html 门户访问。
|
|
35
|
+
constraints: '- 仅通过 scripts/stage_loader.py 更新 {process_slug}/workflow-stage.yaml。
|
|
36
|
+
|
|
37
|
+
- 禁止修改 {process_slug}/recordings/ 中的原始文件。
|
|
38
|
+
|
|
39
|
+
- 本阶段设有 human_gate,必须获得人类 PM 显式确认后才能进入下一阶段。
|
|
40
|
+
|
|
41
|
+
- `prototype.pen` 为 UI 阶段产物,在 PM→UX 交接中不作为 required artifact。
|
|
42
|
+
|
|
43
|
+
- 门控评估优先使用 AI 能力:读取产物并推理其完整性,而非仅依赖脚本化检查。
|
|
44
|
+
|
|
45
|
+
- 详细执行步骤、模板与工具见对应 skill prompt 和 .claude/agents/<primary_agent>.md。'
|
|
46
|
+
gates:
|
|
47
|
+
entry:
|
|
48
|
+
- check: previous_stage_completed
|
|
49
|
+
args:
|
|
50
|
+
- product-design-docs
|
|
51
|
+
exit:
|
|
52
|
+
- check: artifacts_present
|
|
53
|
+
- check: human_approved
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
schema_version: 2.0.0
|
|
2
|
+
id: propose
|
|
3
|
+
name: Propose
|
|
4
|
+
description: 'Generates a complete OpenSpec change proposal including
|
|
5
|
+
|
|
6
|
+
proposal.md, design.md, tasks.md, and specs/ directory.'
|
|
7
|
+
templates: all
|
|
8
|
+
prerequisite_stage: tdd-development-plan
|
|
9
|
+
next_stage: split
|
|
10
|
+
human_gate: false
|
|
11
|
+
agent:
|
|
12
|
+
primary: lc-engineer
|
|
13
|
+
reviewers:
|
|
14
|
+
- lc-qa
|
|
15
|
+
- lc-architect
|
|
16
|
+
handoff_to: lc-pm
|
|
17
|
+
skills:
|
|
18
|
+
required:
|
|
19
|
+
- openspec:propose
|
|
20
|
+
optional:
|
|
21
|
+
- superpowers:verification-before-completion
|
|
22
|
+
- oh-my-claudecode:verify
|
|
23
|
+
artifacts:
|
|
24
|
+
required:
|
|
25
|
+
- '{process_slug}/openspec/changes/{change_name}/proposal.md'
|
|
26
|
+
- '{process_slug}/openspec/changes/{change_name}/design.md'
|
|
27
|
+
- '{process_slug}/openspec/changes/{change_name}/tasks.md'
|
|
28
|
+
- '{process_slug}/openspec/changes/{change_name}/specs/'
|
|
29
|
+
context:
|
|
30
|
+
goal: 基于已确认的 TDD 研发计划,调用 OpenSpec CLI 生成标准变更提案 artifact 目录(`{process_slug}/openspec/changes/{change_name}/`),将
|
|
31
|
+
TDD 计划转化为结构化的 OpenSpec 变更提案,作为后续 GitHub Issues 拆分和研发实现的依据。
|
|
32
|
+
constraints: '- 仅通过 scripts/stage_loader.py 更新 {process_slug}/workflow-stage.yaml。
|
|
33
|
+
|
|
34
|
+
- 禁止修改 {process_slug}/recordings/ 中的原始文件。
|
|
35
|
+
|
|
36
|
+
- 门控评估优先使用 AI 能力:读取产物并推理其完整性,而非仅依赖脚本化检查。
|
|
37
|
+
|
|
38
|
+
- 详细执行步骤、模板与工具见对应 skill prompt 和 .claude/agents/<primary_agent>.md。'
|
|
39
|
+
gates:
|
|
40
|
+
entry:
|
|
41
|
+
- check: previous_stage_completed
|
|
42
|
+
args:
|
|
43
|
+
- tdd-development-plan
|
|
44
|
+
exit:
|
|
45
|
+
- check: artifacts_present
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
schema_version: 2.0.0
|
|
2
|
+
id: split
|
|
3
|
+
name: Split
|
|
4
|
+
description: 'Breaks OpenSpec tasks into parallel, independently implementable
|
|
5
|
+
|
|
6
|
+
GitHub Issues with clear boundaries and acceptance criteria.'
|
|
7
|
+
templates: all
|
|
8
|
+
prerequisite_stage: propose
|
|
9
|
+
next_stage: implement
|
|
10
|
+
human_gate: false
|
|
11
|
+
agent:
|
|
12
|
+
primary: lc-pm
|
|
13
|
+
reviewers:
|
|
14
|
+
- lc-engineer
|
|
15
|
+
- lc-qa
|
|
16
|
+
handoff_to: lc-engineer
|
|
17
|
+
skills:
|
|
18
|
+
required:
|
|
19
|
+
- superpowers:dispatching-parallel-agents
|
|
20
|
+
optional:
|
|
21
|
+
- gsd:phase
|
|
22
|
+
- oh-my-claudecode:team
|
|
23
|
+
artifacts:
|
|
24
|
+
required:
|
|
25
|
+
- .github/linked-issues.yaml
|
|
26
|
+
context:
|
|
27
|
+
goal: 将 OpenSpec 变更提案中的 tasks 拆分为可执行的 GitHub Issues,建立从需求到代码追踪的完整链路。
|
|
28
|
+
constraints: '- 仅通过 scripts/stage_loader.py 更新 {process_slug}/workflow-stage.yaml。
|
|
29
|
+
|
|
30
|
+
- 禁止修改 {process_slug}/recordings/ 中的原始文件。
|
|
31
|
+
|
|
32
|
+
- 门控评估优先使用 AI 能力:读取产物并推理其完整性,而非仅依赖脚本化检查。
|
|
33
|
+
|
|
34
|
+
- 详细执行步骤、模板与工具见对应 skill prompt 和 .claude/agents/<primary_agent>.md。'
|
|
35
|
+
gates:
|
|
36
|
+
entry:
|
|
37
|
+
- check: previous_stage_completed
|
|
38
|
+
args:
|
|
39
|
+
- propose
|
|
40
|
+
exit:
|
|
41
|
+
- check: artifacts_present
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
schema_version: 2.0.0
|
|
2
|
+
id: sync-knowledge
|
|
3
|
+
name: Sync Knowledge
|
|
4
|
+
description: 'After PR merge, updates Obsidian vault and archives milestone
|
|
5
|
+
|
|
6
|
+
artifacts, generating feature docs, decision docs, and interview
|
|
7
|
+
|
|
8
|
+
summaries.'
|
|
9
|
+
templates: all
|
|
10
|
+
prerequisite_stage: implement
|
|
11
|
+
next_stage: null
|
|
12
|
+
human_gate: false
|
|
13
|
+
agent:
|
|
14
|
+
primary: lc-knowledge-curator
|
|
15
|
+
reviewers:
|
|
16
|
+
- lc-release-coordinator
|
|
17
|
+
skills:
|
|
18
|
+
required:
|
|
19
|
+
- gsd:docs-update
|
|
20
|
+
optional:
|
|
21
|
+
- gsd:forensics
|
|
22
|
+
- gsd:milestone-summary
|
|
23
|
+
- openspec:sync-specs
|
|
24
|
+
- oh-my-claudecode:wiki
|
|
25
|
+
- oh-my-claudecode:writer-memory
|
|
26
|
+
- superpowers:verification-before-completion
|
|
27
|
+
artifacts:
|
|
28
|
+
required:
|
|
29
|
+
- .github/lincoln-sync-queue/pr-{pr_number}.yaml
|
|
30
|
+
- knowledge/01-interviews/{session_id}.md
|
|
31
|
+
- knowledge/02-requirements/{requirement_id}.md
|
|
32
|
+
- knowledge/03-features/{feature_slug}.md
|
|
33
|
+
- knowledge/04-decisions/{decision_id}.md
|
|
34
|
+
context:
|
|
35
|
+
goal: PR 合并后,将代码变更、Issue 讨论、设计决策沉淀到项目 Obsidian 知识库,确保业务知识和技术知识双轨保存,形成可追溯的知识资产。
|
|
36
|
+
constraints: '- 仅通过 scripts/stage_loader.py 更新 {process_slug}/workflow-stage.yaml。
|
|
37
|
+
|
|
38
|
+
- 禁止修改 {process_slug}/recordings/ 中的原始文件。
|
|
39
|
+
|
|
40
|
+
- 门控评估优先使用 AI 能力:读取产物并推理其完整性,而非仅依赖脚本化检查。
|
|
41
|
+
|
|
42
|
+
- 详细执行步骤、模板与工具见对应 skill prompt 和 .claude/agents/<primary_agent>.md。'
|
|
43
|
+
gates:
|
|
44
|
+
entry:
|
|
45
|
+
- check: previous_stage_completed
|
|
46
|
+
args:
|
|
47
|
+
- implement
|
|
48
|
+
exit:
|
|
49
|
+
- check: artifacts_present
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
schema_version: 2.0.0
|
|
2
|
+
id: tdd-development-plan
|
|
3
|
+
name: TDD Development Plan
|
|
4
|
+
description: 'Produces tdd-plan.html with red/green/refactor sequences,
|
|
5
|
+
|
|
6
|
+
test scenarios, and task slices ready for OpenSpec proposal.'
|
|
7
|
+
templates: all
|
|
8
|
+
prerequisite_stage: product-prototype
|
|
9
|
+
next_stage: propose
|
|
10
|
+
human_gate: false
|
|
11
|
+
agent:
|
|
12
|
+
primary: lc-engineer
|
|
13
|
+
reviewers:
|
|
14
|
+
- lc-qa
|
|
15
|
+
- lc-architect
|
|
16
|
+
handoff_to: lc-engineer
|
|
17
|
+
skills:
|
|
18
|
+
required:
|
|
19
|
+
- superpowers:writing-plans
|
|
20
|
+
- superpowers:test-driven-development
|
|
21
|
+
optional:
|
|
22
|
+
- gsd:plan-phase
|
|
23
|
+
- gsd:mvp-phase
|
|
24
|
+
- oh-my-claudecode:plan
|
|
25
|
+
artifacts:
|
|
26
|
+
required:
|
|
27
|
+
- '{process_slug}/pages/docs/tdd-plan.html'
|
|
28
|
+
context:
|
|
29
|
+
goal: 基于已确认的产品设计文档、字段规格、UI 规格和 Pencil 原型,生成可执行的测试驱动研发计划(`tdd-plan.html`),作为从产品设计到 OpenSpec 变更提案的桥梁。所有产物通过 {process_slug}/index.html 门户访问。
|
|
30
|
+
constraints: '- 仅通过 scripts/stage_loader.py 更新 {process_slug}/workflow-stage.yaml。
|
|
31
|
+
|
|
32
|
+
- 禁止修改 {process_slug}/recordings/ 中的原始文件。
|
|
33
|
+
|
|
34
|
+
- 门控评估优先使用 AI 能力:读取产物并推理其完整性,而非仅依赖脚本化检查。
|
|
35
|
+
|
|
36
|
+
- 详细执行步骤、模板与工具见对应 skill prompt 和 .claude/agents/<primary_agent>.md。'
|
|
37
|
+
gates:
|
|
38
|
+
entry:
|
|
39
|
+
- check: previous_stage_completed
|
|
40
|
+
args:
|
|
41
|
+
- product-prototype
|
|
42
|
+
exit:
|
|
43
|
+
- check: artifacts_present
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
schema_version: 2.0.0
|
|
2
|
+
id: workflow-router
|
|
3
|
+
name: Workflow Router
|
|
4
|
+
description: 'Entry point. Runs session intake (overview recon, situation judgment,
|
|
5
|
+
|
|
6
|
+
Johari confirmation) on cold start, assesses repository context, selects the most
|
|
7
|
+
|
|
8
|
+
appropriate workflow template, and initializes workflow-stage.'
|
|
9
|
+
templates: all
|
|
10
|
+
prerequisite_stage: null
|
|
11
|
+
next_stage: null
|
|
12
|
+
human_gate: true
|
|
13
|
+
agent:
|
|
14
|
+
primary: lc-pm
|
|
15
|
+
reviewers:
|
|
16
|
+
- lc-release-coordinator
|
|
17
|
+
handoff_to: lc-pm
|
|
18
|
+
skills:
|
|
19
|
+
required:
|
|
20
|
+
- superpowers:bootstrap
|
|
21
|
+
optional:
|
|
22
|
+
- gsd:new-project
|
|
23
|
+
- gsd:new-milestone
|
|
24
|
+
- oh-my-claudecode:plan
|
|
25
|
+
artifacts:
|
|
26
|
+
required:
|
|
27
|
+
- '{process_slug}/workflow-stage.yaml'
|
|
28
|
+
context:
|
|
29
|
+
goal: 在会话启动时先做概览级摸排与处境判断(冷启动开场引导),经用户确认后选择最适合的 Lincoln 工作流模板。
|
|
30
|
+
constraints: '- 仅通过 scripts/stage_loader.py 更新 {process_slug}/workflow-stage.yaml。
|
|
31
|
+
|
|
32
|
+
- 开场摸排为概览级:只读操作 ≤ 8 次,不读源码实现,不做深度扫描(禁用 lc-build-codebase-knowledge)。
|
|
33
|
+
|
|
34
|
+
- 禁止修改 {process_slug}/recordings/ 中的原始文件。
|
|
35
|
+
|
|
36
|
+
- 本阶段设有 human_gate,必须获得人类 PM 显式确认后才能进入下一阶段。
|
|
37
|
+
|
|
38
|
+
- 门控评估优先使用 AI 能力:读取产物并推理其完整性,而非仅依赖脚本化检查。
|
|
39
|
+
|
|
40
|
+
- 详细执行步骤、模板与工具见对应 skill prompt 和 .claude/agents/<primary_agent>.md。'
|
|
41
|
+
gates:
|
|
42
|
+
entry: []
|
|
43
|
+
exit:
|
|
44
|
+
- check: artifacts_present
|
|
45
|
+
- check: human_approved
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
---
|
|
2
|
+
schema_version: 2.0.0
|
|
3
|
+
workflow:
|
|
4
|
+
name: ""
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
template: ""
|
|
7
|
+
current_run:
|
|
8
|
+
run_id: ""
|
|
9
|
+
branch: ""
|
|
10
|
+
current_stage: not_started
|
|
11
|
+
status: not_started
|
|
12
|
+
started_at: ""
|
|
13
|
+
last_updated_at: ""
|
|
14
|
+
execution_mode: solo
|
|
15
|
+
variables:
|
|
16
|
+
process_slug: ".context"
|
|
17
|
+
session_id: ""
|
|
18
|
+
nodes: []
|
|
19
|
+
recovery:
|
|
20
|
+
last_validated_checkpoint: ""
|
|
21
|
+
can_resume_from: ""
|
|
22
|
+
abort_reason: null
|
|
23
|
+
abort_at: null
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# Lincoln 工作流目录
|
|
2
|
+
|
|
3
|
+
本目录统一存放 Lincoln 预设的 SOP(标准操作流程)工作流。每个 `.yaml` 文件描述一个从需求输入到知识沉淀的完整阶段序列,Agent 可基于当前场景路由到对应工作流执行。
|
|
4
|
+
|
|
5
|
+
- 如果要**使用** Lincoln,请从根目录 [`README.md`](../../README.md) 开始。
|
|
6
|
+
- 如果要**新增**工作流,在本目录创建 `*.yaml` 文件,并更新本 README 的路由表、`.claude/harnesses/command-map.yaml` 的 `lc-wf-*` 登记。
|
|
7
|
+
|
|
8
|
+
## 执行模式(execution_mode)
|
|
9
|
+
|
|
10
|
+
每个工作流在 yaml 中声明 `execution_mode`,分为两类:
|
|
11
|
+
|
|
12
|
+
| 模式 | 含义 | 实例文件位置 |
|
|
13
|
+
|------|------|--------------|
|
|
14
|
+
| `solo` | 单人用户在自己 conductor session 内独立完成全部节点 | `.context/workflow/<name>.yaml`(session 级、gitignored,跟随 workspace/session 生命周期) |
|
|
15
|
+
| `team` | 多个人类用户负责不同节点,经 branch + issue-package 交接 | `{process_slug}/workflow-stage.yaml`(随 feature 分支共享) |
|
|
16
|
+
|
|
17
|
+
启动命令统一为 `lc-wf-*`(claude-code 经 `lc-wf` skill,codex/opencode 经生成的命令文件),底层为 `python3 "${CLAUDE_PLUGIN_ROOT:-${LINCOLN_HOME:-$HOME/.lincoln/current}}/scripts/lincoln_workflow.py`:"
|
|
18
|
+
|
|
19
|
+
- `lc-wf-list` — 列出所有工作流及其执行模式。
|
|
20
|
+
- `lc-wf-<name>` — 启动对应工作流。solo 直接生成 session 实例;team 需 `--issue-number <N>`,转发 `scripts/init-lincoln-branch.sh` 创建分支与 issue 工作包。
|
|
21
|
+
|
|
22
|
+
## 快速路由
|
|
23
|
+
|
|
24
|
+
| 场景 | 推荐工作流 | 模式 | 文件 |
|
|
25
|
+
|------|------------|------|------|
|
|
26
|
+
| 有利益相关者访谈录音,需要提取需求并推进到研发 | `interview-to-knowledge` | team | [`interview-to-knowledge.yaml`](interview-to-knowledge.yaml) |
|
|
27
|
+
| 项目已有源码,但缺乏结构化功能知识库 | `existing-project-iteration` | solo | [`existing-project-iteration.yaml`](existing-project-iteration.yaml) |
|
|
28
|
+
| 已有明确 bug/issue,需要快速定位修复 | `bug-fix` | solo | [`bug-fix.yaml`](bug-fix.yaml) |
|
|
29
|
+
| 仅做方案预研,不进入研发实现 | `design-spike` | solo | [`design-spike.yaml`](design-spike.yaml) |
|
|
30
|
+
| 强依赖开源方案,需要先调研再设计 | `oss-first-design` | solo | [`oss-first-design.yaml`](oss-first-design.yaml) |
|
|
31
|
+
| 需要做竞品/市场/用户/相关者研究,辅助产品决策 | `pm-research` | solo | [`pm-research.yaml`](pm-research.yaml) |
|
|
32
|
+
|
|
33
|
+
## 工作流详解
|
|
34
|
+
|
|
35
|
+
### `interview-to-knowledge`(默认,team)
|
|
36
|
+
|
|
37
|
+
- **适用场景**:从访谈录音到 GitHub Issues 再到 Obsidian 知识库沉淀的完整链路,含跨成员的 implement/PR 节点。
|
|
38
|
+
- **阶段**:ingest → clarify → product-design-docs → product-prototype → tdd-development-plan → propose → split → implement → sync-knowledge
|
|
39
|
+
|
|
40
|
+
### `existing-project-iteration`(solo)
|
|
41
|
+
|
|
42
|
+
- **适用场景**:已有源码但知识库为空,先扫描代码生成 `knowledge/` 功能文档,再进入标准流程。
|
|
43
|
+
- **特点**:在 clarify 之前插入 `build-codebase-knowledge` 阶段。
|
|
44
|
+
|
|
45
|
+
### `bug-fix`(solo)
|
|
46
|
+
|
|
47
|
+
- **适用场景**:明确 bug/issue,轻量设计后快速进入修复。
|
|
48
|
+
- **特点**:跳过 `product-prototype`,`product-design-docs` 轻量化为设计评审文档,聚焦回归测试。
|
|
49
|
+
|
|
50
|
+
### `design-spike`(solo)
|
|
51
|
+
|
|
52
|
+
- **适用场景**:需求尚不明确,仅做方案预研或原型探索,不进入研发实现。
|
|
53
|
+
- **特点**:终止于 `product-prototype` 并直接同步到知识库。
|
|
54
|
+
|
|
55
|
+
### `oss-first-design`(solo)
|
|
56
|
+
|
|
57
|
+
- **适用场景**:设计方案强依赖开源项目或技术框架,需要先调研可选方案。
|
|
58
|
+
- **特点**:在 `clarify` 和 `product-design-docs` 之间插入 `explore-opensource` 阶段。
|
|
59
|
+
|
|
60
|
+
### `pm-research`(solo)
|
|
61
|
+
|
|
62
|
+
- **适用场景**:PM 需要体系化地完成竞品分析、市场研究、产品研究、用户/相关者研究、第一性原理探索,并输出可说服决策者的研究报告。
|
|
63
|
+
- **阶段**:workflow-router → lc-research-scope → lc-first-principles → lc-stakeholder-research → lc-market-research → lc-product-research → lc-competitive-analysis → lc-analyze-frameworks → lc-storytelling → lc-collect-intelligence → lc-research-report
|
|
64
|
+
- **特点**:全程 solo,研究范围与最终报告设有人类 gate;中间阶段以 artifact 完整性为准出门控。
|
|
65
|
+
|
|
66
|
+
## 工作流元模型
|
|
67
|
+
|
|
68
|
+
所有工作流共享同一套元模型:
|
|
69
|
+
|
|
70
|
+
- **Stage(阶段)**:工作流中的单一步骤,有明确的入口/出口校验和产物要求。定义见 `.claude/stages/<stage-id>.yaml`。
|
|
71
|
+
- **Gate(门控)**:阶段准出条件,包括自动校验(artifact 存在、内容检查)和人工确认(`human_gate: true`)。
|
|
72
|
+
- **Artifact(产物)**:阶段生成的文件,例如 `requirements.md`、`design-review.md`、`tdd-plan.md`、OpenSpec 提案等。
|
|
73
|
+
- **Skill(技能)**:阶段可调用的方法论子技能或 Lincoln 原生技能,由阶段 yaml 的 `skills` 字段声明。
|
|
74
|
+
- **Role(角色)**:阶段默认 Agent 角色(pm、designer、engineer、qa、researcher、knowledge-curator、release-coordinator)。
|
|
75
|
+
|
|
76
|
+
## 如何新增工作流
|
|
77
|
+
|
|
78
|
+
1. 在本目录创建 `<workflow-name>.yaml`,声明 `execution_mode: solo|team`。
|
|
79
|
+
2. 遵循 [`workflow-template.schema.json`](../schemas/workflow-template.schema.json) 的字段约定(`execution_mode` 为必填)。
|
|
80
|
+
3. 运行 `python3 "${CLAUDE_PLUGIN_ROOT:-${LINCOLN_HOME:-$HOME/.lincoln/current}}/scripts/lincoln_command_map.py" --refresh` 自动在 `.claude/harnesses/command-map.yaml` 登记 `lc-wf-<name>` 等命令,并同步 `.claude-plugin/plugin.json`,然后运行 `python3 "${CLAUDE_PLUGIN_ROOT:-${LINCOLN_HOME:-$HOME/.lincoln/current}}/scripts/lincoln-setup.py" generate-harness --harness codex --harness opencode` 重新生成适配产物。
|
|
81
|
+
4. 在 `.claude/skills/lc-wf/SKILL.md` 的命令映射表中补充触发词。
|
|
82
|
+
5. 更新本 README 的**快速路由表**和**工作流详解**。
|
|
83
|
+
|
|
84
|
+
## 相关文件
|
|
85
|
+
|
|
86
|
+
- `.claude/stages/*.yaml` — 阶段定义与门控要求
|
|
87
|
+
- [`.claude/schemas/workflow-template.schema.json`](../schemas/workflow-template.schema.json) — 工作流模板 JSON Schema
|
|
88
|
+
- [`.claude/schemas/workflow-stage.schema.json`](../schemas/workflow-stage.schema.json) — 运行时状态实例 JSON Schema
|
|
89
|
+
- [`.claude/templates/solo-workflow-context.yaml`](../templates/solo-workflow-context.yaml) — solo 实例模板
|
|
90
|
+
- [`.claude/templates/issue-package/`](../templates/issue-package/) — team issue 工作包模板
|
|
91
|
+
- [`scripts/lincoln_workflow.py`](../../scripts/lincoln_workflow.py) — `lc-wf-*` 底层 CLI
|
|
92
|
+
- [`scripts/init-lincoln-branch.sh`](../../scripts/init-lincoln-branch.sh) — 创建 issue 工作包并初始化 `{process_slug}/workflow-stage.yaml`
|
|
93
|
+
- [`CLAUDE.md`](../../CLAUDE.md) — Agent 契约与自动上下文加载说明
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
workflow:
|
|
2
|
+
name: bug-fix
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
description: 基于明确 issue/bug 的快速修复工作流
|
|
5
|
+
execution_mode: solo
|
|
6
|
+
engine: everything-claude-code
|
|
7
|
+
|
|
8
|
+
steps:
|
|
9
|
+
- id: workflow-router
|
|
10
|
+
name: 工作流路由
|
|
11
|
+
description: 会话开场引导后,选择最适合当前场景的工作流模板
|
|
12
|
+
action: lc-workflow-router
|
|
13
|
+
|
|
14
|
+
- id: clarify
|
|
15
|
+
name: 需求澄清
|
|
16
|
+
description: 与人类 PM 多轮澄清,形成统一需求文档
|
|
17
|
+
human_gate: true
|
|
18
|
+
action: clarify-requirements
|
|
19
|
+
artifacts:
|
|
20
|
+
- "{process_slug}/pages/docs/requirements.html"
|
|
21
|
+
exit_checks:
|
|
22
|
+
- check: requirements_has_background_problem_solution_acceptance
|
|
23
|
+
- check: human_approved
|
|
24
|
+
|
|
25
|
+
- id: product-design-docs
|
|
26
|
+
name: 轻量设计文档
|
|
27
|
+
description: 产出设计文档(场景、功能目录、数据模型、流程、可行性)
|
|
28
|
+
human_gate: true
|
|
29
|
+
action: draft-product-design
|
|
30
|
+
artifacts:
|
|
31
|
+
- "{process_slug}/pages/docs/design-review.html"
|
|
32
|
+
exit_checks:
|
|
33
|
+
- check: design_docs_complete
|
|
34
|
+
- check: design_docs_human_approved
|
|
35
|
+
|
|
36
|
+
- id: tdd-development-plan
|
|
37
|
+
name: TDD 研发计划
|
|
38
|
+
description: 产出 TDD 研发计划(验收映射、测试场景、任务切片)
|
|
39
|
+
action: plan-tdd-development
|
|
40
|
+
artifacts:
|
|
41
|
+
- "{process_slug}/pages/docs/tdd-plan.html"
|
|
42
|
+
exit_checks:
|
|
43
|
+
- check: tdd_plan_complete
|
|
44
|
+
|
|
45
|
+
- id: propose
|
|
46
|
+
name: OpenSpec 提案
|
|
47
|
+
description: 生成 OpenSpec 变更提案
|
|
48
|
+
action: propose-with-openspec
|
|
49
|
+
cli_command: "openspec propose {change_name}"
|
|
50
|
+
artifacts:
|
|
51
|
+
- "{process_slug}/openspec/changes/{change_name}/"
|
|
52
|
+
exit_checks:
|
|
53
|
+
- check: openspec_artifact_complete
|
|
54
|
+
- check: tasks_extracted
|
|
55
|
+
|
|
56
|
+
- id: split
|
|
57
|
+
name: 拆分到 GitHub
|
|
58
|
+
description: 将 OpenSpec 任务拆分为 GitHub Issues
|
|
59
|
+
action: split-to-github
|
|
60
|
+
artifacts:
|
|
61
|
+
- .github/linked-issues.yaml
|
|
62
|
+
exit_checks:
|
|
63
|
+
- check: issues_created
|
|
64
|
+
- check: tasks_link_back_to_issues
|
|
65
|
+
|
|
66
|
+
- id: implement
|
|
67
|
+
name: 研发实现
|
|
68
|
+
description: 按 TDD 实施并完成验证
|
|
69
|
+
human_gate: true
|
|
70
|
+
|
|
71
|
+
- id: sync-knowledge
|
|
72
|
+
name: 同步到知识库
|
|
73
|
+
description: 将业务与技术知识沉淀到 Obsidian vault
|
|
74
|
+
trigger: on_pr_merge
|
|
75
|
+
action: sync-to-knowledge
|
|
76
|
+
artifacts:
|
|
77
|
+
- knowledge/03-features/{feature_slug}.md
|
|
78
|
+
exit_checks:
|
|
79
|
+
- check: feature_doc_has_business_and_technical_sections
|
|
80
|
+
- check: feature_doc_has_links
|
|
81
|
+
- check: no_conflict_with_existing_knowledge
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
workflow:
|
|
2
|
+
name: design-spike
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
description: 仅做方案预研,不进入研发实现
|
|
5
|
+
execution_mode: solo
|
|
6
|
+
engine: everything-claude-code
|
|
7
|
+
|
|
8
|
+
steps:
|
|
9
|
+
- id: workflow-router
|
|
10
|
+
name: 工作流路由
|
|
11
|
+
description: 会话开场引导后,选择最适合当前场景的工作流模板
|
|
12
|
+
action: lc-workflow-router
|
|
13
|
+
|
|
14
|
+
- id: clarify
|
|
15
|
+
name: 需求澄清
|
|
16
|
+
description: 与人类 PM 多轮澄清,形成统一需求文档
|
|
17
|
+
human_gate: true
|
|
18
|
+
action: clarify-requirements
|
|
19
|
+
artifacts:
|
|
20
|
+
- "{process_slug}/pages/docs/requirements.html"
|
|
21
|
+
exit_checks:
|
|
22
|
+
- check: requirements_has_background_problem_solution_acceptance
|
|
23
|
+
- check: human_approved
|
|
24
|
+
|
|
25
|
+
- id: product-design-docs
|
|
26
|
+
name: 产品设计文档
|
|
27
|
+
description: 产出设计文档(场景、功能目录、数据模型、流程、可行性)
|
|
28
|
+
human_gate: true
|
|
29
|
+
action: draft-product-design
|
|
30
|
+
artifacts:
|
|
31
|
+
- "{process_slug}/pages/docs/design-review.html"
|
|
32
|
+
exit_checks:
|
|
33
|
+
- check: design_docs_complete
|
|
34
|
+
- check: design_docs_human_approved
|
|
35
|
+
|
|
36
|
+
- id: product-prototype
|
|
37
|
+
name: 产品原型
|
|
38
|
+
description: 产出 Pencil 原型与 UI 规格
|
|
39
|
+
human_gate: true
|
|
40
|
+
action: build-product-prototype
|
|
41
|
+
artifacts:
|
|
42
|
+
- "{process_slug}/designs/{design_id}/prototype.pen"
|
|
43
|
+
exit_checks:
|
|
44
|
+
- check: prototype_artifact_complete
|
|
45
|
+
|
|
46
|
+
- id: sync-knowledge
|
|
47
|
+
name: 同步到知识库
|
|
48
|
+
description: 将业务与技术知识沉淀到 Obsidian vault
|
|
49
|
+
action: sync-to-knowledge
|
|
50
|
+
artifacts:
|
|
51
|
+
- knowledge/03-features/{feature_slug}.md
|
|
52
|
+
exit_checks:
|
|
53
|
+
- check: feature_doc_has_business_and_technical_sections
|
|
54
|
+
- check: feature_doc_has_links
|
|
55
|
+
- check: no_conflict_with_existing_knowledge
|