Guides and resources for AI engineers: an agents course, five handbooks, a hands-on second-brain project and a vetted reading list.
JavaScript agent-skillsai-agentsai-engineeringclaudeclaude-codeclaude-skillsknowledge-graphknowledge-managementllmmcpobsidianpersonal-knowledge-basepkmsecond-brain
site: safe to deploy under load
undefined-ui90df6a596169
diff --git a/assets/site/app.css b/assets/site/app.cssindex 1a72874..a0ee86b 100644--- a/assets/site/app.css+++ b/assets/site/app.css@@ -235,6 +235,7 @@ body.m-read #reader{transform:none}body.m-read .top{right:calc(var(--reader-w) + 16px)}body.m-read .links{display:none}body.m-read .search{width:auto;flex:1;max-width:300px;min-width:110px}+@media (min-width:761px) and (max-height:980px){#hero .lede2{display:none}}@media (max-width:1100px){body.m-read .tbtn .lbl{display:none}body.m-read .search kbd{display:none}body.m-read .tbtn.tico{display:none}}.rbar{display:flex;align-items:center;gap:12px;padding:14px 20px 12px 24px;border-bottom:var(--edge);background:var(--card)}.rback{display:none;font:13px var(--mono);color:var(--accent);white-space:nowrap}@@ -306,7 +307,7 @@ body.m-focus .dock{right:calc(var(--info-w) + 32px)}body.m-read .dock{right:calc(var(--reader-w) + 16px)}.layers{display:flex;flex-wrap:wrap;gap:6px;background:var(--glass);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border:var(--edge);border-radius:10px;padding:6px}-.lyr{display:inline-flex;align-items:center;gap:7px;font:12px/1 var(--mono);color:var(--soft);padding:7px 10px;border-radius:6px;+.lyr{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;font:12px/1 var(--mono);color:var(--soft);padding:7px 10px;border-radius:6px;transition:background .15s,color .15s,opacity .15s}.lyr:hover{background:var(--accent-bg);color:var(--ink)}.lyr .d{width:9px;height:9px;border-radius:50%;background:var(--dot);box-shadow:0 0 0 2px var(--card)}@@ -341,13 +342,14 @@ body:not(.booting) #boot{opacity:0;pointer-events:none}.search{width:auto;flex:1}.search kbd{display:none}#hero{left:16px;right:16px;top:auto;bottom:118px;width:auto;max-height:46vh}- #veil{top:auto;width:auto;right:0;height:62vh;background:linear-gradient(0deg,var(--paper) 0%,rgba(var(--paper-rgb),.94) 60%,rgba(var(--paper-rgb),0) 100%)}+ #veil{top:auto;width:auto;right:0;height:calc(46vh + 190px);background:linear-gradient(0deg,var(--paper) 0%,rgba(var(--paper-rgb),.96) 78%,rgba(var(--paper-rgb),0) 100%)}#hero h1{font-size:28px}#hero .lede{font-size:15.5px}#hero .lede2,#hero .hint,#hero .stats{display:none}#hero .by{margin-top:10px}.paths{grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:0}.path{display:block;padding:9px 10px;border-left-width:1px;border-top:3px solid var(--dot)}+ .path .pk{display:block;padding:0 0 6px;min-width:0}.path p,.path .pn{display:none}.path b{font-size:14px}.path:hover{transform:none}diff --git a/assets/site/app.js b/assets/site/app.jsindex 4d48dad..32d6a64 100644--- a/assets/site/app.js+++ b/assets/site/app.js@@ -951,6 +951,8 @@ const themeBtn = $('#btn-theme');const sysDark = matchMedia('(prefers-color-scheme: dark)');const isDark = () => (document.documentElement.dataset.theme || (sysDark.matches ? 'dark' : 'light')) === 'dark';function paintThemeBtn() {+ // a page cached from before the button existed has no button: carry on without it+ if (!themeBtn) return;const d = isDark();themeBtn.textContent = d ? '\u2600' : '\u263E';themeBtn.title = d ? 'Light theme' : 'Dark theme';@@ -973,7 +975,7 @@ function recolor() {if (hl.list.length) buildHL(hl.list);document.querySelectorAll('meta[name="theme-color"]').forEach(m => { m.content = '#' + PAPER.getHexString(); });}-themeBtn.onclick = () => {+if (themeBtn) themeBtn.onclick = () => {const next = isDark() ? 'light' : 'dark';document.documentElement.dataset.theme = next;store.set('theme', next);diff --git a/index.html b/index.htmlindex b07789a..08b9785 100644--- a/index.html+++ b/index.html@@ -7,7 +7,7 @@<script>try{var t=JSON.parse(localStorage.getItem('sbos:theme'));if(t==='dark'||t==='light')document.documentElement.dataset.theme=t}catch(e){}</script><meta name="author" content="@undefinedKi"><link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='7' fill='%23F7F9F6'/%3E%3Crect x='.5' y='.5' width='31' height='31' rx='6.5' fill='none' stroke='%23D2DACF'/%3E%3Cpath d='M10 21 L16 11 L22 19 M16 11 L23 9' stroke='%231F6B52' stroke-width='1.6' fill='none'/%3E%3Ccircle cx='10' cy='21' r='3' fill='%23F7F9F6' stroke='%231F6B52' stroke-width='1.6'/%3E%3Ccircle cx='16' cy='11' r='3' fill='%23F7F9F6' stroke='%231F6B52' stroke-width='1.6'/%3E%3Ccircle cx='22' cy='19' r='3' fill='%23F7F9F6' stroke='%231F6B52' stroke-width='1.6'/%3E%3Ccircle cx='24' cy='8' r='2' fill='%231F6B52'/%3E%3C/svg%3E">-<link rel="stylesheet" href="assets/site/app.css">+<link rel="stylesheet" href="assets/site/app.css?v=d3fd051313"><!-- Cloudflare Web Analytics, everywhere except a local preview --><script>if(location.protocol!=='file:'&&!/^(localhost|127\.0\.0\.1|\[::1\])$/.test(location.hostname)){const s=document.createElement('script');s.defer=true;s.src='https://static.cloudflareinsights.com/beacon.min.js';s.dataset.cfBeacon='{"token": "251090521ca24c01bde87a953db3dea4"}';document.head.appendChild(s);}</script></head><body class="booting">@@ -69,7 +69,7 @@<noscript><div class="nojs">This page draws the site as a 3D graph and needs JavaScript. The guide is also readable on <a href="https://github.com/undefined-ui/second-brain-os/tree/main/docs">GitHub</a>.</div></noscript>-<script src="assets/site/graph-data.js"></script>-<script src="assets/site/pages-data.js" defer></script>-<script type="module" src="assets/site/app.js"></script>+<script src="assets/site/graph-data.js?v=755ea20446"></script>+<script src="assets/site/pages-data.js?v=626fcdea36" defer></script>+<script type="module" src="assets/site/app.js?v=efb3d47691"></script></body></html>diff --git a/tools/README.md b/tools/README.mdindex 9442eca..8ceffd0 100644--- a/tools/README.md+++ b/tools/README.md@@ -36,6 +36,10 @@ The graph is drawn with [3d-force-graph](https://github.com/vasturiano/3d-force-and three.js, loaded from jsDelivr at pinned versions. Everything else is in therepo. Old links such as `index.html#02-setup/claude-md` still open that page.+The builder also stamps every asset URL in `index.html` with a content hash+(`app.js?v=…`), so a fresh page never runs against a cached old script. Rerun it+after editing `app.css` or `app.js` as well, not only after changing the docs.+## The other pages```bashdiff --git a/tools/build_graph_site.py b/tools/build_graph_site.pyindex 5254ebb..c9f54d1 100644--- a/tools/build_graph_site.py+++ b/tools/build_graph_site.py@@ -15,7 +15,7 @@ resource all come from the files, so a rerun stays true.pip install markdownpython3 tools/build_graph_site.py"""-import glob, html as H, importlib.util, io, json, math, os, posixpath, re+import glob, hashlib, html as H, importlib.util, io, json, math, os, posixpath, reimport markdown@@ -516,4 +516,18 @@ with io.open(os.path.join(OUT, "pages-data.js"), "w", encoding="utf-8", newline=json.dump(pages_out, f, ensure_ascii=False, separators=(",", ":"))f.write(";\n")+# ---------------------------------------------------------------- cache-busting+# GitHub Pages lets browsers keep files for ten minutes. A content hash on every+# asset URL in index.html means a fresh page never runs against a cached old+# script or stylesheet. Rerun this after editing app.css or app.js too.+def stamp(m):+ blob = open(os.path.join(ROOT, m.group(1)), "rb").read()+ return f"{m.group(1)}?v={hashlib.md5(blob).hexdigest()[:10]}"+++page = read("index.html")+stamped = re.sub(r"(assets/site/[a-z-]+\.(?:css|js))(?:\?v=[0-9a-f]+)?", stamp, page)+if stamped != page:+ io.open(os.path.join(ROOT, "index.html"), "w", encoding="utf-8", newline="\n").write(stamped)+print(" | ".join(f"{k}: {v}" for k, v in stats.items()))