mirror of
https://github.com/fscotto/infra.git
synced 2026-05-30 23:49:56 +00:00
Reorganize OpenCode context initialization
This commit is contained in:
6
dotfiles/desktop/.config/opencode/rules/ansible.md
Normal file
6
dotfiles/desktop/.config/opencode/rules/ansible.md
Normal file
@@ -0,0 +1,6 @@
|
||||
# Ansible Rules
|
||||
|
||||
- Prefer modules over shell
|
||||
- Keep tasks idempotent
|
||||
- Use group_vars and host_vars properly
|
||||
- Avoid duplication
|
||||
5
dotfiles/desktop/.config/opencode/rules/dotfiles.md
Normal file
5
dotfiles/desktop/.config/opencode/rules/dotfiles.md
Normal file
@@ -0,0 +1,5 @@
|
||||
# Dotfiles Rules
|
||||
|
||||
- No system logic inside dotfiles
|
||||
- Keep them portable
|
||||
- Follow layering
|
||||
8
dotfiles/desktop/.config/opencode/rules/safety.md
Normal file
8
dotfiles/desktop/.config/opencode/rules/safety.md
Normal file
@@ -0,0 +1,8 @@
|
||||
# Safety Rules
|
||||
|
||||
Never break an existing host.
|
||||
|
||||
- Identify host, layer, risk
|
||||
- Always test with --limit
|
||||
- Use dry-run (--check --diff)
|
||||
- Avoid destructive changes
|
||||
5
dotfiles/desktop/.config/opencode/rules/workflow.md
Normal file
5
dotfiles/desktop/.config/opencode/rules/workflow.md
Normal file
@@ -0,0 +1,5 @@
|
||||
# Workflow Rules
|
||||
|
||||
- Small incremental changes
|
||||
- Validate on one host
|
||||
- Expand gradually
|
||||
Reference in New Issue
Block a user