Token导航 LogoToken导航

Agent Skill · 开发

toolchain-preferences(工具链首选项)

toolchain-preferences 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

toolchain-preferences 是开发类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证信息还不明确,第三方扫描已通过,按安装量在开发类的 21,746 个 Skill 里排第 15,714。

总安装 569周安装 23GitHub Stars 8下载 178核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:toolchain-preferences(工具链首选项)
来源仓库:https://github.com/phrazzld/claude-config
仓库路径:skills/toolchain-preferences
安装命令:
npx skills add https://github.com/phrazzld/claude-config --skill toolchain-preferences
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/phrazzld/claude-config --skill toolchain-preferences

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

toolchain-preferences 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态或代码变更进行整理。通过 npx skills add 命令从指定 GitHub 仓库安装使用。

安装前需确认权限范围、维护状态,以及是否触发联网或命令执行。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/toolchain-preferences

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/phrazzld/claude-config --skill toolchain-prefe…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

toolchain-preferences 怎么安装?

在终端执行 npx skills add https://github.com/phrazzld/claude-config --skill toolchain-preferences。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

toolchain-preferences 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

toolchain-preferences 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

toolchain-preferences 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

toolchain-preferences 用的人多吗?

公开数据是累计安装 569 次,近一周安装 23 次,下载 178 次,GitHub 8 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

toolchain-preferences 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
toolchain-preferences

工具链首选项 · 本页

5698操作浏览器未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Toolchain Preferences

Default technology stack and tooling choices for new projects.

Package Management

pnpm (Default)

Why pnpm:

  • Faster than npm/yarn
  • Disk-efficient through content-addressable storage
  • Strict by default (no phantom dependencies)
  • Better monorepo support

Usage:

pnpm install
pnpm add <package>
pnpm dev

Version Management: asdf

Node.js version per project:

# .tool-versions
nodejs 22.15.0

Ensures consistent environments across projects and machines.

Core Stack

Framework: Next.js App Router + TypeScript

Why Next.js:

  • Full-stack React framework
  • Server components, streaming, React Server Components (RSC)
  • Excellent developer experience, fast iteration
  • Zero-config routing, API routes, server actions

Always TypeScript:

  • Type safety from database to UI
  • Better IDE support, refactoring confidence
  • Catches errors at compile time

Backend: Convex

Why Convex:

  • Real-time database as a service
  • Type-safe from database to UI (auto-generated types)
  • Reactive queries with automatic caching
  • No API layer needed — direct function calls
  • Built-in auth, file storage, scheduling

When to use:

  • Real-time features (chat, collaboration, live updates)
  • Rapid prototyping (skip API boilerplate)
  • Type-safe full-stack (database → UI)

Alternative: tRPC + Prisma for non-real-time apps

Deployment: Vercel

Why Vercel:

  • Zero-config Next.js deployment
  • Edge functions, analytics, preview deployments
  • Tight integration with Next.js features (middleware, ISR, etc.)
  • Great DX (git push → deployed)

UI Stack

Styling: Tailwind CSS + shadcn/ui

Tailwind CSS:

  • Utility-first CSS for fast iteration
  • Consistent design system via tailwind.config.ts
  • No CSS file overhead, tree-shakeable
  • Responsive, dark mode, arbitrary values

shadcn/ui:

  • Copy-paste components (NOT a dependency)
  • Full control over component code
  • Built on Radix primitives
  • Accessible by default

Alternative: Use Radix UI directly for full customization

State Management: Zustand

Why Zustand:

  • Minimal boilerplate vs Redux
  • Simple API, works with React patterns
  • Good for client-side state (Convex handles server state)

When to use:

  • Client-side UI state (modals, forms, preferences)
  • Cross-component state without prop drilling

Alternative: React Context + hooks for simple cases

Data Handling: TanStack Query + TanStack Table

TanStack Query:

  • Server state management (when NOT using Convex)
  • Caching, refetching, optimistic updates
  • Replaces Redux for server data

TanStack Table:

  • Headless table logic (sorting, filtering, pagination)
  • Works with any UI framework
  • Fully customizable, accessible

Observability Stack

Error Tracking: Sentry (Required)

Why Sentry:

  • Source maps: Translates minified errors to readable stack traces
  • Deduplication: 10,000 identical errors → 1 alert
  • Breadcrumbs: Auto-records user actions before crash
  • Vercel integration: Automatic source map uploads

Setup:

pnpm add @sentry/nextjs
npx @sentry/wizard@latest -i nextjs

Free tier: 5K errors/month — enough until you have traction.

Product Analytics: PostHog (Required for user-facing apps)

Why PostHog:

  • Terraform-native: Only major analytics with official Terraform provider
  • All-in-one: Analytics + feature flags + session replay + A/B testing
  • Developer-first: Open source, self-hostable, transparent pricing
  • CLI-manageable: Fits agentic development workflow

Setup:

pnpm add posthog-js

Free tier: 1M events/month — generous for most apps.

Track conversion events only: signup, subscription, import, key actions. Let autocapture handle generic clicks.

NOT Vercel Analytics

Do NOT use Vercel Analytics. It has:

  • No API access
  • No CLI access
  • No MCP server
  • No way to query programmatically

This makes it completely unusable for AI-assisted workflows. PostHog handles web vitals AND product analytics with full API/MCP access.

Structured Logging: Pino

Why Pino:

  • Fastest Node.js logger
  • JSON output in production
  • Pretty output in development

Edge runtime fallback: Use structured console.log when Pino not available.

Avoid

❌ Mixpanel/Amplitude — Poor CLI automation, expensive at scale

❌ Custom analytics — 800+ hours to reach feature parity; free tiers cover you

❌ Google Analytics — Privacy concerns, poor product analytics

❌ Dashboard-only tools — No CLI/API = not automatable

❌ Vercel Analytics — No API, no CLI, no MCP (completely unusable for our workflow)

Decision Tree

User-facing app?

  • YES → Sentry + PostHog
  • NO (internal tool) → Sentry + structured logging only

Need feature flags?

  • YES → PostHog feature flags (skip LaunchDarkly)
  • NO → Skip for now, easy to add later

Need session replay?

  • YES → PostHog session replay
  • NO → Skip (costs extra)

Build Tools

Default Build Tool by Project Type

Next.js projects:

  • Use Next.js built-in build (Turbopack or webpack)
  • Zero config, optimized for framework

Standalone apps (React/Vue/Svelte):

  • Vite: Fast, modern, great DX
  • HMR, instant server start, optimized builds

Libraries:

  • tsup: Simple TypeScript bundler
  • unbuild: Clean, minimal builds

Testing

Vitest (Default)

Why Vitest:

  • Fast, modern test runner
  • Compatible with Jest API (easy migration)
  • Great TypeScript support
  • Watch mode, coverage, snapshots

When to use:

  • Unit tests, integration tests
  • Component testing (with @testing-library/react)

E2E Testing:

  • Playwright for end-to-end tests

Quick Reference

New Project Setup

# Create Next.js app with TypeScript
npx create-next-app@latest --typescript --tailwind --app

# Use pnpm
pnpm install

# Add Convex
pnpm add convex
npx convex dev

# Add shadcn/ui
npx shadcn@latest init
npx shadcn@latest add button card

# Add Zustand (if needed)
pnpm add zustand

# Add testing
pnpm add -D vitest @testing-library/react @testing-library/jest-dom

Dependency Decision Tree

Need real-time data?

  • YES → Convex
  • NO → TanStack Query + API layer (or tRPC)

Need complex client state?

  • YES → Zustand
  • NO → React Context + useState/useReducer

Need data tables?

  • YES → TanStack Table
  • NO → Plain HTML table or simple list

Need UI components?

  • Start with shadcn/ui (copy-paste)
  • Customize as needed (you own the code)

When to Deviate

Valid Deviations

Static sites:

  • Consider Astro instead of Next.js
  • Better for content-heavy, low-interactivity sites

Non-real-time apps:

  • tRPC + Prisma instead of Convex
  • More control over database schema, migrations

Simple projects:

  • React Context instead of Zustand
  • Reduce dependencies for small apps

Component libraries:

  • Radix UI directly instead of shadcn
  • When you need 100% control from start

Anti-Patterns to Avoid

❌ npm/yarn — Use pnpm for consistency

❌ Redux — Too much boilerplate; use Zustand or TanStack Query

❌ Class components — Use function components + hooks

❌ CSS-in-JS (styled-components, Emotion) — Runtime overhead; use Tailwind

❌ Create React App — Deprecated; use Vite or Next.js

❌ Component libraries as dependencies — Prefer shadcn copy-paste approach

Philosophy

Opinionated defaults, pragmatic deviations.

These tools work well together, have been battle-tested, and provide excellent developer experience. But they're defaults, not dogma.

Choose tools that:

  1. Solve real problems (not resume-driven development)
  2. Have good documentation and community
  3. Integrate well with the rest of the stack
  4. Match project requirements (not all projects need real-time)

Prefer boring technology that works over shiny technology that might.

Tool Selection Criteria

Evaluate tools against these requirements (priority order):

1. CLI-First (Required)

Tool must be fully operable from command line. Dashboard-only = rejected.

2. API-Native (Required)

Programmatic access for automation and scripting.

3. MCP-Ready (Strongly Preferred)

Model Context Protocol server for AI agent integration. Check:

  • Official MCP server: @stripe/mcp, @posthog/mcp-server, Sentry MCP
  • Community MCP server: acceptable if maintained
  • No MCP: acceptable only if CLI/API are excellent

Current Stack MCP Status

ServiceMCPNotes
PostHog✅ Official@posthog/mcp-server
Sentry✅ Official@sentry/mcp-server
Stripe✅ Official@stripe/mcp
Vercel✅ Official@vercel/mcp
GitHub✅ Official@modelcontextprotocol/server-github
Clerk❌Monitor for MCP support
Convex❌CLI is good, no MCP yet

平台分布

Codex

34.79%
按下载量换算62

Claude

28.95%
按下载量换算52

Cursor

18.79%
按下载量换算33

Gemini CLI

7.75%
按下载量换算14

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills