@ias-ai/zhima-spec 1.3.6 → 1.3.9

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.
Files changed (64) hide show
  1. package/LICENSE +22 -22
  2. package/README.md +206 -206
  3. package/bin/zhima.js +1 -1
  4. package/dist/commands/feedback.js +4 -4
  5. package/dist/commands/schema.js +60 -60
  6. package/dist/core/command-generation/adapters/amazon-q.js +5 -5
  7. package/dist/core/command-generation/adapters/antigravity.js +5 -5
  8. package/dist/core/command-generation/adapters/auggie.js +6 -6
  9. package/dist/core/command-generation/adapters/bob.js +6 -6
  10. package/dist/core/command-generation/adapters/claude.js +8 -8
  11. package/dist/core/command-generation/adapters/cline.js +5 -5
  12. package/dist/core/command-generation/adapters/codebuddy.js +7 -7
  13. package/dist/core/command-generation/adapters/codex.js +6 -6
  14. package/dist/core/command-generation/adapters/continue.js +7 -7
  15. package/dist/core/command-generation/adapters/costrict.js +6 -6
  16. package/dist/core/command-generation/adapters/crush.js +8 -8
  17. package/dist/core/command-generation/adapters/cursor.js +8 -8
  18. package/dist/core/command-generation/adapters/factory.js +6 -6
  19. package/dist/core/command-generation/adapters/gemini.js +5 -5
  20. package/dist/core/command-generation/adapters/github-copilot.js +5 -5
  21. package/dist/core/command-generation/adapters/iflow.js +8 -8
  22. package/dist/core/command-generation/adapters/index.d.ts +1 -0
  23. package/dist/core/command-generation/adapters/index.js +1 -0
  24. package/dist/core/command-generation/adapters/junie.js +5 -5
  25. package/dist/core/command-generation/adapters/kilocode.js +1 -1
  26. package/dist/core/command-generation/adapters/kiro.js +5 -5
  27. package/dist/core/command-generation/adapters/lingma.js +8 -8
  28. package/dist/core/command-generation/adapters/opencode.js +5 -5
  29. package/dist/core/command-generation/adapters/pi.js +5 -5
  30. package/dist/core/command-generation/adapters/qoder.js +8 -8
  31. package/dist/core/command-generation/adapters/qwen.js +5 -5
  32. package/dist/core/command-generation/adapters/roocode.js +5 -5
  33. package/dist/core/command-generation/adapters/vjsp.d.ts +1 -1
  34. package/dist/core/command-generation/adapters/vjsp.js +8 -8
  35. package/dist/core/command-generation/adapters/windsurf.js +8 -8
  36. package/dist/core/command-generation/adapters/zcode.d.ts +13 -0
  37. package/dist/core/command-generation/adapters/zcode.js +27 -0
  38. package/dist/core/command-generation/registry.js +4 -0
  39. package/dist/core/completions/generators/bash-generator.js +41 -41
  40. package/dist/core/completions/generators/fish-generator.js +7 -7
  41. package/dist/core/completions/generators/powershell-generator.js +29 -29
  42. package/dist/core/completions/generators/zsh-generator.js +33 -33
  43. package/dist/core/completions/templates/bash-templates.js +24 -24
  44. package/dist/core/completions/templates/fish-templates.js +38 -38
  45. package/dist/core/completions/templates/powershell-templates.js +28 -28
  46. package/dist/core/completions/templates/zsh-templates.js +39 -39
  47. package/dist/core/config.js +1 -0
  48. package/dist/core/shared/skill-generation.js +12 -12
  49. package/dist/core/templates/workflows/apply-change.js +294 -294
  50. package/dist/core/templates/workflows/archive-change.js +257 -257
  51. package/dist/core/templates/workflows/bulk-archive-change.js +472 -472
  52. package/dist/core/templates/workflows/continue-change.js +214 -214
  53. package/dist/core/templates/workflows/explore.js +439 -439
  54. package/dist/core/templates/workflows/feedback.js +97 -97
  55. package/dist/core/templates/workflows/ff-change.js +180 -180
  56. package/dist/core/templates/workflows/new-change.js +123 -123
  57. package/dist/core/templates/workflows/onboard.js +540 -540
  58. package/dist/core/templates/workflows/propose.js +198 -198
  59. package/dist/core/templates/workflows/sync-specs.js +270 -270
  60. package/dist/core/templates/workflows/verify-change.js +318 -318
  61. package/dist/core/workspace/open-surface.js +11 -11
  62. package/package.json +82 -82
  63. package/schemas/spec-driven/schema.yaml +153 -153
  64. package/schemas/spec-driven/templates/proposal.md +23 -23
@@ -25,47 +25,47 @@ export class BashGenerator {
25
25
  // Dynamic completion helpers from template
26
26
  const helpers = BASH_DYNAMIC_HELPERS;
27
27
  // Assemble final script with template literal
28
- return `# Bash completion script for ZhiMa CLI
29
- # Auto-generated - do not edit manually
30
-
31
- _zhima_completion() {
32
- local cur prev words cword
33
-
34
- # Use _init_completion if available (from bash-completion package)
35
- # The -n : option prevents colons from being treated as word separators
36
- # (important for spec/change IDs that may contain colons)
37
- # Otherwise, fall back to manual initialization
38
- if declare -F _init_completion >/dev/null 2>&1; then
39
- _init_completion -n : || return
40
- else
41
- # Manual fallback when bash-completion is not installed
42
- COMPREPLY=()
43
- cur="\${COMP_WORDS[COMP_CWORD]}"
44
- prev="\${COMP_WORDS[COMP_CWORD-1]}"
45
- words=("\${COMP_WORDS[@]}")
46
- cword=$COMP_CWORD
47
- fi
48
-
49
- local cmd="\${words[1]}"
50
- local subcmd="\${words[2]}"
51
-
52
- # Top-level commands
53
- if [[ $cword -eq 1 ]]; then
54
- local commands="${commandList}"
55
- COMPREPLY=($(compgen -W "$commands" -- "$cur"))
56
- return 0
57
- fi
58
-
59
- # Command-specific completion
60
- case "$cmd" in
61
- ${commandCases}
62
- esac
63
-
64
- return 0
65
- }
66
-
67
- ${helpers}
68
- complete -F _zhima_completion zhima
28
+ return `# Bash completion script for ZhiMa CLI
29
+ # Auto-generated - do not edit manually
30
+
31
+ _zhima_completion() {
32
+ local cur prev words cword
33
+
34
+ # Use _init_completion if available (from bash-completion package)
35
+ # The -n : option prevents colons from being treated as word separators
36
+ # (important for spec/change IDs that may contain colons)
37
+ # Otherwise, fall back to manual initialization
38
+ if declare -F _init_completion >/dev/null 2>&1; then
39
+ _init_completion -n : || return
40
+ else
41
+ # Manual fallback when bash-completion is not installed
42
+ COMPREPLY=()
43
+ cur="\${COMP_WORDS[COMP_CWORD]}"
44
+ prev="\${COMP_WORDS[COMP_CWORD-1]}"
45
+ words=("\${COMP_WORDS[@]}")
46
+ cword=$COMP_CWORD
47
+ fi
48
+
49
+ local cmd="\${words[1]}"
50
+ local subcmd="\${words[2]}"
51
+
52
+ # Top-level commands
53
+ if [[ $cword -eq 1 ]]; then
54
+ local commands="${commandList}"
55
+ COMPREPLY=($(compgen -W "$commands" -- "$cur"))
56
+ return 0
57
+ fi
58
+
59
+ # Command-specific completion
60
+ case "$cmd" in
61
+ ${commandCases}
62
+ esac
63
+
64
+ return 0
65
+ }
66
+
67
+ ${helpers}
68
+ complete -F _zhima_completion zhima
69
69
  `;
70
70
  }
71
71
  /**
@@ -31,13 +31,13 @@ export class FishGenerator {
31
31
  // Dynamic completion helpers from template
32
32
  const dynamicHelpers = FISH_DYNAMIC_HELPERS;
33
33
  // Assemble final script with template literal
34
- return `# Fish completion script for ZhiMa CLI
35
- # Auto-generated - do not edit manually
36
-
37
- ${helperFunctions}
38
- ${dynamicHelpers}
39
- ${topLevelCommands}
40
-
34
+ return `# Fish completion script for ZhiMa CLI
35
+ # Auto-generated - do not edit manually
36
+
37
+ ${helperFunctions}
38
+ ${dynamicHelpers}
39
+ ${topLevelCommands}
40
+
41
41
  ${commandCompletions}`;
42
42
  }
43
43
  /**
@@ -35,35 +35,35 @@ export class PowerShellGenerator {
35
35
  // Dynamic completion helpers from template
36
36
  const helpers = POWERSHELL_DYNAMIC_HELPERS;
37
37
  // Assemble final script with template literal
38
- return `# PowerShell completion script for ZhiMa CLI
39
- # Auto-generated - do not edit manually
40
-
41
- ${helpers}
42
- $zhimaCompleter = {
43
- param($wordToComplete, $commandAst, $cursorPosition)
44
-
45
- $tokens = $commandAst.ToString() -split "\\s+"
46
- $commandCount = ($tokens | Measure-Object).Count
47
-
48
- # Top-level commands
49
- if ($commandCount -eq 1 -or ($commandCount -eq 2 -and $wordToComplete)) {
50
- $commands = @(
51
- ${topLevelCommands}
52
- )
53
- $commands | Where-Object { $_.Name -like "$wordToComplete*" } | ForEach-Object {
54
- [System.Management.Automation.CompletionResult]::new($_.Name, $_.Name, "ParameterValue", $_.Description)
55
- }
56
- return
57
- }
58
-
59
- $command = $tokens[1]
60
-
61
- switch ($command) {
62
- ${commandCases}
63
- }
64
- }
65
-
66
- Register-ArgumentCompleter -CommandName zhima -ScriptBlock $zhimaCompleter
38
+ return `# PowerShell completion script for ZhiMa CLI
39
+ # Auto-generated - do not edit manually
40
+
41
+ ${helpers}
42
+ $zhimaCompleter = {
43
+ param($wordToComplete, $commandAst, $cursorPosition)
44
+
45
+ $tokens = $commandAst.ToString() -split "\\s+"
46
+ $commandCount = ($tokens | Measure-Object).Count
47
+
48
+ # Top-level commands
49
+ if ($commandCount -eq 1 -or ($commandCount -eq 2 -and $wordToComplete)) {
50
+ $commands = @(
51
+ ${topLevelCommands}
52
+ )
53
+ $commands | Where-Object { $_.Name -like "$wordToComplete*" } | ForEach-Object {
54
+ [System.Management.Automation.CompletionResult]::new($_.Name, $_.Name, "ParameterValue", $_.Description)
55
+ }
56
+ return
57
+ }
58
+
59
+ $command = $tokens[1]
60
+
61
+ switch ($command) {
62
+ ${commandCases}
63
+ }
64
+ }
65
+
66
+ Register-ArgumentCompleter -CommandName zhima -ScriptBlock $zhimaCompleter
67
67
  `;
68
68
  }
69
69
  /**
@@ -37,39 +37,39 @@ export class ZshGenerator {
37
37
  // Dynamic completion helpers from template
38
38
  const helpers = ZSH_DYNAMIC_HELPERS;
39
39
  // Assemble final script with template literal
40
- return `#compdef zhima
41
-
42
- # Zsh completion script for ZhiMa CLI
43
- # Auto-generated - do not edit manually
44
-
45
- _zhima() {
46
- local context state line
47
- typeset -A opt_args
48
-
49
- local -a commands
50
- commands=(
51
- ${commandList}
52
- )
53
-
54
- _arguments -C \\
55
- "1: :->command" \\
56
- "*::arg:->args"
57
-
58
- case $state in
59
- command)
60
- _describe "zhima command" commands
61
- ;;
62
- args)
63
- case $words[1] in
64
- ${commandCases}
65
- esac
66
- ;;
67
- esac
68
- }
69
-
70
- ${commandFunctions}
71
- ${helpers}
72
- compdef _zhima zhima
40
+ return `#compdef zhima
41
+
42
+ # Zsh completion script for ZhiMa CLI
43
+ # Auto-generated - do not edit manually
44
+
45
+ _zhima() {
46
+ local context state line
47
+ typeset -A opt_args
48
+
49
+ local -a commands
50
+ commands=(
51
+ ${commandList}
52
+ )
53
+
54
+ _arguments -C \\
55
+ "1: :->command" \\
56
+ "*::arg:->args"
57
+
58
+ case $state in
59
+ command)
60
+ _describe "zhima command" commands
61
+ ;;
62
+ args)
63
+ case $words[1] in
64
+ ${commandCases}
65
+ esac
66
+ ;;
67
+ esac
68
+ }
69
+
70
+ ${commandFunctions}
71
+ ${helpers}
72
+ compdef _zhima zhima
73
73
  `;
74
74
  }
75
75
  /**
@@ -2,29 +2,29 @@
2
2
  * Static template strings for Bash completion scripts.
3
3
  * These are Bash-specific helper functions that never change.
4
4
  */
5
- export const BASH_DYNAMIC_HELPERS = `# Dynamic completion helpers
6
-
7
- _zhima_complete_changes() {
8
- local changes
9
- changes=$(zhima __complete changes 2>/dev/null | cut -f1)
10
- COMPREPLY=($(compgen -W "$changes" -- "$cur"))
11
- }
12
-
13
- _zhima_complete_specs() {
14
- local specs
15
- specs=$(zhima __complete specs 2>/dev/null | cut -f1)
16
- COMPREPLY=($(compgen -W "$specs" -- "$cur"))
17
- }
18
-
19
- _zhima_complete_items() {
20
- local items
21
- items=$(zhima __complete changes 2>/dev/null | cut -f1; zhima __complete specs 2>/dev/null | cut -f1)
22
- COMPREPLY=($(compgen -W "$items" -- "$cur"))
23
- }
24
-
25
- _zhima_complete_schemas() {
26
- local schemas
27
- schemas=$(zhima __complete schemas 2>/dev/null | cut -f1)
28
- COMPREPLY=($(compgen -W "$schemas" -- "$cur"))
5
+ export const BASH_DYNAMIC_HELPERS = `# Dynamic completion helpers
6
+
7
+ _zhima_complete_changes() {
8
+ local changes
9
+ changes=$(zhima __complete changes 2>/dev/null | cut -f1)
10
+ COMPREPLY=($(compgen -W "$changes" -- "$cur"))
11
+ }
12
+
13
+ _zhima_complete_specs() {
14
+ local specs
15
+ specs=$(zhima __complete specs 2>/dev/null | cut -f1)
16
+ COMPREPLY=($(compgen -W "$specs" -- "$cur"))
17
+ }
18
+
19
+ _zhima_complete_items() {
20
+ local items
21
+ items=$(zhima __complete changes 2>/dev/null | cut -f1; zhima __complete specs 2>/dev/null | cut -f1)
22
+ COMPREPLY=($(compgen -W "$items" -- "$cur"))
23
+ }
24
+
25
+ _zhima_complete_schemas() {
26
+ local schemas
27
+ schemas=$(zhima __complete schemas 2>/dev/null | cut -f1)
28
+ COMPREPLY=($(compgen -W "$schemas" -- "$cur"))
29
29
  }`;
30
30
  //# sourceMappingURL=bash-templates.js.map
@@ -2,44 +2,44 @@
2
2
  * Static template strings for Fish completion scripts.
3
3
  * These are Fish-specific helper functions that never change.
4
4
  */
5
- export const FISH_STATIC_HELPERS = `# Helper function to check if a subcommand is present
6
- function __fish_zhima_using_subcommand
7
- set -l cmd (commandline -opc)
8
- set -e cmd[1]
9
- for i in $argv
10
- if contains -- $i $cmd
11
- return 0
12
- end
13
- end
14
- return 1
15
- end
16
-
17
- function __fish_zhima_no_subcommand
18
- set -l cmd (commandline -opc)
19
- test (count $cmd) -eq 1
5
+ export const FISH_STATIC_HELPERS = `# Helper function to check if a subcommand is present
6
+ function __fish_zhima_using_subcommand
7
+ set -l cmd (commandline -opc)
8
+ set -e cmd[1]
9
+ for i in $argv
10
+ if contains -- $i $cmd
11
+ return 0
12
+ end
13
+ end
14
+ return 1
15
+ end
16
+
17
+ function __fish_zhima_no_subcommand
18
+ set -l cmd (commandline -opc)
19
+ test (count $cmd) -eq 1
20
20
  end`;
21
- export const FISH_DYNAMIC_HELPERS = `# Dynamic completion helpers
22
-
23
- function __fish_zhima_changes
24
- zhima __complete changes 2>/dev/null | while read -l id desc
25
- printf '%s\\t%s\\n' "$id" "$desc"
26
- end
27
- end
28
-
29
- function __fish_zhima_specs
30
- zhima __complete specs 2>/dev/null | while read -l id desc
31
- printf '%s\\t%s\\n' "$id" "$desc"
32
- end
33
- end
34
-
35
- function __fish_zhima_items
36
- __fish_zhima_changes
37
- __fish_zhima_specs
38
- end
39
-
40
- function __fish_zhima_schemas
41
- zhima __complete schemas 2>/dev/null | while read -l id desc
42
- printf '%s\\t%s\\n' "$id" "$desc"
43
- end
21
+ export const FISH_DYNAMIC_HELPERS = `# Dynamic completion helpers
22
+
23
+ function __fish_zhima_changes
24
+ zhima __complete changes 2>/dev/null | while read -l id desc
25
+ printf '%s\\t%s\\n' "$id" "$desc"
26
+ end
27
+ end
28
+
29
+ function __fish_zhima_specs
30
+ zhima __complete specs 2>/dev/null | while read -l id desc
31
+ printf '%s\\t%s\\n' "$id" "$desc"
32
+ end
33
+ end
34
+
35
+ function __fish_zhima_items
36
+ __fish_zhima_changes
37
+ __fish_zhima_specs
38
+ end
39
+
40
+ function __fish_zhima_schemas
41
+ zhima __complete schemas 2>/dev/null | while read -l id desc
42
+ printf '%s\\t%s\\n' "$id" "$desc"
43
+ end
44
44
  end`;
45
45
  //# sourceMappingURL=fish-templates.js.map
@@ -2,33 +2,33 @@
2
2
  * Static template strings for PowerShell completion scripts.
3
3
  * These are PowerShell-specific helper functions that never change.
4
4
  */
5
- export const POWERSHELL_DYNAMIC_HELPERS = `# Dynamic completion helpers
6
-
7
- function Get-ZhiMaChanges {
8
- $output = zhima __complete changes 2>$null
9
- if ($output) {
10
- $output | ForEach-Object {
11
- ($_ -split "\\t")[0]
12
- }
13
- }
14
- }
15
-
16
- function Get-ZhiMaSpecs {
17
- $output = zhima __complete specs 2>$null
18
- if ($output) {
19
- $output | ForEach-Object {
20
- ($_ -split "\\t")[0]
21
- }
22
- }
23
- }
24
-
25
- function Get-ZhiMaSchemas {
26
- $output = zhima __complete schemas 2>$null
27
- if ($output) {
28
- $output | ForEach-Object {
29
- ($_ -split "\\t")[0]
30
- }
31
- }
32
- }
5
+ export const POWERSHELL_DYNAMIC_HELPERS = `# Dynamic completion helpers
6
+
7
+ function Get-ZhiMaChanges {
8
+ $output = zhima __complete changes 2>$null
9
+ if ($output) {
10
+ $output | ForEach-Object {
11
+ ($_ -split "\\t")[0]
12
+ }
13
+ }
14
+ }
15
+
16
+ function Get-ZhiMaSpecs {
17
+ $output = zhima __complete specs 2>$null
18
+ if ($output) {
19
+ $output | ForEach-Object {
20
+ ($_ -split "\\t")[0]
21
+ }
22
+ }
23
+ }
24
+
25
+ function Get-ZhiMaSchemas {
26
+ $output = zhima __complete schemas 2>$null
27
+ if ($output) {
28
+ $output | ForEach-Object {
29
+ ($_ -split "\\t")[0]
30
+ }
31
+ }
32
+ }
33
33
  `;
34
34
  //# sourceMappingURL=powershell-templates.js.map
@@ -2,44 +2,44 @@
2
2
  * Static template strings for Zsh completion scripts.
3
3
  * These are Zsh-specific helper functions that never change.
4
4
  */
5
- export const ZSH_DYNAMIC_HELPERS = `# Dynamic completion helpers
6
-
7
- # Use zhima __complete to get available changes
8
- _zhima_complete_changes() {
9
- local -a changes
10
- while IFS=$'\\t' read -r id desc; do
11
- changes+=("$id:$desc")
12
- done < <(zhima __complete changes 2>/dev/null)
13
- _describe "change" changes
14
- }
15
-
16
- # Use zhima __complete to get available specs
17
- _zhima_complete_specs() {
18
- local -a specs
19
- while IFS=$'\\t' read -r id desc; do
20
- specs+=("$id:$desc")
21
- done < <(zhima __complete specs 2>/dev/null)
22
- _describe "spec" specs
23
- }
24
-
25
- # Get both changes and specs
26
- _zhima_complete_items() {
27
- local -a items
28
- while IFS=$'\\t' read -r id desc; do
29
- items+=("$id:$desc")
30
- done < <(zhima __complete changes 2>/dev/null)
31
- while IFS=$'\\t' read -r id desc; do
32
- items+=("$id:$desc")
33
- done < <(zhima __complete specs 2>/dev/null)
34
- _describe "item" items
35
- }
36
-
37
- # Use zhima __complete to get available schemas
38
- _zhima_complete_schemas() {
39
- local -a schemas
40
- while IFS=$'\\t' read -r id desc; do
41
- schemas+=("$id:$desc")
42
- done < <(zhima __complete schemas 2>/dev/null)
43
- _describe "schema" schemas
5
+ export const ZSH_DYNAMIC_HELPERS = `# Dynamic completion helpers
6
+
7
+ # Use zhima __complete to get available changes
8
+ _zhima_complete_changes() {
9
+ local -a changes
10
+ while IFS=$'\\t' read -r id desc; do
11
+ changes+=("$id:$desc")
12
+ done < <(zhima __complete changes 2>/dev/null)
13
+ _describe "change" changes
14
+ }
15
+
16
+ # Use zhima __complete to get available specs
17
+ _zhima_complete_specs() {
18
+ local -a specs
19
+ while IFS=$'\\t' read -r id desc; do
20
+ specs+=("$id:$desc")
21
+ done < <(zhima __complete specs 2>/dev/null)
22
+ _describe "spec" specs
23
+ }
24
+
25
+ # Get both changes and specs
26
+ _zhima_complete_items() {
27
+ local -a items
28
+ while IFS=$'\\t' read -r id desc; do
29
+ items+=("$id:$desc")
30
+ done < <(zhima __complete changes 2>/dev/null)
31
+ while IFS=$'\\t' read -r id desc; do
32
+ items+=("$id:$desc")
33
+ done < <(zhima __complete specs 2>/dev/null)
34
+ _describe "item" items
35
+ }
36
+
37
+ # Use zhima __complete to get available schemas
38
+ _zhima_complete_schemas() {
39
+ local -a schemas
40
+ while IFS=$'\\t' read -r id desc; do
41
+ schemas+=("$id:$desc")
42
+ done < <(zhima __complete schemas 2>/dev/null)
43
+ _describe "schema" schemas
44
44
  }`;
45
45
  //# sourceMappingURL=zsh-templates.js.map
@@ -35,6 +35,7 @@ export const AI_TOOLS = [
35
35
  { name: 'Trae', value: 'trae', available: true, successLabel: 'Trae', skillsDir: '.trae' },
36
36
  { name: 'Windsurf', value: 'windsurf', available: true, successLabel: 'Windsurf', skillsDir: '.windsurf' },
37
37
  { name: 'VJSP', value: 'vjsp', available: true, successLabel: 'VJSP', skillsDir: '.vjsp' },
38
+ { name: 'Z-Code', value: 'zcode', available: true, successLabel: 'Z-Code', skillsDir: '.zcode' },
38
39
  { name: 'AGENTS.md (works with Amp, VS Code, …)', value: 'agents', available: false, successLabel: 'your AGENTS.md-compatible assistant' }
39
40
  ];
40
41
  //# sourceMappingURL=config.js.map
@@ -79,18 +79,18 @@ export function generateSkillContent(template, generatedByVersion, transformInst
79
79
  const instructions = transformInstructions
80
80
  ? transformInstructions(template.instructions)
81
81
  : template.instructions;
82
- return `---
83
- name: ${template.name}
84
- description: ${template.description}
85
- license: ${template.license || 'MIT'}
86
- compatibility: ${template.compatibility || 'Requires zhima CLI.'}
87
- metadata:
88
- author: ${template.metadata?.author || 'zhima'}
89
- version: "${template.metadata?.version || '1.0'}"
90
- generatedBy: "${generatedByVersion}"
91
- ---
92
-
93
- ${instructions}
82
+ return `---
83
+ name: ${template.name}
84
+ description: ${template.description}
85
+ license: ${template.license || 'MIT'}
86
+ compatibility: ${template.compatibility || 'Requires zhima CLI.'}
87
+ metadata:
88
+ author: ${template.metadata?.author || 'zhima'}
89
+ version: "${template.metadata?.version || '1.0'}"
90
+ generatedBy: "${generatedByVersion}"
91
+ ---
92
+
93
+ ${instructions}
94
94
  `;
95
95
  }
96
96
  //# sourceMappingURL=skill-generation.js.map