@guru-ai-product/ai-product-kit 0.2.251118173511 → 0.2.251118174440
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/bin/setup.js +12 -4
- package/package.json +1 -1
- package/skills/aipk_aso-new-release/GURU_AI.md +1 -1
- package/skills/aipk_development/GURU_AI.md +1 -1
- package/skills/aipk_format-requirement-pages-with-design/GURU_AI.md +1 -1
- package/skills/aipk_init_project/GURU_AI.md +2 -2
- package/skills/aipk_initiative-planning/GURU_AI.md +1 -1
- package/skills/aipk_requirements-changes/GURU_AI.md +1 -1
- package/skills/aipk_requirements-documentation/GURU_AI.md +2 -2
- package/skills/aipk_requirements-documentation/SKILL.md +2 -0
- package/skills/aipk_requirements-intake/GURU_AI.md +1 -1
- package/skills/aipk_skill_generate/GURU_AI.md +1 -1
- package/skills/aipk_tool_prompts/GURU_AI.md +1 -1
- package/skills/aipk_update-requirements-from-design/GURU_AI.md +1 -1
package/bin/setup.js
CHANGED
|
@@ -281,9 +281,15 @@ function mergeAgentsContent(existingContent, newTemplate) {
|
|
|
281
281
|
return parts.join('\n\n').trim() + '\n';
|
|
282
282
|
}
|
|
283
283
|
|
|
284
|
+
function findProjectOverviewIndex(text) {
|
|
285
|
+
const h2Index = text.indexOf('## Project Overview');
|
|
286
|
+
if (h2Index !== -1) return h2Index;
|
|
287
|
+
return text.indexOf('# Project Overview');
|
|
288
|
+
}
|
|
289
|
+
|
|
284
290
|
function parseTemplate(template) {
|
|
285
291
|
const parts = {};
|
|
286
|
-
const projectOverviewIndex = template
|
|
292
|
+
const projectOverviewIndex = findProjectOverviewIndex(template);
|
|
287
293
|
const conventionsIndex = template.indexOf('## Conventions');
|
|
288
294
|
const skillsBundleAccessIndex = template.indexOf('## Skills Bundle Access');
|
|
289
295
|
let skillsSystemIndex = template.indexOf('<skills_system priority');
|
|
@@ -335,7 +341,7 @@ function parseTemplate(template) {
|
|
|
335
341
|
function parseExistingContent(content) {
|
|
336
342
|
const parts = {};
|
|
337
343
|
|
|
338
|
-
const projectOverviewStart = content.search(
|
|
344
|
+
const projectOverviewStart = content.search(/##? Project Overview/);
|
|
339
345
|
if (projectOverviewStart === -1) {
|
|
340
346
|
const beforeConventions = content.split(/## Conventions|<skills_system/)[0].trim();
|
|
341
347
|
if (beforeConventions) {
|
|
@@ -348,9 +354,11 @@ function parseExistingContent(content) {
|
|
|
348
354
|
parts.beforeProjectOverview = content.substring(0, projectOverviewStart).trim();
|
|
349
355
|
}
|
|
350
356
|
|
|
351
|
-
const projectOverviewMatch = content
|
|
357
|
+
const projectOverviewMatch = content
|
|
358
|
+
.substring(projectOverviewStart)
|
|
359
|
+
.match(/((?:##|#) Project Overview\s*\n[\s\S]*?)(?=\n## Conventions|<skills_system|$)/);
|
|
352
360
|
if (projectOverviewMatch) {
|
|
353
|
-
parts.projectOverview =
|
|
361
|
+
parts.projectOverview = projectOverviewMatch[1].trim();
|
|
354
362
|
}
|
|
355
363
|
|
|
356
364
|
const ruleCommentMatch = content.match(/<!-- rule:[\s\S]*?-->/);
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# GURU AI Snapshot
|
|
2
2
|
|
|
3
|
-
Last refreshed: 2025-11-18T09:
|
|
3
|
+
Last refreshed: 2025-11-18T09:44:40.735Z
|
|
4
4
|
|
|
5
5
|
| File | Last Modified (UTC) |
|
|
6
6
|
| --- | --- |
|
|
7
7
|
| `scripts/check_agents.sh` | 2025-11-13T09:03:47.000Z |
|
|
8
8
|
| `skill.ini` | 2025-11-13T09:47:02.000Z |
|
|
9
9
|
| `SKILL.md` | 2025-11-17T13:24:45.000Z |
|
|
10
|
-
| `template/AGENTS_TEMPLATE.md` | 2025-11-18T09:
|
|
10
|
+
| `template/AGENTS_TEMPLATE.md` | 2025-11-18T09:44:40.639Z |
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# GURU AI Snapshot
|
|
2
2
|
|
|
3
|
-
Last refreshed: 2025-11-18T09:
|
|
3
|
+
Last refreshed: 2025-11-18T09:44:40.735Z
|
|
4
4
|
|
|
5
5
|
| File | Last Modified (UTC) |
|
|
6
6
|
| --- | --- |
|
|
7
|
-
| `SKILL.md` | 2025-11-
|
|
7
|
+
| `SKILL.md` | 2025-11-18T09:41:53.000Z |
|
|
8
8
|
| `template/1_产品定位与分析.md` | 2025-11-17T06:49:33.000Z |
|
|
9
9
|
| `template/2_功能需求.md` | 2025-11-17T06:49:38.000Z |
|
|
10
10
|
| `template/3_商业化策略.md` | 2025-11-17T06:43:53.000Z |
|
|
@@ -696,6 +696,8 @@ graph TD
|
|
|
696
696
|
- **备选方案**:如果项目中没有 `docs` 文件夹,则在项目根目录下创建 `requirements` 文件夹
|
|
697
697
|
- 在 `requirements` 文件夹下创建版本文件夹(默认为 `v1.0.0`)
|
|
698
698
|
- 将所有需求文档文件放置在对应的版本文件夹下
|
|
699
|
+
- **Draft 输出要求**:所有草稿类文档(如 `Draft_产品需求草稿.md`、`Draft_用户旅程草稿.md`)必须存放在对应版本文件夹内的 `draft/` 子文件夹中,例如 `skills/aipk_requirements-documentation/v1.0.0/draft/`
|
|
700
|
+
- **版本命名规范**:版本文件夹必须使用 `vX.X.X` 的语义化格式(`X` 为数字,例如 `v0.0.0`、`v1.2.0`),禁止出现 `v1` 或 `version1` 等非标准命名,方便后续自动化脚本识别
|
|
699
701
|
|
|
700
702
|
**文件夹结构初始化流程**:
|
|
701
703
|
|