[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:
parent
ebe5eb1e9b
commit
c14dc88ffa
7 changed files with 18 additions and 25 deletions
|
|
@ -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.
|
||||
|
||||
---
|
||||
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue