원클릭으로
sync-docs
Use when documentation needs updating - ensures variables.tf, llms.md, kube.tf.example, and README are in sync
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Use when documentation needs updating - ensures variables.tf, llms.md, kube.tf.example, and README are in sync
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Use when upgrading or hardening an existing kube-hetzner cluster, including module version bumps, provider lockfile refreshes, K3s channel/version upgrades, immutable node replacement, system-upgrade-controller changes, or live cluster rollout validation
Use when preparing or executing a release - verifies changelog content, updates version references, commits release prep, and, when the maintainer explicitly asks, pushes the release tag that triggers automation
Use when working on a GitHub issue - fetches issue details, analyzes codebase, implements fix following project methodology
Use when reviewing a pull request - security-focused review following CLAUDE.md guidelines for breaking changes, malicious patterns, and backward compatibility
Use after making changes to run terraform fmt, validate, and plan against test environment
Use when users need help with kube-hetzner configuration, debugging, or questions - acts as an intelligent assistant with live repo access
| name | sync-docs |
| description | Use when documentation needs updating - ensures variables.tf, llms.md, kube.tf.example, and README are in sync |
Ensure documentation is synchronized across all key files when variables or features change.
/sync-docs
| File | Purpose | Priority |
|---|---|---|
variables.tf | Source of truth for all variables | PRIMARY |
docs/llms.md | Comprehensive variable reference | HIGH |
kube.tf.example | Working example configuration | HIGH |
README.md | Project overview and quick start | MEDIUM |
docs/terraform.md | Auto-generated terraform docs | AUTO |
digraph sync_flow {
rankdir=TB;
node [shape=box];
extract [label="1. Extract from variables.tf"];
compare [label="2. Compare with llms.md"];
gaps [label="3. Identify gaps"];
update_llms [label="4. Update llms.md"];
update_example [label="5. Update kube.tf.example"];
update_readme [label="6. Update README if needed"];
verify [label="7. Verify consistency"];
extract -> compare;
compare -> gaps;
gaps -> update_llms;
update_llms -> update_example;
update_example -> update_readme;
update_readme -> verify;
}
Use Gemini for large file analysis:
# List all variables from variables.tf
gemini --model gemini-3-pro-preview -p "@variables.tf List ALL variable names defined in this file, one per line"
# Get variable details
gemini --model gemini-3-pro-preview -p "@variables.tf For variable '<name>', provide: type, default, description"
# Compare variables.tf with llms.md
gemini --model gemini-3-pro-preview -p \
"@variables.tf @docs/llms.md List ALL variables from variables.tf that are NOT documented in llms.md. Output one per line."
**Variable Name**
```tf
variable_name = "default_value"
variable_name (Type, Optional/Required):
default_value
### kube.tf.example Format
```tf
# Description of what this controls
# Additional context if needed
# variable_name = "default_value"
For each undocumented variable:
variables.tflocals.tf and other filesllms.md| Section | Variables |
|---|---|
| Cluster Basics | cluster_name, hetzner_token, ssh_* |
| Network | network_, subnet_ |
| Control Plane | control_plane_* |
| Agents | agent_, autoscaler_ |
| Load Balancer | lb_, traefik_, nginx_* |
| CNI | cni_, cilium_, calico_* |
| Storage | longhorn_* |
| Security | firewall_, audit_ |
| Advanced | Additional/misc options |
Ensure new variables appear in the example with:
# Check what's in example vs variables.tf
gemini --model gemini-3-pro-preview -p \
"@variables.tf @kube.tf.example List variables from variables.tf missing from kube.tf.example"
Update README.md if:
Features section should match actual capabilities.
# Final verification
gemini --model gemini-3-pro-preview -p \
"@variables.tf @docs/llms.md @kube.tf.example Verify these files are consistent. List any discrepancies."
# Regenerate terraform docs
terraform-docs markdown . > docs/terraform.md
# Search for variable across all docs
grep -r "variable_name" docs/ kube.tf.example README.md
# Find undocumented variables (quick check)
diff <(grep -oP 'variable "\K[^"]+' variables.tf | sort) \
<(grep -oP '`\K[a-z_]+(?=`)' docs/llms.md | sort -u) | grep "^<"
terraform fmtdocs: sync documentation with variables.tf