ai-rules-sync: Skill for Claude Code

.claude/skills/update-knowledge-base/SKILL.md

update-knowledge-base is a skill for Claude Code from lbb00/ai-rules-sync. It costs 21 tokens per session (398 once invoked), scanned A, original, Unlicense.

A documentation workflow that reviews recent code changes and updates KNOWLEDGEBASE.md, a project file describing the codebase and its conventions.

In plain words
What is it for?
It helps document architecture changes, new features and commands, coding patterns, API changes, and deprecations after reviewing a git diff or recent commits.
Why use it?
It reduces the chance that project documentation falls behind the source code or describes features that no longer exist.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is lbb00/ai-rules-sync's own configuration. It tells Claude Code how to work on ai-rules-sync itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ai-rules-sync configures →

Reuse

Borrowing it

Nothing to install: this file belongs to lbb00/ai-rules-sync. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/lbb00/ai-rules-sync/main/.claude/skills/update-knowledge-base/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/lbb00/ai-rules-sync

Made for: Claude Code.

Wrote 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.

agentmods badge for update-knowledge-base

README.md
[![agentmods](https://agentmods.dev/badge/skills/lbb00/ai-rules-sync/update-knowledge-base/github.svg)](https://agentmods.dev/skills/lbb00/ai-rules-sync/update-knowledge-base)
Your own site
<a href="https://agentmods.dev/skills/lbb00/ai-rules-sync/update-knowledge-base"><img src="https://agentmods.dev/badge/skills/lbb00/ai-rules-sync/update-knowledge-base/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.

agentmods 80×15 button for update-knowledge-base

Your own site · 80×15
<a href="https://agentmods.dev/skills/lbb00/ai-rules-sync/update-knowledge-base"><img src="https://agentmods.dev/badge/skills/lbb00/ai-rules-sync/update-knowledge-base.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 398 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00021 $0.00398
Opus 5.5 $0.00008 $0.00159
Sonnet 5.5 $0.00004 $0.00080
Haiku 4.5 $0.00002 $0.00040

Measured 1mo ago against content hash 2eda062a1ca0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

update-knowledge-base 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 1mo 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.

.claude/skills/update-knowledge-base/SKILL.md · 74 lines

What it actually says

Update Knowledge Base

Purpose

Automatically analyze recent code changes and update the project's knowledge base documentation to reflect current architecture, features, and conventions.

Instructions

  1. Analyze Recent Changes

    • Review git diff or recent commits
    • Identify new adapters, commands, or features
    • Note architectural changes or new patterns
  2. Read Current Knowledge Base

    • Check if KNOWLEDGE_BASE.md exists
    • If not, create it with proper structure
    • If exists, identify sections needing updates
  3. Update Sections

    • Architecture: Update if new adapters or core components added
    • Features: Document new CLI commands or options
    • Conventions: Note any new coding patterns established
    • API Changes: Document breaking changes or deprecations
  4. Verify Accuracy

    • Cross-reference with actual source code
    • Ensure examples are runnable
    • Check that all documented features exist
  5. Format Consistently

    • Use consistent markdown formatting
    • Include code examples where helpful
    • Maintain table format for command references

Knowledge Base Structure

# AI Rules Sync - Knowledge Base

## Architecture Overview
- Adapter system description
- CLI layer structure
- Config management

## Supported Tools
| Tool | Types | Source Dir | Target Dir |

## Commands Reference
| Command | Description | Example |

## Adapter Implementation
- How to add new adapters
- Required interfaces

## Configuration
- ai-rules-sync.json structure
- Local/private rules

## Changelog
- Recent significant changes

Output

After running this skill:

  • KNOWLEDGE_BASE.md is created or updated
  • Changes reflect current codebase state
  • Documentation is accurate and complete
Changes

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.

  1. 1mo ago First seen · 74 lines · 21 tokens per session scan A 2eda062a1ca0

Subscribe to this mod's changes

update-knowledge-base is a skill published in the GitHub repository lbb00/ai-rules-sync (40 stars, last pushed 2mo ago), licensed Unlicense. It adds 21 tokens to every session and 398 once invoked, about $0.0001 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-08-30.

Related

Other skills, from other repositories

authoring-skills-and-rules

Author Skills (SKILL.md) and rules/instructions across Claude Code, Cursor, OpenCode, Codex, and GitHub Copilot. Covers frontmatter, file layout, activation, mirroring, and craft: progressive disclosure, Apply-when descriptions, leading words, playbook steps copied into todos, skip reasons, the deletion test, and…

afaraha8403/balakit · 163 tokens

skill-memory

Use skill-memory to download, view and edit agent skills in memory. TRIGGER by 'skill', 'memory', 'learn'.

memodb-io/skill-memory · 29 tokens

context-engineering

Optimizes agent context setup. Use when starting a new session, when agent output quality degrades, when switching between tasks, or when you need to configure rules files and context for a project.

addyosmani/agent-skills · 43 tokens

general

Handle everyday conversation, answer questions, manage files, take notes, run scripts, and maintain persistent memory across sessions. Use when the user asks a general question, requests file operations, wants to brainstorm ideas, needs to-do tracking, asks you to remember something, or requests skill search and…

0xranx/golembot · 61 tokens

kb-guide

Search, read, create, and update knowledge base entries via MCP-connected KB tools. Use when the user asks to look up documentation, find existing articles, check if docs exist on a topic, create a new KB entry, update an existing document, or when domain questions should be answered from the knowledge base first.

0xranx/golembot · 66 tokens

project-memory-keeper

Analyzes the last session to log progress, extract lessons learned, and save them to the project memory instructions.

GulajavaMinistudio/awesome-copilot-id · 27 tokens