Skip to content

Commit ad634dc

Browse files
committed
feat: add shared agent commit rules
1 parent 1ac8e13 commit ad634dc

4 files changed

Lines changed: 16 additions & 1 deletion

File tree

modules/agent-rules.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Global Agent Rules
2+
3+
## Commit messages
4+
5+
- Follow explicit repository-local commit-message requirements first.
6+
- When the repository does not specify a requirement, use Conventional
7+
Commits in the form `type: description`.
8+
- Omit the scope by default. Use `type(scope): description` only when
9+
repository-local rules explicitly require a scope.
10+
- Do not infer a scope solely from directory names or isolated historical commits.

modules/claude/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ in
1919
enable = true;
2020
package = null;
2121
inherit configDir;
22+
context = ../agent-rules.md;
2223

2324
outputStyles."Global Rules" = ./global-rules.md;
2425

modules/codex/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ in
3838
programs.codex = {
3939
enable = true;
4040
package = null;
41+
context = ../agent-rules.md;
4142
};
4243

4344
home.file."${codexHomeRelative}/hooks.json".source =

modules/opencode/default.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
_:
22

33
{
4-
programs.opencode.enable = true;
4+
programs.opencode = {
5+
enable = true;
6+
context = ../agent-rules.md;
7+
};
58

69
xdg.configFile."opencode/plugins/wezterm-notify.ts".source =
710
./wezterm-notify.ts;

0 commit comments

Comments
 (0)