mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-29 09:42:33 +01:00
Adds the review-comments-and-docs skill (1282-word body) and two evaluation suites: a 21-case measured suite for the skill, and a harness that runs the two concurrency scenarios previously left unrun in agents/evals/global-rules.md.
68 lines
4.2 KiB
Markdown
68 lines
4.2 KiB
Markdown
# Global skills
|
|
|
|
Agent Skills shared by every agent on this machine, deployed into `~/.agents/skills/<name>` by
|
|
[`skills.nix`](../../home/base/tui/agents/skills.nix). They come from two places:
|
|
|
|
- **Flake inputs** (pinned in `flake.lock`): linked from the Nix store, so an update is a lock bump
|
|
plus a Home Manager switch.
|
|
- **This directory** (`agents/skills/<name>/`): skills iterated on locally, linked out-of-store so
|
|
an edit applies on the next agent session; adding or removing one needs a switch.
|
|
|
|
Repository-scoped skills do not belong here; they live in the owning repository's `.agents/skills/`.
|
|
|
|
## Skills from flake inputs
|
|
|
|
- **`mattpocock-skills`** —
|
|
[ryan4yin/mattpocock-skills](https://github.com/ryan4yin/mattpocock-skills) `main` (fork):
|
|
`diagnosing-bugs`, `domain-modeling`, `grill-with-docs`, `grilling`, `prototype`, `research`,
|
|
`retro`, `setup-matt-pocock-skills`, `wayfinder`, `writing-for-agents`
|
|
- **`i-have-adhd`** — [ryan4yin/i-have-adhd](https://github.com/ryan4yin/i-have-adhd) `main` (fork):
|
|
`i-have-adhd`
|
|
- **`humanizer`** — [blader/humanizer](https://github.com/blader/humanizer) `v3.1.0`: `humanizer`
|
|
- **`ponytail`** — [DietrichGebert/ponytail](https://github.com/DietrichGebert/ponytail) `v5.1.0`:
|
|
`ponytail-review`
|
|
|
|
Dependencies travel together: `grill-with-docs` and `wayfinder` call `grilling` and
|
|
`domain-modeling`; `wayfinder` also calls `research` and `prototype`, and points at
|
|
`setup-matt-pocock-skills` for the issue-tracker convention; `retro` calls `writing-for-agents`.
|
|
|
|
User-invoked skills (`disable-model-invocation: true`, plus `allow_implicit_invocation: false` in
|
|
`agents/openai.yaml` for Codex) stay out of the model's skill catalog: `grill-with-docs`,
|
|
`wayfinder`, `retro`, `setup-matt-pocock-skills`, and `i-have-adhd`. The global rules embed the
|
|
i-have-adhd always-on snippet, so the skill is only needed for its full ruleset.
|
|
|
|
The global rules take precedence over these skills. In particular, `wayfinder` defaults to GitHub
|
|
issues and pushes research branches; both are GitHub writes that need authorization, and a public
|
|
repository is the wrong place for an infrastructure decision map.
|
|
|
|
To update one: review the upstream diff as untrusted input, then `nix flake update <input>` (or move
|
|
the pinned tag/commit in `flake.nix`) and check `git diff flake.lock`.
|
|
|
|
## Skills in this directory
|
|
|
|
`git-delivery` is maintained here rather than pulled from an input: commit messages, PR text, review
|
|
replies, and cleanup after merge, all following the target repository's conventions. Edit it in
|
|
place; the change reaches the next agent session without a switch.
|
|
|
|
`find-docs` is a rewrite of `upstash/context7` `skills/find-docs` (MIT), vendored because the
|
|
upstream body drives the CLI with `npx ctx7@latest` and suggests a global `npm install`, both of
|
|
which the global rules forbid. This one calls the `ctx7` that Home Manager installs from nixpkgs
|
|
(see [`packages.nix`](../../home/base/tui/agents/packages.nix)), and its flags match the packaged
|
|
version: 0.5.12 has no `--language`, which upstream documents. Re-check `ctx7 --help` when nixpkgs
|
|
bumps it.
|
|
|
|
`review-comments-and-docs` reviews documentation, inline comments, and API contracts for accuracy,
|
|
reader context, scope, and duplication. It preserves intentional history and safety information;
|
|
[behavioral fixtures](../evals/review-comments-and-docs/README.md) test those boundaries. Its
|
|
original synthesis drew on
|
|
[prune-comments-and-docs](https://github.com/MidAutumnMoon/TaysiTsuki/blob/45696e5e79848787e23c0498c9fded89b068f0f7/home/agents/skills/prune-comments-and-docs/SKILL.md)
|
|
(reader-specific fact placement and pruning),
|
|
[documentation-verification](https://github.com/PracticalSwan/agent-skills/blob/4069d9998049fe3f0eab69af733d50df82dbd5c2/documentation-verification/SKILL.md)
|
|
(source, reference, and factual checks), and
|
|
[Google Technical Writing: Documents](https://developers.google.com/tech-writing/one/documents)
|
|
(audience, scope, and organization around reader needs). That provenance lives here, not in the
|
|
skill body, which agents load on every run.
|
|
|
|
A third-party skill starts here only when it is being rewritten. Until then, pin it as a flake input
|
|
so the license and provenance stay with the upstream repository and the diff stays reviewable.
|