GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — feat(web): add cross-harness skill manager by t3dotgg · Pull Request #4630 · pingdotgg/t3code Conversation
|
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
ApprovabilityVerdict: Needs human review This PR introduces a significant new feature: a cross-harness skill manager with new server endpoints, contracts, UI components, and client-side logic. New user-facing capabilities of this scope warrant human review regardless of code quality. No code changes detected at You can customize Macroscope's approvability policy. Learn more. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Effect service conventions review of the new skills service, HTTP layer, contracts, and client-runtime helper. One finding: an aliased service-module import in the new server test. Everything else (namespaced effect/* subpath imports, environment-based dependency acquisition via yield* ServerSettingsService, runPromise confined to the React boundary, schema-only contracts) matches the conventions.
Posted via Macroscope — Effect Service Conventions
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
docs/architecture/skill-manager-plan.html (1)
817-826: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueAlign the touchpoint list with the paths shipped in this PR.
The list names
packages/contracts/src/environment.tsandapps/server/src/http.ts. This PR addspackages/contracts/src/skillInventory.ts,apps/server/src/skills/http.ts, and wires the route inapps/server/src/server.ts. Update the list so the plan matches the delivered Phase 1 code.📝 Proposed doc update
- <code>packages/contracts/src/environment.ts</code> · - <code>packages/contracts/src/environmentHttp.ts</code> · new inventory schemas · + <code>packages/contracts/src/skillInventory.ts</code> · + <code>packages/contracts/src/environmentHttp.ts</code> · <code>apps/server/src/provider/Drivers/ClaudeSkills.ts</code> · <code>apps/server/src/provider/Layers/CodexProvider.ts</code> · new <code>apps/server/src/skills/</code> service/adapters · - <code>apps/server/src/http.ts</code> · new client-runtime query helper · + <code>apps/server/src/skills/http.ts</code> · + <code>apps/server/src/server.ts</code> · + <code>packages/client-runtime/src/state/skillInventoryHttp.ts</code> · <code>apps/web/src/components/settings/SettingsSidebarNav.tsx</code> · new <code>apps/web/src/routes/settings.skills.tsx</code> and settings components.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@docs/architecture/skill-manager-plan.html` around lines 817 - 826, Update the touchpoint list in the architecture plan to replace environment.ts and server http.ts references with the shipped skillInventory.ts and skills/http.ts paths, and add the route wiring file server.ts. Preserve the other listed Phase 1 touchpoints.apps/server/src/skills/SkillInventory.ts (1)
25-83: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winExtract the duplicated skill-installation mapping and mark the fallback providers.
The "codex" and "claudeAgent" branches both read each skill file and map it to
SkillInventoryInstallation; moving this through a shared map helper prevents future drift. The sharedreturn [];fallback also leaves Cursor and Grok unexplained — add a comment or explicit branches for them to satisfy the provider adapter decision guidance.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@apps/server/src/skills/SkillInventory.ts` around lines 25 - 83, Extract the duplicated file-reading and SkillInventoryInstallation mapping from discoverInstanceSkills into a shared helper, reusing the branch-specific provider ID, harness display name, skill metadata, and enabled state for both codex and claudeAgent. Replace both Effect.forEach mapping blocks with that helper while preserving their existing skill discovery inputs. Document the fallback return [] by adding explicit Cursor and Grok branches or a comment identifying those unsupported providers.Source: Path instructions
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@apps/server/src/skills/SkillInventory.test.ts`:
- Line 14: Replace the aliased layerTest import in SkillInventory.test.ts with a
namespace import for serverSettings, then update both call sites to invoke
ServerSettings.layerTest(...), preserving the existing arguments and test
behavior.
In `@apps/web/src/components/settings/SkillsSettings.logic.ts`:
- Around line 1-102: Move the framework-agnostic helpers formatSkillPath,
filterSkillInventory, displayedSkillCount, setKeyCollapsed, skillKey,
groupSkillsByHarness, and skillContentForDisplay, along with the
SkillHarnessGroup type and their supporting constants/helpers, into
packages/client-runtime beside the skills HTTP client. Export them from the
package and update the web settings logic to import and reuse those shared
symbols, preserving all existing behavior.
---
Nitpick comments:
In `@apps/server/src/skills/SkillInventory.ts`:
- Around line 25-83: Extract the duplicated file-reading and
SkillInventoryInstallation mapping from discoverInstanceSkills into a shared
helper, reusing the branch-specific provider ID, harness display name, skill
metadata, and enabled state for both codex and claudeAgent. Replace both
Effect.forEach mapping blocks with that helper while preserving their existing
skill discovery inputs. Document the fallback return [] by adding explicit
Cursor and Grok branches or a comment identifying those unsupported providers.
In `@docs/architecture/skill-manager-plan.html`:
- Around line 817-826: Update the touchpoint list in the architecture plan to
replace environment.ts and server http.ts references with the shipped
skillInventory.ts and skills/http.ts paths, and add the route wiring file
server.ts. Preserve the other listed Phase 1 touchpoints.
Fix all unresolved CodeRabbit comments on this PR:
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 106ee80a-4e78-4d75-912a-1f334194d3b0
apps/server/src/server.tsapps/server/src/skills/SkillInventory.test.tsapps/server/src/skills/SkillInventory.tsapps/server/src/skills/http.tsapps/web/src/components/settings/SettingsSidebarNav.tsxapps/web/src/components/settings/SkillsSettings.logic.tsapps/web/src/components/settings/SkillsSettings.test.tsapps/web/src/components/settings/SkillsSettings.tsxapps/web/src/routeTree.gen.tsapps/web/src/routes/settings.skills.tsxdocs/architecture/skill-manager-plan.htmlpackages/client-runtime/package.jsonpackages/client-runtime/src/state/skillInventoryHttp.tspackages/contracts/src/environmentHttp.tspackages/contracts/src/index.tspackages/contracts/src/skillInventory.ts
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
befd2fe to
a63d4e1
Compare
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
88eaab3 to
86bd726
Compare
| const fileSystem = yield* FileSystem.FileSystem; | ||
| const path = yield* Path.Path; | ||
| const installations = yield* Effect.forEach(input.skills, (skill) => | ||
| fileSystem.readFileString(skill.path).pipe( |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
🔴 Critical skills/SkillInventory.ts:42
readSkillInstallations reads skill.path via fileSystem.readFileString without verifying the path is not a symlink that resolves outside the discovered skill directory. A SKILL.md symlink such as skills/leak/SKILL.md -> /etc/passwd passes discovery, and line 42 returns the target file's full contents to any client of the remote skills API, leaking arbitrary host files. Consider rejecting symlinks or verifying the resolved real path is contained within the expected skill root before reading.
In file @apps/server/src/skills/SkillInventory.ts around line 42:
`readSkillInstallations` reads `skill.path` via `fileSystem.readFileString` without verifying the path is not a symlink that resolves outside the discovered skill directory. A `SKILL.md` symlink such as `skills/leak/SKILL.md -> /etc/passwd` passes discovery, and line 42 returns the target file's full contents to any client of the remote skills API, leaking arbitrary host files. Consider rejecting symlinks or verifying the resolved real path is contained within the expected skill root before reading.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Baseline: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 86bd726. Configure here.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| ) : visibleInventory?.installations.length === 0 ? ( | ||
| <StatusLine> | ||
| {query ? "No skills match this search." : "No global Codex or Claude skills found."} | ||
| </StatusLine> |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Low Severity
The empty inventory message branches on raw query, while filtering and the rest of this panel treat only a trimmed query as an active search via isSearching. Whitespace-only input still counts as a search here, so an actually empty inventory can show the “no matches” copy instead of the “no skills found” copy.
Reviewed by Cursor Bugbot for commit 86bd726. Configure here.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
this would be nice |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Rebuild of PR pingdotgg#4630 on current main. The PR's parallel skill-discovery pipeline (server scan module, inventory endpoint, client inventory state) is dropped: provider snapshots already carry each harness's skills and stream to clients. What remains: - /settings/skills page reading providersValueAtom per environment, with search, per-provider grouping, and refresh via the existing refreshProviders RPC command - lazy GET /api/skills/file returning one SKILL.md body, allowlisted against skill paths from the cached provider snapshots
|
updated 14d ago, closing |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Rebuild of PR pingdotgg#4630 on current main. The PR's parallel skill-discovery pipeline (server scan module, inventory endpoint, client inventory state) is dropped: provider snapshots already carry each harness's skills and stream to clients. What remains: - /settings/skills page reading providersValueAtom per environment, with search, per-provider grouping, and refresh via the existing refreshProviders RPC command - lazy GET /api/skills/file returning one SKILL.md body, allowlisted against skill paths from the cached provider snapshots
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.