[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EM6R3VYKWW2XG9DT17RFKK":3,"skill-same:01M6EM6R3VYKWW2XG9DT17RFKK":80},{"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":35,"linkOnly":36,"markdownContent":37,"markdownBody":38,"frontMatter":39,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":49,"ownerHtmlUrl":50,"ownerBlogUrl":6,"ownerDescription":51,"updatedAt":52,"install":53,"resources":65},"01M6EM6R3VYKWW2XG9DT17RFKK","quality-gates",null,"Run comprehensive quality checks including linting, type checking, tests, and security audits before commits or deployments","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fatman36\u002Fquality-gates\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34],"quality gates","quality","gates","testing","security","run","ci","ci-cd","commits","prompts","vibe","deployments","cd","tests","type","linting","2026-11-10 10:12:30",false,"---\nname: quality-gates\ndescription: Run comprehensive quality checks including linting, type checking, tests, and security audits before commits or deployments\nversion: 1.0.0\nauthor: AI-Vibe-Prompts\ntags: [quality, testing, linting, security, ci-cd]\nauto_invoke: true\n---\n\n# Quality Gates Skill\n\n## Objective\n\nEnforce code quality standards by running automated checks that must pass before code can be committed, merged, or deployed. Acts as a guardian ensuring consistent quality across the codebase.\n\n## When to Use This Skill\n\nAuto-invoke when:\n- User completes feature implementation\n- Before creating commits or pull requests\n- User asks to \"test\", \"validate\", \"check quality\", or \"verify\"\n- Before deployment or release\n- After significant refactoring\n\n## Quality Gate Levels\n\n### Level 1: Pre-Commit Gates (Fast, \u003C 30 seconds)\nEssential checks that run before every commit.\n\n### Level 2: Pre-Push Gates (Moderate, \u003C 2 minutes)\nComprehensive checks before pushing to remote.\n\n### Level 3: Pre-Deploy Gates (Thorough, \u003C 5 minutes)\nComplete validation before production deployment.\n\n## Gate Execution Workflow\n\n### Gate 1: Linting (JavaScript\u002FTypeScript)\n\n**Purpose**: Enforce code style and catch common errors\n\n**Tools**: Bash, Read\n\n**Process**:\n1. **Detect linter** by checking for:\n   - ESLint: `.eslintrc*`, `eslint.config.*`\n   - Biome: `biome.json`\n   - None: Skip this gate\n\n2. **Read package.json** to find lint script:\n   ```json\n   \"scripts\": {\n     \"lint\": \"eslint .\",\n     \"lint:fix\": \"eslint . --fix\"\n   }\n   ```\n\n3. **Execute linter**:\n   ```bash\n   # Try to run lint script\n   npm run lint\n   \n   # If fails, try direct commands\n   npx eslint . || npx biome check .\n   ```\n\n4. **Parse results**:\n   - Exit code 0: ✅ PASS\n   - Exit code non-zero: ❌ FAIL\n   - Extract error count and file locations\n\n5. **Auto-fix attempt** (if failures found):\n   ```bash\n   npm run lint:fix || npx eslint . --fix\n   ```\n\n**Success Criteria**: Zero linting errors (warnings acceptable)\n\n### Gate 2: Type Checking (TypeScript)\n\n**Purpose**: Verify type safety and catch type errors\n\n**Tools**: Bash, Read, Grep\n\n**Process**:\n1. **Detect TypeScript** by checking for:\n   - `tsconfig.json`\n   - TypeScript in dependencies\n\n2. **Read tsconfig.json** to check strictness:\n   - `strict: true`\n   - `noImplicitAny`, `strictNullChecks`, etc.\n\n3. **Execute type checker**:\n   ```bash\n   # Try to run typecheck script\n   npm run typecheck || npm run type-check\n   \n   # If no script, run directly\n   npx tsc --noEmit\n   ```\n\n4. **Parse results**:\n   - Exit code 0: ✅ PASS\n   - Exit code non-zero: ❌ FAIL\n   - Extract error count and locations\n\n**Success Criteria**: Zero type errors\n\n### Gate 3: Unit & Integration Tests\n\n**Purpose**: Verify code functionality and prevent regressions\n\n**Tools**: Bash, Read, Grep\n\n**Process**:\n1. **Detect test framework**:\n   - Vitest: `vitest.config.*`, `vitest` in dependencies\n   - Jest: `jest.config.*`, `jest` in dependencies\n   - Native test: `--test` flag with Node.js 20+\n\n2. **Count test files**:\n   ```bash\n   # Use Grep to find test files\n   find . -name \"*.test.*\" -o -name \"*.spec.*\" | wc -l\n   ```\n\n3. **Execute tests**:\n   ```bash\n   # Run unit tests (fast)\n   npm run test || npm run test:unit\n   \n   # Or direct command\n   npx vitest run || npx jest --ci\n   ```\n\n4. **Parse results**:\n   - Total tests run\n   - Passed \u002F Failed \u002F Skipped\n   - Coverage percentage (if available)\n\n5. **Coverage check** (if configured):\n   ```bash\n   npm run test:coverage\n   \n   # Check if meets threshold (e.g., 80%)\n   ```\n\n**Success Criteria**: \n- All tests pass (100%)\n- Coverage ≥ configured threshold (if set)\n\n### Gate 4: Build Verification\n\n**Purpose**: Ensure code compiles and builds without errors\n\n**Tools**: Bash\n\n**Process**:\n1. **Detect build system**:\n   - Next.js: `next build`\n   - Vite: `vite build`\n   - Webpack: `webpack --mode production`\n   - TypeScript: `tsc`\n\n2. **Execute build**:\n   ```bash\n   npm run build\n   ```\n\n3. **Check build artifacts**:\n   - Verify output directory exists: `dist\u002F`, `build\u002F`, `.next\u002F`\n   - Check for build errors in logs\n\n4. **Clean up** (optional):\n   ```bash\n   # Remove build artifacts to save space\n   rm -rf dist\u002F build\u002F .next\u002F\n   ```\n\n**Success Criteria**: Build completes with exit code 0\n\n### Gate 5: Security Audit\n\n**Purpose**: Identify known vulnerabilities in dependencies\n\n**Tools**: Bash, Read\n\n**Process**:\n1. **Run npm\u002Fpnpm audit**:\n   ```bash\n   npm audit --json || pnpm audit --json\n   ```\n\n2. **Parse audit results**:\n   - Critical vulnerabilities: 0\n   - High vulnerabilities: 0\n   - Moderate vulnerabilities: \u003C threshold\n   - Low vulnerabilities: informational\n\n3. **Check for specific vulnerabilities**:\n   - Prototype pollution\n   - Remote code execution (RCE)\n   - SQL injection\n   - Cross-site scripting (XSS)\n\n4. **Suggest fixes**:\n   ```bash\n   npm audit fix\n   # or\n   npm audit fix --force  # (if safe)\n   ```\n\n**Success Criteria**: \n- Zero critical\u002Fhigh vulnerabilities\n- Moderate vulnerabilities acknowledged or fixed\n\n### Gate 6: Code Complexity Analysis (Optional)\n\n**Purpose**: Flag overly complex code that may need refactoring\n\n**Tools**: Grep, Bash\n\n**Process**:\n1. **Detect code complexity tools**:\n   - eslint-plugin-complexity\n   - SonarQube\n   - CodeClimate\n\n2. **Basic complexity checks**:\n   ```bash\n   # Find files with excessive lines\n   find src -name \"*.{ts,tsx,js,jsx}\" -exec wc -l {} \\; | awk '$1 > 500'\n   \n   # Find deeply nested code (>5 levels)\n   grep -rn \"^[[:space:]]\\{20,\\}\" src\u002F\n   \n   # Count TODO\u002FFIXME\n   grep -rn \"TODO\\|FIXME\\|HACK\" src\u002F | wc -l\n   ```\n\n**Success Criteria**: \n- No files > 500 lines (warning only)\n- No nesting > 5 levels (warning only)\n\n### Gate 7: Git Pre-Commit Checks\n\n**Purpose**: Ensure commit quality and prevent sensitive data leaks\n\n**Tools**: Bash, Grep\n\n**Process**:\n1. **Check for sensitive data**:\n   ```bash\n   # Search for API keys, secrets, tokens\n   git diff --cached | grep -i \"api[_-]key\\|secret\\|password\\|token\"\n   \n   # Check for .env files being committed\n   git diff --cached --name-only | grep \"\\.env$\"\n   ```\n\n2. **Validate commit message** (if Conventional Commits):\n   - Format: `type(scope): description`\n   - Types: feat, fix, docs, style, refactor, test, chore\n\n3. **Check file sizes**:\n   ```bash\n   # Flag files > 1MB\n   git diff --cached --name-only | xargs ls -lh | awk '$5 > 1000000'\n   ```\n\n**Success Criteria**: \n- No secrets in diff\n- No .env files\n- No large files (> 1MB)\n\n## Execution Strategy\n\n### Sequential Execution (Default)\nRun gates in order, stop on first failure:\n```\nLint → TypeCheck → Test → Build → Audit\n```\n\n### Parallel Execution (Fast Mode)\nRun independent gates simultaneously:\n```\n[Lint + TypeCheck + Test] → Build → Audit\n```\n\n### Selective Execution\nRun only relevant gates based on changes:\n- `.ts\u002F.tsx` files changed → TypeCheck\n- Dependencies updated → Audit\n- Test files changed → Tests only\n\n## Output Format\n\n```markdown\n# Quality Gate Results\n\n## Summary\n✅ 5\u002F7 Gates Passed | ❌ 2\u002F7 Gates Failed\n\n## Gate Details\n\n### ✅ Gate 1: Linting\n- **Status**: PASS\n- **Duration**: 3.2s\n- **Details**: 0 errors, 2 warnings\n\n### ❌ Gate 2: Type Checking\n- **Status**: FAIL\n- **Duration**: 5.1s\n- **Errors**: 3 type errors found\n  - `src\u002Fcomponents\u002FButton.tsx:15` - Property 'onClick' is missing\n  - `src\u002Futils\u002Fapi.ts:42` - Type 'string' is not assignable to type 'number'\n  - `src\u002Fhooks\u002FuseAuth.ts:8` - Cannot find name 'User'\n\n### ✅ Gate 3: Tests\n- **Status**: PASS\n- **Duration**: 12.4s\n- **Tests**: 124 passed, 0 failed, 2 skipped\n- **Coverage**: 87% (target: 80%)\n\n### ⏭️ Gate 4: Build\n- **Status**: SKIPPED (previous gate failed)\n\n### ⏭️ Gate 5: Security Audit\n- **Status**: SKIPPED (previous gate failed)\n\n## Action Required\nFix the 3 type errors in Gate 2 before proceeding.\n\n## Recommendations\n1. Run `npm run typecheck` locally to see full error details\n2. Consider adding pre-commit hooks to catch these earlier\n3. Current code coverage (87%) exceeds target - excellent work!\n```\n\n## Integration with Git Hooks\n\n### Setup Husky + lint-staged (Recommended)\n\n**Check if installed**:\n```bash\ntest -d .husky && echo \"Husky installed\" || echo \"Husky not found\"\n```\n\n**Suggest installation** if missing:\n```bash\nnpm install --save-dev husky lint-staged\nnpx husky init\n```\n\n**Configure .husky\u002Fpre-commit**:\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv sh\n. \"$(dirname -- \"$0\")\u002F_\u002Fhusky.sh\"\n\n# Run quality gates\nnpm run lint\nnpm run typecheck\nnpm run test\n```\n\n### Alternative: git commit -m with manual checks\n\nIf no hooks, prompt user:\n```\n⚠️  No pre-commit hooks detected.\nWould you like me to run quality gates before committing? (Recommended)\n```\n\n## Progressive Quality Gates\n\n### Level 1: Essential (Always Run)\n- Linting\n- Type checking\n\n### Level 2: Standard (Pre-Push)\n- Essential +\n- Unit tests\n- Security audit\n\n### Level 3: Comprehensive (Pre-Deploy)\n- Standard +\n- Integration tests\n- E2E tests\n- Build verification\n- Performance tests\n\n## Error Recovery\n\n### Auto-Fix Capability\n- **Lint errors**: Run `eslint --fix` or `biome check --apply`\n- **Format errors**: Run `prettier --write` \n- **Security vulnerabilities**: Run `npm audit fix`\n\n### Manual Fix Required\n- Type errors\n- Test failures\n- Build errors\n\n### Bypass (Use with Caution)\n```bash\n# Skip hooks for emergency fixes only\ngit commit --no-verify -m \"emergency: fix critical bug\"\n```\n\n## Best Practices\n\n1. **Fail Fast**: Stop at first critical failure to save time\n2. **Clear Feedback**: Always show which gate failed and why\n3. **Actionable**: Provide exact commands to fix issues\n4. **Configurable**: Respect project's quality thresholds\n5. **Performance**: Cache results when possible\n6. **Incremental**: Only check changed files when appropriate\n\n## Configuration\n\n### Read from package.json\n```json\n{\n  \"qualityGates\": {\n    \"coverage\": {\n      \"minimum\": 80,\n      \"enabled\": true\n    },\n    \"audit\": {\n      \"level\": \"moderate\",\n      \"enabled\": true\n    },\n    \"complexity\": {\n      \"maxLines\": 500,\n      \"maxDepth\": 5\n    }\n  }\n}\n```\n\n### Default Settings\nIf no config found, use sensible defaults:\n- Coverage minimum: 70%\n- Audit level: high\u002Fcritical only\n- Max file lines: 500\n- Max nesting: 5 levels\n\n## Integration with Other Skills\n\n- `codebase-analysis` - Use to detect available quality tools\n- `git-workflow` - Integrate with commit\u002Fpush process\n- `ci-cd-setup` - Configure gates for CI pipeline\n\n## Version History\n\n- **1.0.0** (2025-01-03): Initial skill with 7 quality gates and progressive execution\n","# Quality Gates Skill\n\n## Objective\n\nEnforce code quality standards by running automated checks that must pass before code can be committed, merged, or deployed. Acts as a guardian ensuring consistent quality across the codebase.\n\n## When to Use This Skill\n\nAuto-invoke when:\n- User completes feature implementation\n- Before creating commits or pull requests\n- User asks to \"test\", \"validate\", \"check quality\", or \"verify\"\n- Before deployment or release\n- After significant refactoring\n\n## Quality Gate Levels\n\n### Level 1: Pre-Commit Gates (Fast, \u003C 30 seconds)\nEssential checks that run before every commit.\n\n### Level 2: Pre-Push Gates (Moderate, \u003C 2 minutes)\nComprehensive checks before pushing to remote.\n\n### Level 3: Pre-Deploy Gates (Thorough, \u003C 5 minutes)\nComplete validation before production deployment.\n\n## Gate Execution Workflow\n\n### Gate 1: Linting (JavaScript\u002FTypeScript)\n\n**Purpose**: Enforce code style and catch common errors\n\n**Tools**: Bash, Read\n\n**Process**:\n1. **Detect linter** by checking for:\n   - ESLint: `.eslintrc*`, `eslint.config.*`\n   - Biome: `biome.json`\n   - None: Skip this gate\n\n2. **Read package.json** to find lint script:\n   ```json\n   \"scripts\": {\n     \"lint\": \"eslint .\",\n     \"lint:fix\": \"eslint . --fix\"\n   }\n   ```\n\n3. **Execute linter**:\n   ```bash\n   # Try to run lint script\n   npm run lint\n   \n   # If fails, try direct commands\n   npx eslint . || npx biome check .\n   ```\n\n4. **Parse results**:\n   - Exit code 0: ✅ PASS\n   - Exit code non-zero: ❌ FAIL\n   - Extract error count and file locations\n\n5. **Auto-fix attempt** (if failures found):\n   ```bash\n   npm run lint:fix || npx eslint . --fix\n   ```\n\n**Success Criteria**: Zero linting errors (warnings acceptable)\n\n### Gate 2: Type Checking (TypeScript)\n\n**Purpose**: Verify type safety and catch type errors\n\n**Tools**: Bash, Read, Grep\n\n**Process**:\n1. **Detect TypeScript** by checking for:\n   - `tsconfig.json`\n   - TypeScript in dependencies\n\n2. **Read tsconfig.json** to check strictness:\n   - `strict: true`\n   - `noImplicitAny`, `strictNullChecks`, etc.\n\n3. **Execute type checker**:\n   ```bash\n   # Try to run typecheck script\n   npm run typecheck || npm run type-check\n   \n   # If no script, run directly\n   npx tsc --noEmit\n   ```\n\n4. **Parse results**:\n   - Exit code 0: ✅ PASS\n   - Exit code non-zero: ❌ FAIL\n   - Extract error count and locations\n\n**Success Criteria**: Zero type errors\n\n### Gate 3: Unit & Integration Tests\n\n**Purpose**: Verify code functionality and prevent regressions\n\n**Tools**: Bash, Read, Grep\n\n**Process**:\n1. **Detect test framework**:\n   - Vitest: `vitest.config.*`, `vitest` in dependencies\n   - Jest: `jest.config.*`, `jest` in dependencies\n   - Native test: `--test` flag with Node.js 20+\n\n2. **Count test files**:\n   ```bash\n   # Use Grep to find test files\n   find . -name \"*.test.*\" -o -name \"*.spec.*\" | wc -l\n   ```\n\n3. **Execute tests**:\n   ```bash\n   # Run unit tests (fast)\n   npm run test || npm run test:unit\n   \n   # Or direct command\n   npx vitest run || npx jest --ci\n   ```\n\n4. **Parse results**:\n   - Total tests run\n   - Passed \u002F Failed \u002F Skipped\n   - Coverage percentage (if available)\n\n5. **Coverage check** (if configured):\n   ```bash\n   npm run test:coverage\n   \n   # Check if meets threshold (e.g., 80%)\n   ```\n\n**Success Criteria**: \n- All tests pass (100%)\n- Coverage ≥ configured threshold (if set)\n\n### Gate 4: Build Verification\n\n**Purpose**: Ensure code compiles and builds without errors\n\n**Tools**: Bash\n\n**Process**:\n1. **Detect build system**:\n   - Next.js: `next build`\n   - Vite: `vite build`\n   - Webpack: `webpack --mode production`\n   - TypeScript: `tsc`\n\n2. **Execute build**:\n   ```bash\n   npm run build\n   ```\n\n3. **Check build artifacts**:\n   - Verify output directory exists: `dist\u002F`, `build\u002F`, `.next\u002F`\n   - Check for build errors in logs\n\n4. **Clean up** (optional):\n   ```bash\n   # Remove build artifacts to save space\n   rm -rf dist\u002F build\u002F .next\u002F\n   ```\n\n**Success Criteria**: Build completes with exit code 0\n\n### Gate 5: Security Audit\n\n**Purpose**: Identify known vulnerabilities in dependencies\n\n**Tools**: Bash, Read\n\n**Process**:\n1. **Run npm\u002Fpnpm audit**:\n   ```bash\n   npm audit --json || pnpm audit --json\n   ```\n\n2. **Parse audit results**:\n   - Critical vulnerabilities: 0\n   - High vulnerabilities: 0\n   - Moderate vulnerabilities: \u003C threshold\n   - Low vulnerabilities: informational\n\n3. **Check for specific vulnerabilities**:\n   - Prototype pollution\n   - Remote code execution (RCE)\n   - SQL injection\n   - Cross-site scripting (XSS)\n\n4. **Suggest fixes**:\n   ```bash\n   npm audit fix\n   # or\n   npm audit fix --force  # (if safe)\n   ```\n\n**Success Criteria**: \n- Zero critical\u002Fhigh vulnerabilities\n- Moderate vulnerabilities acknowledged or fixed\n\n### Gate 6: Code Complexity Analysis (Optional)\n\n**Purpose**: Flag overly complex code that may need refactoring\n\n**Tools**: Grep, Bash\n\n**Process**:\n1. **Detect code complexity tools**:\n   - eslint-plugin-complexity\n   - SonarQube\n   - CodeClimate\n\n2. **Basic complexity checks**:\n   ```bash\n   # Find files with excessive lines\n   find src -name \"*.{ts,tsx,js,jsx}\" -exec wc -l {} \\; | awk '$1 > 500'\n   \n   # Find deeply nested code (>5 levels)\n   grep -rn \"^[[:space:]]\\{20,\\}\" src\u002F\n   \n   # Count TODO\u002FFIXME\n   grep -rn \"TODO\\|FIXME\\|HACK\" src\u002F | wc -l\n   ```\n\n**Success Criteria**: \n- No files > 500 lines (warning only)\n- No nesting > 5 levels (warning only)\n\n### Gate 7: Git Pre-Commit Checks\n\n**Purpose**: Ensure commit quality and prevent sensitive data leaks\n\n**Tools**: Bash, Grep\n\n**Process**:\n1. **Check for sensitive data**:\n   ```bash\n   # Search for API keys, secrets, tokens\n   git diff --cached | grep -i \"api[_-]key\\|secret\\|password\\|token\"\n   \n   # Check for .env files being committed\n   git diff --cached --name-only | grep \"\\.env$\"\n   ```\n\n2. **Validate commit message** (if Conventional Commits):\n   - Format: `type(scope): description`\n   - Types: feat, fix, docs, style, refactor, test, chore\n\n3. **Check file sizes**:\n   ```bash\n   # Flag files > 1MB\n   git diff --cached --name-only | xargs ls -lh | awk '$5 > 1000000'\n   ```\n\n**Success Criteria**: \n- No secrets in diff\n- No .env files\n- No large files (> 1MB)\n\n## Execution Strategy\n\n### Sequential Execution (Default)\nRun gates in order, stop on first failure:\n```\nLint → TypeCheck → Test → Build → Audit\n```\n\n### Parallel Execution (Fast Mode)\nRun independent gates simultaneously:\n```\n[Lint + TypeCheck + Test] → Build → Audit\n```\n\n### Selective Execution\nRun only relevant gates based on changes:\n- `.ts\u002F.tsx` files changed → TypeCheck\n- Dependencies updated → Audit\n- Test files changed → Tests only\n\n## Output Format\n\n```markdown\n# Quality Gate Results\n\n## Summary\n✅ 5\u002F7 Gates Passed | ❌ 2\u002F7 Gates Failed\n\n## Gate Details\n\n### ✅ Gate 1: Linting\n- **Status**: PASS\n- **Duration**: 3.2s\n- **Details**: 0 errors, 2 warnings\n\n### ❌ Gate 2: Type Checking\n- **Status**: FAIL\n- **Duration**: 5.1s\n- **Errors**: 3 type errors found\n  - `src\u002Fcomponents\u002FButton.tsx:15` - Property 'onClick' is missing\n  - `src\u002Futils\u002Fapi.ts:42` - Type 'string' is not assignable to type 'number'\n  - `src\u002Fhooks\u002FuseAuth.ts:8` - Cannot find name 'User'\n\n### ✅ Gate 3: Tests\n- **Status**: PASS\n- **Duration**: 12.4s\n- **Tests**: 124 passed, 0 failed, 2 skipped\n- **Coverage**: 87% (target: 80%)\n\n### ⏭️ Gate 4: Build\n- **Status**: SKIPPED (previous gate failed)\n\n### ⏭️ Gate 5: Security Audit\n- **Status**: SKIPPED (previous gate failed)\n\n## Action Required\nFix the 3 type errors in Gate 2 before proceeding.\n\n## Recommendations\n1. Run `npm run typecheck` locally to see full error details\n2. Consider adding pre-commit hooks to catch these earlier\n3. Current code coverage (87%) exceeds target - excellent work!\n```\n\n## Integration with Git Hooks\n\n### Setup Husky + lint-staged (Recommended)\n\n**Check if installed**:\n```bash\ntest -d .husky && echo \"Husky installed\" || echo \"Husky not found\"\n```\n\n**Suggest installation** if missing:\n```bash\nnpm install --save-dev husky lint-staged\nnpx husky init\n```\n\n**Configure .husky\u002Fpre-commit**:\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv sh\n. \"$(dirname -- \"$0\")\u002F_\u002Fhusky.sh\"\n\n# Run quality gates\nnpm run lint\nnpm run typecheck\nnpm run test\n```\n\n### Alternative: git commit -m with manual checks\n\nIf no hooks, prompt user:\n```\n⚠️  No pre-commit hooks detected.\nWould you like me to run quality gates before committing? (Recommended)\n```\n\n## Progressive Quality Gates\n\n### Level 1: Essential (Always Run)\n- Linting\n- Type checking\n\n### Level 2: Standard (Pre-Push)\n- Essential +\n- Unit tests\n- Security audit\n\n### Level 3: Comprehensive (Pre-Deploy)\n- Standard +\n- Integration tests\n- E2E tests\n- Build verification\n- Performance tests\n\n## Error Recovery\n\n### Auto-Fix Capability\n- **Lint errors**: Run `eslint --fix` or `biome check --apply`\n- **Format errors**: Run `prettier --write` \n- **Security vulnerabilities**: Run `npm audit fix`\n\n### Manual Fix Required\n- Type errors\n- Test failures\n- Build errors\n\n### Bypass (Use with Caution)\n```bash\n# Skip hooks for emergency fixes only\ngit commit --no-verify -m \"emergency: fix critical bug\"\n```\n\n## Best Practices\n\n1. **Fail Fast**: Stop at first critical failure to save time\n2. **Clear Feedback**: Always show which gate failed and why\n3. **Actionable**: Provide exact commands to fix issues\n4. **Configurable**: Respect project's quality thresholds\n5. **Performance**: Cache results when possible\n6. **Incremental**: Only check changed files when appropriate\n\n## Configuration\n\n### Read from package.json\n```json\n{\n  \"qualityGates\": {\n    \"coverage\": {\n      \"minimum\": 80,\n      \"enabled\": true\n    },\n    \"audit\": {\n      \"level\": \"moderate\",\n      \"enabled\": true\n    },\n    \"complexity\": {\n      \"maxLines\": 500,\n      \"maxDepth\": 5\n    }\n  }\n}\n```\n\n### Default Settings\nIf no config found, use sensible defaults:\n- Coverage minimum: 70%\n- Audit level: high\u002Fcritical only\n- Max file lines: 500\n- Max nesting: 5 levels\n\n## Integration with Other Skills\n\n- `codebase-analysis` - Use to detect available quality tools\n- `git-workflow` - Integrate with commit\u002Fpush process\n- `ci-cd-setup` - Configure gates for CI pipeline\n\n## Version History\n\n- **1.0.0** (2025-01-03): Initial skill with 7 quality gates and progressive execution\n",{"name":5,"tags":40,"author":41,"version":42,"auto_invoke":43,"description":7},[20,22,34,23,26],"AI-Vibe-Prompts","1.0.0",true,"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Faiskillstore\u002Fmarketplace\u002Fatman36\u002Fquality-gates",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":43},[55,58,61],{"tool":56,"command":57},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill quality-gates",{"tool":59,"command":60},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill quality-gates",{"tool":62,"command":63},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill quality-gates","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fatman36\u002Fquality-gates\u002FSKILL.md",[66,72,76],{"path":67,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":70,"sourceHtmlUrl":71},"references\u002Fdotnet.md","REFERENCE","参考文档",912,"https:\u002F\u002Fgithub.com\u002FTorchiaHub\u002FSkills\u002Fblob\u002Fmaster\u002F01-Inbox\u002Fdownloads\u002Fgithub-awesome-copilot\u002F20260429T115304Z\u002Fsource\u002Fskills\u002Fmicrosoft-agent-framework\u002Freferences\u002Fdotnet.md",{"path":73,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":74,"sourceHtmlUrl":75},"references\u002Fpython.md",848,"https:\u002F\u002Fgithub.com\u002FTorchiaHub\u002FSkills\u002Fblob\u002Fmaster\u002F01-Inbox\u002Fdownloads\u002Fgithub-awesome-copilot\u002F20260429T115304Z\u002Fsource\u002Fskills\u002Fmicrosoft-agent-framework\u002Freferences\u002Fpython.md",{"path":77,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":78,"sourceHtmlUrl":79},"skill-report.json",8557,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fatman36\u002Fquality-gates\u002Fskill-report.json",[81,90,99,108,114,120],{"skillNo":82,"name":83,"nameZh":6,"description":6,"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":35},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[87,88,89],"model","model hierarchy","model hierarchy skill",{"skillNo":91,"name":92,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":35},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[96,97,98],"MCP","zoom","zoom mcp",{"skillNo":100,"name":101,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":35},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[105,106,107,97],"sdk","zoom apps sdk","apps",{"skillNo":109,"name":110,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":35},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[110],{"skillNo":115,"name":116,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":35},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[116],{"skillNo":121,"name":122,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":123,"categories":124,"keywords":125,"publishedAt":35},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[122]]