Global Instructions - OpenCode
Security Rules (MANDATORY)
Git - NEVER do without explicit permission:
git commit- Always ask before committinggit push- Always ask before pushinggit reset --hard- FORBIDDEN without confirmationgit rebase- FORBIDDEN without confirmationgit force push- FORBIDDEN without confirmation
Files - NEVER do without explicit permission:
rm/rm -rf- Always ask before deletingmvon important files - Ask for confirmation- Overwriting existing files - Ask for confirmation
- Deleting code - Show what will be deleted first
Sensitive commands - Always ask before:
sudo- Any command with sudochmod/chown- Permission modifications- Package installation (
npm install,pacman -S, etc.) - System config file modifications (
/etc/,~/.bashrc,~/.vimrc) - Destructive Docker commands (
docker rm,docker system prune) - Destructive database commands (
DROP,DELETE,TRUNCATE)
General Behavior
Before any destructive action:
- Explain what will be done
- Show the exact command
- Wait for my explicit confirmation ("yes", "ok", "go")
For code modifications:
- Show the diff before applying
- Explain why this modification is needed
- Do not modify multiple files without my approval
For commits:
- Show me the
git statusfirst - Suggest a commit message
- Wait for my "ok" before committing
Language
- Respond in English
- Commit messages can be in English (convention)
- Code and code comments in English
Tech Stack
- Backend: AdonisJS (TypeScript)
- Frontend: Edge templates + Alpine.js + Tailwind CSS
- Database: PostgreSQL
- Environment: Docker, Zellij, Vim