feat(opencode): add language-specific coding skills

- add conventions for Bash, C#, Go, Python, and TypeScript
- add frontend guidance for HTMX, PrimeVue, and Vue
- document formatting, typing, testing, async, and framework-specific practices
- reference official documentation for framework API details
This commit is contained in:
colem
2026-08-11 15:28:09 -05:00
parent 71f73fccbc
commit a4fc747df2
8 changed files with 192 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
---
name: bash
description: Shell scripting conventions (set -euo pipefail, quoting, shellcheck). Use when editing .sh or .bash files.
---
# Bash Conventions
## Robustness
- Begin scripts with `#!/usr/bin/env bash` and `set -euo pipefail`.
- Pass `shellcheck` cleanly; treat its warnings as bugs.
## Quoting and expansion
- Double-quote all variable expansions (`"$var"`, `"${array[@]}"`).
- Prefer `[[ ]]` over `[ ]`; use arrays for argument lists rather than space-separated strings.
- Avoid `eval`; do not parse `ls` output.
## Structure
- Declare function-local variables with `local`.
- Use `trap` to clean up temporary files and directories.
- Use `printf` over `echo` for predictable output.
- Prefer a `$TMPDIR`-based path over hardcoded `/tmp` literals.