dsh-science-plugin 0.14.0 → 0.14.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/README.md +18 -6
- package/agents/_README.md +5 -5
- package/agents/figure-expert.md +35 -35
- package/agents/presentation.md +78 -78
- package/agents/simulator.md +30 -30
- package/agents/topic-designer.md +26 -26
- package/agents/trainer.md +36 -36
- package/client/client.js +1 -1
- package/cordis.patch.yml +10 -12
- package/lib/db.js +386 -386
- package/lib/httpdata.js +2 -1
- package/lib/index.js +2 -1
- package/lib/skillmenu.js +2 -1
- package/lib/store.js +50 -50
- package/package.json +74 -71
- package/skills/sci-autoresearch/SKILL.md +41 -41
- package/skills/sci-hypothesis/SKILL.md +30 -30
- package/skills/sci-polish/SKILL.md +28 -28
- package/skills/sci-slides/SKILL.md +73 -73
- package/skills/sci-writing/SKILL.md +33 -33
package/lib/httpdata.js
CHANGED
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
// 鉴权:对齐 agent-teams 的 authenticatedWebRoutes 思路——经 ctx.get('connection').requestRejection(req)
|
|
20
20
|
// 复用浏览器会话的认证栅栏(同源 fetch 自带凭证)。
|
|
21
21
|
|
|
22
|
+
import manifest from '../package.json' with { type: 'json' }
|
|
22
23
|
import { existsSync, readFileSync, readdirSync, realpathSync, statSync } from 'node:fs'
|
|
23
24
|
import { extname, isAbsolute, join, relative, resolve } from 'node:path'
|
|
24
25
|
import { dataDirOf, PKG_ROOT_OF } from './store.js'
|
|
@@ -43,7 +44,7 @@ function log(msg) {
|
|
|
43
44
|
}
|
|
44
45
|
|
|
45
46
|
const WEB_SERVER_KEYS = ['webServer', 'httpServer']
|
|
46
|
-
const VERSION =
|
|
47
|
+
const VERSION = manifest.version
|
|
47
48
|
const FILE_MAX_BYTES = 20 * 1024 * 1024
|
|
48
49
|
const FILE_TYPES = {
|
|
49
50
|
'.png': 'image/png',
|
package/lib/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import manifest from '../package.json' with { type: 'json' }
|
|
1
2
|
import { mkdirSync, readdirSync, readFileSync, writeFileSync } from 'node:fs'
|
|
2
3
|
import { join, dirname } from 'node:path'
|
|
3
4
|
import { fileURLToPath } from 'node:url'
|
|
@@ -20,7 +21,7 @@ import { dataDirOf, blockedGateOf, falsificationThresholdOf } from './store.js'
|
|
|
20
21
|
import { statusReportOf } from './status.js'
|
|
21
22
|
|
|
22
23
|
const PKG_ROOT = join(dirname(fileURLToPath(import.meta.url)), '..')
|
|
23
|
-
const VERSION =
|
|
24
|
+
const VERSION = manifest.version
|
|
24
25
|
|
|
25
26
|
export const name = 'dsh-science'
|
|
26
27
|
export const inject = ['tools', 'commands', 'skills', 'sessions', 'agents', 'sessionPersistence', 'subagents', 'workingDirectory', 'systemPrompt']
|
package/lib/skillmenu.js
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
// 工具 schema 合同(DEVLOG 坑清单):参数名避开注解关键字;properties 内不用 required;
|
|
15
15
|
// 输出对象不含 undefined 值键(一律 null 兜底)。
|
|
16
16
|
|
|
17
|
+
import manifest from '../package.json' with { type: 'json' }
|
|
17
18
|
import { cpSync, existsSync, mkdirSync, readdirSync, readFileSync, rmSync, statSync, writeFileSync, renameSync, lstatSync, realpathSync } from 'node:fs'
|
|
18
19
|
import { execFile } from 'node:child_process'
|
|
19
20
|
import { join, resolve, sep, basename } from 'node:path'
|
|
@@ -24,7 +25,7 @@ function log(msg) {
|
|
|
24
25
|
console.error(`[dsh-science skillmenu] ${msg}`)
|
|
25
26
|
}
|
|
26
27
|
|
|
27
|
-
const VERSION =
|
|
28
|
+
const VERSION = manifest.version
|
|
28
29
|
const INSTALL_TIMEOUT_MS = 120000
|
|
29
30
|
|
|
30
31
|
// 自动唤醒钩子(brief 待办 8):team.js 注册「按 role 找已 spawn 成员并推送新技能路径」的实现,
|
package/lib/store.js
CHANGED
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
// dsh-science — 共享存储路径(host 侧各模块共用)
|
|
2
|
-
import { existsSync, mkdirSync, readFileSync } from 'node:fs'
|
|
3
|
-
import { join } from 'node:path'
|
|
4
|
-
import { homedir } from 'node:os'
|
|
5
|
-
|
|
6
|
-
export function dataDirOf() {
|
|
7
|
-
const home = process.env.DSH_HOME || join(homedir(), '.dsh')
|
|
8
|
-
const dir = join(home, 'dsh-science')
|
|
9
|
-
if (!existsSync(dir)) mkdirSync(dir, { recursive: true })
|
|
10
|
-
return dir
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
import { dirname } from 'node:path'
|
|
14
|
-
import { fileURLToPath } from 'node:url'
|
|
15
|
-
|
|
16
|
-
/** 插件包根目录(lib/ 的上一级) */
|
|
17
|
-
export function PKG_ROOT_OF() {
|
|
18
|
-
return join(dirname(fileURLToPath(import.meta.url)), '..')
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
// 用户配置($DSH_HOME/dsh-science/config.json,手动编辑,改即生效):
|
|
22
|
-
// falsificationThreshold — 证伪风险触发的 negative 数阈值(正整数,默认 2)
|
|
23
|
-
// blockedGate — 派单依赖闸门:"warn"(默认,记录+提示)| "hard"(依赖未完成拒绝派发)
|
|
24
|
-
export function configOf() {
|
|
25
|
-
try {
|
|
26
|
-
const parsed = JSON.parse(readFileSync(join(dataDirOf(), 'config.json'), 'utf8'))
|
|
27
|
-
if (parsed && typeof parsed === 'object' && !Array.isArray(parsed)) return parsed
|
|
28
|
-
} catch (err) {
|
|
29
|
-
if (err && err.code !== 'ENOENT') {
|
|
30
|
-
console.error(`[dsh-science] config.json 读取失败(按默认配置运行): ${err && err.message}`)
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
return {}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export function falsificationThresholdOf() {
|
|
37
|
-
// 只接受数字或纯十进制整数字符串;拒绝布尔(true→1)/十六进制串('0x10'→16)等 Number() 强转陷阱
|
|
38
|
-
const raw = configOf().falsificationThreshold
|
|
39
|
-
let v
|
|
40
|
-
if (typeof raw === 'number') v = raw
|
|
41
|
-
else if (typeof raw === 'string' && /^\d+$/.test(raw.trim())) v = Number(raw.trim())
|
|
42
|
-
else return 2
|
|
43
|
-
return Number.isSafeInteger(v) && v >= 1 ? v : 2
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export function blockedGateOf() {
|
|
47
|
-
// 大小写/首尾空白不敏感,避免 'HARD' 一类笔误静默 fail-open 回退到 warn
|
|
48
|
-
const v = String(configOf().blockedGate ?? '').trim().toLowerCase()
|
|
49
|
-
return v === 'hard' ? 'hard' : 'warn'
|
|
50
|
-
}
|
|
1
|
+
// dsh-science — 共享存储路径(host 侧各模块共用)
|
|
2
|
+
import { existsSync, mkdirSync, readFileSync } from 'node:fs'
|
|
3
|
+
import { join } from 'node:path'
|
|
4
|
+
import { homedir } from 'node:os'
|
|
5
|
+
|
|
6
|
+
export function dataDirOf() {
|
|
7
|
+
const home = process.env.DSH_HOME || join(homedir(), '.dsh')
|
|
8
|
+
const dir = join(home, 'dsh-science')
|
|
9
|
+
if (!existsSync(dir)) mkdirSync(dir, { recursive: true })
|
|
10
|
+
return dir
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
import { dirname } from 'node:path'
|
|
14
|
+
import { fileURLToPath } from 'node:url'
|
|
15
|
+
|
|
16
|
+
/** 插件包根目录(lib/ 的上一级) */
|
|
17
|
+
export function PKG_ROOT_OF() {
|
|
18
|
+
return join(dirname(fileURLToPath(import.meta.url)), '..')
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// 用户配置($DSH_HOME/dsh-science/config.json,手动编辑,改即生效):
|
|
22
|
+
// falsificationThreshold — 证伪风险触发的 negative 数阈值(正整数,默认 2)
|
|
23
|
+
// blockedGate — 派单依赖闸门:"warn"(默认,记录+提示)| "hard"(依赖未完成拒绝派发)
|
|
24
|
+
export function configOf() {
|
|
25
|
+
try {
|
|
26
|
+
const parsed = JSON.parse(readFileSync(join(dataDirOf(), 'config.json'), 'utf8'))
|
|
27
|
+
if (parsed && typeof parsed === 'object' && !Array.isArray(parsed)) return parsed
|
|
28
|
+
} catch (err) {
|
|
29
|
+
if (err && err.code !== 'ENOENT') {
|
|
30
|
+
console.error(`[dsh-science] config.json 读取失败(按默认配置运行): ${err && err.message}`)
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return {}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export function falsificationThresholdOf() {
|
|
37
|
+
// 只接受数字或纯十进制整数字符串;拒绝布尔(true→1)/十六进制串('0x10'→16)等 Number() 强转陷阱
|
|
38
|
+
const raw = configOf().falsificationThreshold
|
|
39
|
+
let v
|
|
40
|
+
if (typeof raw === 'number') v = raw
|
|
41
|
+
else if (typeof raw === 'string' && /^\d+$/.test(raw.trim())) v = Number(raw.trim())
|
|
42
|
+
else return 2
|
|
43
|
+
return Number.isSafeInteger(v) && v >= 1 ? v : 2
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function blockedGateOf() {
|
|
47
|
+
// 大小写/首尾空白不敏感,避免 'HARD' 一类笔误静默 fail-open 回退到 warn
|
|
48
|
+
const v = String(configOf().blockedGate ?? '').trim().toLowerCase()
|
|
49
|
+
return v === 'hard' ? 'hard' : 'warn'
|
|
50
|
+
}
|
package/package.json
CHANGED
|
@@ -1,71 +1,74 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "dsh-science-plugin",
|
|
3
|
-
"version": "0.14.
|
|
4
|
-
"description": "Scientific workbench for DeepSeek Harness: publication figures, database connections, auto result review, SSH remote compute",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "lib/index.js",
|
|
7
|
-
"files": [
|
|
8
|
-
"lib",
|
|
9
|
-
"agents",
|
|
10
|
-
"client",
|
|
11
|
-
"skills",
|
|
12
|
-
"locale",
|
|
13
|
-
"assets",
|
|
14
|
-
"cordis.patch.yml",
|
|
15
|
-
"icon.svg",
|
|
16
|
-
"docs"
|
|
17
|
-
],
|
|
18
|
-
"exports": {
|
|
19
|
-
".": "./lib/index.js",
|
|
20
|
-
"./client": "./client/client.js",
|
|
21
|
-
"./package.json": "./package.json"
|
|
22
|
-
},
|
|
23
|
-
"dsh": {
|
|
24
|
-
"bundle": {
|
|
25
|
-
"patch": "./cordis.patch.yml"
|
|
26
|
-
},
|
|
27
|
-
"client": {
|
|
28
|
-
"platform": "web",
|
|
29
|
-
"immediately": true,
|
|
30
|
-
"inject": [
|
|
31
|
-
"@deepseek-ai/dsh-api-session-controller",
|
|
32
|
-
"@deepseek-ai/dsh-client-ui-conversation",
|
|
33
|
-
"@deepseek-ai/dsh-client-ui-layout",
|
|
34
|
-
"@deepseek-ai/dsh-client-ui-sidebar",
|
|
35
|
-
"@deepseek-ai/dsh-client-ui-sidebar-right",
|
|
36
|
-
"@deepseek-ai/dsh-client-ui-action-cards",
|
|
37
|
-
"@deepseek-ai/dsh-client-ui-slots"
|
|
38
|
-
]
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
"engines": {
|
|
42
|
-
"dsh": ">=0.2.
|
|
43
|
-
},
|
|
44
|
-
"scripts": {
|
|
45
|
-
"test": "node --test \"tests/*.test.mjs\"",
|
|
46
|
-
"build:client": "node scripts/build-client.mjs"
|
|
47
|
-
},
|
|
48
|
-
"icon": "./icon.svg",
|
|
49
|
-
"keywords": [
|
|
50
|
-
"dsh-plugin"
|
|
51
|
-
],
|
|
52
|
-
"license": "MIT",
|
|
53
|
-
"dependencies": {
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
"
|
|
60
|
-
"@deepseek-ai/dsh-
|
|
61
|
-
"
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "dsh-science-plugin",
|
|
3
|
+
"version": "0.14.1",
|
|
4
|
+
"description": "Scientific workbench for DeepSeek Harness: publication figures, database connections, auto result review, SSH remote compute",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "lib/index.js",
|
|
7
|
+
"files": [
|
|
8
|
+
"lib",
|
|
9
|
+
"agents",
|
|
10
|
+
"client",
|
|
11
|
+
"skills",
|
|
12
|
+
"locale",
|
|
13
|
+
"assets",
|
|
14
|
+
"cordis.patch.yml",
|
|
15
|
+
"icon.svg",
|
|
16
|
+
"docs"
|
|
17
|
+
],
|
|
18
|
+
"exports": {
|
|
19
|
+
".": "./lib/index.js",
|
|
20
|
+
"./client": "./client/client.js",
|
|
21
|
+
"./package.json": "./package.json"
|
|
22
|
+
},
|
|
23
|
+
"dsh": {
|
|
24
|
+
"bundle": {
|
|
25
|
+
"patch": "./cordis.patch.yml"
|
|
26
|
+
},
|
|
27
|
+
"client": {
|
|
28
|
+
"platform": "web",
|
|
29
|
+
"immediately": true,
|
|
30
|
+
"inject": [
|
|
31
|
+
"@deepseek-ai/dsh-api-session-controller",
|
|
32
|
+
"@deepseek-ai/dsh-client-ui-conversation",
|
|
33
|
+
"@deepseek-ai/dsh-client-ui-layout",
|
|
34
|
+
"@deepseek-ai/dsh-client-ui-sidebar",
|
|
35
|
+
"@deepseek-ai/dsh-client-ui-sidebar-right",
|
|
36
|
+
"@deepseek-ai/dsh-client-ui-action-cards",
|
|
37
|
+
"@deepseek-ai/dsh-client-ui-slots"
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"engines": {
|
|
42
|
+
"dsh": ">=0.2.2-rc.3 <0.2.3-0"
|
|
43
|
+
},
|
|
44
|
+
"scripts": {
|
|
45
|
+
"test": "node --test \"tests/*.test.mjs\"",
|
|
46
|
+
"build:client": "node scripts/build-client.mjs"
|
|
47
|
+
},
|
|
48
|
+
"icon": "./icon.svg",
|
|
49
|
+
"keywords": [
|
|
50
|
+
"dsh-plugin"
|
|
51
|
+
],
|
|
52
|
+
"license": "MIT",
|
|
53
|
+
"dependencies": {
|
|
54
|
+
"mysql2": "^3.24.6",
|
|
55
|
+
"postgres": "^4.1.0",
|
|
56
|
+
"zod": "^4.4.3"
|
|
57
|
+
},
|
|
58
|
+
"devDependencies": {
|
|
59
|
+
"esbuild": "0.25.0",
|
|
60
|
+
"@deepseek-ai/dsh-action-cards": "0.2.2-rc.5",
|
|
61
|
+
"@deepseek-ai/dsh-client-ui-action-cards": "0.2.2-rc.5"
|
|
62
|
+
},
|
|
63
|
+
"pnpm": {
|
|
64
|
+
"onlyBuiltDependencies": []
|
|
65
|
+
},
|
|
66
|
+
"repository": {
|
|
67
|
+
"type": "git",
|
|
68
|
+
"url": "git+https://github.com/SPYfighting/dsh-science-plugin.git"
|
|
69
|
+
},
|
|
70
|
+
"peerDependencies": {
|
|
71
|
+
"@deepseek-ai/dsh-action-cards": ">=0.2.2-rc.3 <0.2.3-0",
|
|
72
|
+
"@deepseek-ai/dsh-client-ui-action-cards": ">=0.2.2-rc.3 <0.2.3-0"
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: sci-autoresearch
|
|
3
|
-
description: 端到端自主科研流程编排。用户明确要求 autoresearch/全自动跑一个完整研究时使用:文献→假设→实验→分析→图表→报告,带强制人工检查点。
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Autoresearch 流程编排(设计参考 ARIS/AI-Scientist 的循环思想,含强制人工检查点)
|
|
7
|
-
|
|
8
|
-
## 总原则
|
|
9
|
-
|
|
10
|
-
- **检查点强制**:每个阶段结束必须停下等用户批准("继续"才算通过)。全自动只存在于阶段内部。
|
|
11
|
-
- **产物落盘**:每阶段的产出写成工作区文件(`research/<slug>/01-literature.md` 等),报告引用文件路径。
|
|
12
|
-
- **成本可视**:每阶段开始前预估要跑的远程作业数量与大致耗时。
|
|
13
|
-
|
|
14
|
-
## 阶段流水线
|
|
15
|
-
|
|
16
|
-
### S1 文献综述(产出 01-literature.md)
|
|
17
|
-
`web_search` / `web_fetch` 多源检索 → 按"已知/争议/缺口"三栏整理 → 每条断言附 DOI(`sci_doi_verify` 核对)。
|
|
18
|
-
**检查点 1**:用户确认缺口判断。
|
|
19
|
-
|
|
20
|
-
### S2 假设与实验设计(产出 02-hypothesis.md)
|
|
21
|
-
按 sci-hypothesis 模板生成 2-3 个假设,Top 1 展开成实验设计(数据源、分析方法、预期图表清单)。
|
|
22
|
-
**检查点 2**:用户选定假设与设计。
|
|
23
|
-
|
|
24
|
-
### S3 数据与实验(产出 03-data.md + 执行记录)
|
|
25
|
-
- 本地数据:`sci_db_*`(只读优先)。
|
|
26
|
-
- 远端计算:`sci_job_submit`,试跑先行(sci-simulation 规则)。
|
|
27
|
-
- 所有中间结果落盘;失败如实记录(Partial/Failed 状态,不粉饰)。
|
|
28
|
-
|
|
29
|
-
### S4 分析与图表(产出 04-analysis.md + figures/)
|
|
30
|
-
按 sci-figures 规范出图并 `sci_figure_register` 登记;统计检验方法与假设一一对应。
|
|
31
|
-
|
|
32
|
-
### S5 报告(产出 05-report.md)
|
|
33
|
-
按 sci-writing 结构撰写;引用全部经核对。
|
|
34
|
-
**检查点 3**:用户终审。
|
|
35
|
-
|
|
36
|
-
### S6 终审审查
|
|
37
|
-
建议 `/sci-review` 对报告轮跑一次全项审查;fail 项逐条处理后再交付。
|
|
38
|
-
|
|
39
|
-
## 中断恢复
|
|
40
|
-
|
|
41
|
-
所有阶段状态写入 `research/<slug>/state.json`(stage、通过与否、关键决策)。会话中断后凭 state.json 续跑,不重做已批准阶段。
|
|
1
|
+
---
|
|
2
|
+
name: sci-autoresearch
|
|
3
|
+
description: 端到端自主科研流程编排。用户明确要求 autoresearch/全自动跑一个完整研究时使用:文献→假设→实验→分析→图表→报告,带强制人工检查点。
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Autoresearch 流程编排(设计参考 ARIS/AI-Scientist 的循环思想,含强制人工检查点)
|
|
7
|
+
|
|
8
|
+
## 总原则
|
|
9
|
+
|
|
10
|
+
- **检查点强制**:每个阶段结束必须停下等用户批准("继续"才算通过)。全自动只存在于阶段内部。
|
|
11
|
+
- **产物落盘**:每阶段的产出写成工作区文件(`research/<slug>/01-literature.md` 等),报告引用文件路径。
|
|
12
|
+
- **成本可视**:每阶段开始前预估要跑的远程作业数量与大致耗时。
|
|
13
|
+
|
|
14
|
+
## 阶段流水线
|
|
15
|
+
|
|
16
|
+
### S1 文献综述(产出 01-literature.md)
|
|
17
|
+
`web_search` / `web_fetch` 多源检索 → 按"已知/争议/缺口"三栏整理 → 每条断言附 DOI(`sci_doi_verify` 核对)。
|
|
18
|
+
**检查点 1**:用户确认缺口判断。
|
|
19
|
+
|
|
20
|
+
### S2 假设与实验设计(产出 02-hypothesis.md)
|
|
21
|
+
按 sci-hypothesis 模板生成 2-3 个假设,Top 1 展开成实验设计(数据源、分析方法、预期图表清单)。
|
|
22
|
+
**检查点 2**:用户选定假设与设计。
|
|
23
|
+
|
|
24
|
+
### S3 数据与实验(产出 03-data.md + 执行记录)
|
|
25
|
+
- 本地数据:`sci_db_*`(只读优先)。
|
|
26
|
+
- 远端计算:`sci_job_submit`,试跑先行(sci-simulation 规则)。
|
|
27
|
+
- 所有中间结果落盘;失败如实记录(Partial/Failed 状态,不粉饰)。
|
|
28
|
+
|
|
29
|
+
### S4 分析与图表(产出 04-analysis.md + figures/)
|
|
30
|
+
按 sci-figures 规范出图并 `sci_figure_register` 登记;统计检验方法与假设一一对应。
|
|
31
|
+
|
|
32
|
+
### S5 报告(产出 05-report.md)
|
|
33
|
+
按 sci-writing 结构撰写;引用全部经核对。
|
|
34
|
+
**检查点 3**:用户终审。
|
|
35
|
+
|
|
36
|
+
### S6 终审审查
|
|
37
|
+
建议 `/sci-review` 对报告轮跑一次全项审查;fail 项逐条处理后再交付。
|
|
38
|
+
|
|
39
|
+
## 中断恢复
|
|
40
|
+
|
|
41
|
+
所有阶段状态写入 `research/<slug>/state.json`(stage、通过与否、关键决策)。会话中断后凭 state.json 续跑,不重做已批准阶段。
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: sci-hypothesis
|
|
3
|
-
description: 提出科研假设与研究课题思路。用户要 idea/课题/假设/研究方向时使用:基于文献缺口生成、评估、收敛假设。
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# 假设生成与课题构思(设计参考 ARS/Orchestra Research 的想法生成流程)
|
|
7
|
-
|
|
8
|
-
## 流程
|
|
9
|
-
|
|
10
|
-
### 1. 定位(先于发散)
|
|
11
|
-
与用户确认:领域、已有数据/资源(数据库权限、算力——可用 `sci_ssh_profiles` list 查)、时间预算、目标产出(论文/基金/预研)。
|
|
12
|
-
|
|
13
|
-
### 2. 文献缺口分析
|
|
14
|
-
- `web_search` / `web_fetch` 多源检索(近 3 年为主)+ `sci_db_tables` 盘点自有数据。
|
|
15
|
-
- 输出 3-5 个「缺口卡」:现象 → 已知解释 → 未解释之处 → 为什么现在能做(新数据/新方法/新算力)。
|
|
16
|
-
|
|
17
|
-
### 3. 假设发散(每轮 3-5 个,宁缺毋滥)
|
|
18
|
-
每个假设按模板填写:
|
|
19
|
-
- **陈述**:可证伪的一句话(X 通过 Y 机制影响 Z,在 W 条件下)。
|
|
20
|
-
- **检验路径**:需要什么数据、什么分析/模拟(能否用 `sci_db_*`/`sci_job_submit` 落地)。
|
|
21
|
-
- **风险**:最可能的失败模式;**新颖性**:与哪 3 篇最近文献区分。
|
|
22
|
-
|
|
23
|
-
### 4. 收敛评分(与用户一起)
|
|
24
|
-
新颖性 / 可行性 / 数据就绪度 / 周期,各 1-5 分;淘汰 <3 分项;Top 1-2 展开为开题段落。
|
|
25
|
-
|
|
26
|
-
## 硬规则
|
|
27
|
-
|
|
28
|
-
- 假设必须可证伪;检验路径必须映射到本会话可执行的工具链,否则标注"需要新数据/新算力"。
|
|
29
|
-
- 所有文献断言经 `web_search` / `web_fetch` 检索并由 `sci_doi_verify` 核对,禁止凭记忆编造研究现状。
|
|
1
|
+
---
|
|
2
|
+
name: sci-hypothesis
|
|
3
|
+
description: 提出科研假设与研究课题思路。用户要 idea/课题/假设/研究方向时使用:基于文献缺口生成、评估、收敛假设。
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# 假设生成与课题构思(设计参考 ARS/Orchestra Research 的想法生成流程)
|
|
7
|
+
|
|
8
|
+
## 流程
|
|
9
|
+
|
|
10
|
+
### 1. 定位(先于发散)
|
|
11
|
+
与用户确认:领域、已有数据/资源(数据库权限、算力——可用 `sci_ssh_profiles` list 查)、时间预算、目标产出(论文/基金/预研)。
|
|
12
|
+
|
|
13
|
+
### 2. 文献缺口分析
|
|
14
|
+
- `web_search` / `web_fetch` 多源检索(近 3 年为主)+ `sci_db_tables` 盘点自有数据。
|
|
15
|
+
- 输出 3-5 个「缺口卡」:现象 → 已知解释 → 未解释之处 → 为什么现在能做(新数据/新方法/新算力)。
|
|
16
|
+
|
|
17
|
+
### 3. 假设发散(每轮 3-5 个,宁缺毋滥)
|
|
18
|
+
每个假设按模板填写:
|
|
19
|
+
- **陈述**:可证伪的一句话(X 通过 Y 机制影响 Z,在 W 条件下)。
|
|
20
|
+
- **检验路径**:需要什么数据、什么分析/模拟(能否用 `sci_db_*`/`sci_job_submit` 落地)。
|
|
21
|
+
- **风险**:最可能的失败模式;**新颖性**:与哪 3 篇最近文献区分。
|
|
22
|
+
|
|
23
|
+
### 4. 收敛评分(与用户一起)
|
|
24
|
+
新颖性 / 可行性 / 数据就绪度 / 周期,各 1-5 分;淘汰 <3 分项;Top 1-2 展开为开题段落。
|
|
25
|
+
|
|
26
|
+
## 硬规则
|
|
27
|
+
|
|
28
|
+
- 假设必须可证伪;检验路径必须映射到本会话可执行的工具链,否则标注"需要新数据/新算力"。
|
|
29
|
+
- 所有文献断言经 `web_search` / `web_fetch` 检索并由 `sci_doi_verify` 核对,禁止凭记忆编造研究现状。
|
|
30
30
|
|
|
31
31
|
## 确认卡(sci-paper-confirm)
|
|
32
32
|
|
|
@@ -34,4 +34,4 @@ description: 提出科研假设与研究课题思路。用户要 idea/课题/假
|
|
|
34
34
|
|
|
35
35
|
1. 先调用 `sci_blueprint_overview`,取项目的 `revision`、目标对象的 `revision` 与 `contentHash`。
|
|
36
36
|
2. 调用 `propose_action`(action=`sci-paper-confirm`),details 填 `projectId`、`objectId`、`objectRevision`、`projectRevision`、`expectedHash`、`title`、`summary`。
|
|
37
|
-
3. 卡片只绑定用户提案时看到的那次对象修订与内容哈希;卡片发起后语义被修改,旧卡确认会被拒绝。修改意见回到对话说明,由你更新对象后重新发起。
|
|
37
|
+
3. 卡片只绑定用户提案时看到的那次对象修订与内容哈希;卡片发起后语义被修改,旧卡确认会被拒绝。修改意见回到对话说明,由你更新对象后重新发起。
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: sci-polish
|
|
3
|
-
description: 学术文本润色与改写。用户要求 polish/润色/改写/降 AI 味/翻译润色时使用,不动事实与数据。
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# 学术润色(设计参考 nature-polishing 的原则)
|
|
7
|
-
|
|
8
|
-
## 润色层级(先问用户要哪级)
|
|
9
|
-
|
|
10
|
-
1. **语言级**:语法、拼写、标点、时态一致。
|
|
11
|
-
2. **表达级**:句式精简、逻辑连接词自然化、去 AI 腔、术语统一(全文同一概念同一词)。
|
|
12
|
-
3. **结构级**:段落重排、论点顺序调整(需用户确认,改动大)。
|
|
13
|
-
|
|
14
|
-
## 规则
|
|
15
|
-
|
|
16
|
-
- **事实红线**:数字、单位、统计值、引用、结论方向一律不动;改前后语义必须等价。
|
|
17
|
-
- 主动语态优先("We found" 而非 "It was found")。
|
|
18
|
-
- 每段一个论点;首句为段旨句。
|
|
19
|
-
- 删除空话:novel/very/significantly(非统计义)/interesting 等弱词。
|
|
20
|
-
- 中译英:避免逐字直译,按英文学术惯例重组;专有名词保留原文首次出现加注释。
|
|
21
|
-
|
|
22
|
-
## 输出格式
|
|
23
|
-
|
|
24
|
-
修改稿用 diff 呈现(改前 → 改后 + 一句理由),超过 20 处时按重要性排序输出 Top 修改并附完整成稿。
|
|
25
|
-
|
|
26
|
-
## 完成后
|
|
27
|
-
|
|
28
|
-
建议跑 /sci-review 复核(确认润色没有引入数字或引用漂移)。
|
|
1
|
+
---
|
|
2
|
+
name: sci-polish
|
|
3
|
+
description: 学术文本润色与改写。用户要求 polish/润色/改写/降 AI 味/翻译润色时使用,不动事实与数据。
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# 学术润色(设计参考 nature-polishing 的原则)
|
|
7
|
+
|
|
8
|
+
## 润色层级(先问用户要哪级)
|
|
9
|
+
|
|
10
|
+
1. **语言级**:语法、拼写、标点、时态一致。
|
|
11
|
+
2. **表达级**:句式精简、逻辑连接词自然化、去 AI 腔、术语统一(全文同一概念同一词)。
|
|
12
|
+
3. **结构级**:段落重排、论点顺序调整(需用户确认,改动大)。
|
|
13
|
+
|
|
14
|
+
## 规则
|
|
15
|
+
|
|
16
|
+
- **事实红线**:数字、单位、统计值、引用、结论方向一律不动;改前后语义必须等价。
|
|
17
|
+
- 主动语态优先("We found" 而非 "It was found")。
|
|
18
|
+
- 每段一个论点;首句为段旨句。
|
|
19
|
+
- 删除空话:novel/very/significantly(非统计义)/interesting 等弱词。
|
|
20
|
+
- 中译英:避免逐字直译,按英文学术惯例重组;专有名词保留原文首次出现加注释。
|
|
21
|
+
|
|
22
|
+
## 输出格式
|
|
23
|
+
|
|
24
|
+
修改稿用 diff 呈现(改前 → 改后 + 一句理由),超过 20 处时按重要性排序输出 Top 修改并附完整成稿。
|
|
25
|
+
|
|
26
|
+
## 完成后
|
|
27
|
+
|
|
28
|
+
建议跑 /sci-review 复核(确认润色没有引入数字或引用漂移)。
|