deploy-staging

将当前分支部署到测试环境。当用户要求部署、发布到测试或在 staging 环境测试时使用

118 stars

Best use case

deploy-staging is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

将当前分支部署到测试环境。当用户要求部署、发布到测试或在 staging 环境测试时使用

Teams using deploy-staging should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/deploy-staging/SKILL.md --create-dirs "https://raw.githubusercontent.com/einverne/dotfiles/main/skills/deploy-staging/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/deploy-staging/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How deploy-staging Compares

Feature / Agentdeploy-stagingStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

将当前分支部署到测试环境。当用户要求部署、发布到测试或在 staging 环境测试时使用

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# 部署到测试环境

## 前置条件检查

执行部署前,必须验证:

1. 当前分支所有变更已提交
   - 运行 `git status` 检查
   - 如有未提交内容,提示用户先提交

2. 所有测试通过
   - 运行 `npm test`
   - 如测试失败,停止部署并报告失败原因

3. 代码已推送到远程仓库
   - 运行 `git push`
   - 确保远程分支是最新状态

## 部署流程

1. 构建生产版本
   ```bash
   npm run build:staging
   ```

2. 运行部署脚本
   ```bash
   ./scripts/deploy-staging.sh
   ```

3. 等待部署完成
   - 显示部署进度
   - 捕获并显示错误信息

4. 验证部署
   ```bash
   curl -f https://staging.example.com/health
   ```

5. 报告部署结果
   - 成功:提供访问链接
   - 失败:显示错误日志和回滚建议

## 错误处理

如果部署失败:
1. 保存错误日志到 `.logs/deploy-staging-{timestamp}.log`
2. 建议用户检查日志
3. 提供回滚命令:`./scripts/rollback-staging.sh`

## 部署后检查

部署成功后,提醒用户验证:
- 关键功能是否正常
- 数据库迁移是否成功
- 静态资源是否加载正常

Related Skills

git-commit-formatter

118
from einverne/dotfiles

生成符合 Conventional Commits 规范的 Git 提交信息。当用户要求生成提交、创建 commit 或写提交信息时使用

code-reviewer

118
from einverne/dotfiles

进行系统化的代码审查,检查代码质量、安全性和性能。当用户要求审查代码、review 或检查代码时使用

turborepo

118
from einverne/dotfiles

Guide for implementing Turborepo - a high-performance build system for JavaScript and TypeScript monorepos. Use when setting up monorepos, optimizing build performance, implementing task pipelines, configuring caching strategies, or orchestrating tasks across multiple packages.

test-expert

118
from einverne/dotfiles

Testing methodologies, test-driven development (TDD), unit and integration testing, and testing best practices across multiple frameworks. Use when the user needs to write tests, implement TDD, or improve test coverage and quality.

template-skill

118
from einverne/dotfiles

Replace with description of the skill and when Claude should use it.

tailwindcss

118
from einverne/dotfiles

Guide for implementing Tailwind CSS - a utility-first CSS framework for rapid UI development. Use when styling applications with responsive design, dark mode, custom themes, or building design systems with Tailwind's utility classes.

skill-creator

118
from einverne/dotfiles

Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.

shopify

118
from einverne/dotfiles

Guide for implementing Shopify apps, extensions, themes, and integrations using GraphQL/REST APIs, Shopify CLI, Polaris UI, and various extension types (Checkout, Admin, POS). Use when building Shopify apps, implementing checkout extensions, customizing admin interfaces, creating themes with Liquid, or integrating with Shopify's APIs.

shell-scripting

118
from einverne/dotfiles

Specialized knowledge of Bash and Zsh scripting, shell automation, command-line tools, and scripting best practices. Use when the user needs to write, debug, or optimize shell scripts or work with command-line tools.

shadcn-ui

118
from einverne/dotfiles

Guide for implementing shadcn/ui - a collection of beautifully-designed, accessible UI components built with Radix UI and Tailwind CSS. Use when building user interfaces, adding UI components, or implementing design systems in React-based applications.

repomix

118
from einverne/dotfiles

Guide for using Repomix - a powerful tool that packs entire repositories into single, AI-friendly files. Use when packaging codebases for AI analysis, generating context for LLMs, creating codebase snapshots, analyzing third-party libraries, or preparing repositories for security audits.

remix-icon

118
from einverne/dotfiles

Guide for implementing RemixIcon - an open-source neutral-style icon library with 3,100+ icons in outlined and filled styles. Use when adding icons to applications, building UI components, or designing interfaces. Supports webfonts, SVG, React, Vue, and direct integration.