Skip to content

Commit 3c8c30a

Browse files
committed
docs(skills): add docstrings to init/update generation entry points
1 parent 74df2d0 commit 3c8c30a

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

src/core/init.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,14 @@ export class InitCommand {
521521
// SKILL & COMMAND GENERATION
522522
// ═══════════════════════════════════════════════════════════
523523

524+
/**
525+
* Generates skill files and slash commands for each selected tool,
526+
* honoring the configured delivery mode (skills, commands, or both).
527+
*
528+
* @param projectPath - Absolute path to the project root
529+
* @param tools - Selected tools with their skill directory metadata
530+
* @returns Created, refreshed, and failed tools plus removed artifact counts
531+
*/
524532
private async generateSkillsAndCommands(
525533
projectPath: string,
526534
tools: Array<{ value: string; name: string; skillsDir: string; wasConfigured: boolean }>

src/core/update.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,12 @@ export class UpdateCommand {
8080
this.force = options.force ?? false;
8181
}
8282

83+
/**
84+
* Refreshes OpenSpec skills and commands for all configured tools,
85+
* regenerating artifacts according to the effective profile and delivery mode.
86+
*
87+
* @param projectPath - Path to the project root containing the openspec directory
88+
*/
8389
async execute(projectPath: string): Promise<void> {
8490
const resolvedProjectPath = path.resolve(projectPath);
8591
const openspecPath = path.join(resolvedProjectPath, OPENSPEC_DIR_NAME);

0 commit comments

Comments
 (0)