prizmkit 1.0.74 → 1.0.76

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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "frameworkVersion": "1.0.74",
3
- "bundledAt": "2026-03-20T18:26:01.642Z",
4
- "bundledFrom": "dc3403d"
2
+ "frameworkVersion": "1.0.76",
3
+ "bundledAt": "2026-03-20T19:41:43.522Z",
4
+ "bundledFrom": "30fd49b"
5
5
  }
@@ -4,8 +4,8 @@
4
4
  *
5
5
  * Key differences from CodeBuddy agents:
6
6
  * - tools: comma-separated string -> YAML array
7
- * - model: "inherit" -> explicit model name
8
- * - skills: field removed (skills become /slash-commands in body)
7
+ * - model: "inherit" -> explicit model name (or kept as "inherit")
8
+ * - skills: kept as comma-separated string (Claude Code supports it natively)
9
9
  * - TaskCreate/Get/Update/List -> Task (single tool)
10
10
  * - SendMessage -> SendMessage (native Agent Teams communication)
11
11
  */
@@ -41,36 +41,9 @@ export function convertAgent(agentContent, options = {}) {
41
41
  tools = [...new Set(mapped)];
42
42
  }
43
43
 
44
- // Convert skills references in body to slash commands
44
+ // Body content is used as-is no injection or transformation needed.
45
+ // Claude Code natively supports skills in frontmatter and slash commands in body.
45
46
  let convertedBody = body;
46
- if (frontmatter.skills) {
47
- const skillsList = frontmatter.skills.split(',').map(s => s.trim());
48
-
49
- // Add a section about available slash commands
50
- const commandList = skillsList.map(s => `- \`/${s}\``).join('\n');
51
- const commandSection = `\n\n### 可用命令 (Available Slash Commands)\n\n以下 PrizmKit 命令可通过 slash command 调用:\n${commandList}\n`;
52
-
53
- // Insert before the first ### section or at the end of body
54
- const firstH3 = convertedBody.indexOf('\n### ');
55
- if (firstH3 > 0) {
56
- convertedBody = convertedBody.slice(0, firstH3) + commandSection + convertedBody.slice(firstH3);
57
- } else {
58
- convertedBody += commandSection;
59
- }
60
- }
61
-
62
- // Replace "invoke ... skill" with slash command syntax
63
- convertedBody = convertedBody.replace(
64
- /invoke\s+(?:the\s+)?[`"]?(\w[\w-]*)[`"]?\s+skill/gi,
65
- 'run `/$1` command'
66
- );
67
-
68
- // Legacy fallback: replace any remaining prizmkit.xxx shorthand with /prizmkit-xxx
69
- // Core files now use /prizmkit-xxx natively, but this catches any stragglers
70
- convertedBody = convertedBody.replace(
71
- /prizmkit\.(\w+)/g,
72
- (match, sub) => `/prizmkit-${sub.replace(/_/g, '-')}`
73
- );
74
47
 
75
48
  // Build Claude Code frontmatter
76
49
  const claudeFrontmatter = {
@@ -80,6 +53,11 @@ export function convertAgent(agentContent, options = {}) {
80
53
  model: options.model || DEFAULT_MODEL,
81
54
  };
82
55
 
56
+ // Preserve skills field if present (Claude Code supports it natively)
57
+ if (frontmatter.skills) {
58
+ claudeFrontmatter.skills = frontmatter.skills;
59
+ }
60
+
83
61
  return buildMarkdown(claudeFrontmatter, convertedBody);
84
62
  }
85
63
 
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.74",
2
+ "version": "1.0.76",
3
3
  "skills": {
4
4
  "prizm-kit": {
5
5
  "description": "Full-lifecycle dev toolkit. Covers spec-driven development, Prizm context docs, code quality, debugging, deployment, and knowledge management.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prizmkit",
3
- "version": "1.0.74",
3
+ "version": "1.0.76",
4
4
  "description": "Create a new PrizmKit-powered project with clean initialization — no framework dev files, just what you need.",
5
5
  "type": "module",
6
6
  "bin": {