[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7972YHP46S05EPXTY7DQ0RH":3,"skill-same:01M7972YHP46S05EPXTY7DQ0RH":58},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":35,"commitSha":36,"skillDirectory":37,"forksCount":38,"repositoryHtmlUrl":39,"repositoryHomepageUrl":6,"ownerHtmlUrl":40,"ownerBlogUrl":41,"ownerDescription":42,"updatedAt":43,"install":44,"resources":57},"01M7972YHP46S05EPXTY7DQ0RH","vercel-policy-guardrails",null,"Implement lint rules, CI policy checks, and automated guardrails for Vercel projects.\nUse when setting up code quality rules, preventing secret exposure,\nor enforcing deployment policies for Vercel applications.\nTrigger with phrases like \"vercel policy\", \"vercel lint\",\n\"vercel guardrails\", \"vercel best practices check\", \"vercel secret scan\".","jukeyman\u002Fjukeyman-skills","jukeyman","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F142960420?v=4","01M78FR4Y3DHMMCBCC0GXXNB3F","RICK JEFFERSON","01M78FR4Z8RVQRAD31Y5J7V6EB",1,"MIT","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsaas-packs--vercel-pack--vercel-policy-guardrails\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: vercel-policy-guardrails\ndescription: |\n  Implement lint rules, CI policy checks, and automated guardrails for Vercel projects.\n  Use when setting up code quality rules, preventing secret exposure,\n  or enforcing deployment policies for Vercel applications.\n  Trigger with phrases like \"vercel policy\", \"vercel lint\",\n  \"vercel guardrails\", \"vercel best practices check\", \"vercel secret scan\".\nallowed-tools: Read, Write, Edit, Bash(npx:*), Bash(npm:*)\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\ncompatible-with: claude-code, codex, openclaw\ntags: [saas, vercel, policy, linting, security]\n---\n# Vercel Policy Guardrails\n\n## Overview\nProtect against common Vercel failure modes with automated guardrails: ESLint rules preventing secret exposure in client bundles, pre-commit hooks scanning for credentials, CI checks validating vercel.json and edge runtime compatibility, and runtime middleware enforcing auth on protected routes.\n\n## Prerequisites\n- ESLint configured in project\n- Git hooks infrastructure (husky or lefthook)\n- CI\u002FCD pipeline (GitHub Actions or similar)\n- TypeScript for type enforcement\n\n## Instructions\n\n### Step 1: ESLint Rules — Prevent Secret Exposure\n```javascript\n\u002F\u002F .eslintrc.js — custom rules for Vercel projects\nmodule.exports = {\n  rules: {\n    \u002F\u002F Prevent using NEXT_PUBLIC_ prefix for sensitive variables\n    'no-restricted-syntax': [\n      'error',\n      {\n        selector: 'MemberExpression[object.property.name=\"env\"][property.name=\u002F^NEXT_PUBLIC_(SECRET|KEY|TOKEN|PASSWORD|PRIVATE)\u002F]',\n        message: 'Do not prefix secrets with NEXT_PUBLIC_ — they will be exposed in the client bundle',\n      },\n    ],\n  },\n  overrides: [\n    {\n      \u002F\u002F Edge runtime files — prevent Node.js API usage\n      files: ['**\u002Fedge-*.ts', '**\u002Fmiddleware.ts'],\n      rules: {\n        'no-restricted-imports': [\n          'error',\n          {\n            paths: [\n              { name: 'fs', message: 'fs is not available in Edge Runtime. Use fetch or Vercel Blob.' },\n              { name: 'path', message: 'path is not available in Edge Runtime. Use URL API.' },\n              { name: 'crypto', message: 'Use globalThis.crypto (Web Crypto API) in Edge Runtime.' },\n              { name: 'child_process', message: 'child_process is not available in Edge Runtime.' },\n              { name: 'net', message: 'net is not available in Edge Runtime.' },\n            ],\n          },\n        ],\n      },\n    },\n  ],\n};\n```\n\n### Step 2: Pre-Commit Hook — Credential Scanning\n```bash\n# Install husky\nnpm install --save-dev husky\nnpx husky init\n```\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bash\n# .husky\u002Fpre-commit\nset -euo pipefail\n\n# Scan staged files for credentials\nPATTERNS=(\n  'VERCEL_TOKEN\\s*[:=]\\s*\\S+'\n  'vercel_[a-zA-Z]*_token\\s*[:=]\\s*\\S+'\n  'sk_live_[a-zA-Z0-9]+'\n  'NEXT_PUBLIC_.*SECRET'\n  'api\\.vercel\\.com.*Bearer\\s+[a-zA-Z0-9]+'\n)\n\nSTAGED_FILES=$(git diff --cached --name-only --diff-filter=ACM)\nFOUND=0\n\nfor file in $STAGED_FILES; do\n  for pattern in \"${PATTERNS[@]}\"; do\n    if grep -qEi \"$pattern\" \"$file\" 2>\u002Fdev\u002Fnull; then\n      echo \"ERROR: Potential credential found in $file\"\n      echo \"  Pattern: $pattern\"\n      FOUND=1\n    fi\n  done\ndone\n\nif [ $FOUND -ne 0 ]; then\n  echo \"\"\n  echo \"Commit blocked: Remove credentials and use environment variables.\"\n  echo \"See: vercel env add \u003CKEY> \u003Cenvironment>\"\n  exit 1\nfi\n```\n\n### Step 3: CI Policy Check — vercel.json Validation\n```yaml\n# .github\u002Fworkflows\u002Fvercel-policy.yml\nname: Vercel Policy Checks\non: [pull_request]\n\njobs:\n  policy:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v4\n      - uses: actions\u002Fsetup-node@v4\n        with: { node-version: 20 }\n\n      - name: Validate vercel.json schema\n        run: |\n          if [ -f vercel.json ]; then\n            node -e \"\n              const config = require('.\u002Fvercel.json');\n              const errors = [];\n\n              \u002F\u002F Check for deprecated builds property\n              if (config.builds) {\n                errors.push('vercel.json uses deprecated \\\"builds\\\" property — use \\\"functions\\\" instead');\n              }\n\n              \u002F\u002F Check compressHTML (iOS Safari issue)\n              if (config.compressHTML === true) {\n                errors.push('compressHTML should be disabled — causes iOS Safari rendering issues');\n              }\n\n              \u002F\u002F Check for hardcoded secrets in headers\n              const headerStr = JSON.stringify(config.headers ?? []);\n              if (\u002FBearer\\s+[a-zA-Z0-9]{20,}\u002F.test(headerStr)) {\n                errors.push('Hardcoded token found in vercel.json headers');\n              }\n\n              if (errors.length > 0) {\n                console.error('Policy violations:');\n                errors.forEach(e => console.error('  - ' + e));\n                process.exit(1);\n              }\n              console.log('vercel.json policy checks passed');\n            \"\n          fi\n\n      - name: Check edge runtime compatibility\n        run: |\n          # Find files with edge runtime declaration\n          for file in $(grep -rl \"runtime.*=.*'edge'\" src\u002F api\u002F 2>\u002Fdev\u002Fnull || true); do\n            echo \"Checking edge compatibility: $file\"\n            # Check for Node.js-only imports\n            if grep -E \"require\\(['\\\"]fs['\\\"]|from ['\\\"]fs['\\\"]|from ['\\\"]path['\\\"]|from ['\\\"]crypto['\\\"]\" \"$file\"; then\n              echo \"ERROR: $file uses Node.js APIs incompatible with Edge Runtime\"\n              exit 1\n            fi\n          done\n          echo \"Edge runtime compatibility checks passed\"\n\n      - name: Check bundle size budget\n        run: |\n          npm ci\n          npm run build\n          # Check output size\n          TOTAL=$(du -sb .next\u002F 2>\u002Fdev\u002Fnull | cut -f1 || echo 0)\n          MAX=$((250 * 1024 * 1024))  # 250MB\n          if [ \"$TOTAL\" -gt \"$MAX\" ]; then\n            echo \"ERROR: Build output ($TOTAL bytes) exceeds budget ($MAX bytes)\"\n            exit 1\n          fi\n          echo \"Bundle size within budget: $TOTAL bytes\"\n```\n\n### Step 4: Env Var Documentation Guard\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bash\n# scripts\u002Fcheck-env-docs.sh — ensure .env.example stays in sync\nset -euo pipefail\n\n# Extract env vars used in code\nCODE_VARS=$(grep -roh 'process\\.env\\.\\w\\+' src\u002F api\u002F 2>\u002Fdev\u002Fnull \\\n  | sed 's\u002Fprocess\\.env\\.\u002F\u002F' \\\n  | sort -u)\n\n# Extract vars documented in .env.example\nif [ ! -f .env.example ]; then\n  echo \"ERROR: .env.example file missing\"\n  exit 1\nfi\n\nDOC_VARS=$(grep -oE '^\\w+=' .env.example | sed 's\u002F=\u002F\u002F' | sort -u)\n\n# Find undocumented vars\nMISSING=$(comm -23 \u003C(echo \"$CODE_VARS\") \u003C(echo \"$DOC_VARS\"))\nif [ -n \"$MISSING\" ]; then\n  echo \"ERROR: Undocumented environment variables:\"\n  echo \"$MISSING\" | sed 's\u002F^\u002F  \u002F'\n  echo \"Add these to .env.example\"\n  exit 1\nfi\n\necho \"All environment variables documented\"\n```\n\n### Step 5: Runtime Auth Middleware Guard\n```typescript\n\u002F\u002F middleware.ts — enforce that protected routes always require auth\nimport { NextRequest, NextResponse } from 'next\u002Fserver';\n\n\u002F\u002F Routes that MUST require authentication\nconst PROTECTED_PATTERNS = [\n  \u002F^\\\u002Fapi\\\u002Fadmin\u002F,\n  \u002F^\\\u002Fapi\\\u002Fusers\u002F,\n  \u002F^\\\u002Fdashboard\u002F,\n  \u002F^\\\u002Fsettings\u002F,\n];\n\n\u002F\u002F Routes explicitly allowed without auth\nconst PUBLIC_PATTERNS = [\n  \u002F^\\\u002Fapi\\\u002Fhealth\u002F,\n  \u002F^\\\u002Fapi\\\u002Fwebhooks\u002F,\n  \u002F^\\\u002F$\u002F, \u002F\u002F homepage\n  \u002F^\\\u002Flogin\u002F,\n  \u002F^\\\u002Fsignup\u002F,\n];\n\nexport function middleware(request: NextRequest) {\n  const { pathname } = request.nextUrl;\n\n  const isProtected = PROTECTED_PATTERNS.some(p => p.test(pathname));\n  const isPublic = PUBLIC_PATTERNS.some(p => p.test(pathname));\n\n  if (isProtected && !isPublic) {\n    const token = request.cookies.get('session')?.value;\n    if (!token) {\n      if (pathname.startsWith('\u002Fapi\u002F')) {\n        return NextResponse.json({ error: 'Unauthorized' }, { status: 401 });\n      }\n      return NextResponse.redirect(new URL('\u002Flogin', request.url));\n    }\n  }\n\n  return NextResponse.next();\n}\n\nexport const config = {\n  matcher: ['\u002F((?!_next\u002Fstatic|_next\u002Fimage|favicon.ico).*)'],\n};\n```\n\n### Step 6: Deployment Freeze Guard\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bash\n# scripts\u002Fcheck-deploy-freeze.sh — prevent production deploys during freeze windows\nset -euo pipefail\n\n# Check if we're in a deployment freeze window\nHOUR=$(date -u +%H)\nDAY=$(date -u +%u)  # 1=Monday, 7=Sunday\n\n# No deploys on weekends\nif [ \"$DAY\" -gt 5 ]; then\n  echo \"BLOCKED: No production deploys on weekends\"\n  exit 1\nfi\n\n# No deploys after 4pm UTC (Friday especially)\nif [ \"$DAY\" -eq 5 ] && [ \"$HOUR\" -ge 16 ]; then\n  echo \"BLOCKED: No production deploys after 4pm UTC on Fridays\"\n  exit 1\nfi\n\necho \"Deploy allowed\"\n```\n\n## Guardrails Summary\n\n| Guardrail | Enforcement Point | Prevents |\n|-----------|-------------------|----------|\n| Secret prefix lint | ESLint (editor + CI) | Client bundle secret exposure |\n| Edge runtime lint | ESLint (editor + CI) | Node.js APIs in edge functions |\n| Credential scan | Pre-commit hook | Secrets in version control |\n| vercel.json validation | CI | Deprecated config, hardcoded tokens |\n| Env var documentation | CI | Missing .env.example entries |\n| Auth middleware | Runtime | Unprotected routes |\n| Deploy freeze | CI | Weekend\u002Flate deploys |\n\n## Output\n- ESLint rules preventing secret exposure and edge runtime violations\n- Pre-commit hooks blocking credentials from entering git\n- CI policy checks validating configuration and compatibility\n- Runtime middleware enforcing authentication on protected routes\n- Deployment freeze windows preventing risky deploys\n\n## Error Handling\n| Error | Cause | Solution |\n|-------|-------|----------|\n| ESLint rule false positive | Variable name matches pattern | Add `\u002F\u002F eslint-disable-next-line` with justification |\n| Pre-commit hook blocks valid commit | Pattern too broad | Narrow the regex or add allowlist |\n| CI edge check false positive | Dead import | Remove unused import |\n| Deploy freeze too restrictive | Urgent hotfix needed | Use `--force` flag with team approval |\n\n## Resources\n- [ESLint Custom Rules](https:\u002F\u002Feslint.org\u002Fdocs\u002Flatest\u002Fextend\u002Fplugins)\n- [Husky Documentation](https:\u002F\u002Ftypicode.github.io\u002Fhusky\u002F)\n- [Vercel Project Configuration](https:\u002F\u002Fvercel.com\u002Fdocs\u002Fproject-configuration)\n- [Edge Runtime API](https:\u002F\u002Fvercel.com\u002Fdocs\u002Ffunctions\u002Fruntimes\u002Fedge)\n\n## Next Steps\nFor architecture variants, see `vercel-architecture-variants`.\n","# Vercel Policy Guardrails\n\n## Overview\nProtect against common Vercel failure modes with automated guardrails: ESLint rules preventing secret exposure in client bundles, pre-commit hooks scanning for credentials, CI checks validating vercel.json and edge runtime compatibility, and runtime middleware enforcing auth on protected routes.\n\n## Prerequisites\n- ESLint configured in project\n- Git hooks infrastructure (husky or lefthook)\n- CI\u002FCD pipeline (GitHub Actions or similar)\n- TypeScript for type enforcement\n\n## Instructions\n\n### Step 1: ESLint Rules — Prevent Secret Exposure\n```javascript\n\u002F\u002F .eslintrc.js — custom rules for Vercel projects\nmodule.exports = {\n  rules: {\n    \u002F\u002F Prevent using NEXT_PUBLIC_ prefix for sensitive variables\n    'no-restricted-syntax': [\n      'error',\n      {\n        selector: 'MemberExpression[object.property.name=\"env\"][property.name=\u002F^NEXT_PUBLIC_(SECRET|KEY|TOKEN|PASSWORD|PRIVATE)\u002F]',\n        message: 'Do not prefix secrets with NEXT_PUBLIC_ — they will be exposed in the client bundle',\n      },\n    ],\n  },\n  overrides: [\n    {\n      \u002F\u002F Edge runtime files — prevent Node.js API usage\n      files: ['**\u002Fedge-*.ts', '**\u002Fmiddleware.ts'],\n      rules: {\n        'no-restricted-imports': [\n          'error',\n          {\n            paths: [\n              { name: 'fs', message: 'fs is not available in Edge Runtime. Use fetch or Vercel Blob.' },\n              { name: 'path', message: 'path is not available in Edge Runtime. Use URL API.' },\n              { name: 'crypto', message: 'Use globalThis.crypto (Web Crypto API) in Edge Runtime.' },\n              { name: 'child_process', message: 'child_process is not available in Edge Runtime.' },\n              { name: 'net', message: 'net is not available in Edge Runtime.' },\n            ],\n          },\n        ],\n      },\n    },\n  ],\n};\n```\n\n### Step 2: Pre-Commit Hook — Credential Scanning\n```bash\n# Install husky\nnpm install --save-dev husky\nnpx husky init\n```\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bash\n# .husky\u002Fpre-commit\nset -euo pipefail\n\n# Scan staged files for credentials\nPATTERNS=(\n  'VERCEL_TOKEN\\s*[:=]\\s*\\S+'\n  'vercel_[a-zA-Z]*_token\\s*[:=]\\s*\\S+'\n  'sk_live_[a-zA-Z0-9]+'\n  'NEXT_PUBLIC_.*SECRET'\n  'api\\.vercel\\.com.*Bearer\\s+[a-zA-Z0-9]+'\n)\n\nSTAGED_FILES=$(git diff --cached --name-only --diff-filter=ACM)\nFOUND=0\n\nfor file in $STAGED_FILES; do\n  for pattern in \"${PATTERNS[@]}\"; do\n    if grep -qEi \"$pattern\" \"$file\" 2>\u002Fdev\u002Fnull; then\n      echo \"ERROR: Potential credential found in $file\"\n      echo \"  Pattern: $pattern\"\n      FOUND=1\n    fi\n  done\ndone\n\nif [ $FOUND -ne 0 ]; then\n  echo \"\"\n  echo \"Commit blocked: Remove credentials and use environment variables.\"\n  echo \"See: vercel env add \u003CKEY> \u003Cenvironment>\"\n  exit 1\nfi\n```\n\n### Step 3: CI Policy Check — vercel.json Validation\n```yaml\n# .github\u002Fworkflows\u002Fvercel-policy.yml\nname: Vercel Policy Checks\non: [pull_request]\n\njobs:\n  policy:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v4\n      - uses: actions\u002Fsetup-node@v4\n        with: { node-version: 20 }\n\n      - name: Validate vercel.json schema\n        run: |\n          if [ -f vercel.json ]; then\n            node -e \"\n              const config = require('.\u002Fvercel.json');\n              const errors = [];\n\n              \u002F\u002F Check for deprecated builds property\n              if (config.builds) {\n                errors.push('vercel.json uses deprecated \\\"builds\\\" property — use \\\"functions\\\" instead');\n              }\n\n              \u002F\u002F Check compressHTML (iOS Safari issue)\n              if (config.compressHTML === true) {\n                errors.push('compressHTML should be disabled — causes iOS Safari rendering issues');\n              }\n\n              \u002F\u002F Check for hardcoded secrets in headers\n              const headerStr = JSON.stringify(config.headers ?? []);\n              if (\u002FBearer\\s+[a-zA-Z0-9]{20,}\u002F.test(headerStr)) {\n                errors.push('Hardcoded token found in vercel.json headers');\n              }\n\n              if (errors.length > 0) {\n                console.error('Policy violations:');\n                errors.forEach(e => console.error('  - ' + e));\n                process.exit(1);\n              }\n              console.log('vercel.json policy checks passed');\n            \"\n          fi\n\n      - name: Check edge runtime compatibility\n        run: |\n          # Find files with edge runtime declaration\n          for file in $(grep -rl \"runtime.*=.*'edge'\" src\u002F api\u002F 2>\u002Fdev\u002Fnull || true); do\n            echo \"Checking edge compatibility: $file\"\n            # Check for Node.js-only imports\n            if grep -E \"require\\(['\\\"]fs['\\\"]|from ['\\\"]fs['\\\"]|from ['\\\"]path['\\\"]|from ['\\\"]crypto['\\\"]\" \"$file\"; then\n              echo \"ERROR: $file uses Node.js APIs incompatible with Edge Runtime\"\n              exit 1\n            fi\n          done\n          echo \"Edge runtime compatibility checks passed\"\n\n      - name: Check bundle size budget\n        run: |\n          npm ci\n          npm run build\n          # Check output size\n          TOTAL=$(du -sb .next\u002F 2>\u002Fdev\u002Fnull | cut -f1 || echo 0)\n          MAX=$((250 * 1024 * 1024))  # 250MB\n          if [ \"$TOTAL\" -gt \"$MAX\" ]; then\n            echo \"ERROR: Build output ($TOTAL bytes) exceeds budget ($MAX bytes)\"\n            exit 1\n          fi\n          echo \"Bundle size within budget: $TOTAL bytes\"\n```\n\n### Step 4: Env Var Documentation Guard\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bash\n# scripts\u002Fcheck-env-docs.sh — ensure .env.example stays in sync\nset -euo pipefail\n\n# Extract env vars used in code\nCODE_VARS=$(grep -roh 'process\\.env\\.\\w\\+' src\u002F api\u002F 2>\u002Fdev\u002Fnull \\\n  | sed 's\u002Fprocess\\.env\\.\u002F\u002F' \\\n  | sort -u)\n\n# Extract vars documented in .env.example\nif [ ! -f .env.example ]; then\n  echo \"ERROR: .env.example file missing\"\n  exit 1\nfi\n\nDOC_VARS=$(grep -oE '^\\w+=' .env.example | sed 's\u002F=\u002F\u002F' | sort -u)\n\n# Find undocumented vars\nMISSING=$(comm -23 \u003C(echo \"$CODE_VARS\") \u003C(echo \"$DOC_VARS\"))\nif [ -n \"$MISSING\" ]; then\n  echo \"ERROR: Undocumented environment variables:\"\n  echo \"$MISSING\" | sed 's\u002F^\u002F  \u002F'\n  echo \"Add these to .env.example\"\n  exit 1\nfi\n\necho \"All environment variables documented\"\n```\n\n### Step 5: Runtime Auth Middleware Guard\n```typescript\n\u002F\u002F middleware.ts — enforce that protected routes always require auth\nimport { NextRequest, NextResponse } from 'next\u002Fserver';\n\n\u002F\u002F Routes that MUST require authentication\nconst PROTECTED_PATTERNS = [\n  \u002F^\\\u002Fapi\\\u002Fadmin\u002F,\n  \u002F^\\\u002Fapi\\\u002Fusers\u002F,\n  \u002F^\\\u002Fdashboard\u002F,\n  \u002F^\\\u002Fsettings\u002F,\n];\n\n\u002F\u002F Routes explicitly allowed without auth\nconst PUBLIC_PATTERNS = [\n  \u002F^\\\u002Fapi\\\u002Fhealth\u002F,\n  \u002F^\\\u002Fapi\\\u002Fwebhooks\u002F,\n  \u002F^\\\u002F$\u002F, \u002F\u002F homepage\n  \u002F^\\\u002Flogin\u002F,\n  \u002F^\\\u002Fsignup\u002F,\n];\n\nexport function middleware(request: NextRequest) {\n  const { pathname } = request.nextUrl;\n\n  const isProtected = PROTECTED_PATTERNS.some(p => p.test(pathname));\n  const isPublic = PUBLIC_PATTERNS.some(p => p.test(pathname));\n\n  if (isProtected && !isPublic) {\n    const token = request.cookies.get('session')?.value;\n    if (!token) {\n      if (pathname.startsWith('\u002Fapi\u002F')) {\n        return NextResponse.json({ error: 'Unauthorized' }, { status: 401 });\n      }\n      return NextResponse.redirect(new URL('\u002Flogin', request.url));\n    }\n  }\n\n  return NextResponse.next();\n}\n\nexport const config = {\n  matcher: ['\u002F((?!_next\u002Fstatic|_next\u002Fimage|favicon.ico).*)'],\n};\n```\n\n### Step 6: Deployment Freeze Guard\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bash\n# scripts\u002Fcheck-deploy-freeze.sh — prevent production deploys during freeze windows\nset -euo pipefail\n\n# Check if we're in a deployment freeze window\nHOUR=$(date -u +%H)\nDAY=$(date -u +%u)  # 1=Monday, 7=Sunday\n\n# No deploys on weekends\nif [ \"$DAY\" -gt 5 ]; then\n  echo \"BLOCKED: No production deploys on weekends\"\n  exit 1\nfi\n\n# No deploys after 4pm UTC (Friday especially)\nif [ \"$DAY\" -eq 5 ] && [ \"$HOUR\" -ge 16 ]; then\n  echo \"BLOCKED: No production deploys after 4pm UTC on Fridays\"\n  exit 1\nfi\n\necho \"Deploy allowed\"\n```\n\n## Guardrails Summary\n\n| Guardrail | Enforcement Point | Prevents |\n|-----------|-------------------|----------|\n| Secret prefix lint | ESLint (editor + CI) | Client bundle secret exposure |\n| Edge runtime lint | ESLint (editor + CI) | Node.js APIs in edge functions |\n| Credential scan | Pre-commit hook | Secrets in version control |\n| vercel.json validation | CI | Deprecated config, hardcoded tokens |\n| Env var documentation | CI | Missing .env.example entries |\n| Auth middleware | Runtime | Unprotected routes |\n| Deploy freeze | CI | Weekend\u002Flate deploys |\n\n## Output\n- ESLint rules preventing secret exposure and edge runtime violations\n- Pre-commit hooks blocking credentials from entering git\n- CI policy checks validating configuration and compatibility\n- Runtime middleware enforcing authentication on protected routes\n- Deployment freeze windows preventing risky deploys\n\n## Error Handling\n| Error | Cause | Solution |\n|-------|-------|----------|\n| ESLint rule false positive | Variable name matches pattern | Add `\u002F\u002F eslint-disable-next-line` with justification |\n| Pre-commit hook blocks valid commit | Pattern too broad | Narrow the regex or add allowlist |\n| CI edge check false positive | Dead import | Remove unused import |\n| Deploy freeze too restrictive | Urgent hotfix needed | Use `--force` flag with team approval |\n\n## Resources\n- [ESLint Custom Rules](https:\u002F\u002Feslint.org\u002Fdocs\u002Flatest\u002Fextend\u002Fplugins)\n- [Husky Documentation](https:\u002F\u002Ftypicode.github.io\u002Fhusky\u002F)\n- [Vercel Project Configuration](https:\u002F\u002Fvercel.com\u002Fdocs\u002Fproject-configuration)\n- [Edge Runtime API](https:\u002F\u002Fvercel.com\u002Fdocs\u002Ffunctions\u002Fruntimes\u002Fedge)\n\n## Next Steps\nFor architecture variants, see `vercel-architecture-variants`.\n",{"name":5,"tags":24,"author":30,"license":15,"version":31,"description":32,"allowed-tools":33,"compatible-with":34},[25,26,27,28,29],"saas","vercel","policy","linting","security","Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Implement lint rules, CI policy checks, and automated guardrails for Vercel projects.\nUse when setting up code quality rules, preventing secret exposure,\nor enforcing deployment policies for Vercel applications.\nTrigger with phrases like \"vercel policy\", \"vercel lint\",\n\"vercel guardrails\", \"vercel best practices check\", \"vercel secret scan\".\n","Read, Write, Edit, Bash(npx:*), Bash(npm:*)","claude-code, codex, openclaw","main","99825ad3f3bcc6597ddcc7294a14e6e922f2b67b","skills\u002Fsaas-packs--vercel-pack--vercel-policy-guardrails",0,"https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills","https:\u002F\u002Fgithub.com\u002Fjukeyman","https:\u002F\u002FRJBUSINESSSOLUTIONS.ORG","Credit and Finance Expert | Developer\r\n\r\nI'm Rick Jefferson, a seasoned credit and finance expert with over a decade of experience in financial literacy,","2026-07-13 07:03:29",{"source":8,"skillName":5,"commands":45,"prompt":55,"zipAvailable":56},[46,49,52],{"tool":47,"command":48},"npx","npx skills add jukeyman\u002Fjukeyman-skills --skill vercel-policy-guardrails",{"tool":50,"command":51},"bunx","bunx skills add jukeyman\u002Fjukeyman-skills --skill vercel-policy-guardrails",{"tool":53,"command":54},"pnpm","pnpm dlx skills add jukeyman\u002Fjukeyman-skills --skill vercel-policy-guardrails","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsaas-packs--vercel-pack--vercel-policy-guardrails\u002FSKILL.md",true,[],[59,66,73,80,87,95],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M79ANS2SM329NEP5ZCX106RR","zustand-store-creator","Create zustand store creator operations. Auto-activating skill for Frontend Development.\nTriggers on: zustand store creator, zustand store creator\nPart of the Frontend Development skill category. Use when working with zustand store creator functionality. Trigger with phrases like \"zustand store creator\", \"zustand creator\", \"zustand\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzustand-store-creator\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M79AMZKP4YDEZ7EHG1Y7PP74","zero-trust-config-helper","Configure with zero trust config helper operations. Auto-activating skill for Security Advanced.\nTriggers on: zero trust config helper, zero trust config helper\nPart of the Security Advanced skill category. Use when configuring systems or services. Trigger with phrases like \"zero trust config helper\", \"zero helper\", \"zero\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzero-trust-config-helper\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M79AMJSBCEJQNBTYNAHYN5HM","zapier-integration-helper","Assist with zapier integration helper operations. Auto-activating skill for Business Automation.\nTriggers on: zapier integration helper, zapier integration helper\nPart of the Business Automation skill category. Use when working with APIs or building integrations. Trigger with phrases like \"zapier integration helper\", \"zapier helper\", \"zapier\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzapier-integration-helper\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M79AHJZGVMARS13VFQYRR1MP","yaml-config-validator","Validate yaml config validator operations. Auto-activating skill for DevOps Basics.\nTriggers on: yaml config validator, yaml config validator\nPart of the DevOps Basics skill category. Use when configuring systems or services. Trigger with phrases like \"yaml config validator\", \"yaml validator\", \"yaml\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fyaml-config-validator\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":91,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M79AHGDZRN0020RDQSQDPAM8","xvary-stock-research","Thesis-driven equity analysis from public SEC EDGAR and market data; \u002Fanalyze, \u002Fscore, \u002Fcompare workflows with bundled Python tools (Claude Code, Cursor, Codex).","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxvary-stock-research\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxvary-stock-research\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":19},"01M79AHCYJ9FV9RMHQ24HDRN33","xss-vulnerability-scanner","Scan xss vulnerability scanner operations. Auto-activating skill for Security Fundamentals.\nTriggers on: xss vulnerability scanner, xss vulnerability scanner\nPart of the Security Fundamentals skill category. Use when working with xss vulnerability scanner functionality. Trigger with phrases like \"xss vulnerability scanner\", \"xss scanner\", \"xss\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxss-vulnerability-scanner\u002FSKILL.md",[],[]]