You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CLAUDE.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ Source lives in `hooks/src/*.mts` (TypeScript) and compiles to `hooks/*.mjs` (ES
38
38
39
39
**Entry-point hooks** (wired in hooks.json):
40
40
-`session-start-seen-skills.mts` — initializes `VERCEL_PLUGIN_SEEN_SKILLS=""` in `CLAUDE_ENV_FILE`
41
-
-`session-start-profiler.mts` — activates only for greenfield directories or detected Vercel, Next.js, or Eve projects, then scans config files + package deps → sets `VERCEL_PLUGIN_LIKELY_SKILLS` (+5 priority boost)
41
+
-`session-start-profiler.mts` — activates only for greenfield directories or detected Vercel, Next.js, or eve projects, then scans config files + package deps → sets `VERCEL_PLUGIN_LIKELY_SKILLS` (+5 priority boost)
42
42
-`inject-claude-md.mts` — outputs the thin session-start Vercel context plus knowledge update guidance for that same activation set
@@ -53,7 +53,7 @@ Source lives in `hooks/src/*.mts` (TypeScript) and compiles to `hooks/*.mjs` (ES
53
53
54
54
### Skill Injection Flow
55
55
56
-
1.**SessionStart**: For greenfield directories or detected Vercel, Next.js, or Eve projects, the profiler scans the project → sets `VERCEL_PLUGIN_LIKELY_SKILLS`
56
+
1.**SessionStart**: For greenfield directories or detected Vercel, Next.js, or eve projects, the profiler scans the project → sets `VERCEL_PLUGIN_LIKELY_SKILLS`
57
57
2.**PreToolUse** (on Read/Edit/Write/Bash): Match file paths (glob), bash commands (regex), imports (regex+flags) → apply vercel.json routing → apply profiler boost → rank by priority → dedup → inject up to 3 skills within 18KB budget
58
58
3.**UserPromptSubmit**: Score prompt text against `promptSignals` (phrases/allOf/anyOf/noneOf) → inject up to 2 skills within 8KB budget
59
59
-**3b. Lexical fallback** (when `VERCEL_PLUGIN_LEXICAL_PROMPT=on`): If phrase/allOf/anyOf scoring yields no matches above `minScore`, re-score using a lexical stemmer that normalizes prompt tokens before comparison — catches natural phrasing that exact-substring matching misses
@@ -66,7 +66,7 @@ Special triggers in PreToolUse:
66
66
67
67
### Skill Structure (`skills/<name>/SKILL.md`)
68
68
69
-
29 skills in `skills/`. Each has a `SKILL.md` with YAML frontmatter:
69
+
33 skills in `skills/`. Each has a `SKILL.md` with YAML frontmatter:
Copy file name to clipboardExpand all lines: README.md
+7-6Lines changed: 7 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ This plugin gives AI agents a **relational knowledge graph** of the Vercel ecosy
33
33
34
34
## How Do I Use This?
35
35
36
-
After installing, the plugin keeps automatic behavior lightweight. Session-start activation now only kicks in for empty directories and detected Vercel, Next.js, or Eve projects, and Vercel skills are no longer auto-injected on every tool call or every prompt by default. The default post-tool path is now observer-only. The skills remain available for direct use, and the repo still keeps the injection engine for targeted or future opt-in workflows.
36
+
After installing, the plugin keeps automatic behavior lightweight. Session-start activation now only kicks in for empty directories and detected Vercel, Next.js, or eve projects, and Vercel skills are no longer auto-injected on every tool call or every prompt by default. The default post-tool path is now observer-only. The skills remain available for direct use, and the repo still keeps the injection engine for targeted or future opt-in workflows.
37
37
38
38
## Components
39
39
@@ -46,7 +46,7 @@ A text-form relational graph covering:
|`vercel-sandbox`| Ephemeral Firecracker microVMs for running untrusted/AI-generated code safely |
@@ -104,12 +105,12 @@ A text-form relational graph covering:
104
105
105
106
Lifecycle hooks that run automatically during your session:
106
107
107
-
-**Session start context injection** — Injects a thin Vercel session context plus the knowledge-update guidance for empty directories and detected Vercel, Next.js, or Eve projects
108
+
-**Session start context injection** — Injects a thin Vercel session context plus the knowledge-update guidance for empty directories and detected Vercel, Next.js, or eve projects
108
109
-**Session start repo profiler** — Scans config files and dependencies to set likely-skill hints, but only after that same activation check passes
109
110
110
111
## Usage
111
112
112
-
After installing, session context is injected automatically only for empty directories and detected Vercel, Next.js, or Eve projects. Vercel skills are available on demand, and you can invoke them directly via slash commands:
113
+
After installing, session context is injected automatically only for empty directories and detected Vercel, Next.js, or eve projects. Vercel skills are available on demand, and you can invoke them directly via slash commands:
113
114
114
115
```
115
116
/vercel-plugin:nextjs
@@ -228,7 +229,7 @@ Exits non-zero if any `SKILL.md` is stale. Add to CI to catch drift.
0 commit comments