|
| 1 | +# Directory Hub, Composio, and Skills Search |
| 2 | + |
| 3 | +This page documents the current Directory Hub behavior under `#/skills`, especially the native Skills tab, Composio connector browsing, and registry-backed Skills search. |
| 4 | + |
| 5 | +## Route Model |
| 6 | + |
| 7 | +- `#/skills` opens the Directory Hub with the `Skills` tab selected by default. |
| 8 | +- The active tab is URL-addressable with `?tab=plugins`, `?tab=apps`, `?tab=composio`, or `?tab=skills`. |
| 9 | +- The Directory route name remains `Skills`; the inner surface title remains `Skills & Apps`. |
| 10 | +- The first-launch Plugins card explicitly opens `?tab=plugins`. |
| 11 | + |
| 12 | +## Skills Tab |
| 13 | + |
| 14 | +The Skills tab is ordered for local use: |
| 15 | + |
| 16 | +1. GitHub Skills Sync controls. |
| 17 | +2. Find skills registry search. |
| 18 | +3. MCP section. |
| 19 | +4. Installed skills section. |
| 20 | + |
| 21 | +Important behavior: |
| 22 | + |
| 23 | +- MCPs appear immediately before installed skills. |
| 24 | +- Normal tab navigation only lists MCPs; the top-level `Refresh` button is the explicit MCP reload path. |
| 25 | +- Installed skill cards are local-first: no repeated `local`, `Installed`, or `Disabled` labels on the card grid. |
| 26 | +- Installed card descriptions are parsed from local `SKILL.md` files. |
| 27 | +- Installed entries are built concurrently so description reads do not add one round trip per skill. |
| 28 | + |
| 29 | +## Skills Registry Search |
| 30 | + |
| 31 | +The Find skills panel is backed by the published skills CLI: |
| 32 | + |
| 33 | +- Search runs `npx skills find`. |
| 34 | +- Install runs `npx skills add <source> --yes --global`. |
| 35 | +- Install success is only valid when a local installed `SKILL.md` path is returned and validates. |
| 36 | +- If install does not produce a local path or the post-refresh installed list does not include the skill, the UI treats it as failure. |
| 37 | + |
| 38 | +Search result identity is intentionally hybrid: |
| 39 | + |
| 40 | +- Cards keep registry owner/source details. |
| 41 | +- Installed matches get local path/enabled state. |
| 42 | +- Opening an installed result switches to the local installed skill detail and actions. |
| 43 | +- Search result cards hide the local folder browse icon; local browse remains available in installed skill details. |
| 44 | + |
| 45 | +## Composio |
| 46 | + |
| 47 | +The Composio tab is CLI-backed and should feel like a native Directory section. |
| 48 | + |
| 49 | +- Prefer `npx --yes composio`; fall back to the installed CLI only when needed. |
| 50 | +- Login runs `composio login --no-browser -y`. |
| 51 | +- The UI opens a browser tab from the click, then navigates it to the CLI auth URL. |
| 52 | +- The workspace card shows account/org/backend status. |
| 53 | +- Connector cards show real details: tool counts, descriptions, connection status, and auth actions. |
| 54 | +- Connector detail shows overview, connections, useful tools, dashboard link, connect/login action, and `Try it!` when usable. |
| 55 | + |
| 56 | +Search ranking has a specific edge-case rule: |
| 57 | + |
| 58 | +- Exact slug/name matches outrank description-only matches. |
| 59 | +- Example: searching `instagram` should show the `Instagram` connector before `Meta Ads`, even though Meta Ads mentions Instagram and may have more tools. |
| 60 | + |
| 61 | +## Testing Lessons |
| 62 | + |
| 63 | +Use assertions, not screenshots alone. |
| 64 | + |
| 65 | +Recommended checks: |
| 66 | + |
| 67 | +- `#/skills` defaults to Skills. |
| 68 | +- `?tab=` routes to the selected tab. |
| 69 | +- Normal Skills navigation does not call MCP reload. |
| 70 | +- The refresh button only says `Refreshing...` during explicit manual refresh. |
| 71 | +- Installed search results open local detail actions. |
| 72 | +- Failed installs do not create installed UI state. |
| 73 | +- Composio search sends `query`, preserves pagination params, and ranks exact matches first. |
| 74 | +- Light and dark screenshots should include both the Skills page and long installed-skill modal content. |
| 75 | + |
| 76 | +Unit tests now cover: |
| 77 | + |
| 78 | +- Composio exact query ranking over description-only matches. |
| 79 | +- Connected Composio connector ordering without a query. |
| 80 | +- Gateway query/cursor/limit params for Composio connector search. |
| 81 | + |
| 82 | +## Related Pages |
| 83 | + |
| 84 | +- [Entity: codex-web-local](../entities/codex-web-local.md) |
| 85 | +- [Concept: Skills route UI](./skills-route-ui.md) |
| 86 | +- [Overview](../overview.md) |
| 87 | +- [Source: Directory Hub Composio and Skills Search](../../raw/features/directory-hub-composio-skills-search.md) |
0 commit comments