Skip to content

Commit 872436b

Browse files
committed
skill
1 parent c14325e commit 872436b

3 files changed

Lines changed: 33 additions & 5 deletions

File tree

flake.lock

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@
104104

105105
codex-session-usage.url = "github:moons-14/codex-session-usage";
106106

107+
skills = {
108+
url = "github:mattpocock/skills";
109+
flake = false;
110+
};
111+
107112
# Index / Search
108113
nix-index-database = {
109114
url = "github:nix-community/nix-index-database";

modules/applications/codex/home.nix

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -309,9 +309,9 @@ let
309309
Use the configured Codex sandbox and Auto-review for command permissions.
310310
Do not create a second command-approval workflow.
311311
312+
Staging and committing are reserved to the primary.
313+
312314
Unless explicitly assigned, do not:
313-
- commit;
314-
- stage;
315315
- push;
316316
- rebase;
317317
- deploy;
@@ -966,9 +966,9 @@ in
966966
967967
Use the configured Codex sandbox and Auto-review for command permissions. Do not create a second command-approval workflow.
968968
969-
When the user explicitly authorizes commits, the primary performs authorization-sensitive Git metadata operations. Workers do not repeatedly attempt commits based on relayed authorization.
969+
Commits require explicit user authorization or applicable standing authorization. Once authorized, the primary performs authorization-sensitive Git metadata operations with `git commit -S` at coherent, validated checkpoints. Workers do not repeatedly attempt commits based on relayed authorization.
970970
971-
Keep commits logically coherent. Avoid chains of small review-fix commits while a change is still being reviewed. Never push, deploy, switch, or activate unless explicitly requested.
971+
Split unrelated concerns into separate commits. Avoid noisy, broken, or premature checkpoint commits, including chains of small review-fix commits while a change is still being reviewed. Never push, deploy, switch, or activate unless explicitly requested.
972972
973973
## Completion gate
974974
@@ -992,7 +992,13 @@ in
992992
#
993993
# Match programs.codex's XDG behavior so this also works if
994994
# home.preferXdgDirectories is changed later.
995-
home.file = lib.mkIf (!config.home.preferXdgDirectories) (mkAgentTargets ".codex");
995+
home.file = lib.mkMerge [
996+
(lib.mkIf (!config.home.preferXdgDirectories) (mkAgentTargets ".codex"))
997+
{
998+
".agents/skills/grill-me".source = inputs.skills + "/skills/productivity/grill-me";
999+
".agents/skills/grilling".source = inputs.skills + "/skills/productivity/grilling";
1000+
}
1001+
];
9961002

9971003
xdg.configFile = lib.mkIf config.home.preferXdgDirectories (mkAgentTargets "codex");
9981004
}

0 commit comments

Comments
 (0)