Skip to content

Commit 8b4eaf7

Browse files
committed
docs: update CLAUDE.md with register route and identifier resolution
1 parent 63e8a16 commit 8b4eaf7

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

CLAUDE.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ apps/web/app/
3636
├── lib/
3737
│ ├── db/ # schema.ts (Drizzle), queries
3838
│ ├── auth/ # auth-server.ts, session-helpers.ts, api-key-utils.ts
39+
│ ├── github/ # fetch-github-skill, scan-github-repo (Tree API)
3940
│ ├── search/ # hybrid-search, vector-search, fts5-search, rrf-fusion, boost-scoring
4041
│ ├── vectorize/ # embed-text, chunk-text, index-skill
4142
│ └── cache/ # KV caching utilities
@@ -80,6 +81,7 @@ pnpm db:migrate:remote # Apply migrations to remote D1
8081
| `/api/skills/:slug/install` | api.skill-install.ts | Optional (API key or X-Device-Id) |
8182
| `/api/report` | api.usage-report.ts | Session/Key |
8283
| `/api/user/api-keys` | api.user-api-keys.ts | Session |
84+
| `/api/skills/register` | api.skill-register.ts | None |
8385
| `/api/admin/seed` | api.admin.seed.ts | Admin secret |
8486

8587
## Database Tables (Drizzle schema)
@@ -97,6 +99,10 @@ Plus Better Auth tables: `user`, `session`, `account`, `verification`
9799

98100
**Search**: Query → Embed (Workers AI) → Vectorize + FTS5 parallel → RRF fusion → Boost scoring → Filter → Cache (KV)
99101

102+
**CLI `skillx use` resolution**: `author/skill` (two-part → DB slug `author-skill`) | `org/repo/skill` (three-part → DB slug `org-skill`, fallback register from GitHub) | `slug` (direct lookup, fallback search) | `"keywords"` (search mode)
103+
104+
**Register API**: POST `/api/skills/register` with `{ owner, repo, skill_path?, scan? }`. Modes: single skill (`skill_path`), scan all SKILL.md files (`scan: true`), or backward-compat fallback (try root, then scan).
105+
100106
**Styling**: Always dark theme. Use `bg-slate-900`, `text-white`, `text-mint`, `border-mint/20`. Geist Sans/Mono fonts. Lucide icons.
101107

102108
## Important Caveats

0 commit comments

Comments
 (0)