用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/softspark/ai-toolkit --skill deploy命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | deploy |
| description | Deploys with pre-flight checks and health verification. Triggers: deploy, deployment, ship, release, push to prod. |
| effort | medium |
| disable-model-invocation | true |
| argument-hint | [environment] |
| allowed-tools | Bash, Read |
| hooks | {"PostToolUse":[{"matcher":"Bash","hooks":[{"type":"command","command":"echo 'Reminder: verify health checks pass after deployment'"}]}]} |
| scripts | ["scripts/pre_deploy_check.py"] |
$ARGUMENTS
Deploy application to target environment.
cat docker-compose.yml 2>/dev/null || cat Dockerfile 2>/dev/null || echo "no-docker"/deploy [environment]
| Environment | Description |
|---|---|
dev | Development environment |
staging | Staging/QA environment |
prod | Production environment |
Run automated pre-deployment checks:
python3 ${CLAUDE_SKILL_DIR}/scripts/pre_deploy_check.py [environment]
Returns JSON with pass/fail for each check:
git_clean - no uncommitted changesbranch - on main/master for productiondocker - services running (if applicable)env_file - .env or .env.$ENV existsbuild_artifacts - dist/build presenttests_ran - test result artifacts foundManual verification:
| Strategy | Use Case |
|---|---|
| Rolling | Zero-downtime, gradual |
| Blue-Green | Instant switch, easy rollback |
| Canary | Risk mitigation, gradual traffic |
| Recreate | Simple, allows downtime |
## Deployment Report
### Status: Success / Failed
### Details
- **Environment**: [env]
- **Version**: [version]
- **Started**: [timestamp]
- **Completed**: [timestamp]
### Steps
1. [Step 1] - Done
2. [Step 2] - Done
3. [Step 3] - Failed (if failed)
### Health Check
- [endpoint]: [status]
### Rollback
If needed: `[rollback command]`
After deployment, update documentation:
| Change Type | Update |
|---|---|
| New release | CHANGELOG, release notes |
| Config changes | Deployment docs, procedures |
| New features | User documentation |
| Infrastructure | kb/procedures/deployment-*.md |