GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(skills): support names beginning with digits by amiralibg · Pull Request #9244 · pingdotgg/t3code

fix(skills): support names beginning with digits #9244

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Sign up for GitHub

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
juliusmarminge merged 6 commits into pingdotgg:main from amiralibg:fix/9235-numeric-skill-names
Sep 5, 2026

Uh oh!

There was an error while loading. Please reload this page.

Merged

fix(skills): support names beginning with digits #9244

Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit Hold shift + click to select a range
86e65d8
fix(skills): support names beginning with digits
amiralibg Sep 2, 2026
44063c5
fix(skills): keep digits-only $tokens as prose
amiralibg Sep 3, 2026
06a66a0
fix(skills): keep compact currency and numeric expressions as prose
amiralibg Sep 3, 2026
2140c58
Merge remote-tracking branch 'origin/main' into audit/prepare-pr-9244
juliusmarminge Sep 4, 2026
e057922
fix(skills): keep Cursor numeric invocations aligned with composer
juliusmarminge Sep 4, 2026
6187c7a
Merge remote-tracking branch 'origin/main' into audit/prepare-pr-9244
juliusmarminge Sep 4, 2026
File filter
Filter by extension

Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view
Prev Previous commit
Next Next commit
fix(skills): keep digits-only $tokens as prose
The composer chips any `$name` token, known skill or not, so allowing a
digit as the first character made ordinary prose like "I'll pay $20
tomorrow" collapse into a non-editable skill chip.

Require a letter somewhere in the token across all four matchers, so
`$2spec` still resolves while `$20` stays text.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Ujv7KDYMEMGCTDF6mB3Dth
  • Loading branch information

Uh oh!

There was an error while loading. Please reload this page.

@amiralibg @claude
amiralibg and claude committed Sep 3, 2026
commit 44063c5a889a21309502c7042cbfbab6f0c14f35

Some comments aren't visible on the classic Files Changed page.

There are no files selected for viewing

3 changes: 2 additions & 1 deletion 3 apps/mobile/modules/t3-markdown-text/src/nativeMarkdownText.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,8 @@ function appendRun(
return runs;
}

const SKILL_TOKEN_REGEX = /(^|\s)\$([a-zA-Z0-9][a-zA-Z0-9:_-]*)(?=\s|$)/g;
const SKILL_TOKEN_REGEX =
/(^|\s)\$(?=[a-zA-Z0-9:_-]*[a-zA-Z])([a-zA-Z0-9][a-zA-Z0-9:_-]*)(?=\s|$)/g;

function formatSkillLabel(skill: SelectableMarkdownSkill): string {
const displayName = skill.displayName?.trim();
Expand Down
3 changes: 2 additions & 1 deletion 3 apps/server/src/provider/Drivers/ClaudeSkillDispatch.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
* (`packages/shared/src/composerInlineTokens.ts`), so a rendered chip and a
* dispatched skill are always the same set.
*/
const SKILL_MENTION_PATTERN = /(^|\s)\$([a-zA-Z0-9][a-zA-Z0-9:_-]*)(?=\s|$)/g;
const SKILL_MENTION_PATTERN =
/(^|\s)\$(?=[a-zA-Z0-9:_-]*[a-zA-Z])([a-zA-Z0-9][a-zA-Z0-9:_-]*)(?=\s|$)/g;

export interface ClaudeSkillDispatch {
/** Text before the dispatched mention, or `undefined` when it opens the prompt. */
Expand Down
3 changes: 2 additions & 1 deletion 3 apps/web/src/components/chat/SkillInlineText.tsx
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ import {
} from "../composerInlineChip";
import { cn } from "~/lib/utils";

const SKILL_TOKEN_REGEX = /(^|\s)\$([a-zA-Z0-9][a-zA-Z0-9:_-]*)(?=\s|$)/g;
const SKILL_TOKEN_REGEX =
/(^|\s)\$(?=[a-zA-Z0-9:_-]*[a-zA-Z])([a-zA-Z0-9][a-zA-Z0-9:_-]*)(?=\s|$)/g;

type InlineSkill = Pick<ServerProviderSkill, "name" | "displayName">;

Expand Down
6 changes: 6 additions & 0 deletions 6 apps/web/src/composer-editor-mentions.test.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,12 @@ describe("splitPromptIntoComposerSegments", () => {
]);
});

it("keeps digits-only dollar amounts as a single text segment", () => {
expect(splitPromptIntoComposerSegments("I'll pay $20 tomorrow")).toEqual([
{ type: "text", text: "I'll pay $20 tomorrow" },
]);
});

it("does not convert an incomplete trailing skill token", () => {
expect(splitPromptIntoComposerSegments("Use $review-follow-up")).toEqual([
{ type: "text", text: "Use $review-follow-up" },
Expand Down
5 changes: 5 additions & 0 deletions 5 packages/shared/src/composerInlineTokens.test.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ describe("collectComposerInlineTokens", () => {
]);
});

it("leaves digits-only dollar amounts as text", () => {
expect(collectComposerInlineTokens("I'll pay $20 tomorrow")).toEqual([]);
expect(collectComposerInlineTokens("Budget is $1_000 total")).toEqual([]);
});

it("does not convert incomplete trailing tokens", () => {
expect(collectComposerInlineTokens("Use $ui")).toEqual([]);
expect(collectComposerInlineTokens("Inspect @AGENTS.md")).toEqual([]);
Expand Down
7 changes: 6 additions & 1 deletion 7 packages/shared/src/composerInlineTokens.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ export interface CollectComposerInlineTokensOptions {
readonly preserveTrailingFrom?: ReadonlyArray<ComposerInlineToken>;
}

const SKILL_TOKEN_REGEX = /(^|\s)\$([a-zA-Z0-9][a-zA-Z0-9:_-]*)(?=\s)/g;
/**
* A skill name may start with a digit, but the token must contain a letter
* somewhere: the composer chips any `$name` it sees, known or not, so a
* digits-only body would turn prose like "I'll pay $20 tomorrow" into a chip.
*/
const SKILL_TOKEN_REGEX = /(^|\s)\$(?=[a-zA-Z0-9:_-]*[a-zA-Z])([a-zA-Z0-9][a-zA-Z0-9:_-]*)(?=\s)/g;
const MENTION_TOKEN_REGEX = /(^|\s)@(?:"((?:\\.|[^"\\])*)"|([^\s@"]+))(?=\s)/g;
/**
* The label body is bounded rather than `*`. Unbounded, every whitespace in
Expand Down
Loading
Oops, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
You are visitor 01402809 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.