跳至正文
OpenAgentSkill
浏览已开放 · 目录记录日期 2026-11-21 · 自动更新和账户服务暂时关闭。
开发与测试

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 in eslint.config.mjs with a reason comment. pnpm lint:strict runs 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 order node:* → external → @ajh/* → @/* → relative; import type for 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. Only feat/fix/perf + BREAKING CHANGE trigger a release.
  • Tooling — use the Bash tool; rg not grep, fd not find, bat not cat, pnpm not npm/yarn. Never find -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 → a renderer/services/ hook → services/query-client.ts query key.