/agentkit:tastefrom agentkit
Load and maintain tastes — one small markdown file per convention, committed to the repository it governs or kept in your home directory, telling every harness how this owner wants work done. Load them before acting, re-read a `check` taste immediately before an action it covers, and capture a correction as a taste instead of losing it. Triggers: "from now on", "always/never do X", "that is not how I want it", any correction that is a preference rather than a bug, and any question about where a convention lives or why an agent behaves a certain way.
Ships in agentkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
A taste is one preference, in one file, that outlives the session it was stated in. The
folder is a dictionary keyed by name, not a record: files are added, rewritten, and
deleted, and the same name at a higher scope wins outright.
Nothing here is learned invisibly. A taste is written only at an explicit correction, and its whole output is a diff someone can read, reject, or amend.
Read brain.taste.enabled and brain.taste.learning from .agentkit/config.yaml, falling back to
~/.config/agentkit/config.yaml. Both default to true when the key or the file is absent.
brain.taste.enabled: false — this skill is inert. Load nothing, write nothing, and say so if
asked why a taste was ignored.brain.taste.learning: false — load and honor tastes, but never write or update one. A
correction still deserves an answer: say the preference would have become a taste, and
what it would have said.Precedence is project > project external > user > user external > kit. The more specific
location wins, and inside one location the owner's own tastes beat the ones they pulled in. The
higher scope replaces the lower one for the same name — two tastes are never merged into a
third nobody wrote.
| Layer | Path | In git | Holds |
|---|---|---|---|
| Project | .agentkit/tastes/ | yes, in every clone | what is true in this repository |
| Project external | .agentkit/tastes/external/ | yes, a vendored snapshot | a source this repository subscribes to |
| User | ~/.agentkit/tastes/ | no, machine-local | personal ergonomics, every project |
| User external | ~/.agentkit/tastes/external/ | no, machine-local | a source this machine subscribes to |
| Kit | rules/ | ships with agentkit | universal engineering discipline |
One tree, two origins. In either store, the owner's own tastes sit at the root of the
tastes/ folder and a snapshot of each declared source sits beneath it in external/. They are
the same kind of file, read the same way, differing only in where they came from — which is why
they are one folder rather than two siblings implying two concepts.
external is therefore reserved at the root of a tastes tree: a taste or a category directory
of that name is refused by the lint, because that path is read by position and would be read
as a source. Everything else at the root is that store's own layer, and nothing under
external/ is ever counted as one.
The external layer holds one directory per declared source, and only a declared one is read:
a directory under tastes/external/ that no longer appears in brain.taste.sources binds nothing,
and is named as vendored-but-undeclared rather than left to look active. The next section is
how a source gets there.
rules/ is not a taste directory and is never written by this skill. It is the floor a
taste can override for one project.
A source is a git repository whose files are tastes, and where you declare it decides where its snapshot lands. That is the whole of the choice:
| Declared in | Snapshot lands in | Its lock | Read by |
|---|---|---|---|
~/.config/agentkit/config.yaml | ~/.agentkit/tastes/external/ | ~/.agentkit/tastes.lock | every repository on this machine |
<repo>/.agentkit/config.yaml | <repo>/.agentkit/tastes/external/ | <repo>/.agentkit/tastes.lock | anyone who clones that repository |
Which do I want?
Both may be declared, and both apply. Each vendors into its own store, so they cannot collide and neither list replaces the other; the repository's sources simply resolve above the machine's. Two stores means two locks — one file describing both would put a machine-local pin in a repository's review surface, where nobody reviewing that repository can see what it is.
An external source is an organisation's policy that every repository agrees on, kept in
one place instead of copy-pasted into each one. Subscribing is an
ordinary committed config change in brain.taste.sources, reviewed like any other; nothing
arrives because a tool discovered it.
taste:
sources: # ordered — a later entry wins
- repo: [email protected]:developerinlondon/agentkit-tastes.git
ref: v2026.08.1
mode: vendored # the default — the snapshot is committed to this repository
visibility: public # required here — this snapshot is committed to this repository
path: tastes/ # optional — the subdirectory that holds the taste files
name: agentkit-tastes # optional — defaults to the repository's own name
- repo: [email protected]:developerinlondon/business-tastes.git
ref: v2026.08.4 # declared second, so it wins any name the set above also defines
visibility: private # so this entry only vendors into a repository known to be private
release-tier is the feature rather
than a conflict: a later source wins, and the private central set is declared second
precisely so it overrides the public generic one. Nothing else decides it — not a filename,
not a date, not which one was synced most recently.mode: vendored is the only mode that exists today. The snapshot is committed to the
store the source was declared for, so a fresh clone with no network — a plane, a CI runner
with no credentials for your git host — already has the policy and reads it without
fetching anything. mode: reference, the per-machine cache, is deferred: declaring it
is an error naming the deferral, never a quiet fall back to vendoring something the owner
did not ask to commit.ref is a plain branch, tag or commit name, and one beginning with - is refused:
git reads options after positionals, so a ref like --upload-pack=… is a program git would
run rather than a revision it would fetch. The sync passes --end-of-options as well, so
the refusal does not depend on the validator alone. A repo is a URL or a path for the same
reason: git's scheme::command remote form runs a program instead of fetching, and is
refused at the boundary and pinned off in the fetch..agentkit/tastes.lock pins each source to the commit whose contents were reviewed. It
is generated in brain.taste.sources order and carries the name, repository, ref, commit and the
date that pin was taken. The date moves only when the pin does..agentkit/tastes/external/ by hand. The next sync regenerates it wholesale,
so an edit there is a change that quietly disappears. To change what a source says, change
it in the source's own repository; to deviate in one repository, write a project taste of
the same name, which wins outright and is visible in that repository's own diff.Vendoring commits a source's words into the repository you run it in. A private set — one naming business repositories, hosts, handles or identities — committed into a public repository is a leak, and this guard exists because that happened here: the rule against it was prose, and prose does not stop a sync.
visibility: public | private is required of a source a repository vendors. Missing is a
refusal naming the key, never a default. At the machine level it is optional and defaults to
private, because nothing declared there is copied into any repository.gh for a GitHub remote, glab for a
GitLab one.origin by name. Asked without a repository, both CLIs resolve
one from every remote by their own precedence — gh prefers upstream — so a checkout with a
second remote would otherwise be judged by a repository nobody named, and the verdict pinned on
the one that was read.~/.agentkit/tastes/ sits inside a git work tree —
a dotfiles repository is the shape this exists for — it is a target like any other and is judged
the same way. Machine sources default to private, so this refuses by default and says how to
proceed: move the store out of the work tree, or declare the source visibility: public.AGENTKIT_TARGET_PRIVATE=1 on the sync command. It supplies the one
fact the tool could not establish — that this repository is private — and nothing else: a
target the forge answered public for stays refused with it set, because that case is the
leak rather than the inconvenience. Empty, 0, false, no and off are refusals here too.Do this before your first substantive action in a repository, not after.
.agentkit/tastes/ excluding external/, then .agentkit/tastes/external/*/, then
~/.agentkit/tastes/ excluding external/, then ~/.agentkit/tastes/external/*/, recursing
into category subdirectories.name: keep the copy from the highest
scope, discard the rest. Two entries with one name is a replacement, not a conflict.enforce: check and what it covers. You re-read those later.A partial preference is worse than an absent one, because it is acted on with confidence. The imperative fits on one line; the exceptions, the reason, and the how-to-apply do not, and those are most of what a taste is for. An agent holding only the opening line cannot know which of the three it is missing, so it does not know to go looking.
The alternative — hold a one-line summary, open the file when it matters — is a prose discipline, and this repository already carries the evidence on those: "Instructions alone are demonstrably routed around: a working one-MR cap was bypassed eleven times by simply never opening an MR." Tastes exist because standing instructions decay under load. Building the taste system's own loading on "the agent will remember to open the file" would repeat, at the core of the system, the failure the system was built to fix.
Selection is structural, not lossy. Filtering decides which tastes load, and it never decides how much of one loads:
category against the work in front of you.enforce: check or enforce: block,
and every taste at strength: require. Those cost the most to miss, so they are never what
a filter drops.Say which tastes you loaded when asked, and say plainly that you filtered rather than letting a short list imply the folder was small.
enforce: block is unaffected by any of this. The taste-police hook reads the taste files
off disk itself, in its own process, on the command it is judging; it never consults what a
session loaded. Filtering changes what an agent knows before it acts, never what stops it.
Honor a loaded taste as an instruction from the owner. A require taste is not something
to argue with; a prefer taste is a default you may depart from if you say why.
Tastes are skill-driven, and there is no CLI. You are the interface: reading a directory of small markdown files is something you already do, and a command would be a second way to say what the files already say. Four requests come up, and each is a behaviour here.
Resolve as under Loading, then present one row per name — the winner, never every file:
| Column | What it holds |
|---|---|
name | the key everything resolves on |
scope | the layer the winning file came from, all four named apart |
source | for an external row, which declared source it was vendored from |
strength | prefer or require |
enforce | advise, check, or block |
| shadowed | the layers and sources holding a same-named file that lost |
Name the shadowed layers explicitly. "Your project's release-tier is overriding the one in
your home directory" is usually the answer someone came for, and a table of winners alone
hides exactly the surprise they are chasing. Give the path of any row on request, and say
plainly when a folder is empty rather than presenting an empty table.
A file the lint refuses is named in the listing as skipped, with what the lint said —
never left out of it. The reasoning is UNCHECKED's: a surface that goes quiet about what it
could not read reports the same thing as a folder that never held it, and the missing row is
usually the taste the question was about.
A dictated taste is a first-class capture path, not a lesser one. It runs the same Learning sequence below — dedupe first, route to the scope that owns it, write, lint, land through a merge request for a project taste — with one difference: the preference is already stated, so there is nothing to judge about whether a correction was worth keeping.
Ask for what dictation did not supply rather than inventing it: the why, the how to
apply, and where the preference came from. provenance is today's date and its origin,
never a guess. Leave enforce at advise unless the owner asked for more — the owner sets
enforcement, and a taste does not earn block by being dictated.
Run the skill's own sync. There is nothing to install and no command on the PATH:
bun <skill-dir>/scripts/sync.ts # both brain units
bun <skill-dir>/scripts/sync.ts taste # tastes only
One sync serves both units of the brain banner: brain.taste.sources into the tastes trees and
brain.memory.sources into the memory vaults, each with its own lock. Name a unit to narrow it. A
unit that declares nothing says so rather than being silently skipped.
It fetches each declared source at its ref, lints it before anything is copied — a
source whose tastes the lint refuses is reported by name, with the offending files, and
nothing enters the tree — snapshots the taste files into that store's tastes/external/<name>/,
and rewrites that store's tastes.lock. Only those two paths are ever written, and a source
that is no longer declared has its vendored copy removed. Files that are not tastes stay
upstream: nothing executable ever crosses into your repository with the words. Re-running it
when no pin moved produces no diff at all.
Run inside a repository it refreshes both scopes that apply, reporting each separately — the repository's sources into the repository, the machine's into your home directory. Run anywhere else, only the machine scope has anything to do. A scope that declares no sources is said to be empty rather than silently skipped, and nothing of it is written or swept.
Then land it the ordinary way — branch, merge request, review — and say what it is while you do: a lock bump is a merge request whose diff is the exact text your agents will start reading. Approving a version number instead of the words is approving nothing, and the reason to vendor at all is that the words are sitting in the diff.
If the sync refuses, report what it said, unedited. A refused source is a source whose tastes would otherwise be skipped one by one at read time, with nobody having agreed to any of it.
Run the lint below and report what it says, unedited.
Full contract and a worked example: references/format.md. In brief — frontmatter carries
name (kebab-case, identical to the filename stem), scope, strength (prefer or
require), provenance (a date and where it came from), optionally category, enforce,
and a rule block. The body states the preference, then why, then how to apply.
Validate any folder you touched:
bun <skill-dir>/scripts/lint.ts .agentkit/tastes
.agentkit/tastes/ can be handed over whole: the repository's own tastes are one scope and
each source under external/ is linted as its own, so a name two sources both define stays the
stacking it is rather than a collision. A tree still at the old .agentkit/tastes-vendor/ path
is read the same way, for one release of grace.
enforce means todayenforce is the owner's setting, never a rank a taste earns by being violated.
| Value | What happens |
|---|---|
advise | The default. The taste is loaded at session start and read. Most tastes stay here. |
check | Re-read the taste's body immediately before an action it covers — a tag, a commit, a merge request — instead of trusting that an hour-old instruction survived. |
block | A generic taste-police hook refuses a matching command using this taste's own remedy and override. |
block is carried out by one generic hook — taste-police, in the core kit, on every harness
agentkit installs to. It resolves the same folders this skill does, takes the tastes at
enforce: block whose rule the lint accepts, and runs that rule's kind against the command in
process. Nothing in a taste is ever executed. Adding a blocking taste changes no code
anywhere: it is a file.
The project tastes that apply are the ones of the repository the command acts in, read from
the top of its work tree rather than from whichever directory the session happens to sit in — so a
session in repo/src is bound by repo's tastes, exactly as a parent reaching in is. A session in a parent directory running
cd repo && git commit … or git -C repo commit … is judged by repo's tastes; a command
reaching two repositories brings both, each judging only the part of the command that acts in
it — a taste in one checkout never sees another's command text or diff. The owner's own
~/.agentkit/tastes/ bind wherever the agent is working and load once, and a repository taste of
the same name replaces one of theirs for the commands acting there. Only a checkout brings tastes,
resolved to the top of its work tree and never from a node_modules folder. Where a directory
change cannot be read — a variable, a glob — the hook says UNCHECKED for the project tastes it
could not load, rather than reading silence as a clean bill.
The enforcement vocabulary is extensible by agentkit and parameterised by tastes. A
rule.kind names a check agentkit implements; the taste supplies the data it runs on and the
words it refuses with. The taste never carries the code, which is the whole reason a taste from
somewhere else is safe to load: a hostile source can at worst over-block you, because
picking a check and wording a refusal is all a taste can do.
kind | The taste supplies | agentkit inspects |
|---|---|---|
command | match, a regular expression | the text of the command about to run |
git-tag-sequence | policy, one of three named orderings | the tags in the repository it runs in |
judgment | question, plus its own body as criteria | the change the command would make |
judgment is the kind for a taste whose rule is prose. One typed question goes to a System One
model with the taste's body as the criteria, and the probability it returns is read against the
taste's threshold — the policy stays in the file, the model only answers. It needs a provider
key (TYPESAFE_API_KEY, else ~/.config/agentkit/typesafe-token); with none it reports
UNCHECKED on every judged command and allows it, so agentkit works with no vendor key at all.
It sends the change off the machine. The command text, the commit message up to 2 000
characters and the staged diff up to 12 000 are POSTed to the provider on every judged command.
Say so before proposing one, and never propose on: any at enforce: block without meaning it:
that is a network round trip on every command the agent runs, ls included. Every judgment in
one command shares a five-second budget, so a stalled provider cannot stop the other tastes
enforcing.
A preference that no kind can express stays at enforce: check. A new kind is a change to
agentkit, proposed and reviewed like one — never bespoke code smuggled into a taste folder.
references/format.md carries each kind's fields, the three tag policies, and worked examples.
A kind this agentkit does not implement is skipped, loudly. The lint refuses such a file, and the hook runs that same lint as it loads the folder — so the taste is dropped there, named in a warning that lists the kinds this agentkit does have, while every other taste keeps enforcing. A taste written against a newer agentkit must not brick an older hook.
remedy, and its own override.NAME=1 …) or
exported. Empty, 0, false, no and off do not count — they warn and the taste still
refuses, because a guard you can switch off by mistyping it is worse than none.bun, no evaluator) says UNCHECKED and allows. It never
refuses on its own uncertainty, and it never goes quiet where there were tastes to read.UNCHECKED for that one taste and allows the
command — git-tag-sequence where git will not answer, or judgment with no provider key,
no diff to read, or a provider that returned an error or ran past its deadline. Silence there
would be worse than either verdict: the session would
read enforcement into a guard that never ran.rule.match is capped at 200 characters, only the first 4000 characters of a
command are examined, and the match itself is abandoned after 250ms — length is not safety,
since a short pattern can still backtrack forever. references/format.md carries the
reasoning.The two guards sit on opposite sides of one question — what does the tool do when it cannot see? — and they answer differently because the cost of each mistake is different:
git tag -d undoes in
a second. And nothing to check is not a failure at all: outside a git repository, or in one
with no tags, git-tag-sequence passes silently, because there is no sequence to violate.Do not "fix" this into symmetry. The rule is that a guard fails towards whichever error is
recoverable, and it is UNCHECKED — never a silent allow — whenever it could not look.
If someone asks why a block taste did not stop something, check those in order: the taste is
advise, the rule did not fire, the override was set, the file failed the lint, the kind is one
this agentkit does not implement, or the hook reported UNCHECKED.
Never raise enforce yourself. Observed violations are evidence for a proposal the owner
merges — the diff is how it changes.
Learning is an event. It fires when a correction arrives or when a taste is dictated, and never in the background. A dictated taste skips step 1 — the owner already decided it is worth keeping — and runs every step after it unchanged.
1. Is this a correction worth keeping? It is, when the user says you did the wrong thing for a reason that will hold next time. A bug you introduced is not a taste. A one-sentence aside about this file is not a taste. "From now on", "always", "never", "I told you last time" — those are.
2. Dedupe before writing anything. Search the loaded tastes by name, then by topic —
git grep the taste directories for the subject words. An update to the file that already
covers it beats a second file that half does. Two tastes that disagree must never both
exist, and the way that is guaranteed is that the second one is never written.
3. If it contradicts a taste you already have, fork on intent. These want opposite things and tone will not tell you which:
override deliberately, or
simply comply once. The file is not touched. The next occurrence goes back to the
taste, because nothing changed.provenance with today's date and what changed. Never a
release-tier-v2.md beside it — git history is the archive, and reading the current
preference must cost one file.strength decides the ceremony:
require taste — more so one at enforce: block — ask outright:
this contradicts release-tier — one-off, or change the taste? A policy that took a
deliberate decision to set does not flip on one ambiguous sentence at the end of a long
session.prefer taste — update it and say that you did.4. Route it to the scope that owns it. A correction lands in whatever repository you happened to be in; the preference usually is not about that repository. Writing it locally is the fast path and the wrong one — it fixes this repo and leaves every other one wrong.
| When the correction… | It goes to | Scope |
|---|---|---|
| names business repositories, hosts, or identities | the private central set — a merge request there | external |
| is a stance any stranger could adopt | a candidate for the public set — owner-approved, never auto | external |
| is true in this repository and no other | a project taste, committed here | project |
| is personal ergonomics rather than policy | your own published set — the user layer | user |
| is genuinely unclear | the private central set, as the safe default | external |
Unsure defaults inward: a private taste that should have been public costs one promotion merge request, while the reverse costs a leak. Promotion to any public set is only ever owner-approved. Never publish a taste outward on your own judgment.
A correction that routes to a source is written in that source's own repository, not copied into this one — a merge request there, and every subscriber picks it up at the lock bump that follows. When you cannot reach that repository, say where the taste belongs, show the file you would write, and ask whether to hold it as a project taste meanwhile. Do not silently downgrade it into the wrong scope.
5. Write it, then lint it. Name it for the topic, kebab-case and unnumbered. State the
preference, then why it holds — an agent that knows the reason can tell a genuine
exception from a violation — then how to apply it at the moment it matters. Set
strength; leave enforce at advise unless the owner asked for more.
Then run bun <skill-dir>/scripts/lint.ts on every directory you touched, and fix what it
reports before you show anyone the diff. A taste that fails the lint is not written yet:
the folder is a dictionary something else reads, and at enforce: block an unlintable rule
is a refusal that never fires. This holds for every write — a correction, a dictated taste,
or an edit to one that already existed.
6. Land it. A project taste is an ordinary committed file: branch, merge request,
review — never a direct commit to the default branch, and never a file that exists only
on the machine that wrote it. A user taste is written straight to ~/.agentkit/tastes/.
Then tell the user what changed, in one line, with the path.
release/, git/) once one flat listing stops being
readable. Names stay unique across the whole tree.check. It does
not grow bespoke code, and nothing about a local preference ever changes agentkit itself.references/format.md (opens in a new tab)scripts/layout.ts (opens in a new tab)scripts/lint.ts (opens in a new tab)scripts/lock.ts (opens in a new tab)scripts/match.ts (opens in a new tab)scripts/override.ts (opens in a new tab)scripts/police.ts (opens in a new tab)scripts/resolve.ts (opens in a new tab)scripts/rules/budget.ts (opens in a new tab)scripts/rules/judgment.ts (opens in a new tab)scripts/rules/kinds.ts (opens in a new tab)scripts/rules/pattern.ts (opens in a new tab)scripts/rules/providers/typesafe.ts (opens in a new tab)scripts/rules/scope.ts (opens in a new tab)scripts/rules/semver.ts (opens in a new tab)scripts/rules/tag-command.ts (opens in a new tab)scripts/rules/tag-sequence.ts (opens in a new tab)scripts/run.ts (opens in a new tab)scripts/sources.ts (opens in a new tab)scripts/store.ts (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub developerinlondon/agentkit --plugin agentkit20 skills in this plugin
/agentauthzAdminister an agentauthz host over its MCP tools (authz_describe, authz_check, authz_grant, authz_grants, authz_revoke, authz_policies, authz_audit_query): read the descriptor before touching vocabulary, grant curated policies bounded down, probe-check both directions after every change, verify in the audit trail. Triggers: granting or revoking access, authoring or validating authz policy, "why was this denied", bounds, condition keys, agentauthz, authz MCP tools./architectStudy a system and produce living architecture documentation — explanatory pages with high-quality diagrams. Use AUTOMATICALLY when the user asks to document, explain, map, or review an architecture ("how does this system work", "architecture diagram of this repo", "create/refresh the design docs"), or to keep architecture pages current after changes. Orchestrates the diagram and publish-page skills./autonomous-workflowOther plugins' skills for the same job