Skip to content

Move sync marker to end of generated command files so Claude CLI preview shows useful text #4

@sebastientaggart

Description

@sebastientaggart

Problem

When Claude CLI lists available slash commands, it shows a short preview of the first line of each command file. Currently, the first line of every generated file is the sync marker comment:

<!-- generated by CodeCanon/sync.sh | skill: start | adapter: claude | hash: 24909c1a | DO NOT EDIT -->

This means the preview looks like:

/start   <!-- generated by CodeCanon/sync.sh | skill: start | adapter: claude | hash: 24909c1a | DO NOT ED...
/ship    <!-- generated by CodeCanon/sync.sh | skill: ship | adapter: claude | hash: 3a68d170 | DO NOT EDI...

Instead of showing something useful about what the command does.

Solution

Move the sync marker comment from the first line to the last line of the generated file. This way the preview will show the invocation header (e.g., "You are executing the /start skill...") which is more meaningful.

Impact

  • All generated command files will have the marker at the end instead of the beginning
  • The sync hash detection logic needs to check the last line instead of the first
  • No functional change to how skills work — purely a cosmetic/UX improvement

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions