Skip to content

Expose --skill-project-name flag for local --skill-generate #1648

@lopezjurip

Description

@lopezjurip

When generating a skill locally with --skill-generate, the project name in SKILL.md (frontmatter description: and the H1) is always derived from the working-directory basename via generateProjectNametoTitleCase(basename(cwd)).

This is wrong when the cwd is an ephemeral/transient name. In our case the repo is checked out into git worktrees named per-instance (e.g. karachi-v2), so every generated skill leaks Reference codebase for Karachi V2 instead of the actual project name.

The skillProjectName option already exists in the codebase (packSkill.ts: const projectName = skillProjectName ?? generateProjectName(rootDirs)) and defaultAction.ts reads it from cliOptions — but it is only ever populated on the remote path (remoteAction.tsgenerateProjectNameFromUrl). There is no commander .option() for it and it is not in the config schema, so local users cannot set it.

Proposal

Register a --skill-project-name <name> CLI option (and/or an output.skillProjectName config field) that flows into the existing skillProjectName plumbing. Since the wiring already exists, this should be a small change.

Workaround

Post-process SKILL.md + references/*.md after generation to replace the derived name — works, but brittle and should not be necessary given the field already exists internally.

Tested with repomix@^1.14.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions