Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion generated/build-from-skills.manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"version": 1,
"generatedAt": "2026-04-11T21:14:22.852Z",
"generatedAt": "2026-04-30T12:46:51.797Z",
"templates": [
{
"template": "agents/ai-architect.md.tmpl",
Expand Down
5 changes: 3 additions & 2 deletions generated/skill-manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"generatedAt": "2026-04-28T18:37:08.157Z",
"generatedAt": "2026-04-30T12:46:51.769Z",
"version": 2,
"skills": {
"vercel-agent": {
Expand Down Expand Up @@ -4316,7 +4316,8 @@
{
"pattern": "export\\s+default\\s+function",
"message": "Use named exports (GET, POST, PUT, DELETE) instead of default export for route handlers",
"severity": "error"
"severity": "error",
"skipIfFileContains": "(?:^|\\\\n)\\\\s*['\\\"]use\\\\s+client['\\\"]|export\\\\s+const\\\\s+(?:metadata|dynamic|revalidate|fetchCache|runtime)\\\\b|export\\\\s+default\\\\s+(?:async\\\\s+)?function\\\\s+\\\\w*(?:Page|Layout|Loading|Error|NotFound|Sitemap|Template|Default|sitemap|robots|opengraph|manifest)\\\\b|<[A-Z][A-Za-z0-9]*|\\\\{\\\\s*children\\\\s*[,}:]|MetadataRoute\\\\.|from\\\\s+['\\\"]next/(?:font|image|link|navigation|headers|cookies)['\\\"]"
},
{
"pattern": "NextApiRequest|NextApiResponse",
Expand Down
7 changes: 7 additions & 0 deletions skills/vercel-functions/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ validate:
pattern: export\s+default\s+function
message: 'Use named exports (GET, POST, PUT, DELETE) instead of default export for route handlers'
severity: error
# Skip on App Router page / layout / loading / error / not-found / sitemap / template / default files,
# which require a default export by Next.js convention. Detected via the 'use client' directive,
# an App Router config export (metadata, dynamic, revalidate, fetchCache, runtime), an `export default
# function` whose name matches an App Router file (Page / Layout / Loading / etc.), or any JSX
# element with a capitalised component tag — all signals that the file is a page-style file rather
# than a route handler. See anthropics/claude-code#54989.
skipIfFileContains: "(?:^|\\n)\\s*['\"]use\\s+client['\"]|export\\s+const\\s+(?:metadata|dynamic|revalidate|fetchCache|runtime)\\b|export\\s+default\\s+(?:async\\s+)?function\\s+\\w*(?:Page|Layout|Loading|Error|NotFound|Sitemap|Template|Default|sitemap|robots|opengraph|manifest)\\b|<[A-Z][A-Za-z0-9]*|\\{\\s*children\\s*[,}:]|MetadataRoute\\.|from\\s+['\"]next/(?:font|image|link|navigation|headers|cookies)['\"]"
-
pattern: NextApiRequest|NextApiResponse
message: 'NextApiRequest/NextApiResponse are Pages Router types — use Web API Request/Response'
Expand Down