Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/improve-help-commands.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"clerk": patch
---

Surface the bundled agent skill in `clerk --help` and bare `clerk` output with a tip pointing to `clerk skill install`, so users discover how to give AI coding agents Clerk context.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ Commands:
completion [shell] Generate shell autocompletion script
update [options] Update the Clerk CLI to the latest version

Give AI agents better Clerk context: install the Clerk skills
$ clerk skill install

clerk init
--framework <name> Framework to set up (skips auto-detection)
--pm <manager> Package manager to use (skips prompt/auto-detection)
Expand Down
8 changes: 7 additions & 1 deletion packages/cli-core/src/cli-program.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,13 @@ export function createProgram() {
"--mode <mode>",
"Force interaction mode (human or agent). Defaults to auto-detect based on TTY.",
)
.option("--verbose", "Show detailed output (enables debug messages)");
.option("--verbose", "Show detailed output (enables debug messages)")
.addHelpText(
"after",
`
Give AI agents better Clerk context: install the Clerk skills
$ clerk skill install`,
);

program.hook("preAction", async () => {
// Reset log level at the start of each command invocation so a previous
Expand Down
Loading