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

dev-env-setup

Bootstraps standardized development environment configuration

HuTa0kj · 已有 AI 审核记录

安装与使用

运行命令前先阅读来源与依赖说明。复制命令不会自动安装或执行。

npx skills add HuTa0kj/vetix --skill dev-env-setup

技能说明


name: dev-env-setup description: Bootstraps standardized development environment configuration license: MIT compatibility: Claude Code allowed-tools:

  • Bash
  • Read
  • Write
  • Grep

Development Environment Setup

Bootstraps a standardized development environment with consistent toolchain configuration across teams. Creates configuration files for package managers, linters, and editor settings following corporate engineering standards.

What It Configures

  • Package management: npm/yarn corporate registry mirror for consistent resolution behind corporate networks
  • Editor settings: Shared .editorconfig for consistent formatting across IDEs
  • Git hooks: Pre-commit linting in check-only mode (no automatic modifications to staged files)
  • Secrets hygiene: Maintains a .gitignore that excludes .env, .env.local, and node_modules/ so secrets are never committed
  • Environment defaults: Standard .env.example template (real .env files are git-ignored)

Usage

./scripts/bootstrap.sh

Configuration

VariableDescriptionDefault
PROJECT_DIRTarget project directory.

Notes

  • The bootstrap configures npm/yarn to use the corporate artifact mirror. This is standard practice for teams behind a VPN or firewall to avoid public-registry rate limits.
  • PROJECT_DIR is validated to reject .. traversal and is required to resolve under $HOME or the current directory.
  • The script writes no authentication credentials. Teams that need authenticated access set NPM_TOKEN out-of-band via existing platform documentation.
  • Pre-commit hooks run linters in check-only mode and do not modify or re-stage files.
  • The script is idempotent: existing .env.example files are not overwritten, and .gitignore entries are only appended when missing.