# Skill: library-update

- **Name:** Library Update
- **Trigger:** "check the library" · or a monthly scheduled run
- **Requires:** Web access, one URL fetch · Level: Minimum
- **Output:** A short report: which skills are new online since my download, which changed, which are mine alone, and at most one suggested pull that fits my current Focus.
- **Safety:** READ ONLY by default. Downloads a skill file only after OK. Never overwrites a local skill I have edited; if names clash, it saves alongside and says so.

## Steps

1. Fetch the online index:
   https://loai.wisdomblend.com/materials/library/_INDEX.md
   If the fetch fails, say so in one line and stop. Do not retry in a loop.
2. Read my local skills/_INDEX.md.
3. Diff the two by skill name, into three buckets:
   NEW, online but not local.
   CHANGED, listed in both but the online line differs.
   LOCAL ONLY, my own skills. List them, never touch them.
4. Report each bucket in 3 lines maximum. If nothing is new or changed,
   say "Library up to date. N skills local, N online." and stop.
5. If something is NEW, read my Focus file and pick at most ONE new skill
   that matches a current priority or a recent friction. Offer it in one
   sentence with its level: "New in the library: {name} ({level}), {one-liner}.
   Pull it in?" Never offer two. If nothing matches my Focus, just report
   and offer nothing.
6. On OK, fetch that skill's .md from the same online folder, save it into
   skills/, and add its one line to my local _INDEX.md. If a local file
   with the same name exists and I have edited it, do not overwrite: save
   the new one as {name}-new.md, keep mine as it is, and tell me both paths
   so I can merge by hand. Wait for OK before any save.

## Example run

Me: check the library

AI:
LIBRARY CHECK · 14 Jul

NEW online (2): calls-analysis (Optimum), meeting-prep (Optimum).
CHANGED (1): morning-brief, the online steps add a health line. Your
local copy is edited, I will not touch it.
LOCAL ONLY (1): proposal-draft. Yours, untouched.

Your Focus says P1 is the client pipeline and you had 3 calls last week.
New in the library: calls-analysis (Optimum), a call transcript in,
decisions and follow-ups out. Pull it in?

Me: yes

AI: Saved skills/calls-analysis.md and added its line to _INDEX.md.
Trigger: "analyze this call". morning-brief left as your edited version.

## Make it yours

- Schedule it monthly; weekly is more than the library actually moves.
- If you fork the library to your own hosting, change the URL in step 1
  and nothing else.
- Brave mode: allow auto-pull for NEW skills at Minimum level only. Keep
  everything that touches tools behind the OK.
