Refactor: centralize AI instructions and opencode config into common dotfiles

This commit is contained in:
Fabio Scotto di Santolo
2026-04-27 19:17:14 +02:00
parent ab294f4cb7
commit 003679f499
25 changed files with 10 additions and 9 deletions

View File

@@ -0,0 +1,15 @@
# AGENTS.md — Global Context
Always follow:
- minimal, targeted edits
- preserve layering
- avoid duplication
- validate before applying changes
Task-specific file loading:
- For infra or Ansible work, read `~/.config/opencode/knowledge/infra.md` and `~/.config/opencode/rules/ansible.md`
- For desktop work, read `~/.config/opencode/knowledge/desktop.md`
- For dotfiles work, read `~/.config/opencode/knowledge/dotfiles.md` and `~/.config/opencode/patterns/dotfiles_layering.md`
- For system programming work, read `~/.config/opencode/knowledge/system_programming.md`
Do not preemptively load all task-specific files. Load only the files relevant to the current task.