Compare commits

..

2 Commits

Author SHA1 Message Date
lanrtop
1bc0629827 chore(blueprint): 知识库模板任务卡收卡——agent_verify 已过,human_verify 待实测
All checks were successful
Push & PR Check / check (push) Successful in 54s
2026-07-18 10:26:07 +09:00
lanrtop
55ee5a483c feat(templates): 新增内置模板「知识库(择升环)」
三层晋升结构的知识沉淀文档库初始化:dialogues 对话原料 → concepts 概念卡
→ CORE.md 稳定核心(上限 300 行强制过滤),cases/ 为检验层。
晋升/降级规则与写作纪律内置于模板 AGENTS.md,agent 进库即按择升环工作流运转;
init_commands 为 git init,建库即版本化。

Feature-Confirmed: true
2026-07-18 10:25:01 +09:00
2 changed files with 129 additions and 0 deletions

View File

@ -37,3 +37,16 @@ progress: 100
- `builtin-vite-react`React 19 + TS + TailwindCSS v4 + React Router v7纯前端 SPA 起点 - `builtin-vite-react`React 19 + TS + TailwindCSS v4 + React Router v7纯前端 SPA 起点
- `builtin-tauri-react-tailwind`Tauri v2 + React + TailwindCSS v4客户端应用带样式 - `builtin-tauri-react-tailwind`Tauri v2 + React + TailwindCSS v4客户端应用带样式
- `builtin-web-mobile-monorepo`Web + Mobile 共享 Monorepopackages/core业务逻辑+ packages/types + apps/webVite+Tailwind+ apps/mobileExpo+NativeWind - `builtin-web-mobile-monorepo`Web + Mobile 共享 Monorepopackages/core业务逻辑+ packages/types + apps/webVite+Tailwind+ apps/mobileExpo+NativeWind
### ✅ 知识库(择升环)模板
- status: done
- complexity: S
- files: src-tauri/src/commands/templates.rs
- acceptance: |
agent_verify: [Rust] cargo build 通过seed 数据含 builtin-knowledge-loopfiles 覆盖 CORE.md/concepts/dialogues/cases/AGENTS.md
human_verify: 应用内新建项目选该模板 → 生成目录结构与晋升规则内容符合预期
新增内置模板 `builtin-knowledge-loop`:方法论/知识沉淀文档库。
三层晋升结构dialogues 原料 → concepts 概念卡 → CORE.md 稳定核心),
晋升规则写入模板 AGENTS.mdagent 进库即按择升环工作流运转。init_commands 为 `git init`
agent_verify 已过cargo check + 种子条目确认commit 55ee5a4human_verify 待应用内新建项目实测。

View File

@ -1589,6 +1589,122 @@ export default function HomeScreen() {
"#), "#),
], ],
}, },
// ── 知识库(择升环)────────────────────────────────────────────────────
Tpl {
id: "builtin-knowledge-loop",
name: "知识库(择升环)",
description: "方法论 / 知识沉淀文档库。三层晋升结构dialogues 对话原料 → concepts 概念卡 → CORE 稳定核心,晋升规则内置于 AGENTS.mdagent 进库即按择升环工作流运转。",
platform: "both",
tech_stack: r#"{"":[""],"/":["Markdown","Git"]}"#,
init_commands: "git init",
variants: None,
files: vec![
("CORE.md", r#"# {{project_name}} · 核心层
>
> 300
>
##
<!-- -->
##
<!--
###
concepts/<>.md · cases/<>.md
-->
##
<!-- · · / · -->
"#),
("AGENTS.md", r#"# {{project_name}} — AI Agent 工作规程
线
```
dialogues/
concepts/
CORE.md 300
```
cases/ CORE
##
1. `CORE.md` `concepts/`
2. 稿 `dialogues/YYYY-MM-DD-.md`
3. /
4. git commit git
##
| | | |
|----|----|------|
| dialogues/ | concepts/ | 2 1 |
| concepts/ | CORE.md | + cases/ + |
CORE.md 300
##
-
-
- CORE.md
-
"#),
("concepts/README.md", r#"# concepts/ — 概念卡层
kebab-case `pinggu-wai-huan.md`
##
```markdown
#
- | | |
- dialogues/YYYY-MM-DD-xxx.md
- YYYY-MM-DDcases/xxx.md
##
##
##
```
##
- CORE.md CORE
-
"#),
("dialogues/README.md", r#"# dialogues/ — 对话沉淀层(原料)
稿
- `YYYY-MM-DD-.md`
- / /
-
"#),
("cases/README.md", r#"# cases/ — 实例复盘层(检验)
CORE
- `YYYY-MM-DD-.md`
- / / / or
-
"#),
(".gitignore", ".DS_Store\nThumbs.db\n*.tmp\n"),
],
},
]; ];
for t in &templates { for t in &templates {