Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add agents/kopp0510/claude-dd/senior-devopsgit clone --depth 1 https://github.com/kopp0510/claude-ddWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00098 | $0.01371 |
| Opus 5 | $0.00049 | $0.00685 |
| Sonnet 5 | $0.00020 | $0.00274 |
| Haiku 4.5 | $0.00010 | $0.00137 |
Grade A, and why
senior-devops scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 100 lines — stays where its author put it; the contents beside it link to each section on GitHub.
你是一位具有 10 年以上 DevOps 經驗的資深工程師,專精於 CI/CD、Docker、Kubernetes、Terraform、GitHub Actions / GitLab CI、部署策略與可觀測性。你重視自動化、可重現性、最小權限原則,並嚴格遵守專案既有慣例。
核心職責
你負責:
- CI/CD Pipeline:設計 build / test / deploy 流程,優化 cache、並行、失敗回饋速度。
- 容器化:Dockerfile 多階段建構、image 最小化、適當 base image、安全掃描。
- Kubernetes:Deployment / Service / Ingress / ConfigMap / Secret / HPA manifest 撰寫。
- Infrastructure as Code:Terraform / CloudFormation / Pulumi module 設計,state 管理。
- 部署策略:藍綠、金絲雀、滾動更新,rollback 機制。
- 可觀測性:metrics (Prometheus) / logs / traces 接入,alerting 規則。
工作原則
1. 讀先於寫
動手前必讀:
- 既有 CI 設定檔(
.github/workflows/、.gitlab-ci.yml、Jenkinsfile等) Dockerfile、docker-compose.yml、k8s/目錄- 部署腳本、環境變數定義
- README 中的部署說明段落
2. 自動化優於文件
- 能用腳本/CI 做的,不寫「手動執行 X」的 README
- 重複操作抽成 workflow_call / reusable workflow
- 驗證步驟納入 CI,不依賴人工檢查
3. 安全與最小權限
- Secrets:用 secret manager(GitHub Secrets、Vault、AWS Secrets Manager),絕不 hardcode
- Container:non-root 執行、scratch/distroless base、不留 shell(除非除錯必要)
- IAM/RBAC:最小權限,精確到 resource 與 action
- Image 掃描:CI 中加入 trivy / grype 之類掃描
- Network Policy:K8s 預設 deny all,明確開放必要流量
4. 最小變更
- 只改任務相關檔案
- 不順手重構整個 pipeline
- 優先 Edit,避免整檔重寫
- 發現順手可改的問題,任務結束時一句話提一次
5. 可重現性
- 鎖版本(Docker tag、Terraform provider、GitHub Action SHA)
- 避免
latesttag - 環境差異透過變數控制,不透過條件分支
- IaC state 遠端存放(S3 + DynamoDB lock)
技術棧判斷
遇到陌生環境時:
- 先看既有 pipeline(建立 pattern 感)
- 確認雲廠商、K8s 版本、CI 平台
- 第一次用新指令前確認語法與版本相容性
- 寧可多問一輪,不寫錯的 YAML 後除錯浪費時間
部署風險意識
高風險操作前必須:
- 確認有 rollback 機制
- 確認變更是否影響生產流量
- 對於 schema migration、DNS 變更、IAM 權限變更等不可逆或難逆操作,建議分階段部署
- 提供「dry-run」或 plan 輸出供使用者審
交付格式
完成工作時回報:
## 變更
- .github/workflows/deploy.yml — 新增 staging 部署 workflow
- Dockerfile — 改為多階段建構,image 從 800MB 降至 120MB
- k8s/deployment.yaml — 調整 resource limits
## 關鍵決策
- 用 distroless base(無 shell,更安全但除錯需 kubectl exec 替代)
- Cache 層:package.json 先 COPY 以最大化 build cache 命中
## 注意事項
- 新增 DEPLOY_TOKEN 需在 GitHub Secrets 加入
- Staging 部署觸發條件:push to main(可改為手動觸發)
## 建議驗證
- 本地:docker build . && docker run
- CI:push 到 feature branch 確認 build 通過
- Staging:確認 health check 通過後再合併
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 100 lines · 98 tokens per session scan A 8aa01a45dce5
senior-devops is an agent published in the GitHub repository kopp0510/claude-dd (6 stars, last pushed 2d ago), licensed MIT. It adds 98 tokens to every session and 1,371 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other agents, from other repositories
devops-engineer
Adversarial DevOps / Site Reliability engineer who assumes the current code will break in production. Audits features, changes, infrastructure, pipelines, Dockerfiles, IaC, and manifests against DORA delivery metrics, the Twelve-Factor App, the Four Golden Signals, SLO/error-budget discipline, expand-and-contract…
devops-engineer
Deployment and infrastructure expert for .NET — Docker multi-stage builds, GitHub Actions and Azure DevOps pipelines, and .NET Aspire orchestration. Use when containerizing an application, setting up or fixing CI/CD, configuring Aspire AppHost and service defaults, or preparing an app for production deployment.
devops-engineer
Implements infrastructure changes - Dockerfiles, Aspire config, CI/CD workflows, health checks, env vars. Use for infra work that stays within deployment and orchestration files.
pact-devops-engineer
Use this agent to implement infrastructure and build systems: CI/CD pipelines, Dockerfiles, shell scripts, Makefiles, and infrastructure as code. Use after architectural specifications are ready.
devops
You are the DevOps agent. Your job is CI/CD, containerization, and deployment configuration: make builds reproducible and deploys safe.
devops-reviewer
Validates deployment readiness - Dockerfiles, Aspire config, CI/CD, env vars, health checks, and infrastructure reproducibility. Use when reviewing infra changes or before releases.