Use when bootstrapping a new project or aligning an existing one to house conventions — frontend/fullstack (bun+vite+react+tailwind v4+shadcn+oxlint/oxfmt), browser extensions (WXT/MV3), Python CLI (uv+hatchling+Typer+just), Go CLI (mise+golangci-lint+just). Provides drop-in config templates, script naming conventions per stack, icon/zip pipelines, and the concise AGENTS.md format (readable in one minute).
Ships in backend-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
四条技术栈主线的标准初始化。选型基线:新项目直接 oxlint/oxfmt(跳过 biome)、插件直接 WXT(跳过 crxjs)。
.oxlintrc.json(几乎逐字通用):
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["typescript", "react", "oxc", "unicorn", "import", "vitest", "jsx-a11y"],
"rules": {
"@typescript-eslint/consistent-type-imports": ["error", { "fixStyle": "inline-type-imports", "prefer": "type-imports" }],
"@typescript-eslint/no-non-null-assertion": "error",
"@typescript-eslint/no-unused-vars": ["error", { "args": "after-used", "argsIgnorePattern": "^_", "caughtErrors": "none", "varsIgnorePattern": "^_" }],
"react-hooks/exhaustive-deps": "error",
"react/no-array-index-key": "warn",
"unicorn/prefer-node-protocol": "error"
},
"settings": { "react": { "version": "19.2" } }
}
简化变体:"categories": {"correctness":"error","perf":"error","suspicious":"error"}。
.oxfmtrc.json:printWidth 100 / tabWidth 2 / singleQuote / trailingComma "all" + ignorePatterns(node_modules、build、coverage 等)。
scripts 命名(强惯例):
{
"lint": "oxlint src server && oxfmt --check src server && tsc --noEmit",
"lint:fix": "oxlint src server --fix && oxfmt src server --write",
"lint:format": "oxfmt src server --write",
"test": "vitest run", "test:coverage": "vitest run --coverage",
"check": "bun run --parallel lint test"
}
lint = 检查门禁(含 format --check 和 tsc --noEmit);check = 提交前一键收口。
lint,根用 turbo run lint 调度;type-aware 时 oxlint --type-aware --tsconfig tsconfig.json,需要独立 tsconfig.oxlint.json(moduleResolution: "bundler"、verbatimModuleSyntax、noEmit、strict)。坑:type-aware 不接受 baseUrl,用 paths 代替。components.json:style new-york + baseColor neutral + cssVariables;alias @/components、@/lib/utils。wxt.config.ts 是唯一构建入口:
export default defineConfig({
srcDir: "src", entrypointsDir: "entrypoints", outDir: "dist",
modules: ["@wxt-dev/module-react"],
manifest: {
name: "...", version: packageJson.version, // 版本单一真源 = package.json
icons: { "16": "/icons/icon-16.png", "32": "...", "48": "...", "128": "..." }
},
alias: { "@": resolve("src") },
vite: () => ({ plugins: [tailwindcss()] }) // tailwind v4 走 @tailwindcss/vite
});
dev: wxt / build: wxt build / zip: wxt zip / postinstall: wxt prepare(必须先于 typecheck,生成 .wxt 类型)。sips -z 16 16 logo.png --out ...;工程化用 @resvg/resvg-js 从 SVG 渲染(先补正方形 viewBox)。.gitignore:entrypoints/ 源码提交;.wxt / .output / dist 忽略。@crxjs/vite-plugin 与 manifest.config.ts,删自定义打包脚本,出包统一 wxt zip。[project.scripts] 定义 CLI 入口;依赖基线 Typer + httpx + Rich + Pydantic。src/<pkg>/{commands,services,formatters,core,models,http} + tests/。ruff(select = ["E","F","I","UP","B"],line-length 100)+ pyright(basic)+ ty。dynamic = ["version"] + [tool.hatch.version] path = "src/<pkg>/__about__.py"。justfile 编排:lint / lint-fix / lint-format / check(pyright+ty) / test / build(uv build --wheel) / publish-check(dry-run) → publish-test(TestPyPI) → publish;just isok = lint-fix + lint-format + check + test,提交前固定收口入口。mise 钉死(mise.toml 声明 go 版本,命令走 mise x [email protected] -- go ...)。justfile(set shell := ["bash","-euo","pipefail","-c"]):fmt / fmt-check / vet / lint(golangci-lint) / test / build / check(check 聚合 fmt-check+vet+test)。.golangci.yml 只开稳妥规则,避免噪音。quality job(gofmt + vet + test);v* tag 触发矩阵构建 <name>-<version>-<platform>.tgz。LICENSE(MIT)+ CHANGELOG.md(起始 0.1.0,顶部 ## Unreleased)+ README;对外项目 CHANGELOG/README 中英双份,并在 AGENTS.md 写明「需维护中英文两份」。just isok/check 收口 → 提交);| 语义 | 前端 | Python (just) | Go (just) |
|---|---|---|---|
| 检查 | lint | lint + check | fmt-check + vet + lint |
| 自动修 | lint:fix | lint-fix | fmt |
| 格式化 | lint:format | lint-format | fmt |
| 测试 | test / test:coverage | test | test |
| 一键收口 | check | isok | check |
| 出包 | build / zip(wxt) | build / publish | build |
What SKILL.md sets; muted values are Claude Code's defaults
5 skills in this plugin
/agent-friendly-cli-designUse when designing, reviewing, or refactoring a command-line interface that AI agents will invoke — covers non-interactive execution, resource/command layering, unified verbs, output trimming for token budgets, idempotency, and self-correcting error messages. Trigger this when building a new CLI, wrapping an API as a CLI, or auditing an existing CLI for agent usability./coding-agent-session-formatsUse when parsing, exporting, visualizing, or computing token/cost stats from local coding-agent session files (Codex rollout jsonl, Claude Code project jsonl, Kimi context/wire jsonl, OpenCode/zcode SQLite, Pi tree jsonl). Covers storage paths per agent, message schemas, assistant message ordering/dedup rules, a unified export schema, cache-aware cost calculation, and streaming-parse performance rules for 100-400MB files.Other plugins' skills for the same job
/monorepo-architecture-principles/backend-skills:tech-stack-scaffoldingfrom backend-skills
npx claudepluginhub xingkaixin/skills --plugin backend-skills