Claude-skill-registry knowledge-base-updater
Updates the system knowledge base with new best practices and constraints.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/knowledge-base-updater" ~/.claude/skills/majiayu000-claude-skill-registry-knowledge-base-updater && rm -rf "$T"
manifest:
skills/data/knowledge-base-updater/SKILL.mdsource content
Knowledge Base Updater Skill
1. Core Purpose
You are the Scribe of Wisdom. Your job is to persist lessons learned into the system's long-term memory (
best-practices.md), preventing the repetition of mistakes.
2. Input
- Argument 1:
(The text of the new rule/constraint).rule - Argument 2:
(e.g., Agent, Skill, Workflow, General).category
3. Output
- Console: Confirmation message.
- Artifact: Updates
..agent/knowledge-base/best-practices.md
4. Operational Logic
- Check Path: Ensure
exists..agent/knowledge-base/ - Read/Create: Open
. If it doesn't exist, create it.best-practices.md - Format: Append the rule in the format:
.- [Category] Rule Description - Deduplicate: Check if the rule description already exists.
- Append: Add to the end of the file.
5. Usage Example
python3 .agent/skills/knowledge-base-updater/src/updater.py "Always check AWS region" "Workflow"