Commit Graph

106 Commits

Author SHA1 Message Date
Mark Knichel 61f1903bed Merge pull request #75 from vercel/mknichel/vercel-firewall-skill
[skills] Add a skill for the Vercel Firewall
2026-05-07 14:00:01 -07:00
Julia Shi e6cbaf4d1d Add Vercel metrics CLI guidance 2026-05-07 00:19:10 +01:00
Mark Knichel d7edf03391 [skills] Add a skill for the Vercel Firewall 2026-05-05 15:52:33 -07:00
melkeydev 498c263191 fixing strict workflow skill detection 2026-04-30 09:48:47 -07:00
melkeydev 4696f591e5 fixing validation error 2026-04-28 11:42:34 -07:00
melkeydev 547c2a1e2a fixing workflow detection logic 2026-04-27 17:03:49 -07:00
Dorell James 011001af81 fix(ai-gateway): anchor model-slug regex to prevent false positives
The validator rule in skills/ai-gateway/SKILL.md used `\d+-\d+[)'"]`,
which matched any digit-hyphen-digit followed by a closing bracket,
quote, or apostrophe — much broader than the intended error class
(hyphenated model version slugs like "claude-sonnet-4-5").

False positives seen in real usage:
  - `(line 13-21):` — matches `13-21)` in markdown line-range references
  - `"00000000-0000-0000-0000-000000000000"` — matches `0-0"` in UUIDs
  - `"192.168.1.1-2"` — matches `1-2"` in IP ranges
  - `"1-2"` — matches `1-2"` in semver pairs

Fix: anchor the pattern on known model-family keywords with `\b` word
boundaries, matching the convention used by other patterns in the same
file (e.g., line 15: `\bvercel\s+env\s+pull\b`).

    \b(claude|gpt|gemini|llama|mistral|qwen|deepseek)[a-z0-9-]*-\d+-\d+[a-z0-9-]*\b

Still catches the intended case ("claude-sonnet-4-5",
"openai/gpt-5-4", "anthropic/claude-sonnet-4-5-20250514") while
leaving line ranges, UUIDs, IP ranges, and other incidental
digit-hyphen-digit patterns alone.

generated/skill-manifest.json regenerated via `bun run build:manifest`.
2026-04-14 10:15:30 +08:00
melkeydev 37d1fe9de1 generated files 2026-04-11 15:55:29 -07:00
melkeydev 655d294d9c generating mts files 2026-04-11 14:06:38 -07:00
melkeydev fcf5f8c7cd knowlege-update changes 2026-04-11 12:06:55 -07:00
melkeydev 083e2e8a91 fixing ci tests 2026-04-10 14:49:46 -07:00
melkeydev 4f4043886b removing more agents hooks 2026-04-10 12:58:44 -07:00
melkeydev aa13859ab0 uptick version 2026-04-10 12:39:14 -07:00
melkeydev e33feea0c6 fixing pr comments 2026-04-06 10:59:10 -07:00
melkeydev 8449a2a561 reduce-vercel-injection-at-start 2026-04-01 15:57:07 -07:00
melkeydev 0f5846e0db adding lexical gating 2026-04-01 10:57:54 -07:00
melkeydev 2dd31f3be3 adding all generated files 2026-03-30 12:33:06 -07:00
melkeydev a8aef0120f fixing generated and uptick version 2026-03-30 12:27:42 -07:00
melkeydev ab572d3e68 fixing ci tests 2026-03-30 09:46:47 -07:00
melkeydev 00875bac61 Finishing evals 2026-03-29 19:41:57 -07:00
melkeydev 77a65a9918 removing observability, turborepo and more skills 2026-03-29 18:26:07 -07:00
melkeydev 7a73b56791 removing 12 skills 2026-03-29 17:52:10 -07:00
melkeydev 96c3cb0743 fixing ci 2026-03-23 11:09:46 -07:00
melkeydev 2148556d27 adding new skill 2026-03-23 10:51:57 -07:00
melkeydev eab4da0aba fixing readme and CI 2026-03-22 15:51:45 -07:00
melkeydev 44d8248160 removing vercel-firewall skill 2026-03-22 14:43:53 -07:00
melkeydev c2d6e61dd0 Removing Satori 2026-03-22 14:38:33 -07:00
melkeydev 0940ee70c5 removing payments 2026-03-22 14:35:22 -07:00
melkeydev a9b8bee401 removing geist docs 2026-03-22 14:07:14 -07:00
melkeydev 83dea37473 Removing geist 2026-03-22 14:06:32 -07:00
melkeydev 2fcdd662b3 removing CMS 2026-03-22 14:01:33 -07:00
melkeydev 90b6504628 fixing our skills with a proper engine 2026-03-22 13:48:55 -07:00
melkeydev ef93bf49ca fixing template broken builds 2026-03-21 22:01:57 -07:00
melkeydev aeb71be011 editing status.md for project status 2026-03-18 21:57:14 -07:00
melkeydev 3c50276108 fixing telemetry to be base tracking and anonymous 2026-03-18 10:46:28 -07:00
melkeydev abd9ed613a fixing for telemetry 2026-03-18 09:57:56 -07:00
melkeydev 637de60acb Remove accidental fake-banned-test-skill 2026-03-15 21:24:07 -07:00
melkeydev 34ac109f3b Rebuild generated manifests after rebase 2026-03-15 21:18:04 -07:00
melkeydev a2cbc8e45e fixing and making telemetry more stable 2026-03-15 21:15:20 -07:00
Andrey Buzin 76d6dd11aa Run codegen 2026-03-13 12:56:41 -07:00
Andrey Buzin b0240a6696 Remove extra references, prune the skill and narrow down its focus 2026-03-13 12:49:50 -07:00
Andrey Buzin e7a631ee76 Add vercel-services skill
Wire in vercel-services
2026-03-13 12:49:50 -07:00
John Lindquist 8e3350454c feat: prompt scoring improvements, compaction re-injection, validation dedup, strip droppedByCap from context; bump to 0.18.0
- Add dominant-topic suppression (top score >= 600 filters scores < 50)
- Add project-context boost (+3 for VERCEL_PLUGIN_LIKELY_SKILLS skills)
- Add lexical fallback floor (reject raw score < 20)
- Add compaction re-injection for priority >= 7 skills (VERCEL_PLUGIN_CONTEXT_COMPACTED)
- Add validation rule dedup tracking (ruleId + filePath on violations)
- Strip droppedByCap from injected HTML comments (kept in debug logs)
- Fix ncc/SKILL.md and next-forge/SKILL.md YAML frontmatter
- Add startup diagnostic for broken skill frontmatter
2026-03-11 19:01:59 -06:00
John Lindquist b7e9b1b053 feat: merge upstream telemetry + Cursor compat, fix tests and dedup migration; bump to 0.17.0 2026-03-11 16:12:55 -06:00
John Lindquist 8e24d0694a feat: add chainTo skill chaining, prompt signals, validation upgrades, and dedup reset on context clear
Add a chainTo frontmatter field to skills that triggers follow-up skill injection
when PostToolUse file contents match regex patterns. Add upgradeToSkill/upgradeWhy
fields to validation rules so validate errors can recommend loading a specific skill.
Register posttooluse-bash-chain.mjs in hooks.json. Add ChainToRule interface to
patterns.mts and skill-map-frontmatter.mts, with parseChainToRules() parser. Add
duplicate-key detection to the YAML parser. Reset dedup claim dir and session file
on clear/compact events in session-start-seen-skills so skills re-inject into fresh
context windows.

Add chainTo rules to: agent-browser-verify, agent-browser, ai-elements, ai-gateway,
ai-generation-persistence, ai-sdk, auth, bootstrap, chat-sdk, cms, cron-jobs,
deployments-cicd, email, env-vars, geist, investigation-mode, json-render,
marketplace, micro, ncc, next-forge, nextjs, observability, payments,
react-best-practices, routing-middleware, runtime-cache, satori, shadcn,
sign-in-with-vercel, swr, turbopack, turborepo, v0-dev, vercel-agent, vercel-api,
vercel-cli, vercel-firewall, vercel-flags, vercel-functions, vercel-queues,
vercel-sandbox, vercel-storage, verification, workflow. Add upgradeToSkill to
ai-elements and ai-sdk validate rules. Expand ai-sdk validate messages with
Run Skill() hints. Update nextjs, vercel-storage, runtime-cache, workflow, turborepo
skill bodies.

Add new skills: geistdocs (Geist design system docs), zzz-test-meta-name-mask
(test fixture). Add skills/_chain-audit.md chain coverage audit doc.

Delete .claude-plugin/marketplace.json, .claude-plugin/plugin.json (deprecated),
skills/edge-runtime/SKILL.md (consolidated into vercel-functions).

Add tests: posttooluse-chain.test.ts (4699 lines, chain injection e2e),
ai-sdk-companion.test.ts (181 lines). Expand build-skill-map.test.ts (+335 lines),
validate-rules.test.ts (+936 lines), session-start-seen-skills.test.ts (+74 lines),
skill-map-frontmatter.test.ts (+50 lines), verification-skill.test.ts (+20 lines).

Update build-manifest.ts to emit chainTo rules and upgradeToSkill fields. Rebuild
generated/skill-manifest.json, generated/skill-catalog.md, generated/build-from-skills.manifest.json.
Rebuild all compiled hooks/*.mjs. Update CLAUDE.md lexical prompt default to on.
Update vercel.md ecosystem graph, docs, and cli-reference.
2026-03-11 15:18:35 -06:00
John Lindquist f438cb7313 fix(skills): normalize manifest regex escaping
Regenerate the skill manifest so the new micro and deployments-cicd validate rules use the canonical escaping emitted by build:manifest.
The prior shared-index commit captured non-canonical escaping in generated/skill-manifest.json.

Verified: bun run build:manifest
Verified: git diff --cached -- generated/skill-manifest.json shows only the 2 regex escaping normalizations
Swarm-Agent: codex-rules-wave2b
2026-03-11 15:16:21 -06:00
John Lindquist 875a9e7d20 test(upgrade-rules): cover skill upgrade validate fixtures
Add focused fixture tests for each current upgradeToSkill validate rule.
Each case asserts the positive trigger and the skipIfFileContains path so future SKILL.md changes do not silently break upgrade guidance.

Verified: bun test tests/upgrade-rules.test.ts
How to test: bun test tests/upgrade-rules.test.ts
Swarm-Agent: codex-test-fixtures
2026-03-11 15:16:21 -06:00
John Lindquist a6077bb0c8 feat(skills): add validate upgrades to three skills
Add top-level validate blocks to react-best-practices, auth, and routing-middleware so the manifest can recommend SWR, Sign in with Vercel, and Vercel Firewall/WAF when legacy patterns are detected.

Verified: bun run build:manifest
Verified: git diff -- generated/skill-manifest.json shows only these three skills gained validate entries
Swarm-Agent: codex-rules-wave2a
2026-03-11 15:16:21 -06:00
John Lindquist ca89a80912 feat(nextjs): add upgrade validate rules for auth, functions, and caching
Add three Next.js validate rules that recommend upgrading legacy auth, Pages Router API routes, and in-memory caches to dedicated Vercel skills.
Regenerate the static skill manifest so the new upgrade metadata is available at runtime; this also syncs a few pre-existing source-of-truth manifest entries that were stale in the generated file.

Verified: bun run build:manifest (isolated clean checkout based on HEAD + skills/nextjs/SKILL.md)
Verified: git diff --cached --check
Swarm-Agent: codex-commit-nextjs
2026-03-11 15:16:21 -06:00
John Lindquist 7a124e6561 Add sitemap field to skill metadata: parse metadata.sitemap in skill-map-frontmatter.mts, add sitemap to SkillConfig interface and KNOWN_KEYS, render sitemap URLs in buildDocsBlock() alongside doc links, include sitemap in generated manifest, and add sitemap URLs to 35 SKILL.md files for domains that have sitemap.xml. Also fix 15 broken doc URLs across 14 skills (vercel.com/docs path changes, anthropic docs, stripe, descope, flags-sdk, ai-sdk). Bump to 0.16.1. 2026-03-10 14:31:40 -06:00