Repository navigation
Add Agent Skills support to Studio - #10247
Conversation
|
This also drops the bypass_permissions gate around |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@codex review |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7c5938525a
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| <div ref={resultsRef} className="max-h-64 overflow-y-auto"> | ||
| {results.map((skill, index) => ( |
There was a problem hiding this comment.
Bound the mention results before rendering them
In the compare composer, typing a bare @ makes results contain every enabled skill and this map eagerly renders a full button, icon, and description for each one. The backend permits 1,000 entries in each of two roots, so a valid catalog can produce 2,000 complex DOM rows and repeat the work as the query changes, causing substantial input lag or a frozen picker. Cap the displayed matches or virtualize the scrollable list.
Useful? React with 👍 / 👎.
|
Codex Review: Didn't find any major issues. Breezy! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Agent Skills — live Studio UI evidenceTested in isolated installs at merge base Before: typing
|
|
Codex Review: Didn't find any major issues. Delightful! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
…, bound the picker, translate the dialog The local token count listed read_skill and create_skill unconditionally while the completion request gated them on an enabled skill, so the context meter counted schemas and a catalog nudge the request never carried. Both now use the same gate. The mention pattern accepted any whitespace-bounded @word (@example.com, @3pm, @Probe-Alpha), and an unknown one made every send await a full /api/skills rescan with no deadline. The pattern now follows the Agent Skills name rules and the settle step races the rescan against a 3 s deadline. Mention results are capped at 50 rows, and the dialog and picker strings move into a skills i18n namespace present in all 12 locales.
… cache the catalog per account
Discovery read the host home and the overrides file lived in the install root, so
in a shared install any managed account could list and read the owner's skills,
toggle them for everyone, and create_skill wrote into the owner's home. This also
failed the multi-account route matrix for PUT /api/skills/{name}/enabled. The
owner keeps ~/.agents/skills and ~/.claude/skills; a managed account now gets
workspace_root()/skills plus the bundled skills, its own overrides file, and
create_skill writes there. The inference catalog cache is keyed per account and
a matrix Factory covers the route.
The bundled skill-creator was enabled by default, which put read_skill and
create_skill and a catalog paragraph into every tools-on request and made the
frontend send enable_tools on every chat with every pill off. Bundled skills now
ship disabled; enabling one in the dialog is a one-click override.
The catalog scan stays inline on the request path on purpose: the api_monitor
row is already open when tools are selected and only the generation hop
finalizes it on CancelledError, so an extra await there would leave a cancelled
request's row running (test_non_streaming_safetensors_tool_task_cancel_finalizes_monitor).
The 1 s per-account cache bounds the cost. read_skill stops halving its page
below 64 characters and reports the missing room instead.
…oreign manifest, tolerate bad roots and overrides Reads validated the resource path and the skill directory but not the root's ancestors, while create did, so a root swapped for a symlink between selection and open redirected read_skill outside the tree. Discovery now records each skill directory's identity and resources are opened relative to that directory with O_NOFOLLOW at every component. A failed create unlinked SKILL.md after checking only the directory, so a manifest another writer had replaced during the race was deleted. Cleanup now closes the descriptor first and removes only the file this call created. One unreadable or overfull root raised out of list_skills and hid every skill including the bundled ones, and a corrupt skill-overrides.json did the same with no in-product way to repair it. Each root now reports its own error and an invalid overrides file is ignored and rewritten by the next toggle. Regular files in a root are skipped, the entry limit counts skill directories only, an indented --- inside a block scalar no longer closes the frontmatter, explicit null tool arguments take their defaults, and Windows reserved device names get their own message.
The test replaces SKILL.md while the creating descriptor is still open. Windows sharing semantics refuse that replace, so create reports "Could not create skill" instead of the race message and the scenario the test guards cannot occur there. Also restores the blank lines the merge dropped between two tests.
|
Thanks for the PR, this is a solid implementation and it matches the agentskills.io spec on every rule I checked (name, description, compatibility, metadata, allowed-tools, directory match). I pushed a few commits on top of What the commits change
Answers to the two open questions
Before and after screenshots of the plus menu and the dialog are at the end of the PR description. Verification
Not changed, for the record: hard links inside a skill dir are readable (same trust boundary as the directory itself, your reply stands); Tab does not pick a mention in any browser while Enter, arrow keys and click do; the plus-menu items stay English like their neighbours. |
|
@codex security review |
|
I checked the Codex and external nudge paths again and the general tool guidance does stay off them, but since the bundled skill-creator ships enabled the skill catalog now lands in the system prompt for every tool-enabled chat, so could you confirm what a default install sends when the user has no skills of their own? Note #9355 is also open for the same request in #9290, so it is worth the two of you comparing before either lands. |
|
Codex Review: Didn't find any major issues. Another round soon, please! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Final cross-platform run on the current head, one staging job per OS running On the org CI the three Every review item since |




Summary
~/.agents/skillsand~/.claude/skills, with deterministic precedence and persisted enable/disable controlsread_skilltool across Studio inference paths and add authenticated skill management APIs@mention picker for normal and compare chat, highlighted sent mentions, and standard tool activity UISafety
Testing
pytest -q studio/backend/tests/test_skills.py(14 passed)git diff --checkread_skill, token count, responsive dialog layout, and keyboard scrollingBefore and after
Two isolated Studio installs, merge base
159207880(BEFORE) and headd2873fa43(AFTER), same seeded~/.agents/skills/probe-alpha/SKILL.mdon both sides, no model loaded.Plus menu: BEFORE has no Agent Skills entry; AFTER lists it between MCP and Projects.
GET /api/skillsanswers 404 on BEFORE and 200 on AFTER.Agent Skills dialog: BEFORE has nothing to open; AFTER lists
probe-alpha(Agents, enabled) and the bundledskill-creator(off by default) with a switch each. The empty-thread greeting differs between the halves because it is a random pick, not this PR.The
@mention picker needs a loaded tool-capable model and is not part of this pair; it was checked live with a Qwen GGUF in Chromium, Firefox and WebKit.