1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-16 03:14:55 +02:00

opencode/commands/commit.md: constrain git commands

This commit is contained in:
Henrik Hautakoski 2026-05-17 22:32:20 +02:00
parent 6f43741760
commit 2a0bbc1356

View file

@ -1,9 +1,15 @@
---
description: Analyze git changes
agent: build
temprature: 0.1
---
You are analyzing staged changes in git to formalize a commit message and commit the changes.
Analyze previous commits to see what style to use.
* Analyze previous commits to see what style to use.
you are only allowed to call these commands:
* `git diff --staged`
* `git log --oneline -10`
* `git commit`
Do not run any external commands than those listed above, just analyze the data provided here.