feat: integrate learning module
Some checks failed
Electron E2E / Electron E2E (macos-latest) (push) Has been cancelled
Electron E2E / Electron E2E (ubuntu-latest) (push) Has been cancelled
Electron E2E / Electron E2E (windows-latest) (push) Has been cancelled

This commit is contained in:
inman
2026-08-16 20:52:16 +08:00
parent 26b52d76e3
commit 01bee3188b
107 changed files with 6318 additions and 12063 deletions

View File

@@ -0,0 +1,17 @@
import { readFile } from 'node:fs/promises';
import path from 'node:path';
import { describe, expect, it } from 'vitest';
describe('planning-with-files Skill', () => {
it('requires planning files directly in the current project root', async () => {
const skill = await readFile(
path.join(process.cwd(), '.opencode', 'skills', 'planning-with-files', 'SKILL.md'),
'utf8',
);
expect(skill).toContain('<current-project-root>/task_plan.md');
expect(skill).toContain('不是本 Skill 的安装目录、进程工作目录、用户主目录');
expect(skill).toContain('直接在当前项目根目录创建三个文件');
expect(skill).toContain('只继续维护根目录文件');
});
});