[ci skip] Clean up .claude: remove remote executor and /remote skill references

All commands and skills now reference tools directly without any remote
execution wrapper. Archived setup-remote-executor.md for reference.
Added rule: all infra changes must go through Terraform.
This commit is contained in:
Viktor Barzin 2026-02-07 13:21:58 +00:00
parent ebe5eb1e9b
commit c14dc88ffa
7 changed files with 18 additions and 25 deletions

View file

@ -7,6 +7,7 @@
- **After every significant change**: Proactively update this file (`.claude/CLAUDE.md`) to reflect what changed — new services, config changes, version bumps, new patterns, etc. This ensures knowledge persists across sessions automatically.
- **After updating any `.claude/` files**: Always commit them immediately (`git add .claude/ && git commit -m "[ci skip] update claude knowledge"`) to avoid building up unstaged changes.
- **Skills available**: Check `.claude/skills/` directory for specialized workflows (e.g., `setup-project.md` for deploying new services)
- **CRITICAL: All infrastructure changes must go through Terraform**. NEVER modify cluster resources directly (e.g., via kubectl apply/edit/patch, helm install, docker run). Always make changes in the Terraform `.tf` files and apply with `terraform apply`.
## Execution Environment
@ -15,15 +16,8 @@
- **Git commands**: git status, git log, git diff, git add, git commit, git reset, etc.
- **Basic shell**: ls, cat, head, tail, find, grep, etc.
### Remote Commands (via `/remote` skill)
**NEVER use SSH directly** (e.g., `ssh wizard@10.0.10.10`). SSH is not allowed.
For commands that need cluster access, use the `/remote` skill or the `tf-apply`/`tf-plan` skills:
- **terraform**: Use `/remote terraform apply ...` or the `tf-apply`/`tf-plan` skills
- **kubectl**: Use `/remote kubectl ...` or the `kubectl` skill
- **helm**: Use `/remote helm ...`
- **docker**: Use `/remote docker ...`
- **python/pip**: Use `/remote python ...`
- **Any command interacting with**: Proxmox, Kubernetes cluster, NFS server, other infrastructure
### Remote Commands
For commands that need cluster access (terraform, kubectl, helm, docker, python), run them directly. These tools are available in the local environment.
---

View file

@ -1,9 +1,9 @@
# Kubectl Command
Run kubectl commands on the cluster via the `/remote` skill.
Run kubectl commands on the cluster.
```
/remote kubectl $ARGUMENTS
```bash
kubectl $ARGUMENTS
```
Examples:

View file

@ -1,9 +1,9 @@
# Terraform Apply
Run terraform apply to deploy infrastructure changes via the `/remote` skill.
Run terraform apply to deploy infrastructure changes.
```
/remote terraform apply -target=module.kubernetes_cluster.module.<service> -auto-approve
```bash
terraform apply -target=module.kubernetes_cluster.module.<service> -auto-approve
```
ALWAYS use -target to speed up execution. Monitor the output and report any errors or successful completions.

View file

@ -1,9 +1,9 @@
# Terraform Plan
Run terraform plan to preview infrastructure changes via the `/remote` skill.
Run terraform plan to preview infrastructure changes.
```
/remote terraform plan -target=module.kubernetes_cluster.module.<service>
```bash
terraform plan -target=module.kubernetes_cluster.module.<service>
```
ALWAYS use -target to speed up execution. Summarize the planned changes, highlighting any resources being destroyed or recreated.

View file

@ -38,10 +38,10 @@ Need to control smart home devices, check sensor states, or run automations via
```
### Execution Pattern (CRITICAL)
Always activate the venv to get environment variables, then run via `/remote` skill:
Always activate the venv to get environment variables:
```bash
/remote source ~/.venvs/claude/bin/activate && cd /home/wizard/code/infra && python .claude/home-assistant.py [command] [options]
source ~/.venvs/claude/bin/activate && cd ~/code/infra && python .claude/home-assistant.py [command] [options]
```
### Available Commands
@ -134,7 +134,7 @@ python .claude/home-assistant.py notify "Hello" --target notify.mobile_app
To turn on the living room light:
```bash
/remote source ~/.venvs/claude/bin/activate && cd /home/wizard/code/infra && python .claude/home-assistant.py on light.living_room
source ~/.venvs/claude/bin/activate && cd ~/code/infra && python .claude/home-assistant.py on light.living_room
```
## Common Entity Domains

View file

@ -34,10 +34,10 @@ Need to create, query, or manage calendar events in the user's Nextcloud calenda
```
### Execution Pattern (CRITICAL)
Always activate the venv to get environment variables, then run via `/remote` skill:
Always activate the venv to get environment variables:
```bash
/remote source ~/.venvs/claude/bin/activate && cd /home/wizard/code/infra && python .claude/calendar-query.py [command] [options]
source ~/.venvs/claude/bin/activate && cd ~/code/infra && python .claude/calendar-query.py [command] [options]
```
### Available Commands
@ -103,7 +103,7 @@ python .claude/calendar-query.py week
To create an event "Team offsite" from March 20-22, 2026:
```bash
/remote source ~/.venvs/claude/bin/activate && cd /home/wizard/code/infra && python .claude/calendar-query.py create --title "Team offsite" --start "2026-03-20" --end "2026-03-23" --all-day
source ~/.venvs/claude/bin/activate && cd ~/code/infra && python .claude/calendar-query.py create --title "Team offsite" --start "2026-03-20" --end "2026-03-23" --all-day
```
## Important Notes

View file

@ -284,7 +284,6 @@ smtp_password = var.mailserver_accounts["info@viktorbarzin.me"]
### 6. Apply Terraform
```bash
# Via /remote skill
terraform init
terraform apply -target=module.kubernetes_cluster.module.<service> -auto-approve
```