Repository navigation
Conversation
- Skill search uses skills.sh's public search when the authenticated API is unavailable, so any skill can be found, not only the leaderboard's. - One set of skill tree limits for install, server staging and the host daemon; the byte cap rises from 10 MB to 32 MB. - The server skips a skill over those limits with a logged reason, instead of sending it to the host and failing every thread start. - HOST_DAEMON_PROTOCOL_VERSION 234 -> 235: daemons now accept skill trees up to 32 MB. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8446c68ce0
ℹ️ 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".
| typeof entry.installs !== "number" || | ||
| !Number.isFinite(entry.installs) |
There was a problem hiding this comment.
Reject search entries outside the RegistrySkill contract
When the public endpoint returns an entry with a negative or fractional installs value, this accepts it because it only checks finiteness, but the SDK subsequently validates the response with registrySkillSchema, which requires a nonnegative integer. A single malformed upstream entry therefore makes the entire search fail instead of being skipped or triggering the fallback; validate these entries against the full internal contract before returning them.
AGENTS.md reference: AGENTS.md:L13-L13
Useful? React with 👍 / 👎.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Closing at brsbl's request. Playgrounds will ship its own Anatomy-based skill that fits bb's existing limits instead. |
Human comments
What was wrong
Three problems stopped bb users from using large, popular skills such as Anatomy (about 12 MB including its prebuilt example pages):
<dataDir>/skillsfailed everythread.startwith "Skill tree exceeds max byte count 10485760".bb skill installrefused it with "Skill tree exceeds installation limits" (10 MB cap).bb skill searchreturned only skills on skills.sh's home leaderboard.What changed
SKILL_TREE_LIMITS(1,000 files, 32 MB, depth 24) in@bb/host-daemon-contractis the one source for registry install, server skill discovery and daemon staging. The byte cap rises from 10 MB to 32 MB.apps/server/src/services/skills/injected-skills.ts) enforces those limits. A skill over them is skipped with "Skipping invalid injected skill" and a reason, the same path as other invalid skills, instead of being sent to the host and failing thread start./api/search?q=) before the leaderboard fallback (registry-parse.ts,registry-proxy.ts).HOST_DAEMON_PROTOCOL_VERSION234 → 235.How you verified
injected-skills.test.ts: a skill over the file limit is skipped with its reason, and other skills are still injected.public-project-skills.test.ts: an unauthenticated search uses the public search endpoint and finds a skill that isn't on the leaderboard.pnpm dev, isolated data dir):<dataDir>/skills, a new thread starts and the agent reportsanatomy: available. Before this change,thread.startfailed.bb skill install wheresryan22/anatomy/anatomyinstalls it. It failed before.bb skill search anatomylistswheresryan22/anatomy/anatomyfirst. It returned nothing before.too-big-skill: unavailable.BB-Thread: Playgrounds
🤖 Generated with Claude Code