mirror of
https://github.com/duthaho/claudekit.git
synced 2026-06-10 12:14:57 +03:00
3.1 KiB
3.1 KiB
name, description
| name | description |
|---|---|
| devops | Use when containerizing applications, configuring CI/CD pipelines, deploying to environments, or deploying to edge — including Docker, Dockerfile, docker-compose, multi-stage builds, GitHub Actions, workflow YAML, matrix builds, workflow_dispatch, Cloudflare Workers, Pages, R2, D1, KV, wrangler, container registries, or deployment workflows (staging, production, health checks, smoke tests). |
DevOps
When to Use
- Containerizing applications with Docker or Docker Compose
- Setting up CI/CD pipelines with GitHub Actions
- Deploying to Cloudflare Workers, Pages, R2, D1, or KV
- Deploying applications to staging or production environments
- Running pre-deploy checks (build, tests, security audit)
- Optimizing container images, build caching, or deployment workflows
- Configuring wrangler.toml, Durable Objects, or Cloudflare Queues
When NOT to Use
- Application code without infrastructure concerns — use framework-specific skills
- Database schema changes — use
databases - Security auditing — use
owasp
Quick Reference
| Topic | Reference | Key features |
|---|---|---|
| Docker | references/docker.md |
Dockerfiles, multi-stage builds, Compose, .dockerignore, healthchecks |
| GitHub Actions | references/github-actions.md |
Workflow YAML, matrix builds, caching, secrets, reusable workflows |
| Cloudflare Workers | references/cloudflare-workers.md |
Workers, Pages, R2, D1, KV, Durable Objects, wrangler |
Best Practices
- Use multi-stage builds to keep production images small (Docker).
- Pin image tags and action versions — use digests or major version tags, never
latest. - Order instructions for cache efficiency — copy dependency manifests before application code (Docker).
- Run as non-root in containers (Docker).
- Use caching aggressively in CI — cache package manager stores and Docker layers (GitHub Actions).
- Set minimal permissions — add a top-level
permissionsblock (GitHub Actions). - Extract reusable workflows and composite actions for shared CI logic (GitHub Actions).
- Keep secrets out of logs — never
echoa secret (GitHub Actions).
Common Pitfalls
- Bloated images — using full base images instead of slim/alpine variants (Docker).
- Cache invalidation by COPY order — placing
COPY . .beforeRUN pip install(Docker). - Secrets baked into layers (Docker).
- Unpinned action versions (GitHub Actions).
- Overly broad triggers — triggering on every push to every branch (GitHub Actions).
- Secret exposure in pull requests from forks (GitHub Actions).
- Using Node.js APIs without
nodejs_compat(Cloudflare Workers). - Blocking the event loop — Workers have strict CPU time limits (Cloudflare Workers).
- Using KV for frequently updated data — eventually consistent with ~60s propagation (Cloudflare Workers).
Related Skills
backend-frameworks— Application code that gets containerizeddatabases— Database services in Docker Composeowasp— Security hardening for containers and CI