Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/AndreVianna/aid-methodologynpx agentmods add skills/andrevianna/aid-methodology/aid-update-kbWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/andrevianna/aid-methodology/aid-update-kb)<a href="https://agentmods.dev/skills/andrevianna/aid-methodology/aid-update-kb"><img src="https://agentmods.dev/badge/skills/andrevianna/aid-methodology/aid-update-kb/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/andrevianna/aid-methodology/aid-update-kb"><img src="https://agentmods.dev/badge/skills/andrevianna/aid-methodology/aid-update-kb.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 2 findings, up to medium
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- medium Excessive Agency · line 523 Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
- low Excessive Agency · line 548 Skill's behavior or capabilities extend beyond its stated purpose. Scope creep allows an agent to perform actions unrelated to its documented functionality, increasing the attack surface.Fix: Limit the skill's scope to its documented purpose. Remove instructions that enable the agent to perform actions outside its stated functionality.
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00119 | $0.08387 |
| Opus 5.5 | $0.00048 | $0.03355 |
| Sonnet 5.5 | $0.00024 | $0.01677 |
| Haiku 4.5 | $0.00012 | $0.00839 |
Grade A, and why
aid-update-kb scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 25d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 581 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Targeted KB Update
State machine: ANALYZE -> SCOPE -> CONFIRM -> APPLY -> REVIEW -> APPROVAL -> DONE (FIX loop inside REVIEW).
Analyzes how a prompt-driven instruction lands in the Knowledge Base,
confirms the correct understanding and the exact scope with the user BEFORE
any edit, then applies only that confirmed delta through the same
review/calibration gate as /aid-discover. One pass per run -- each
invocation drives the state machine to the next natural pause point.
Optional, off-pipeline. /aid-update-kb is NOT in the numbered
phase-to-skill pipeline; no phase gate references it. It is an on-demand
maintenance skill (like /aid-housekeep / /aid-ask).
Run-state is transient. Its run-state lives in a project-level file
under .aid/.temp/ (.aid/.temp/UPDATEKB_STATE_<ts>.md, gitignored per
.gitignore, removed at DONE) -- inside the skill's own Pre-flight-created
worktree (AC-10), not the caller's tree. It does NOT write to any work
STATE.md for its own run-state. The KB it edits has its own
.aid/knowledge/STATE.md for review/approval history.
Boundary: prompt-driven-targeted vs source-driven-global. This skill
is the prompt-driven-targeted half of the KB freshness loop -- the user
supplies the scoping seed (the instruction) and ANALYZE + SCOPE turn it into
a minimal Scope Plan. The source-driven-global sweep is aid-housekeep's
KB-DELTA job. Docs that are domain-adjacent but not named by the instruction
stay out of scope here (HL-5) and route to that sweep instead. The
non-overlap contract between the two (FR-33/FR-34) is drawn in f010; this
skill references that boundary but does not own it.
Human-gated, twice (NFR-6/C4/AC13, HL-1). Analysis and scope-planning
are automatic; the change to KB content cannot proceed to APPLY without an
explicit human [1] Confirm at CONFIRM (the root fix -- scope is vetoed
BEFORE any edit exists), and cannot proceed to DONE without a second explicit
human [1] Approved at APPROVAL. No auto-apply path exists at either gate.
State machine -- each /aid-update-kb invocation drives the state machine
until it hits a natural pause point per
.aid/runtime/templates/state-machine-chaining.md.
Mechanical states auto-chain; only PAUSE-FOR-USER-ACTION and HALT stop the
run. Two human gates by design: CONFIRM guards scope/understanding BEFORE
any edit; APPROVAL guards the specific edits before commit -- but a gate
answered [1] inline is itself a CHAIN, not a pause (below).
aid-update-kb > Pre-flight ISOLATE runs first, every invocation [ ANALYZE ] -> [ SCOPE ] -> [ CONFIRM ] -> [ APPLY ] -> [ REVIEW ] -> [ APPROVAL ] -> [ DONE ] ^ human gate ^ human gate [1] chains inline; [2]/[3] pause/halt
CONFIRM and APPROVAL are the two human gates -- inline decision points,
not out-of-chat pauses. Per state-machine-chaining.md, a pause is only
legitimate when the user has to do work outside the chat; answering an
inline question is not that. Answering [1] (CONFIRM's Confirm / APPROVAL's
Approved) is a CHAIN: the run continues straight through to APPLY / DONE
within the same invocation (state-confirm.md's and state-approval.md's
own [1] Advance lines say so explicitly, and the Dispatch table below
agrees). Only the re-plan/cancel branches actually pause or halt: CONFIRM
[2] Adjust loops back to SCOPE (or ANALYZE if the understanding itself
changes) and PAUSES (a genuine re-plan needs a fresh clean-context SCOPE
dispatch, which is real out-of-chat-equivalent work, not just an answer);
CONFIRM [3] Cancel HALTs. APPROVAL [2] Additional consideration
re-scopes back to CONFIRM/SCOPE (never blindly back to APPLY) and PAUSES for
the same reason. REVIEW's FIX loop (REVIEW -> fix edits -> REVIEW) repeats
until grade >= minimum_grade AND teach-back PASS AND act-back PASS, bounded
to Confirmed Scope only (HL-7).
What ships with it
7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 25d ago Changed 5c71c3af3f7d
- 1mo ago Changed · +4 lines 13cfef176a0a
- 2mo ago First seen · 577 lines · 119 tokens per session scan A 8dd13b1c0ada
aid-update-kb is a skill published in the GitHub repository AndreVianna/aid-methodology (6 stars, last pushed 10d ago), licensed MIT. It adds 119 tokens to every session and 8,387 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
aid-update-kb compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| aid-update-kbAndreVianna/aid-methodology | Skill | 6 | 10d ago | MIT | A | 119 | Claude Code |
| imagegenopenai/codex | Skill | 134k | today | Apache-2.0 | A | 113 | Codex |
| playwright-climicrosoft/playwright | Skill | 99k | today | Apache-2.0 | A | 19 | Claude Code |
| local-ai-agentsmicrosoft/ai-agents-for-beginners | Skill | 79k | today | MIT | A | 200 | Claude Code, Codex |
| systematic-debuggingobra/superpowers | Skill | 314k | 3d ago | MIT | A | 21 | Claude Code |
| next-cache-components-adoptionvercel/next.js | Skill | 143k | today | MIT | A | 95 | Claude Code |
| next-partial-prefetching-adoptionvercel/next.js | Skill | 143k | today | MIT | A | 103 | Claude Code |