feat: ClassIsland / ClassHelper 灵动岛提示词套件
- 重构版主提示词(14 parts,面向 ClassHelper 灵动岛重构) - ClassIsland 全量规格提示词(20 parts,含分卷与逐章版本) - 投喂指南、分卷、逐节文件 - 调研记录、一致性基线、生成与质检脚本
This commit is contained in:
commit
22c1784bab
117 files changed
+47759
No files matched your search
@@ -0,0 +1,29 @@
|
||||
import { readFileSync } from 'node:fs';
|
||||
const t = readFileSync('ClassIsland-给ChatGPT的完整提示词.md', 'utf8');
|
||||
const checks = [
|
||||
['行高 40 / IslandContainerHeight', /IslandContainerHeight/],
|
||||
['圆角 8', /RadiusX|半径 8|圆角 8/],
|
||||
['不透明度 0.5', /0\.5.*不透明|Opacity.*0\.5|opacity 0\.5/],
|
||||
['阴影 0 4 8 2', /0 4 8 2/],
|
||||
['Fluent 300ms 曲线', /0\.65, 0, 0\.35/],
|
||||
['OOBE 8 页', /8 页/],
|
||||
['无通知中心窗口', /没有.{0,6}通知中心|无独立.{0,6}通知中心/],
|
||||
['无设置搜索框', /无.{0,6}搜索框|没有.{0,6}搜索/],
|
||||
['Excel P1', /Excel[^\n]{0,40}P1|P1[^\n]{0,40}Excel/],
|
||||
['壁纸取色停用/P2', /壁纸取色[^\n]{0,40}(停用|P2)/],
|
||||
['行动术语', /行动/],
|
||||
];
|
||||
for (const [n, re] of checks) {
|
||||
const m = t.match(re);
|
||||
console.log((m ? 'OK ' : 'MISS ') + n + (m ? ' -> ' + JSON.stringify(m[0]).slice(0, 70) : ''));
|
||||
}
|
||||
const stale = ['9 页', 'NotificationCenter', '通知中心与测试提醒', 'OEE', '顶部搜索 + 面包屑'];
|
||||
for (const s of stale) {
|
||||
const c = t.split(s).length - 1;
|
||||
console.log(`stale [${s}]: ${c}`);
|
||||
}
|
||||
// 出现“通知中心”的上下文
|
||||
let i = -1, arr = [];
|
||||
while ((i = t.indexOf('通知中心', i + 1)) >= 0) arr.push(t.slice(Math.max(0, i - 25), i + 25).replace(/\n/g, ' '));
|
||||
console.log('通知中心 上下文:');
|
||||
for (const a of arr.slice(0, 8)) console.log(' ...' + a + '...');
|
||||
Reference in new issue
Block a user