Repository navigation
Description
Version
LifeOS 8.761.0 · attestation: 20 system file(s) differ from danielmiessler/LifeOS@v8.761.0:
- hooks/README.md
- skills/LifeOS/SKILL.md
- LIFEOS/TOOLS/models.ts
- LIFEOS/TOOLS/model-pricing.json
- LIFEOS/TOOLS/IntegrityCheck.ts
- LIFEOS/TOOLS/CodeDataBoundary.ts
- LIFEOS/DOCUMENTATION/Tools/Tools.md
- LIFEOS/DOCUMENTATION/Services/BackgroundServices.md
- LIFEOS/DOCUMENTATION/Pulse/DaSubsystem.md
- LIFEOS/DOCUMENTATION/Observability/ObservabilitySystem.md
- LIFEOS/DOCUMENTATION/LifeosSystemArchitecture.md
- LIFEOS/DOCUMENTATION/LifeOs/LifeOsSchema.md
- LIFEOS/DOCUMENTATION/Hooks/HookSystem.md
- LIFEOS/DOCUMENTATION/ARCHITECTURE_SUMMARY.md
- LIFEOS/PULSE/modules/wiki.ts
- LIFEOS/PULSE/Observability/src/app/skills/page.tsx
- LIFEOS/WORKFLOWS/sources/other.ts
- LIFEOS/STATUSLINE/sections/Context.ts
- LIFEOS/STATUSLINE/Registry.ts
- LIFEOS/STATUSLINE/ContextBar.ts
What is broken
Claude Code's skillOverrides setting ("off") hides a skill from the model, but Pulse ignores it. The /skills page lists every directory under skills/ with no way to tell active from disabled skills (an install with 45 of 100 skills turned off still shows 100), and the workflow inventory (/workflows, LIFEOS/WORKFLOWS/sources/other.ts collectSkills) still lists every intent of a disabled skill as a runnable on-demand workflow (148 phantom records here).
Where (file:line)
LIFEOS/WORKFLOWS/sources/other.ts:73
Repro on a clean tree
1. Turn a skill off in settings.json: `"skillOverrides": { "Gifts": "off" }`.
2. Open /skills in Pulse: Gifts appears exactly like an active skill; there is no active/disabled distinction and no way to toggle it.
3. Open /workflows: `Gifts/AddRecipient` and `Gifts/FindGifts` are still listed as on-demand skill workflows.
The captured probe counts, for every "off" skill, the intents `collectSkills` still returns.Negative control
Probe: bash /tmp/claude-1000/s/605317433621/scratchpad/probe.sh · exit 1 · captured 2026-12-04T13:47:12.558Z
Red looks like: intents of off skills still listed: 148
skills off: 45, intents of off skills still listed: 148
Suggested fix
- New
LIFEOS/TOOLS/SkillOverrides.ts: one reader/writer ofskillOverrides(disabledSkills(),setSkillEnabled()), writing settings.json and, when present, theLIFEOS/USER/CONFIG/settings.user.jsonoverlay so MergeSettings keeps the value. Small CLI:list | on <Skill> | off <Skill>. PULSE/modules/wiki.ts:/api/wiki/skillsreturnsenabledper skill; newPUT /api/wiki/skills/:dir/enabled {enabled}(path-contained like the existing PUT).Observability/src/app/skills/page.tsx: Active / Disabled stat tiles, two sections per tab, a switch on each card (absentenabledfield = on, so an older server still renders).WORKFLOWS/sources/other.ts:collectSkillsskips skills whose override is "off".
diff --git a/LIFEOS/PULSE/Observability/src/app/skills/page.tsx b/LIFEOS/PULSE/Observability/src/app/skills/page.tsx
index b3b4f9d..a6d20a5 100644
--- a/LIFEOS/PULSE/Observability/src/app/skills/page.tsx
+++ b/LIFEOS/PULSE/Observability/src/app/skills/page.tsx
@@ -4,7 +4,7 @@ import { Suspense, useState } from "react";
import { apiSend, useApi, useApiMutation } from "@/lib/api";
import { useSearchParams } from "next/navigation";
import MarkdownRenderer from "@/components/wiki/MarkdownRenderer";
-import { Zap, ArrowLeft, Pencil, Check, X, Loader2 } from "lucide-react";
+import { Zap, ArrowLeft, Pencil, Check, X, Loader2, Power, PowerOff } from "lucide-react";
import Link from "next/link";
import { fmtDateParts } from "@/lib/time";
import {
@@ -24,6 +24,7 @@ interface SkillMeta {
description: string;
effort: string;
hasIntents: boolean;
+ enabled?: boolean;
lastModified: string;
}
@@ -51,11 +52,18 @@ function effortDim(effort: string): Dim {
return "neutral";
}
+// A skill is "off" when Claude Code's skillOverrides says so (settings.json): the model never
+// sees it. The API reports that as enabled=false; older servers omit the field, so absent = on.
+const isEnabled = (s: SkillMeta) => s.enabled !== false;
+
function SkillsLanding({ skills }: { skills: SkillMeta[] }) {
const [tab, setTab] = useState<"public" | "private">("public");
const privateSkills = skills.filter(isPrivateSkill);
const publicSkills = skills.filter((s) => !isPrivateSkill(s));
const active = tab === "public" ? publicSkills : privateSkills;
+ const on = active.filter(isEnabled);
+ const off = active.filter((s) => !isEnabled(s));
+ const enabledCount = skills.filter(isEnabled).length;
return (
<PageShell>
@@ -67,6 +75,8 @@ function SkillsLanding({ skills }: { skills: SkillMeta[] }) {
<div className="grid gap-4" style={{ gridTemplateColumns: "repeat(auto-fill, minmax(180px, 220px))" }}>
<StatTile label="Skills" value={skills.length} icon={Zap} dim="creative" />
+ <StatTile label="Active" value={enabledCount} icon={Power} dim="ok" />
+ <StatTile label="Disabled" value={skills.length - enabledCount} icon={PowerOff} dim="neutral" />
</div>
<TabBar
@@ -86,26 +96,78 @@ function SkillsLanding({ skills }: { skills: SkillMeta[] }) {
)}
{/* Private skills describe personal domains — Observer mode blurs them. */}
+ <SkillGrid title="Active" hint="Listed to the model in every new session." skills={on} sensitive={tab === "private"} />
+ {off.length > 0 && (
+ <SkillGrid
+ title="Disabled"
+ hint="Off in skillOverrides (settings.json): hidden from the model, files kept on disk. Takes effect in the next session."
+ skills={off}
+ sensitive={tab === "private"}
+ />
+ )}
+ </PageShell>
+ );
+}
+
+function SkillGrid({ title, hint, skills, sensitive }: { title: string; hint: string; skills: SkillMeta[]; sensitive: boolean }) {
+ return (
+ <section className="flex flex-col gap-2">
+ <div className="flex items-baseline gap-2">
+ <h2 className="text-ink-1 text-[15px] font-medium">{title}</h2>
+ <span className="text-[13px] text-ink-3">{skills.length} · {hint}</span>
+ </div>
<div
className="grid gap-3"
style={{ gridTemplateColumns: "repeat(auto-fill, minmax(280px, 1fr))" }}
- data-sensitive={tab === "private" ? "" : undefined}
+ data-sensitive={sensitive ? "" : undefined}
>
- {active.map((skill) => (
- <SkillCard key=<redacted> skill={skill} />
+ {skills.map((skill) => (
+ <SkillCard key=<redacted> ?? skill.name} skill={skill} />
))}
</div>
- </PageShell>
+ </section>
+ );
+}
+
+function SkillToggle({ skill }: { skill: SkillMeta }) {
+ const dir = skill.dir ?? skill.name;
+ const enabled = isEnabled(skill);
+ const mutation = useApiMutation(
+ (next: boolean) => apiSend(`/api/wiki/skills/${encodeURIComponent(dir)}/enabled`, "PUT", { enabled: next }),
+ { invalidates: ["/api/wiki/skills"] },
+ );
+ return (
+ <button
+ type="button"
+ role="switch"
+ aria-checked={enabled}
+ title={enabled ? "Disable this skill" : "Enable this skill"}
+ disabled={mutation.isPending}
+ onClick={(e) => {
+ e.preventDefault();
+ e.stopPropagation();
+ mutation.mutate(!enabled);
+ }}
+ className="ml-auto shrink-0 relative inline-flex h-5 w-9 items-center rounded-full border border-line-2 transition-colors"
+ style={{ ...(enabled ? dimStyle("ok") : dimStyle("neutral")), opacity: mutation.isPending ? 0.6 : 1, cursor: mutation.isPending ? "wait" : "pointer" }}
+ >
+ <span
+ className="inline-block h-3.5 w-3.5 rounded-full bg-ink-1 transition-transform"
+ style={{ transform: enabled ? "translateX(18px)" : "translateX(2px)" }}
+ />
+ </button>
);
}
function SkillCard({ skill }: { skill: SkillMeta }) {
+ const enabled = isEnabled(skill);
return (
- <Link href={`/skills?name=${encodeURIComponent(skill.name)}`} className="block">
+ <Link href={`/skills?name=${encodeURIComponent(skill.name)}`} className="block" style={{ opacity: enabled ? 1 : 0.55 }}>
<Panel hover className="h-full flex flex-col gap-2">
<div className="flex items-center gap-2 min-w-0">
<Zap className="w-4 h-4 shrink-0 text-dim-creative" />
<span className="font-medium text-ink-1 truncate">{skill.name}</span>
+ <SkillToggle skill={skill} />
</div>
<p className="text-[13px] leading-relaxed text-ink-2">
{skill.description.slice(0, 140)}
diff --git a/LIFEOS/PULSE/modules/wiki.ts b/LIFEOS/PULSE/modules/wiki.ts
index c9b0fee..18121da 100644
--- a/LIFEOS/PULSE/modules/wiki.ts
+++ b/LIFEOS/PULSE/modules/wiki.ts
@@ -14,6 +14,7 @@
* GET /api/wiki/skills
* GET /api/wiki/skills/:name
* PUT /api/wiki/skills/:name
+ * PUT /api/wiki/skills/:dir/enabled body {enabled: boolean} — toggles Claude Code skillOverrides
* GET /api/wiki/hooks
* GET /api/wiki/hooks/:name
* GET /api/wiki/workers
@@ -35,6 +36,7 @@ import {
import MiniSearch from "minisearch"
import { homedir } from "node:os";
import { invariant } from "../../TOOLS/Invariant.ts"
+import { disabledSkills, setSkillEnabled } from "../../TOOLS/SkillOverrides.ts"
// Path Construction
@@ -1343,12 +1345,14 @@ interface SkillMeta {
description: string
effort: string
hasIntents: boolean
+ enabled: boolean
lastModified: string
}
function handleSkillsList(): Response {
const skills: SkillMeta[] = []
if (!existsSync(SKILLS_DIR)) return Response.json({ skills: [], total: 0 })
+ const off = disabledSkills()
for (const name of readdirSync(SKILLS_DIR).sort(naturalCollator.compare)) {
const skillDir = join(SKILLS_DIR, name)
@@ -1367,6 +1371,7 @@ function handleSkillsList(): Response {
description: String(fm.description || ""),
effort: String(fm.effort || "standard"),
hasIntents: existsSync(join(skillDir, "Intents")),
+ enabled: !off.has(name),
lastModified: statSync(skillMd).mtime.toISOString(),
})
} catch {
@@ -1414,6 +1419,19 @@ async function handleSkillUpdate(name: string, req: Request): Promise<Response>
return Response.json({ ok: true, updated: new Date().toISOString() })
}
+async function handleSkillEnabled(dir: string, req: Request): Promise<Response> {
+ const skillMd = containedPath(SKILLS_DIR, dir, "SKILL.md")
+ if (!skillMd || !existsSync(skillMd)) return Response.json({ error: "Skill not found" }, { status: 404 })
+ const body = (await req.json().catch(() => ({}))) as { enabled?: unknown }
+ if (typeof body.enabled !== "boolean") return Response.json({ error: "Missing boolean enabled field" }, { status: 400 })
+ try {
+ setSkillEnabled(dir, body.enabled)
+ } catch (e) {
+ return Response.json({ error: String(e) }, { status: 500 })
+ }
+ return Response.json({ ok: true, skill: dir, enabled: body.enabled })
+}
+
// Hooks Handlers
interface HookEntry {
@@ -1601,6 +1619,9 @@ export async function handleWikiRequest(
return handleSkillsList()
}
+ const enabledMatch = pathname.match(/^\/api\/wiki\/skills\/([^/]+)\/enabled$/)
+ if (enabledMatch && req.method === "PUT") return handleSkillEnabled(decodeURIComponent(enabledMatch[1]), req)
+
const skillMatch = pathname.match(/^\/api\/wiki\/skills\/(.+)$/)
if (skillMatch) {
const skillName = decodeURIComponent(skillMatch[1])
diff --git a/LIFEOS/TOOLS/SkillOverrides.ts b/LIFEOS/TOOLS/SkillOverrides.ts
new file mode 100644
index 0000000..03acb42
--- /dev/null
+++ b/LIFEOS/TOOLS/SkillOverrides.ts
@@ -0,0 +1,74 @@
+/**
+ * SkillOverrides.ts — the one reader and writer of Claude Code's `skillOverrides` setting.
+ *
+ * A skill whose override is "off" is not listed to the model. Pulse's /skills page shows and
+ * toggles that state, and the workflow inventory leaves the intents of an "off" skill out.
+ *
+ * Writes go to settings.json and, when it exists, the user overlay
+ * LIFEOS/USER/CONFIG/settings.user.json, so a later MergeSettings keeps the same value.
+ *
+ * CLI: bun SkillOverrides.ts list | off <Skill> | on <Skill>
+ */
+import { existsSync, readFileSync, renameSync, writeFileSync } from "node:fs";
+import { join } from "node:path";
+import { getClaudeDir, getSettingsPath } from "./Paths";
+
+type Obj = Record<string, unknown>;
+
+function userOverlayPath(): string {
+ return join(getClaudeDir(), "LIFEOS", "USER", "CONFIG", "settings.user.json");
+}
+
+function readJson(path: string): Obj | null {
+ try {
+ const raw = JSON.parse(readFileSync(path, "utf8")) as unknown;
+ return raw && typeof raw === "object" && !Array.isArray(raw) ? (raw as Obj) : null;
+ } catch {
+ return null;
+ }
+}
+
+function writeJson(path: string, obj: Obj): void {
+ const tmp = `${path}.skilloverrides-tmp`;
+ writeFileSync(tmp, JSON.stringify(obj, null, 2) + "\n");
+ JSON.parse(readFileSync(tmp, "utf8"));
+ renameSync(tmp, path);
+}
+
+/** Every skill override from settings.json; an unreadable file means no overrides. */
+export function readSkillOverrides(): Record<string, string> {
+ const settings = readJson(getSettingsPath());
+ const raw = settings?.skillOverrides;
+ if (!raw || typeof raw !== "object" || Array.isArray(raw)) return {};
+ const out: Record<string, string> = {};
+ for (const [k, v] of Object.entries(raw as Obj)) if (typeof v === "string") out[k] = v;
+ return out;
+}
+
+/** The set of skill directory names whose override is "off". */
+export function disabledSkills(): Set<string> {
+ return new Set(Object.entries(readSkillOverrides()).filter(([, v]) => v === "off").map(([k]) => k));
+}
+
+/** Turn a skill on (remove its "off" override) or off, in settings.json and the user overlay. */
+export function setSkillEnabled(skill: string, enabled: boolean): void {
+ if (!/^[A-Za-z0-9_-]+$/.test(skill)) throw new Error(`invalid skill name: ${skill}`);
+ for (const path of [getSettingsPath(), userOverlayPath()]) {
+ if (!existsSync(path)) continue;
+ const obj = readJson(path);
+ if (!obj) throw new Error(`${path} is not a JSON object; nothing written`);
+ const current = obj.skillOverrides && typeof obj.skillOverrides === "object" && !Array.isArray(obj.skillOverrides)
+ ? { ...(obj.skillOverrides as Obj) } : {};
+ if (enabled) delete current[skill];
+ else current[skill] = "off";
+ obj.skillOverrides = current;
+ writeJson(path, obj);
+ }
+}
+
+if (import.meta.main) {
+ const [cmd, name] = process.argv.slice(2);
+ if (cmd === "list") console.log(JSON.stringify([...disabledSkills()].sort()));
+ else if ((cmd === "on" || cmd === "off") && name) { setSkillEnabled(name, cmd === "on"); console.log(`${name}: ${cmd}`); }
+ else { console.error("usage: bun SkillOverrides.ts list | off <Skill> | on <Skill>"); process.exit(2); }
+}
diff --git a/LIFEOS/WORKFLOWS/sources/other.ts b/LIFEOS/WORKFLOWS/sources/other.ts
index cbeca1a..ff97544 100644
--- a/LIFEOS/WORKFLOWS/sources/other.ts
+++ b/LIFEOS/WORKFLOWS/sources/other.ts
@@ -1,6 +1,7 @@
import { existsSync, readdirSync, readFileSync, statSync } from "node:fs";
import { join, basename, dirname, relative } from "node:path";
import { card, cronTrigger, parseJsonc, record } from "./shared.ts";
+import { disabledSkills } from "../../TOOLS/SkillOverrides.ts";
import type { SopRecord, WorkflowRecord } from "../types.ts";
/**
@@ -73,7 +74,9 @@ export function collectProjects(roots: string[], shown: (path: string) => string
export function collectSkills(root: string, shown: (path: string) => string, error: (source: string, message: string) => void): WorkflowRecord[] {
const out: WorkflowRecord[] = [];
if (!existsSync(root)) return out;
+ const off = disabledSkills(); // a skill turned off in skillOverrides cannot run, so its intents are not listed
for (const skill of readdirSync(root)) {
+ if (off.has(skill)) continue;
const workflows = join(root, skill, "Intents");
if (!existsSync(workflows)) continue;
const visit = (dir: string): void => {Verified after fix
Probe: bash /tmp/claude-1000/s/605317433621/scratchpad/probe.sh · exit 0 · captured 2026-12-04T13:47:12.617Z
skills off: 45, intents of off skills still listed: 0
Environment
- OS: Ubuntu 26.10 (x64)
- Harness: claude-code
- bun: 1.4.5 · git: 2.55.0
- Doctor broken: none
Activity