senior-devops
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSenior Devops
资深DevOps工具包
Complete toolkit for senior devops with modern tools and best practices.
这是为资深DevOps工程师打造的完整工具包,集成了现代工具与最佳实践。
Quick Start
快速开始
Main Capabilities
核心功能
This skill provides three core capabilities through automated scripts:
bash
undefined本技能包通过自动化脚本提供三大核心功能:
bash
undefinedScript 1: Pipeline Generator
Script 1: Pipeline Generator
python scripts/pipeline_generator.py [options]
python scripts/pipeline_generator.py [options]
Script 2: Terraform Scaffolder
Script 2: Terraform Scaffolder
python scripts/terraform_scaffolder.py [options]
python scripts/terraform_scaffolder.py [options]
Script 3: Deployment Manager
Script 3: Deployment Manager
python scripts/deployment_manager.py [options]
undefinedpython scripts/deployment_manager.py [options]
undefinedCore Capabilities
核心能力详解
1. Pipeline Generator
1. 流水线生成器
Automated tool for pipeline generator tasks.
Features:
- Automated scaffolding
- Best practices built-in
- Configurable templates
- Quality checks
Usage:
bash
python scripts/pipeline_generator.py <project-path> [options]用于流水线生成任务的自动化工具。
功能特性:
- 自动化脚手架生成
- 内置最佳实践
- 可配置模板
- 质量检查
使用方式:
bash
python scripts/pipeline_generator.py <project-path> [options]2. Terraform Scaffolder
2. Terraform脚手架生成器
Comprehensive analysis and optimization tool.
Features:
- Deep analysis
- Performance metrics
- Recommendations
- Automated fixes
Usage:
bash
python scripts/terraform_scaffolder.py <target-path> [--verbose]全面的分析与优化工具。
功能特性:
- 深度分析
- 性能指标统计
- 优化建议
- 自动化修复
使用方式:
bash
python scripts/terraform_scaffolder.py <target-path> [--verbose]3. Deployment Manager
3. 部署管理器
Advanced tooling for specialized tasks.
Features:
- Expert-level automation
- Custom configurations
- Integration ready
- Production-grade output
Usage:
bash
python scripts/deployment_manager.py [arguments] [options]用于专项任务的高级工具集。
功能特性:
- 专家级自动化
- 自定义配置
- 可集成第三方服务
- 生产级输出
使用方式:
bash
python scripts/deployment_manager.py [arguments] [options]Reference Documentation
参考文档
Cicd Pipeline Guide
CI/CD流水线指南
Comprehensive guide available in :
references/cicd_pipeline_guide.md- Detailed patterns and practices
- Code examples
- Best practices
- Anti-patterns to avoid
- Real-world scenarios
完整指南位于 :
references/cicd_pipeline_guide.md- 详细的模式与实践
- 代码示例
- 最佳实践
- 需避免的反模式
- 真实场景案例
Infrastructure As Code
基础设施即代码
Complete workflow documentation in :
references/infrastructure_as_code.md- Step-by-step processes
- Optimization strategies
- Tool integrations
- Performance tuning
- Troubleshooting guide
完整工作流文档位于 :
references/infrastructure_as_code.md- 分步流程说明
- 优化策略
- 工具集成方案
- 性能调优
- 故障排查指南
Deployment Strategies
部署策略
Technical reference guide in :
references/deployment_strategies.md- Technology stack details
- Configuration examples
- Integration patterns
- Security considerations
- Scalability guidelines
技术参考指南位于 :
references/deployment_strategies.md- 技术栈细节
- 配置示例
- 集成模式
- 安全考量
- 可扩展性指南
Tech Stack
技术栈
Languages: TypeScript, JavaScript, Python, Go, Swift, Kotlin
Frontend: React, Next.js, React Native, Flutter
Backend: Node.js, Express, GraphQL, REST APIs
Database: PostgreSQL, Prisma, NeonDB, Supabase
DevOps: Docker, Kubernetes, Terraform, GitHub Actions, CircleCI
Cloud: AWS, GCP, Azure
编程语言: TypeScript, JavaScript, Python, Go, Swift, Kotlin
前端框架: React, Next.js, React Native, Flutter
后端技术: Node.js, Express, GraphQL, REST APIs
数据库: PostgreSQL, Prisma, NeonDB, Supabase
DevOps工具: Docker, Kubernetes, Terraform, GitHub Actions, CircleCI
云平台: AWS, GCP, Azure
Development Workflow
开发工作流
1. Setup and Configuration
1. 环境搭建与配置
bash
undefinedbash
undefinedInstall dependencies
安装依赖
npm install
npm install
or
或
pip install -r requirements.txt
pip install -r requirements.txt
Configure environment
配置环境变量
cp .env.example .env
undefinedcp .env.example .env
undefined2. Run Quality Checks
2. 运行质量检查
bash
undefinedbash
undefinedUse the analyzer script
使用分析脚本
python scripts/terraform_scaffolder.py .
python scripts/terraform_scaffolder.py .
Review recommendations
查看优化建议
Apply fixes
应用修复方案
undefinedundefined3. Implement Best Practices
3. 遵循最佳实践
Follow the patterns and practices documented in:
references/cicd_pipeline_guide.mdreferences/infrastructure_as_code.mdreferences/deployment_strategies.md
请参考以下文档中的模式与实践:
references/cicd_pipeline_guide.mdreferences/infrastructure_as_code.mdreferences/deployment_strategies.md
Best Practices Summary
最佳实践总结
Code Quality
代码质量
- Follow established patterns
- Write comprehensive tests
- Document decisions
- Review regularly
- 遵循既定模式
- 编写全面测试用例
- 记录决策过程
- 定期代码评审
Performance
性能优化
- Measure before optimizing
- Use appropriate caching
- Optimize critical paths
- Monitor in production
- 先测量再优化
- 使用合适的缓存策略
- 优化关键路径
- 生产环境实时监控
Security
安全防护
- Validate all inputs
- Use parameterized queries
- Implement proper authentication
- Keep dependencies updated
- 验证所有输入
- 使用参数化查询
- 实现正确的认证机制
- 保持依赖库更新
Maintainability
可维护性
- Write clear code
- Use consistent naming
- Add helpful comments
- Keep it simple
- 编写清晰易懂的代码
- 使用一致的命名规范
- 添加有帮助的注释
- 保持代码简洁
Common Commands
常用命令
bash
undefinedbash
undefinedDevelopment
开发相关
npm run dev
npm run build
npm run test
npm run lint
npm run dev
npm run build
npm run test
npm run lint
Analysis
代码分析
python scripts/terraform_scaffolder.py .
python scripts/deployment_manager.py --analyze
python scripts/terraform_scaffolder.py .
python scripts/deployment_manager.py --analyze
Deployment
部署操作
docker build -t app:latest .
docker-compose up -d
kubectl apply -f k8s/
undefineddocker build -t app:latest .
docker-compose up -d
kubectl apply -f k8s/
undefinedTroubleshooting
故障排查
Common Issues
常见问题
Check the comprehensive troubleshooting section in .
references/deployment_strategies.md请查看 中的完整故障排查章节。
references/deployment_strategies.mdGetting Help
获取帮助
- Review reference documentation
- Check script output messages
- Consult tech stack documentation
- Review error logs
- 查阅参考文档
- 检查脚本输出信息
- 参考技术栈官方文档
- 查看错误日志
Resources
参考资源
- Pattern Reference:
references/cicd_pipeline_guide.md - Workflow Guide:
references/infrastructure_as_code.md - Technical Guide:
references/deployment_strategies.md - Tool Scripts: directory
scripts/
- 模式参考:
references/cicd_pipeline_guide.md - 工作流指南:
references/infrastructure_as_code.md - 技术指南:
references/deployment_strategies.md - 工具脚本: 目录
scripts/