@guru-ai-product/ai-product-kit 0.2.251113182402 → 0.2.251113185359
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 +45 -1
- package/mcp/skills/aipk_init_project/template/AGENTS_TEMPLATE.md +0 -1
- package/package.json +1 -1
- package/skills/aipk_design/GURU_AI.md +1 -1
- package/skills/aipk_development/GURU_AI.md +1 -1
- package/skills/aipk_init_project/GURU_AI.md +2 -2
- package/skills/aipk_init_project/template/AGENTS_TEMPLATE.md +0 -1
- package/skills/aipk_operations/GURU_AI.md +1 -1
- package/skills/aipk_requirements/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/bin/setup.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const fs = require('node:fs');
|
|
4
4
|
const path = require('node:path');
|
|
5
|
+
const { spawn, spawnSync } = require('node:child_process');
|
|
5
6
|
|
|
6
7
|
const packageRoot = path.resolve(__dirname, '..');
|
|
7
8
|
const bundledSkillsDir = path.join(packageRoot, 'skills');
|
|
@@ -77,7 +78,50 @@ function copyBundledSkills(targetDir) {
|
|
|
77
78
|
}
|
|
78
79
|
}
|
|
79
80
|
|
|
80
|
-
function
|
|
81
|
+
function installOrUpdateOpenskills() {
|
|
82
|
+
return new Promise((resolve, reject) => {
|
|
83
|
+
log('Checking and installing/updating openskills globally...');
|
|
84
|
+
|
|
85
|
+
const child = spawn('npm', ['install', '-g', 'openskills@latest'], {
|
|
86
|
+
stdio: 'pipe',
|
|
87
|
+
shell: true
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
let stdout = '';
|
|
91
|
+
let stderr = '';
|
|
92
|
+
|
|
93
|
+
child.stdout.on('data', (data) => {
|
|
94
|
+
stdout += data.toString();
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
child.stderr.on('data', (data) => {
|
|
98
|
+
stderr += data.toString();
|
|
99
|
+
process.stderr.write(data);
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
child.on('close', (code) => {
|
|
103
|
+
if (code === 0) {
|
|
104
|
+
log('Successfully installed/updated openskills globally.');
|
|
105
|
+
resolve();
|
|
106
|
+
} else {
|
|
107
|
+
if (stdout) log(stdout);
|
|
108
|
+
log('Warning: Failed to install/update openskills globally. Continuing anyway...');
|
|
109
|
+
log('You may need to install it manually: npm install -g openskills');
|
|
110
|
+
resolve(); // 不拒绝,继续执行
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
|
|
114
|
+
child.on('error', (err) => {
|
|
115
|
+
log('Warning: Could not run npm to install openskills. Continuing anyway...');
|
|
116
|
+
log('You may need to install it manually: npm install -g openskills');
|
|
117
|
+
resolve(); // 不拒绝,继续执行
|
|
118
|
+
});
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
async function main() {
|
|
123
|
+
await installOrUpdateOpenskills();
|
|
124
|
+
|
|
81
125
|
assertBundledSkills();
|
|
82
126
|
const targetDir = path.join(process.cwd(), '.claude', 'skills');
|
|
83
127
|
ensureClaudeSkillsDir(targetDir);
|
|
@@ -7,7 +7,6 @@ Write a concise overview of your project here. Keep it brief and scannable.
|
|
|
7
7
|
## Conventions
|
|
8
8
|
|
|
9
9
|
- Keep the `<skills_system>` block intact in Skills mode.
|
|
10
|
-
- In MCP mode, the `<skills_system>` block is not included; use the MCP table.
|
|
11
10
|
|
|
12
11
|
> **Mode**: MCP Server. Agents connect via MCP and invoke the Skill tool with arguments.
|
|
13
12
|
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# GURU AI Snapshot
|
|
2
2
|
|
|
3
|
-
Last refreshed: 2025-11-13T10:
|
|
3
|
+
Last refreshed: 2025-11-13T10:53:59.612Z
|
|
4
4
|
|
|
5
5
|
| File | Last Modified (UTC) |
|
|
6
6
|
| --- | --- |
|
|
7
7
|
| `scripts/check_agents.sh` | 2025-11-13T09:03:47.702Z |
|
|
8
8
|
| `skill.ini` | 2025-11-13T09:47:02.793Z |
|
|
9
9
|
| `SKILL.md` | 2025-11-13T10:06:33.764Z |
|
|
10
|
-
| `template/AGENTS_TEMPLATE.md` | 2025-11-13T10:
|
|
10
|
+
| `template/AGENTS_TEMPLATE.md` | 2025-11-13T10:53:59.570Z |
|
|
@@ -7,7 +7,6 @@ Write a concise overview of your project here. Keep it brief and scannable.
|
|
|
7
7
|
## Conventions
|
|
8
8
|
|
|
9
9
|
- Keep the `<skills_system>` block intact in Skills mode.
|
|
10
|
-
- In MCP mode, the `<skills_system>` block is not included; use the MCP table.
|
|
11
10
|
|
|
12
11
|
> **Mode**: Skills bundle (.claude/skills/). Agents operate inside the project workspace and read templates directly from the downloaded Skill bundle.
|
|
13
12
|
|