@thiagodiogo/pscode 2.0.0 → 2.1.0

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 (49) hide show
  1. package/LICENSE +22 -22
  2. package/README.md +142 -142
  3. package/bin/pscode.js +4 -4
  4. package/dist/commands/feedback.js +4 -4
  5. package/dist/commands/schema.js +60 -60
  6. package/dist/core/collections/initiatives/templates.js +57 -57
  7. package/dist/core/command-generation/adapters/claude.js +8 -8
  8. package/dist/core/command-generation/adapters/codex.js +6 -6
  9. package/dist/core/command-generation/adapters/cursor.js +8 -8
  10. package/dist/core/command-generation/adapters/gemini.js +5 -5
  11. package/dist/core/command-generation/adapters/github-copilot.js +5 -5
  12. package/dist/core/completions/generators/bash-generator.js +41 -41
  13. package/dist/core/completions/generators/fish-generator.js +7 -7
  14. package/dist/core/completions/generators/powershell-generator.js +29 -29
  15. package/dist/core/completions/generators/zsh-generator.js +33 -33
  16. package/dist/core/completions/templates/bash-templates.js +24 -24
  17. package/dist/core/completions/templates/fish-templates.js +38 -38
  18. package/dist/core/completions/templates/powershell-templates.js +28 -28
  19. package/dist/core/completions/templates/zsh-templates.js +39 -39
  20. package/dist/core/profiles.d.ts +1 -1
  21. package/dist/core/profiles.js +1 -1
  22. package/dist/core/templates/workflows/apply-change.js +264 -264
  23. package/dist/core/templates/workflows/archive-change.js +204 -204
  24. package/dist/core/templates/workflows/bulk-archive-change.js +472 -472
  25. package/dist/core/templates/workflows/continue-change.js +214 -214
  26. package/dist/core/templates/workflows/explore.js +735 -735
  27. package/dist/core/templates/workflows/feedback.js +97 -97
  28. package/dist/core/templates/workflows/ff-change.js +180 -180
  29. package/dist/core/templates/workflows/new-change.js +123 -123
  30. package/dist/core/templates/workflows/onboard.js +584 -584
  31. package/dist/core/templates/workflows/propose.js +324 -324
  32. package/dist/core/templates/workflows/trello-draft.js +194 -194
  33. package/dist/core/templates/workflows/trello-next-step-comment.d.ts +26 -0
  34. package/dist/core/templates/workflows/trello-next-step-comment.js +58 -0
  35. package/dist/core/templates/workflows/trello-setup.js +292 -292
  36. package/dist/core/templates/workflows/verify-change.js +318 -318
  37. package/dist/core/workspace/open-surface.js +30 -30
  38. package/package.json +1 -1
  39. package/schemas/spec-driven/schema.yaml +153 -153
  40. package/schemas/spec-driven/templates/design.md +19 -19
  41. package/schemas/spec-driven/templates/proposal.md +23 -23
  42. package/schemas/spec-driven/templates/spec.md +8 -8
  43. package/schemas/spec-driven/templates/tasks.md +9 -9
  44. package/schemas/workspace-planning/schema.yaml +72 -72
  45. package/schemas/workspace-planning/templates/design.md +33 -33
  46. package/schemas/workspace-planning/templates/proposal.md +28 -28
  47. package/schemas/workspace-planning/templates/spec.md +9 -9
  48. package/schemas/workspace-planning/templates/tasks.md +15 -15
  49. package/scripts/postinstall.js +83 -83
package/LICENSE CHANGED
@@ -1,22 +1,22 @@
1
- MIT License
2
-
3
- Copyright (c) 2024 OpenSpec Contributors
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
22
-
1
+ MIT License
2
+
3
+ Copyright (c) 2024 OpenSpec Contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
package/README.md CHANGED
@@ -1,142 +1,142 @@
1
- # pscode
2
-
3
- > Spec-driven, AI-native development workflow CLI
4
-
5
- [![npm](https://img.shields.io/npm/v/@thiagodiogo/pscode)](https://www.npmjs.com/package/@thiagodiogo/pscode)
6
- [![license](https://img.shields.io/npm/l/@thiagodiogo/pscode)](LICENSE)
7
- [![node](https://img.shields.io/node/v/@thiagodiogo/pscode)](https://nodejs.org)
8
-
9
- Pscode installs a planning pipeline inside your repo. Every feature goes through **proposal → specs → design → tasks → apply**, tracked as versioned files and exposed as slash commands to your AI agent.
10
-
11
- ---
12
-
13
- ## Requirements
14
-
15
- - Node.js `>= 20.19.0`
16
- - At least one supported AI tool: **Claude Code**, **Cursor**, **Gemini CLI**, **GitHub Copilot**, or **Codex CLI**
17
-
18
- ---
19
-
20
- ## Install
21
-
22
- ```bash
23
- npm install -g @thiagodiogo/pscode
24
- # or
25
- pnpm add -g @thiagodiogo/pscode
26
- ```
27
-
28
- ---
29
-
30
- ## Quick Start
31
-
32
- ```bash
33
- cd your-project
34
- pscode init
35
- ```
36
-
37
- The init wizard auto-detects which AI tools you have (`.claude/`, `.cursor/`, etc.), installs skill files and slash commands, and creates the planning folder:
38
-
39
- ```
40
- pscode/
41
- ├── changes/ ← one subfolder per active change
42
- │ └── archive/ ← completed changes
43
- ├── specs/ ← project capability specs
44
- └── config.yaml ← local schema config
45
- ```
46
-
47
- Once initialized, use slash commands in your AI agent:
48
-
49
- ```
50
- /ps:propose "add dark mode" ← creates a new change
51
- /ps:continue ← advances to the next artifact
52
- /ps:apply ← applies pending tasks
53
- /ps:complete ← completes a change
54
- ```
55
-
56
- ---
57
-
58
- ## How It Works
59
-
60
- Each change lives in `pscode/changes/<name>/` and follows a DAG of artifacts defined by a workflow schema:
61
-
62
- ```
63
- pscode/changes/dark-mode/
64
- ├── proposal.md ← why this change
65
- ├── specs/ ← what the system must do
66
- ├── design.md ← how to implement it
67
- └── tasks.md ← implementation checklist
68
- ```
69
-
70
- The AI agent reads these files at each step and generates the next artifact using enriched instructions from the schema.
71
-
72
- ---
73
-
74
- ## CLI Reference
75
-
76
- | Command | Description |
77
- |---------|-------------|
78
- | `pscode init [path]` | Initialize Pscode in a project |
79
- | `pscode update [path]` | Regenerate skill/command files after an upgrade |
80
- | `pscode list` | List active changes |
81
- | `pscode list --specs` | List project specs |
82
- | `pscode status` | Show artifact completion for the current change |
83
- | `pscode instructions [artifact]` | Print enriched instructions for an artifact |
84
- | `pscode validate [name]` | Validate a change or spec |
85
- | `pscode validate --all` | Validate everything |
86
- | `pscode show [name]` | Display a change or spec |
87
- | `pscode complete [name]` | Complete a change |
88
- | `pscode new change <name>` | Create a new change directory |
89
- | `pscode schemas` | List available workflow schemas |
90
- | `pscode view` | Interactive dashboard |
91
- | `pscode feedback <message>` | Submit feedback |
92
- | `pscode completion install` | Install shell completions |
93
-
94
- ### `init` options
95
-
96
- | Flag | Description |
97
- |------|-------------|
98
- | `--tools <list>` | Skip interactive selection. Use `all`, `none`, or e.g. `claude,cursor` |
99
- | `--force` | Skip all confirmations (CI-friendly) |
100
- | `--profile <name>` | Workflow profile: `core` (default) or `custom` |
101
-
102
- **Non-interactive example:**
103
-
104
- ```bash
105
- pscode init --tools claude --force
106
- ```
107
-
108
- ---
109
-
110
- ## Supported AI Tools
111
-
112
- | Tool | Skills dir |
113
- |------|-----------|
114
- | Claude Code | `.claude/` |
115
- | Codex CLI | `.codex/` |
116
- | Cursor | `.cursor/` |
117
- | Gemini CLI | `.gemini/` |
118
- | GitHub Copilot | `.github/` |
119
-
120
- ---
121
-
122
- ## Migrating from OpenSpec
123
-
124
- If your project used the old `openspec` tool, `pscode init` detects `.openspec/` automatically and offers to migrate your changes and specs — no manual steps needed.
125
-
126
- ---
127
-
128
- ## After Upgrading
129
-
130
- Re-run `pscode init` (or `pscode update`) to regenerate skill files with the latest instructions:
131
-
132
- ```bash
133
- pscode update
134
- ```
135
-
136
- ---
137
-
138
- ## Links
139
-
140
- - [npm](https://www.npmjs.com/package/@thiagodiogo/pscode)
141
- - [Repository](https://github.com/eipastel/pscode)
142
- - [Issues / Feedback](https://github.com/eipastel/pscode/issues)
1
+ # pscode
2
+
3
+ > Spec-driven, AI-native development workflow CLI
4
+
5
+ [![npm](https://img.shields.io/npm/v/@thiagodiogo/pscode)](https://www.npmjs.com/package/@thiagodiogo/pscode)
6
+ [![license](https://img.shields.io/npm/l/@thiagodiogo/pscode)](LICENSE)
7
+ [![node](https://img.shields.io/node/v/@thiagodiogo/pscode)](https://nodejs.org)
8
+
9
+ Pscode installs a planning pipeline inside your repo. Every feature goes through **proposal → specs → design → tasks → apply**, tracked as versioned files and exposed as slash commands to your AI agent.
10
+
11
+ ---
12
+
13
+ ## Requirements
14
+
15
+ - Node.js `>= 20.19.0`
16
+ - At least one supported AI tool: **Claude Code**, **Cursor**, **Gemini CLI**, **GitHub Copilot**, or **Codex CLI**
17
+
18
+ ---
19
+
20
+ ## Install
21
+
22
+ ```bash
23
+ npm install -g @thiagodiogo/pscode
24
+ # or
25
+ pnpm add -g @thiagodiogo/pscode
26
+ ```
27
+
28
+ ---
29
+
30
+ ## Quick Start
31
+
32
+ ```bash
33
+ cd your-project
34
+ pscode init
35
+ ```
36
+
37
+ The init wizard auto-detects which AI tools you have (`.claude/`, `.cursor/`, etc.), installs skill files and slash commands, and creates the planning folder:
38
+
39
+ ```
40
+ pscode/
41
+ ├── changes/ ← one subfolder per active change
42
+ │ └── archive/ ← completed changes
43
+ ├── specs/ ← project capability specs
44
+ └── config.yaml ← local schema config
45
+ ```
46
+
47
+ Once initialized, use slash commands in your AI agent:
48
+
49
+ ```
50
+ /ps:propose "add dark mode" ← creates a new change
51
+ /ps:continue ← advances to the next artifact
52
+ /ps:apply ← applies pending tasks
53
+ /ps:complete ← completes a change
54
+ ```
55
+
56
+ ---
57
+
58
+ ## How It Works
59
+
60
+ Each change lives in `pscode/changes/<name>/` and follows a DAG of artifacts defined by a workflow schema:
61
+
62
+ ```
63
+ pscode/changes/dark-mode/
64
+ ├── proposal.md ← why this change
65
+ ├── specs/ ← what the system must do
66
+ ├── design.md ← how to implement it
67
+ └── tasks.md ← implementation checklist
68
+ ```
69
+
70
+ The AI agent reads these files at each step and generates the next artifact using enriched instructions from the schema.
71
+
72
+ ---
73
+
74
+ ## CLI Reference
75
+
76
+ | Command | Description |
77
+ |---------|-------------|
78
+ | `pscode init [path]` | Initialize Pscode in a project |
79
+ | `pscode update [path]` | Regenerate skill/command files after an upgrade |
80
+ | `pscode list` | List active changes |
81
+ | `pscode list --specs` | List project specs |
82
+ | `pscode status` | Show artifact completion for the current change |
83
+ | `pscode instructions [artifact]` | Print enriched instructions for an artifact |
84
+ | `pscode validate [name]` | Validate a change or spec |
85
+ | `pscode validate --all` | Validate everything |
86
+ | `pscode show [name]` | Display a change or spec |
87
+ | `pscode complete [name]` | Complete a change |
88
+ | `pscode new change <name>` | Create a new change directory |
89
+ | `pscode schemas` | List available workflow schemas |
90
+ | `pscode view` | Interactive dashboard |
91
+ | `pscode feedback <message>` | Submit feedback |
92
+ | `pscode completion install` | Install shell completions |
93
+
94
+ ### `init` options
95
+
96
+ | Flag | Description |
97
+ |------|-------------|
98
+ | `--tools <list>` | Skip interactive selection. Use `all`, `none`, or e.g. `claude,cursor` |
99
+ | `--force` | Skip all confirmations (CI-friendly) |
100
+ | `--profile <name>` | Workflow profile: `core` (default) or `custom` |
101
+
102
+ **Non-interactive example:**
103
+
104
+ ```bash
105
+ pscode init --tools claude --force
106
+ ```
107
+
108
+ ---
109
+
110
+ ## Supported AI Tools
111
+
112
+ | Tool | Skills dir |
113
+ |------|-----------|
114
+ | Claude Code | `.claude/` |
115
+ | Codex CLI | `.codex/` |
116
+ | Cursor | `.cursor/` |
117
+ | Gemini CLI | `.gemini/` |
118
+ | GitHub Copilot | `.github/` |
119
+
120
+ ---
121
+
122
+ ## Migrating from OpenSpec
123
+
124
+ If your project used the old `openspec` tool, `pscode init` detects `.openspec/` automatically and offers to migrate your changes and specs — no manual steps needed.
125
+
126
+ ---
127
+
128
+ ## After Upgrading
129
+
130
+ Re-run `pscode init` (or `pscode update`) to regenerate skill files with the latest instructions:
131
+
132
+ ```bash
133
+ pscode update
134
+ ```
135
+
136
+ ---
137
+
138
+ ## Links
139
+
140
+ - [npm](https://www.npmjs.com/package/@thiagodiogo/pscode)
141
+ - [Repository](https://github.com/eipastel/pscode)
142
+ - [Issues / Feedback](https://github.com/eipastel/pscode/issues)
package/bin/pscode.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
-
3
- import { runCli } from '../dist/cli/index.js';
4
-
5
- runCli();
2
+
3
+ import { runCli } from '../dist/cli/index.js';
4
+
5
+ runCli();
@@ -59,10 +59,10 @@ function generateMetadata() {
59
59
  const version = getVersion();
60
60
  const platform = getPlatform();
61
61
  const timestamp = getTimestamp();
62
- return `---
63
- Submitted via Pscode CLI
64
- - Version: ${version}
65
- - Platform: ${platform}
62
+ return `---
63
+ Submitted via Pscode CLI
64
+ - Version: ${version}
65
+ - Platform: ${platform}
66
66
  - Timestamp: ${timestamp}`;
67
67
  }
68
68
  /**
@@ -795,74 +795,74 @@ export function registerSchemaCommand(program) {
795
795
  function createDefaultTemplate(artifactId) {
796
796
  switch (artifactId) {
797
797
  case 'proposal':
798
- return `## Why
799
-
800
- <!-- Describe the motivation for this change -->
801
-
802
- ## What Changes
803
-
804
- <!-- Describe what will change -->
805
-
806
- ## Capabilities
807
-
808
- ### New Capabilities
809
- <!-- List new capabilities -->
810
-
811
- ### Modified Capabilities
812
- <!-- List modified capabilities -->
813
-
814
- ## Impact
815
-
816
- <!-- Describe the impact on existing functionality -->
798
+ return `## Why
799
+
800
+ <!-- Describe the motivation for this change -->
801
+
802
+ ## What Changes
803
+
804
+ <!-- Describe what will change -->
805
+
806
+ ## Capabilities
807
+
808
+ ### New Capabilities
809
+ <!-- List new capabilities -->
810
+
811
+ ### Modified Capabilities
812
+ <!-- List modified capabilities -->
813
+
814
+ ## Impact
815
+
816
+ <!-- Describe the impact on existing functionality -->
817
817
  `;
818
818
  case 'specs':
819
- return `## ADDED Requirements
820
-
821
- ### Requirement: Example requirement
822
-
823
- Description of the requirement.
824
-
825
- #### Scenario: Example scenario
826
- - **WHEN** some condition
827
- - **THEN** some outcome
819
+ return `## ADDED Requirements
820
+
821
+ ### Requirement: Example requirement
822
+
823
+ Description of the requirement.
824
+
825
+ #### Scenario: Example scenario
826
+ - **WHEN** some condition
827
+ - **THEN** some outcome
828
828
  `;
829
829
  case 'design':
830
- return `## Context
831
-
832
- <!-- Background and context -->
833
-
834
- ## Goals / Non-Goals
835
-
836
- **Goals:**
837
- <!-- List goals -->
838
-
839
- **Non-Goals:**
840
- <!-- List non-goals -->
841
-
842
- ## Decisions
843
-
844
- ### 1. Decision Name
845
-
846
- Description and rationale.
847
-
848
- **Alternatives considered:**
849
- - Alternative 1: Rejected because...
850
-
851
- ## Risks / Trade-offs
852
-
853
- <!-- List risks and trade-offs -->
830
+ return `## Context
831
+
832
+ <!-- Background and context -->
833
+
834
+ ## Goals / Non-Goals
835
+
836
+ **Goals:**
837
+ <!-- List goals -->
838
+
839
+ **Non-Goals:**
840
+ <!-- List non-goals -->
841
+
842
+ ## Decisions
843
+
844
+ ### 1. Decision Name
845
+
846
+ Description and rationale.
847
+
848
+ **Alternatives considered:**
849
+ - Alternative 1: Rejected because...
850
+
851
+ ## Risks / Trade-offs
852
+
853
+ <!-- List risks and trade-offs -->
854
854
  `;
855
855
  case 'tasks':
856
- return `## Implementation Tasks
857
-
858
- - [ ] Task 1
859
- - [ ] Task 2
860
- - [ ] Task 3
856
+ return `## Implementation Tasks
857
+
858
+ - [ ] Task 1
859
+ - [ ] Task 2
860
+ - [ ] Task 3
861
861
  `;
862
862
  default:
863
- return `## ${artifactId}
864
-
865
- <!-- Add content here -->
863
+ return `## ${artifactId}
864
+
865
+ <!-- Add content here -->
866
866
  `;
867
867
  }
868
868
  }
@@ -3,75 +3,75 @@ function withTrailingNewline(content) {
3
3
  return content.endsWith('\n') ? content : `${content}\n`;
4
4
  }
5
5
  export function buildInitiativeRequirementsTemplate(state) {
6
- return withTrailingNewline(`# Requirements
7
-
8
- ## Product Intent
9
-
10
- ${state.summary}
11
-
12
- ## Accepted Requirements
13
-
14
- - TBD
15
-
16
- ## Out Of Scope
17
-
18
- - TBD
6
+ return withTrailingNewline(`# Requirements
7
+
8
+ ## Product Intent
9
+
10
+ ${state.summary}
11
+
12
+ ## Accepted Requirements
13
+
14
+ - TBD
15
+
16
+ ## Out Of Scope
17
+
18
+ - TBD
19
19
  `);
20
20
  }
21
21
  export function buildInitiativeDesignTemplate(state) {
22
- return withTrailingNewline(`# Design
23
-
24
- ## Context
25
-
26
- ${state.summary}
27
-
28
- ## Approach
29
-
30
- TBD
31
-
32
- ## Affected Areas
33
-
34
- - TBD
35
-
36
- ## Dependencies
37
-
38
- - TBD
39
-
40
- ## Risks
41
-
42
- - TBD
22
+ return withTrailingNewline(`# Design
23
+
24
+ ## Context
25
+
26
+ ${state.summary}
27
+
28
+ ## Approach
29
+
30
+ TBD
31
+
32
+ ## Affected Areas
33
+
34
+ - TBD
35
+
36
+ ## Dependencies
37
+
38
+ - TBD
39
+
40
+ ## Risks
41
+
42
+ - TBD
43
43
  `);
44
44
  }
45
45
  export function buildInitiativeDecisionsTemplate(state) {
46
- return withTrailingNewline(`# Decisions
47
-
48
- ## Accepted Decisions
49
-
50
- ### ${state.created}: ${state.title}
51
-
52
- - Decision: TBD
53
- - Why: TBD
54
- - Implications: TBD
46
+ return withTrailingNewline(`# Decisions
47
+
48
+ ## Accepted Decisions
49
+
50
+ ### ${state.created}: ${state.title}
51
+
52
+ - Decision: TBD
53
+ - Why: TBD
54
+ - Implications: TBD
55
55
  `);
56
56
  }
57
57
  export function buildInitiativeQuestionsTemplate() {
58
- return withTrailingNewline(`# Questions
59
-
60
- ## Open Questions
61
-
62
- - TBD
63
-
64
- ## Resolved Questions
65
-
66
- - TBD
58
+ return withTrailingNewline(`# Questions
59
+
60
+ ## Open Questions
61
+
62
+ - TBD
63
+
64
+ ## Resolved Questions
65
+
66
+ - TBD
67
67
  `);
68
68
  }
69
69
  export function buildInitiativeTasksTemplate() {
70
- return withTrailingNewline(`# Tasks
71
-
72
- ## Coordination Tasks
73
-
74
- - [ ] TBD
70
+ return withTrailingNewline(`# Tasks
71
+
72
+ ## Coordination Tasks
73
+
74
+ - [ ] TBD
75
75
  `);
76
76
  }
77
77
  export function buildDefaultInitiativeFiles(state) {
@@ -36,14 +36,14 @@ export const claudeAdapter = {
36
36
  return path.join('.claude', 'commands', 'ps', `${commandId}.md`);
37
37
  },
38
38
  formatFile(content) {
39
- return `---
40
- name: ${escapeYamlValue(content.name)}
41
- description: ${escapeYamlValue(content.description)}
42
- category: ${escapeYamlValue(content.category)}
43
- tags: ${formatTagsArray(content.tags)}
44
- ---
45
-
46
- ${content.body}
39
+ return `---
40
+ name: ${escapeYamlValue(content.name)}
41
+ description: ${escapeYamlValue(content.description)}
42
+ category: ${escapeYamlValue(content.category)}
43
+ tags: ${formatTagsArray(content.tags)}
44
+ ---
45
+
46
+ ${content.body}
47
47
  `;
48
48
  },
49
49
  };
@@ -27,12 +27,12 @@ export const codexAdapter = {
27
27
  return path.join(getCodexHome(), 'prompts', `ps-${commandId}.md`);
28
28
  },
29
29
  formatFile(content) {
30
- return `---
31
- description: ${content.description}
32
- argument-hint: command arguments
33
- ---
34
-
35
- ${content.body}
30
+ return `---
31
+ description: ${content.description}
32
+ argument-hint: command arguments
33
+ ---
34
+
35
+ ${content.body}
36
36
  `;
37
37
  },
38
38
  };