用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/InugamiDev/ultrathink-oss --skill quality-gate命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Unified design foundations — design system architecture, tokens, component specs, visual principles, creative vision, figma integration, plus brand design system loader (66 real brands via DESIGN.md). Absorbs design, design-system, design-systems, design-principles, design-router, creative-vision, figma, design-md.
Render, summarize, and present markdown documents and structured content in multiple output modes
Ultra UI skill - combines Google's DESIGN.md spec (machine-readable design tokens) with the ui-ux-pro-max knowledge base (91 styles, 161 palettes, 73 font pairings, 161 products, 104 UX guidelines, 25 chart types). Generates lint-clean DESIGN.md files, validates token references and WCAG contrast, exports Tailwind/DTCG tokens, and diffs design systems version-over-version.
基于 SOC 职业分类
正在显示 SKILL.md
| name | quality-gate |
| description | Lightweight post-edit verification pipeline — format, lint, typecheck, test in one pass |
| layer | utility |
| category | quality |
| triggers | ["quality gate","quality check","run checks","lint and test","pre-commit check","verify changes","check my code"] |
| inputs | [{"path":"File or directory to check (default: changed files)"},{"mode":"quick (format+type) | full (all checks) | strict (fail on warnings)"}] |
| outputs | [{"report":"Pass/fail status per check with remediation list"},{"verdict":"PASS | WARNING | BLOCK"}] |
| linksTo | ["code-review","test","fix","audit"] |
| linkedFrom | ["cook","ship","verify"] |
| preferredNextSkills | ["fix","code-review"] |
| fallbackSkills | ["audit"] |
| riskLevel | low |
| memoryReadPolicy | none |
| memoryWritePolicy | selective |
| sideEffects | ["May auto-fix formatting issues with --fix flag"] |
Run a fast, automated verification pipeline on changed files before committing or opening a PR. Unlike a full audit, quality-gate is lightweight and targeted — it checks only what changed and gives a pass/fail verdict in seconds.
Use this when:
| Step | Tool | Scope | Blocks on |
|---|---|---|---|
| 1. Format | Biome / Prettier | Changed files | Never (auto-fixes) |
| 2. Typecheck | tsc --noEmit | Project-wide | Any error |
| 3. Lint | Biome / ESLint | Changed files | Error-level rules |
| 4. Test | vitest / jest / pytest | Affected tests | Any failure |
| 5. Console.log | grep | Changed .ts/.tsx | In strict mode |
| 6. Secrets | grep patterns | Changed files | Any match |
BLOCK — Any check failed (typecheck error, test failure, secret detected)
WARNING — Non-critical issues (console.log found, lint warnings)
PASS — All checks green
# Get changed files (staged + unstaged)
git diff --name-only HEAD
git diff --cached --name-only
# Filter to relevant extensions
grep -E '\.(ts|tsx|js|jsx|py|go|rs)$'
Execute checks sequentially. If a BLOCK-level check fails, report immediately but continue remaining checks to give a complete picture.
npx biome format --write <files>
npx tsc --noEmit 2>&1 | grep -E
npx biome lint <files>
npx vitest run --reporter=verbose --changed
grep -rn <changed-ts-files> | grep -v
grep -rn -E <changed-files>
Output a concise table:
QUALITY GATE: [PASS|WARNING|BLOCK]
Format ✅ 3 files formatted
Typecheck ✅ Clean
Lint ⚠️ 2 warnings (no-unused-vars)
Tests ✅ 14/14 passed
Logs ⚠️ 1 console.log in api/route.ts:42
Secrets ✅ Clean
Verdict: WARNING — review console.log before PR
For each failed check, provide the exact fix:
| Pitfall | Impact | Fix |
|---|---|---|
| Running full project typecheck | Slow, reports unrelated errors | Filter tsc output to changed files only |
| Blocking on lint warnings | Slows development cycle | Only block on error-level rules |
| Missing test detection | Changed code has untested paths | Use vitest --changed or jest --findRelatedTests |
| Ignoring console.log in tests | Test files legitimately use console | Exclude .test. and .spec. files |
| Secret false positives | sk- in variable names like taskId | Use word-boundary patterns, check context |
| Not auto-fixing format | Developer wastes time on style | Always format --write, never just check |
> quality-gate src/lib/auth.ts --quick
QUALITY GATE: PASS
Format ✅ 1 file (no changes needed)
Typecheck ✅ Clean
> quality-gate . --full
QUALITY GATE: BLOCK
Format ✅ 5 files formatted
Typecheck ❌ 2 errors
src/api/users.ts(34,5): error TS2322: Type 'string' is not assignable to type 'number'
src/lib/cache.ts(12,3): error TS2345: Argument of type 'undefined' is not assignable
Lint ✅ Clean
Tests ❌ 1 failure
FAIL src/api/users.test.ts > createUser > validates email format
Expected: true, Received: false
Logs ✅ Clean
Secrets ✅ Clean
Verdict: BLOCK — fix 2 type errors and 1 test failure
Quality-gate can run automatically via PostToolUse hook on Edit|Write:
# In quality-gate-hook.sh (PostToolUse)
# Only runs in "full" mode when explicitly requested
# The lighter format-check.sh and post-edit-typecheck.sh hooks
# handle the "quick" checks automatically after every edit
The existing hooks already cover steps 1-2 of the pipeline:
format-check.sh → Format check (PostToolUse)post-edit-typecheck.sh → TypeScript check (PostToolUse)Quality-gate adds steps 3-6 as an on-demand verification pass.