开发与测试
coding-standards
General repo rules enforced by ESLint/TypeScript/CI — PRs-only, never bypass lint, import ordering, type imports, path privacy, commit format. Load for any code change.
saeedkolivand · 已有 AI 审核记录
安装与使用
运行命令前先阅读来源与依赖说明。复制命令不会自动安装或执行。
npx skills add saeedkolivand/ai-job-hunter-app --skill coding-standards技能说明
name: coding-standards description: General repo rules enforced by ESLint/TypeScript/CI — PRs-only, never bypass lint, import ordering, type imports, path privacy, commit format. Load for any code change.
Coding standards (CI-enforced — violations fail the build)
- PRs only — never push to
main. Branch → commit → push →gh pr create→ wait for approval. Stale-branch check first (git fetch origin). - Never bypass ESLint — no
// eslint-disable, no@ts-ignore. Scoped overrides go ineslint.config.mjswith a reason comment.pnpm lint:strictruns in CI with--max-warnings 0. - Path privacy — never expose absolute local paths, usernames, or home dirs; always repo-relative.
- Imports — package entrypoints not deep paths (
@ajh/ui, not@/components/ui/*); group ordernode:*→ external →@ajh/*→@/*→ relative;import typefor pure types. Auto-fix:pnpm lint:fix. - Commits (commitlint, commit-msg hook) — subject lower-case, ≤100 chars, imperative, no trailing period; body lines ≤200; type ∈
feat|fix|perf|refactor|ui|style|test|docs|build|ci|chore|revert. Onlyfeat/fix/perf+BREAKING CHANGEtrigger a release. - Tooling — use the Bash tool;
rgnotgrep,fdnotfind,batnotcat,pnpmnotnpm/yarn. Neverfind -exec, never PowerShell syntax. - New IPC capability — touches 5 files in order:
packages/shared/src/ipc/contracts/→apps/desktop/src-tauri/src/commands/→apps/desktop/src/tauri-client/index.ts→ arenderer/services/hook →services/query-client.tsquery key.