aidenlx/zotlit / .agents/skills/obsidian-asar-extract
obsidian-asar-extract
VerifiedExtract and format Obsidian's runtime source (app.js and siblings) from an Obsidian `.asar` archive into `node_modules/.ob-rev-<version>/` so it can be grepped and read for reverse engineering. Use this whenever you need to inspect Obsidian internals, look up a minified export, hook an undocumented API, read Obsidian's own `app.css` stylesheet (a theme variable's value, such as `--text-faint`, for a contrast check), or before running the obsidian-reverse-engineer agent — anytime the analysis needs a readable `app.js` or `app.css` and it isn't extracted yet.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 6.8 KB |
| extract.mjs | script | 4.9 KB |
| probe-version.mjs | script | 1.3 KB |
probe-version.mjs
View on GitHub#!/usr/bin/env node
// Print the Obsidian version recorded in an `.asar` archive's internal package.json.
//
// node .agents/skills/obsidian-asar-extract/probe-version.mjs --asar <path>
//
// Read-only and side-effect free: uses @electron/asar's `extractFile`, which
// returns a Buffer in memory. Do NOT use the `asar extract-file` CLI for this —
// it writes the extracted file into the current working directory and will
// clobber a same-named file (e.g. your repo's package.json).
import { extractFile } from "@electron/asar";
import { existsSync } from "node:fs";
import { resolve } from "node:path";
import { parseArgs } from "node:util";
const { values } = parseArgs({ options: { asar: { type: "string" } } });
if (!values.asar) {
console.error("usage: probe-version.mjs --asar <path-to-archive>");
process.exit(1);
}
const archive = resolve(values.asar);
if (!existsSync(archive)) {
console.error(`error: asar not found: ${archive}`);
process.exit(1);
}
let version;
try {
version = JSON.parse(extractFile(archive, "package.json").toString("utf8")).version;
} catch (cause) {
console.error(`error: could not read package.json from ${archive}: ${cause.message}`);
process.exit(1);
}
if (!version) {
console.error(`error: no version field in ${archive}'s package.json`);
process.exit(1);
}
console.log(version);
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |