devops-skills / templates
CLAUDE.md8 starsChanged 3 months agoMITView on GitHub
This file is auto-loaded by Claude Code every session. Keep it focused — only include what Claude can't infer from the code itself. --> When scaffolding or reviewing Terraform, always use these backend values. Always allowed (read-only, safe): - kubectl get/describe/logs - terraform plan/validate - git log/diff/status Always denied (destructive, require human confirmation): - kubectl delete — never auto-delete resources - kubectl exec — no shell access into pods - terraform apply — no auto-apply, always manual
In this repository38 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/adr.mdcCursor rule
- .cursor/rules/appsec.mdcCursor rule
- .cursor/rules/ci.mdcCursor rule
- .cursor/rules/deploy.mdcCursor rule
- .cursor/rules/docker.mdcCursor rule
- .cursor/rules/finops.mdcCursor rule
- .cursor/rules/github-actions.mdcCursor rule
- .cursor/rules/github.mdcCursor rule
- .cursor/rules/gitops.mdcCursor rule
- .cursor/rules/incident.mdcCursor rule
- .cursor/rules/k8s.mdcCursor rule
- .cursor/rules/logging.mdcCursor rule
- .cursor/rules/observability.mdcCursor rule
- .cursor/rules/owasp.mdcCursor rule
- .cursor/rules/skill-creator.mdcCursor rule
- .cursor/rules/tf.mdcCursor rule
- .cursor/rules/tf-plan.mdcCursor rule
- .cursor/rules/wrapper-tf.mdcCursor rule
- adrSkill
- appsecSkill
- ciSkill
- deploySkill
- dockerSkill
- finopsSkill
- github-actionsSkill
- githubSkill
- gitopsSkill
- incidentSkill
- k8sSkill
- loggingSkill
- observabilitySkill
- owaspSkill
- skill-creatorSkill
- tf-planSkill
- tfSkill
- wrapper-tfSkill
The file
Show its rules and text
We split this CLAUDE.md into the rules it gives an agent
16 rules. About 0 are common, 10 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 7
Remove sections that don't apply
- Distinctive: line 8
Add to .gitignore: CLAUDE.local.md (for personal overrides)
- Distinctive: line 9
Commit this file so the whole team benefits
- Distinctive: line 12
Keep it focused — only include what Claude can't infer from the code itself.
- Very specific: line 17
Never push directly to main / master / trunk.
- Very specific: line 19
Use the repo's git config user.name / user.email.
- Distinctive: line 21
Before pushing, summarize the commit + diff stat and ask the user to confirm.
- Very specific: line 22
Never --force push to a shared branch.
- Distinctive: line 45
When scaffolding or reviewing Terraform, always use these backend values.
- Very specific: line 64
All Terraform resources must have tags: Name, Environment, Team, ManagedBy = "terraform"
- Distinctive: line 72
Never hardcode AWS account IDs, ARNs, or region strings
- Very specific: line 73
Never commit .tfstate, .tfvars with real values, or kubeconfig files
- Very specific: line 74
Never use latest as an image tag in any Helm values file
- Distinctive: line 75
Never merge to main without a passing pipeline
- Distinctive: line 81
Always allowed (read-only, safe):
- Distinctive: line 86
Always denied (destructive, require human confirmation):
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CLAUDE.md — Project Context
<!--
INSTRUCTIONS FOR SETUP:
1. Copy this file to the root of your project repo
2. Fill in all <PLACEHOLDER> values for your project
3. Remove sections that don't apply
4. Add to .gitignore: CLAUDE.local.md (for personal overrides)
5. Commit this file so the whole team benefits
This file is auto-loaded by Claude Code every session.
Keep it focused — only include what Claude can't infer from the code itself.
-->Git workflow (MUST follow)
- Never push directly to
main/master/trunk. Always work on a branch and open a pull request. - No
Co-Authored-Bytrailers, no "🤖 Generated with …" footers, no AI attribution in commits or PR descriptions. - Use the repo's
git config user.name/user.email. Do not override per-commit identity. - One logical change per branch / PR. No bundled unrelated edits.
- Before pushing, summarize the commit + diff stat and ask the user to confirm.
- Never
--forcepush to a shared branch.
Project
- Service: <SERVICE_NAME> —
<one-line description> - Team: <TEAM_NAME>
- Repo: https://github.com/
<org>/<repo>
AWS
- Primary region: eu-west-1
- AWS profile (local): <AWS_PROFILE_NAME>
- Account ID (staging): <STAGING_ACCOUNT_ID>
- Account ID (prod): <PROD_ACCOUNT_ID>
Terraform
- State backend bucket: <S3_BUCKET_NAME>
- State lock table: <DYNAMODB_TABLE_NAME>
- State key pattern:
<service>/<environment>/terraform.tfstate - Required Terraform version:
~> 1.7 - Required AWS provider:
~> 5.0
When scaffolding or reviewing Terraform, always use these backend values.
Kubernetes / EKS
- Cluster name (staging): <EKS_CLUSTER_NAME_STAGING>
- Cluster name (prod): <EKS_CLUSTER_NAME_PROD>
- Default namespace:
<NAMESPACE> - ECR registry: <ACCOUNT_ID>.dkr.ecr.eu-west-1.amazonaws.com
GitLab CI/CD
- CI AWS variable (key): AWS_ACCESS_KEY_ID
- CI AWS variable (secret): AWS_SECRET_ACCESS_KEY
- Kubeconfig variable (staging): KUBECONFIG_STAGING
- Kubeconfig variable (prod): KUBECONFIG_PROD
- Default branch: main
Team Conventions
- All Terraform resources must have tags:
Name,Environment,Team,ManagedBy = "terraform" - Module versions pinned with
~>— never floating or git refs - No
-auto-approvein any pipeline - Production jobs always require
when: manual - Secrets via AWS Secrets Manager + external-secrets operator (never inline in values.yaml)
What NOT to do
- Never hardcode AWS account IDs, ARNs, or region strings
- Never commit
.tfstate,.tfvarswith real values, or kubeconfig files - Never use
latestas an image tag in any Helm values file - Never merge to main without a passing pipeline
Claude Code Permissions
<!-- These are enforced via .claude/settings.json in this repo. Copy that file too. -->Always allowed (read-only, safe):
kubectl get/describe/logsterraform plan/validategit log/diff/status
Always denied (destructive, require human confirmation):
kubectl delete— never auto-delete resourceskubectl exec— no shell access into podsterraform apply— no auto-apply, always manual
Jira
- Project key: <JIRA_PROJECT_KEY>
- Board: https://
<your-org>.atlassian.net/jira/software/projects/<JIRA_PROJECT_KEY>/boards
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

