deployment-documentation by aj-geddes/useful-ai-prompts
npx skills add https://github.com/aj-geddes/useful-ai-prompts --skill deployment-documentation创建全面的部署文档,涵盖基础设施设置、CI/CD 流水线、部署流程和回滚策略。
最小工作示例:
# 部署指南
## 概述
本文档描述了 [应用程序名称] 的部署流程。
**部署方法:**
- 手动部署(仅限紧急情况)
- 自动化 CI/CD(推荐)
- 蓝绿部署
- 金丝雀部署
**环境:**
- 开发环境:https://dev.example.com
- 预发布环境:https://staging.example.com
- 生产环境:https://example.com
---
## 先决条件
### 必需工具
// ... (完整实现请参阅参考指南)
```
## 参考指南
`references/` 目录下的详细实现:
| 指南 | 内容 |
|---|---|
| [GitHub Actions 工作流](references/github-actions-workflow.md) | GitHub Actions Workflow |
| [Dockerfile](references/dockerfile.md) | Dockerfile |
| [docker-compose.yml](references/docker-composeyml.md) | docker-compose.yml |
| [部署清单](references/deployment-manifest.md) | Deployment Manifest |
## 最佳实践
### ✅ 建议做法
- 使用基础设施即代码
- 实施 CI/CD 流水线
- 使用容器编排
- 实施健康检查
- 使用滚动部署
- 制定回滚流程
- 监控部署
- 记录应急流程
- 使用密钥管理
- 实施蓝绿或金丝雀部署
### ❌ 不建议做法
- 直接部署到生产环境
- 部署前跳过测试
- 迁移前忘记备份
- 部署时没有回滚计划
- 部署后跳过监控
- 硬编码凭据
- 在高峰时段部署(除非必要)
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
每周安装量
114
代码仓库
GitHub 星标数
116
首次出现
2026年1月21日
安全审计
已安装于
opencode97
gemini-cli92
codex91
claude-code91
cursor87
github-copilot80
Create comprehensive deployment documentation covering infrastructure setup, CI/CD pipelines, deployment procedures, and rollback strategies.
Minimal working example:
# Deployment Guide
## Overview
This document describes the deployment process for [Application Name].
**Deployment Methods:**
- Manual deployment (emergency only)
- Automated CI/CD (preferred)
- Blue-green deployment
- Canary deployment
**Environments:**
- Development: https://dev.example.com
- Staging: https://staging.example.com
- Production: https://example.com
---
## Prerequisites
### Required Tools
// ... (see reference guides for full implementation)
```
## Reference Guides
Detailed implementations in the `references/` directory:
| Guide | Contents |
|---|---|
| [GitHub Actions Workflow](references/github-actions-workflow.md) | GitHub Actions Workflow |
| [Dockerfile](references/dockerfile.md) | Dockerfile |
| [docker-compose.yml](references/docker-composeyml.md) | docker-compose.yml |
| [Deployment Manifest](references/deployment-manifest.md) | Deployment Manifest |
## Best Practices
### ✅ DO
- Use infrastructure as code
- Implement CI/CD pipelines
- Use container orchestration
- Implement health checks
- Use rolling deployments
- Have rollback procedures
- Monitor deployments
- Document emergency procedures
- Use secrets management
- Implement blue-green or canary deployments
### ❌ DON'T
- Deploy directly to production
- Skip testing before deploy
- Forget to backup before migrations
- Deploy without rollback plan
- Skip monitoring after deployment
- Hardcode credentials
- Deploy during peak hours (unless necessary)
Weekly Installs
114
Repository
GitHub Stars
116
First Seen
Jan 21, 2026
Security Audits
Gen Agent Trust HubPassSocketWarnSnykPass
Installed on
opencode97
gemini-cli92
codex91
claude-code91
cursor87
github-copilot80