feat: add opencode agents and skills for development workflows
CI / build-and-test (push) Successful in 27s
CI / build-and-test (pull_request) Successful in 26s

New agents:
- architect: system design, module interactions, data flow
- debugger: crash/memory/thread debugging with ASan, TSan, valgrind, gdb
- security-auditor: TLS, input validation, buffer safety, crypto audit
- refactorer: DRY, separation of concerns, API simplification
- integrator: integration tests, CI/CD pipeline, end-to-end verification
- code-explainer: architecture walkthrough, code explanation

New skills:
- debug-workflow: structured debugging workflow
- refactor: code restructuring with test verification
- security-audit: full security review with checklist
- benchmark: performance benchmarking with multi-run medians
- release: version bump, tests, tagging

Improved existing:
- c-reviewer: added security checklist
- cmake-expert: added ASan/TSan/UBSan configs, ccache, cross-compilation
- perf-analyst: added perf/valgrind/gprof commands
- test-writer: added fuzzing harnesses, integration test patterns
- pr-build: added sanitizer build variants
- pr-review: added security review, performance impact assessment
This commit is contained in:
2026-07-19 14:50:02 +02:00
parent 43ba149ad5
commit 8141158a3d
17 changed files with 1705 additions and 3 deletions
+13 -1
View File
@@ -52,6 +52,18 @@ Review C source files for correctness, safety, and style. You have deep knowledg
- No deadlock potential — consistent lock ordering.
- `done` flags checked properly in consumer loops.
### Security
- No `strcpy`/`strcat`/`sprintf` — use `snprintf` with bounds.
- `malloc` size calculations don't overflow (`count * sizeof(...)` checked).
- Path traversal prevention: no `..` in received filenames.
- No fixed-size stack buffers for unbounded network input.
- TLS error codes checked after `SSL_read`/`SSL_write`.
- No hardcoded certificates, keys, or credentials.
- Private key file permissions checked.
- Received file permissions validated (no SUID/SGID injection).
- Symlink attack prevention in destination directory.
- Denial of service: bounded memory allocation, malformed messages handled gracefully.
### Protocol Safety
- `send_n_data` / `receive_n_data` return values checked.
- Status codes validated before use.
@@ -69,7 +81,7 @@ Review C source files for correctness, safety, and style. You have deep knowledg
For each issue found, report:
1. **File and line** — exact location
2. **Severity** — critical / warning / style
3. **Category** — memory / thread / protocol / style
3. **Category** — memory / thread / protocol / security / style
4. **Description** — what's wrong and how to fix it
If the code is clean, say so explicitly. Be concise — don't pad with fluff.