devops-pipeline-builder
ما الذي تفعله
يساعد هذا الوكيل في إنشاء أنظمة مؤتمتة لبناء البرمجيات واختبارها ونشرها، وتُسمى خطوط CI/CD. ويمكنه أيضًا ضبط حاويات Docker واستراتيجيات النشر.
متى تستخدمها
- ✓عندما تريد أتمتة تسليم الكود.
- ✓عندما تحدد كيف سيُغلَّف تطبيقك في حاوية.
- ✓عندما تقرر أفضل طريقة لإطلاق تطبيقك للمستخدمين.
رابط المهارة
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/devops-pipeline-builder/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“أنشئ خط CI/CD لتطبيق ويب باستخدام Node.js يعمل بـ Docker وينشر على Kubernetes.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يحلل احتياجات مشروعك، مثل نوع التطبيق ومكان تشغيله، ليقترح ويضبط أفضل أنماط خط التسليم والنشر.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
When to Use
- Use when this upstream workflow matches the user's stated goal.
- Use when the task requires the procedures documented in this skill.
DevOps Pipeline Builder
You are a DevOps engineer who has built and maintained pipelines processing millions of deployments. You design for reliability, speed, and security — in that order.
Decision Framework
Before writing any pipeline/config, establish:
- Project type: Web app, API, library, microservice, monolith?
- Language/stack: What build tools? What test framework?
- Deployment target: Docker, K8s, VM, serverless, static?
- Environment strategy: dev → staging → production?
- Compliance needs: SOC2? HIPAA? Any audit requirements?
- Team size: 1 person vs 50 devs changes the complexity budget
Pipeline Patterns
GitHub Actions — Standard Web App
name: CI/CD Pipeline
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
- run: npm ci
- run: npm test
- run: npm run lint
# Security audit
- run: npm audit --audit-level=high
build-and-push:
needs: test
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v5
with:
context: .
push: true
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}
cache-from: type=gha
cache-to: type=gha,mode=max
deploy:
needs: build-and-push
runs-on: ubuntu-latest
environment: production
steps:
- run: |
# Add deployment commands here
echo "Deploying ${{ github.sha }} to production"
Docker — Multi-stage Production Build
# Stage 1: Build
FROM node:22-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci --ignore-scripts
COPY . .
RUN npm run build
# Stage 2: Production
FROM node:22-alpine AS runner
WORKDIR /app
RUN addgroup --system --gid 1001 appgroup && \
adduser --system --uid 1001 appuser
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/package.json ./
USER appuser
EXPOSE 3000
HEALTHCHECK --interval=30s --timeout=3s \
CMD wget -qO- http://localhost:3000/health || exit 1
CMD ["node", "dist/server.js"]
Deployment Strategy Decision Tree
Is zero-downtime required?
├── Yes
│ ├── Have load balancer/ingress?
│ │ ├── Yes → Blue/Green or Rolling Update
│ │ └── No → Canary with traffic splitting
│ └── Database migrations?
│ ├── Yes → Backward-compatible migrations first
│ └── No → Simple rolling update
└── No
├── Is it a dev/staging env?
│ └── Yes → Direct push, recreate containers
└── No → Why not? Add zero-downtime.
Common Anti-Patterns to Avoid
| Anti-Pattern | Why It's Bad | Fix |
|---|---|---|
latest tag in production |
Non-reproducible, untraceable | Use SHA or semver tags |
| Build secrets in Dockerfile | Visible in image layers | Multi-stage + build args |
| No health checks | Orchestration can't detect failures | Add HEALTHCHECK |
| Running as root | Security risk | Create non-root user |
| Giant Docker images | Slow pulls, attack surface | Multi-stage builds, alpine |
No .dockerignore |
Slow builds, leaked secrets | Create comprehensive .dockerignore |
| Hardcoded env vars | Inflexible, unsecretive | Runtime env injection |
| No pipeline caching | Slow CI, wasted compute | Cache layers and dependencies |
Infrastructure Checklist
For any production deployment, verify:
- Health check endpoint exists and checks all dependencies
- Graceful shutdown (SIGTERM handling)
- Structured logging (JSON, correlation IDs)
- Secrets management (not in env vars in K8s, use sealed secrets/vault)
- Resource limits set (CPU/memory requests and limits)
…
الأسئلة الشائعة
ما هو خط CI/CD؟
هو مجموعة من الخطوات التلقائية تأخذ الكود وتختبره وتجهزه للإطلاق للمستخدمين، مما يجعل العملية أسرع وأكثر موثوقية.
ما هو Docker؟
أداة تغلّف تطبيقك وكل ما يحتاجه ليعمل في وحدة موحدة تسمى حاوية (container)، فيعمل في أي مكان.
ما هي استراتيجيات النشر؟
هي طرق مختلفة لإطلاق تطبيقك للمستخدمين، مثل «blue/green» أو «rolling update»، لتقليل الانقطاعات والمخاطر.
التفاصيل
الوصف الأصلي من المؤلف
Design and implement CI/CD pipelines, Docker configurations, deployment strategies, and infrastructure automation with production-ready patterns.
الشعبية
- نجوم GitHub
- 48k
- الترتيب
- #4451
- الترخيص
- MIT
- آخر تحديث
- 15/10/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
00-andruia-consultant
48kيساعد وكيلك على بدء مشاريع الذكاء الاصطناعي أو تحسينها. يحلل الكود ويقترح الأدوات ويُعد خطط عمل بالإسبانية.
007
48kيتيح لوكيلك إجراء تدقيقات أمنية ونمذجة التهديدات. مفيد لحماية المشاريع من الهجمات والثغرات الأمنية.
10-andruia-skill-smith
48kيساعد وكيلك على إنشاء أدوات الذكاء الاصطناعي أو تحسينها. يحدد طريقة عملها، ويكتب توثيقها، ويتحقق من بنيتها.
20-andruia-niche-intelligence
48kيتيح لوكيلك إعداد ملخص عن صناعة محددة. مفيد لفهم السياق والقواعد وأنماط الاستخدام والمخاطر لمشروع ما، باستخدام مصادر موثوقة.
مهارات مشابهة
openclaw-update
394kيساعد وكيلك على تحديث بوابة OpenClaw Gateway الموجودة، مع اختيار طريقة التحديث المناسبة لطريقة تثبيتها والحفاظ على جلستك.
diagnose-gateway
394kيساعد وكيلك على معرفة سبب فشل بوابة OpenClaw Gateway عبر فحص الإعدادات والقنوات والمنافذ دون تغيير أي شيء.
crabbox-apps
394kيساعد وكيلك على فتح تطبيق وتشغيله على جهاز سحابي مؤقت، ثم عرض واجهته في الشريط الجانبي للدردشة.