Skip to content

Commit e30cd85

Browse files
nullStack65claude
andcommitted
fix(skills): correct five feature map labels and check routes with params
Review found five labels that were not the visible strings, a stale-route check that skipped every route with a $param, and route discovery that missed subfolders and wrapped calls. The labels now match source, the route pattern accepts params, discovery reads the routes folder recursively, the duplicate route index is gone, and the conventions say feature ids stay in bold. Model: claude-opus-5-5 Task: implementation Agent: Claude Code (CLO-868 feature map lane) Lane: magpie Harness: t3/claude-code Model-family: Claude Model-generation: 5.5 Skills-SHA: df60fa7be83ccc7a8e3c64e3c58ba9ed7a84cfc4 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 5a3631f commit e30cd85

2 files changed

Lines changed: 13 additions & 25 deletions

File tree

‎.agents/skills/test-t3-app/references/feature-map.md‎

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ precisely ("the **Settle thread** item in **sidebar.thread-menu**") instead of d
55

66
Conventions:
77

8-
- **area.feature** is a stable id. Quoted text is the exact visible label.
8+
- **area.feature** is a stable id, always written in bold. Quoted text is the exact visible label.
9+
- Code formatting is only for routes, keybinding commands, keys and file names; `scripts/feature-map.test.ts` checks every backticked route and command against the code.
910
- `mod` is Command on macOS and Ctrl elsewhere. Defaults come from the built-in keybindings;
1011
"no default" means the command exists but is unbound until you bind it in
1112
**Settings → Keybindings**.
@@ -42,7 +43,7 @@ Code: apps/web/src/components/sidebar/
4243
- **sidebar.thread-status** — row status labels: "Working", "Waiting", "Needs you", "Needs action", "Usage limit reached", "Failed", "Woke", "Unsent draft".
4344
- **sidebar.thread-hover-actions** — "Settle", "Un-settle", "Wake" buttons; press and drag to apply to a range.
4445
- **sidebar.draft-row** — unsent draft; "Discard draft" (with Undo).
45-
- **sidebar.thread-menu** — right-click or "More thread actions":
46+
- **sidebar.thread-menu** — right-click a thread row:
4647
"Rename thread", "Pin thread" / "Unpin thread", "Settle thread" / "Un-settle thread",
4748
"Snooze thread" (presets and "Custom…"), "Wake thread now", "Mark unread",
4849
"Regenerate title", "Auto-settle behavior" ("Follow settings", "Never"), "Route to inbox"
@@ -64,7 +65,7 @@ Code: apps/web/src/components/sidebar/
6465
Code: apps/web/src/components/chat/ChatHeader.tsx
6566

6667
- **thread.breadcrumb** — "Thread breadcrumb": project and thread title; click the title to rename ("Thread title").
67-
- **thread.lineage** — "Lineage" / "Related threads": "Parent thread", "Parent agent", "Subagent", "Side chats", "Fork", "Merge back to source conversation".
68+
- **thread.lineage** — "Lineage" / "Related threads": "Parent thread", "Parent agent", "Subagent", "Side chats", "Fork", "Merge back to source conversation"; "More thread actions" opens the rest.
6869
- **thread.project-actions** — "Project actions" / "Project scripts": run a project script, "Add action". Each script is `script.<id>.run` ("Run Script: …").
6970
- **thread.open-in-editor** — "Open in editor" with "Choose editor". `editor.openFavorite` (`mod+o`).
7071
- **thread.git-actions** — "Git actions": "Commit", "Push", "Publish repository", "Initialize Git", "Git action options".
@@ -81,7 +82,7 @@ Code: apps/web/src/components/chat/MessagesTimeline.tsx
8182
- **timeline.assistant-reply** — agent replies with markdown, code blocks, math, Mermaid, file and thread links.
8283
- **timeline.work-group** — collapsed tool calls and commands; "Show more" / "Show less".
8384
- **timeline.approval** — "Command approval", "File change approval", "File read approval", "Permission request": "Approve", "Decline", "Always allow this session", "More approval options".
84-
- **timeline.user-input** — agent questions: "Type your answer", "Previous question" / "Next question", "Submit answer(s)".
85+
- **timeline.user-input** — agent questions: "Type your answer", "Previous question" / "Next question", "Submit answer" (one question) or "Submit answers".
8586
- **timeline.proposed-plan** — "Proposed plan" card: "Expand plan" / "Collapse plan", "Plan actions", save to workspace.
8687
- **timeline.minimap** — turn navigator: "Previous turn" / "Next turn".
8788
- **timeline.background-work** — "Background work" details for subagents and monitors.
@@ -169,7 +170,7 @@ Code: apps/web/src/components/CommandPalette.tsx
169170
- **page.home** — `/`. Empty state with recent work, or the no-projects hero ("Add project").
170171
- **page.thread** — `/$environmentId/$threadId`. One thread on one environment.
171172
- **page.draft** — `/draft/$draftId`. An unsent new thread.
172-
- **page.new-thread-link** — `/new`. Opens a prompt link ("Prompt from a link") as a new draft; may clone the repo first ("Check out").
173+
- **page.new-thread-link** — `/new`. Opens a prompt link as a new draft ("Opening the link...", "This link is open", "Could not open the link"); may clone the repo first ("Check out").
173174
- **page.thread-link** — `/threads/$environmentId/$threadId`. Shareable thread link that redirects to the thread.
174175
- **page.project-link** — `/projects/$projectKey`. Project link that redirects to that project's settings.
175176
- **page.pull-requests** — `/pull-requests`. "Pull requests" across servers: filters "Authored", "Reviewing", "Blocked on me", "Open", "Merged", "Closed"; "Sort pull requests". Opened from the sidebar or "Open pull requests".
@@ -230,9 +231,9 @@ Old links that redirect:
230231

231232
- **onboard.welcome** — `/welcome`, "Welcome": "Set up an agent" (Codex, Claude Code), "Import projects and their threads", "Set up T3 Connect", mobile app pointer.
232233
- **onboard.pair** — `/pair`, "Pair with this environment": "Paste a one-time token or pairing secret".
233-
- **onboard.connect** — `/connect`, "Connecting your terminal": approves a `t3` CLI sign-in through T3 Connect.
234-
- **onboard.connect-agent** — `/connect-agent`, "Use T3 Code in another app": lets an outside agent connect.
235-
- **onboard.approve-agent** — `/approve-agent`, "Agent sign-in" / "Authorization request": "Choose what it may do", "Read only", "Continue", "Deny".
234+
- **onboard.connect** — `/connect`, "Authorization request", "Connecting your terminal": approves a `t3` CLI sign-in through T3 Connect.
235+
- **onboard.connect-agent** — `/connect-agent`, "Agent sign-in", "Connect <client>": lets an outside agent connect. Reached from the code made by "Use T3 Code in another app (MCP)".
236+
- **onboard.approve-agent** — `/approve-agent`, "Agent sign-in": "Choose what it may do", "Read only", "Continue", "Deny".
236237
- **onboard.guest** — `/guest`, guest view of a shared thread: "Message", "Attach files", "Send", "Waiting for approval", "This link has ended".
237238

238239
## Desktop-only shell
@@ -275,18 +276,6 @@ Code: apps/mobile/src/features/
275276
- **mobile.updates** — "Update ready": "Install Now", "Later".
276277
- **mobile.diagnostics** — "Diagnostics": "Crash reports", "Copy crash report".
277278

278-
## Route index
279-
280-
`/`, `/$environmentId/$threadId`, `/draft/$draftId`, `/new`, `/pull-requests`, `/usage`,
281-
`/settings`, `/settings/about`, `/settings/access`, `/settings/appearance`, `/settings/archived`,
282-
`/settings/beta`, `/settings/browser`, `/settings/chat`, `/settings/connections`, `/settings/devices`,
283-
`/settings/diagnostics`, `/settings/diffs`, `/settings/general`, `/settings/integrations`,
284-
`/settings/keybindings`, `/settings/labs`, `/settings/maintenance`, `/settings/open-source-licenses`,
285-
`/settings/projects`, `/settings/providers`, `/settings/scheduled-tasks`, `/settings/secrets`,
286-
`/settings/snap-shot`, `/settings/source-control`, `/settings/storage`, `/settings/threads`,
287-
`/settings/voice`, `/settings/worktrees`, `/approve-agent`, `/connect`, `/connect-agent`, `/guest`,
288-
`/pair`, `/projects/$projectKey`, `/threads/$environmentId/$threadId`, `/welcome`.
289-
290279
## Unverified
291280

292281
- "New thread in this worktree" (branch toolbar) is in docs/user/thread-sidebar.md but the exact string was not found in source; left out of the entries.

‎scripts/feature-map.test.ts‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ const commandNames = [
1616
].toSorted();
1717
const commandNamespaces = new Set(commandNames.map((command) => command.split(".")[0]!));
1818

19-
const looksLikeRoute = (token: string) =>
20-
/^\/([a-z$][a-z0-9$-]*(\/[a-z$][a-z0-9$-]*)*)?$/.test(token);
19+
const looksLikeRoute = (token: string) => /^\/([A-Za-z0-9$_-]+(\/[A-Za-z0-9$_-]+)*)?$/.test(token);
2120
const looksLikeCommand = (token: string) =>
2221
/^[a-z][A-Za-z]*\.[A-Za-z0-9.<>]+$/.test(token) &&
2322
commandNamespaces.has(token.split(".")[0]!) &&
@@ -29,13 +28,13 @@ const loadMap = Effect.gen(function* () {
2928
const root = path.resolve(import.meta.dirname, "..");
3029
const mapText = yield* fs.readFileString(path.join(root, MAP));
3130
const named = new Set([...mapText.matchAll(/`([^`\s]+)`/g)].map((match) => match[1]!));
32-
const files = (yield* fs.readDirectory(path.join(root, ROUTES))).filter((file) =>
33-
file.endsWith(".tsx"),
31+
const files = (yield* fs.readDirectory(path.join(root, ROUTES), { recursive: true })).filter(
32+
(file) => file.endsWith(".tsx"),
3433
);
3534
const routePaths: string[] = [];
3635
for (const file of files) {
3736
const source = yield* fs.readFileString(path.join(root, ROUTES, file));
38-
const declared = /createFileRoute\("([^"]+)"\)/.exec(source)?.[1];
37+
const declared = /createFileRoute\(\s*"([^"]+)"/.exec(source)?.[1];
3938
if (declared === undefined) continue;
4039
const route = declared.replace(/^\/_chat(?=\/|$)/, "").replace(/(.)\/$/, "$1");
4140
if (route !== "") routePaths.push(route);

0 commit comments

Comments
 (0)