/akari:verify-projectfrom akari
Verifies AKARI Video projects against the L0/L1/L2 verification ladder required by task contracts on the Theia stack. Runs static checks, automated real-app observation, and guides human review.
Ships in akari. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Language: Respond in the user's language — conversation, questions, approval prompts, and the reports and records you write (including decision-log rows) follow the language the user writes in.
The mapping referenced by the task-contract template (internal tasks/_template/task.md).
These definitions are inferred from actual recent report.md / task.md usage, not invented;
see Sources at the end.
| Level | Definition | Judge | Examples on the current stack |
|---|---|---|---|
| L0 | Static/mechanical verification. Exit codes alone decide pass/fail; no real app launch or human viewing. | Agent alone | Minimum required by nearly every task |
| L1 | Automated real-app observation. Launch Electron, operate via CDP/Playwright, capture screenshots, measure performance. Script-reproducible without subjective human judgment. | Agent alone (scripts) | Nearly all shell tasks of 2026-07-15/16 require L0+L1 |
| L2 | Judgments automation/scripts cannot fully make (subjective visual quality, owner's final check of actual distribution). | Human (owner) | No examples on the current Theia stack; see About L2 below |
On the current Theia stack, use apps/shell npm scripts:
cd apps/shell
PYTHON=/usr/bin/python3 npm ci --no-workspaces # 初回・依存更新時のみ
npm run build:ext # tsc -b(11 拡張の型検査 + コンパイル)
npm run lint # eslint "extensions/*/src/**/*.{ts,tsx}"
npm ci, not npm install. apps/shell/package-lock.json has been tracked since 2026-08-19
(previously in .gitignore). Verification must not use npm install, which rewrites the lock against that day's
registry and introduces drift. Use npm install only for deliberate dependency upgrades, and commit the lock diff.--no-workspaces treats apps/shell as standalone, using apps/shell/package-lock.json + apps/shell/node_modules.
Without it, execution shifts to root workspace/root package-lock.json, involving packages/* and roughly doubling runtime.npm run preflight (scripts/ensure-no-nested-extension-deps.mjs →
scripts/ensure-electron-dist.mjs). npm run build prebuild and npm start prestart use the same preflight.
No manual Electron extraction or nested node_modules cleanup is required; both pitfalls below are repaired automatically.build:ext and lint is the minimum L0 pass. CI (.github/workflows/ci.yml) then runs apps/shell
and extension unit tests (npm run test:shell) on push/PR, since 2026-09-02.
Installation uses npm ci --no-workspaces --ignore-scripts for the tracked lock.packages/*, scripts/test, and skills/* unit tests are also in CI, since 2026-09-02.
Canonical lane definitions: scripts/ci/run-unit-tests.mjs.
npm run test:unit (pure, no external tools, required) / npm run test:quarantine (already failing on main,
informational) / npm run test:media (requires ffmpeg / Chrome, informational) / npm run test:lanes
(list and reasons for exclusions from CI). Locally, changed-package npm test suffices;
use npm run test:unit only to run the same set as CI.npm run build (= build:ext && theia build --mode production),
including frontend/backend/Electron bundles (e.g., shell-sb-surfaces / shell-sc-project / shell-sd-partner /
governance-sanitize). Not run in CI; see pitfalls below. Bundler is esbuild, not webpack
(Theia 1.73 default; absent apps/shell/webpack.config.js means theia build always takes the esbuild route).packages/* use each package.json's build/test scripts for L0
(waveplan-2026-07-15-sbcd-e5.md, acceptance-gate section).allowScripts in apps/shell/package.json, an allowlist,
not a denylist. Measured 2026-08-19: after npm ci --no-workspaces, exactly 11 dependencies have
install scripts (preinstall/install/postinstall + implicit node-gyp rebuild from binding.gyp), and all 11
are listed in allowScripts, so they run. Confirmed Electron postinstall via npm rebuild electron --foreground-scripts.
The former statement that 11 packages' install scripts are skipped by default was wrong. Entries use
名前@完全一致バージョン (existing machine format: name@exact-version), so a single version mismatch silently
prevents that dependency's install script from running. Tracked locks prevent drift; update allowScripts
with dependencies. build:ext / lint need no native modules and pass either way.
CI L0 suppresses all scripts with --ignore-scripts.PYTHON= can stop when
drivelist's node-gyp rebuild hits Homebrew Python 3.14 pyexpat ABI mismatch
(Symbol not found: _XML_SetAllocTrackerActivationThreshold). Always set PYTHON=/usr/bin/python3 (Apple Python).node_modules/electron/install.js extracts zips via extract-zip 2.0.1 → yauzl 2.10 → fd-slicer 1.1.
Node v26.3.0 stops this pipe at 1,900,544 B (64KiB × 29 chunks); the event loop empties without end
or error, ending with exit 0. dist/ contains only LICENSE and truncated LICENSES.chromium.html;
no Electron.app, dist/version, or path.txt, yet installation appears successful.
Node 22.23.1 completes the same zip; standalone zlib/fd-slicer work on Node 26, indicating failure to resume reads
after backpressure clears. scripts/ensure-electron-dist.mjs preflight detects the incomplete result,
reextracts with ditto / tar / unzip, and writes path.txt. Former manual ditto -x -k extraction
and echo <version> > dist/version workaround are no longer needed.apps/shell/package-lock.json is tracked (policy changed 2026-08-19; removed from apps/shell/.gitignore).
Former claims that npm ci is unavailable or only Node pinning + --no-workspaces ensure reproducibility are invalid.
Before tracking, 63 of 1400 packages changed in 1 month (@babel/*, acorn, postcss, react, terser,
webpack 5.108.4→5.109.2, etc.).|| true when using grep in verification scripts.Nearly all current-stack tasks require L1 as mandatory GUI screenshots (preview-streaming / shell-s4-tabs /
preview-open-repair / project-diff-repair / shell-s12-preview-tab / shell-sc-repair /
shell-strip-menu-repair, etc.). Below is the reproducible procedure established by shell-s4-tabs report.md §6-2
and preview-streaming report.md §2.
Never judge frames only at boundaries. Exact beats/cut boundaries hit interval extremes (0% / 100% = off-screen /
opacity 0), causing normal motion to be misdiagnosed. Always capture intermediate 1/4, 1/2, 3/4 times too.
akari capture --auto deterministically derives representative times including overlay/caption midpoints.
cd apps/shell
PYTHON=/usr/bin/python3 npm ci --no-workspaces
npm run build
Postinstall/prebuild npm run preflight supplies Electron (node_modules/electron/dist + path.txt),
fetching via @electron/get if no cached zip exists. Manual ditto or echo <version> > dist/version
workarounds are no longer needed. If necessary, preflight stops with exit 1 and a reason (L0 pitfall 3).templates/project-default/ to a temporary working directory,
leaving originals unchanged. For tasks needing media, generate actual files there with ffmpeg or similar.
Example: preview-streaming generated a 4K / 120-second / 836MB MP4 via ffmpeg -f lavfi ... for measurement.
Completely remove with rm -rf after checking; never commit it.theia start CLI or Playwright _electron.launch() (known argv bug in the latter):
node_modules/electron/dist/Electron.app/Contents/MacOS/Electron \
<apps/shell 絶対パス> <隔離ワークスペース絶対パス> \
--remote-debugging-port=<port> --user-data-dir=<隔離ディレクトリ> --no-sandbox
Pass environment THEIA_CONFIG_DIR=<隔離ディレクトリ> (existing isolated-directory placeholder)
to avoid conflicts with normal development settings.npm install playwright-core only in a verification scratch directory, never in the repository;
attach with chromium.connectOverCDP('http://127.0.0.1:<port>').WebviewWidget nests an outer webview.localhost iframe around
inner active-frame. Simple page.frames() may not reach actual content. A custom client may need to correlate
CDP Page.getFrameTree with Runtime.executionContextCreated auxData.frameId, identify the actual inner
execution context, then read DOM state (readyState / currentTime / data-* attributes) via Runtime.evaluate.
See preview-streaming report.md §2.Page.captureScreenshot or Playwright screenshot API..mjs / .cjs / .js / .sh) and README.md may be committed
beneath evidence/<機能名>/ (existing feature-name placeholder). Governance evidence-growth rejects new
records under evidence/ (images/video/audio/.txt/.log/.json, etc.). Keep already committed evidence unchanged.ps -o %cpu -p <pid> every 1 second, recording GPU/renderer/main separately.
Measure timing through CDP events/DOM changes before/after operations, e.g., milliseconds to readyState>=3.window.theia.container to verify backend
rejection even when frontend guards are bypassed (defense in depth). See preview-streaming report's serving-boundary checks.ps aux and kill those PIDs;
never use broad matching such as pkill -f. Completely delete isolated workspaces/large generated media afterward;
never commit them.Residual ELECTRON_RUN_AS_NODE=1 immediately crashes Electron (measured 2026-09-27,
library-tile-cards lane). Electron starts as Node rather than GUI, leaving app undefined and failing with:
Cannot read properties of undefined (reading 'requestSingleInstanceLock')
This occurs if L1 follows packaged-path verification (ELECTRON_RUN_AS_NODE=1 + cwd=/, L0 pitfall 3)
in the same shell. Always remove it at launch with env -u ELECTRON_RUN_AS_NODE <electron のパス> …
(existing Electron-path placeholder).
Nested extension node_modules (the most frequent L1 pitfall): A second @theia/core inside
apps/shell/extensions/<ext>/node_modules/ causes esbuild's realpath-based bundling to include 2
frontend-application-config-provider copies in one bundle.js. src-gen/frontend/index.js calls set()
on one, while extensions call get() on the other, leaving the frontend at its preload spinner with:
Failed to start the frontend application.
Error: The configuration is not set. Did you call FrontendApplicationConfigProvider#set?
This dual-package hazard was reproduced and confirmed on a real app 2026-08-19: the same tree errors only
when extensions/akari-preview/node_modules/@theia/core exists; deleting it restores launch.
Cause: standalone extension-directory npm install (one run installs 643 packages).
Never run npm install inside extension directories. Preflight (postinstall/prebuild/prestart) removes
accidental nesting, but bundle.js needs rebuilding; rerun from npm run build.
A prior case blamed webpack versions (2026-08-18 timeline-z-order-unification handoff §2).
theia build uses esbuild and never calls webpack; launch was measured with webpack 5.109.2 still installed.
Suspect nested node_modules first.
Electron entry point: Use lib/backend/electron-main.js as specified by package.json's main.
Directly specifying lib/backend/main.js creates no BrowserWindow, leaving /json/list empty.
Packaged path resolution: Bundled __dirname differs from development (e.g., app.asar/lib/backend).
Features searching relative paths outside apps/shell must be checked against electron-builder --dir output
with ELECTRON_RUN_AS_NODE=1 + cwd=/ (see package-runtime-assets task.md).
Checking only development npm start is insufficient.
No recent tasks after migration to the current Theia stack (2026-07-15/16, S-A–S-D, S4/S6/S12, preview-streaming, preview-open-repair, project-diff-repair, package-runtime-assets, shell-sc-repair, shell-strip-menu-repair, etc.) have required L2 as an acceptance criterion. All finish within L0 + L1 (mandatory real-app GUI screenshots); automated real-app observation (L1) is the practical highest level.
L2 was used by verify during the old Tauri era. Examples informing the definition:
2026-07-15-preview-band-artifact: L2 reproduced and verified the fix on a real app, with the owner's own
visual confirmation that the band disappeared as the final gate.2026-07-15-vlog-mvp-edit: L2 real-app check unperformed. L1 actual export/ffprobe verification was complete,
but real-app visual verification of preview compositing was separately classified L2 and outside scope.2026-07-15-decision-cards-runtime: Real Tauri/companion-extension webview visual inspection was outside scope
(L2 excluded); automated headless Chrome DOM checks (L1 equivalent) were distinct from actual webview experience (L2).The shared distinction is L2 means judgments automation/scripts cannot fully make, not whether real media is used.
L1 commonly uses real media too, such as preview-streaming's 836MB 4K footage.
Thus define current-stack L2 as follows, explicitly noting this is extrapolation without current-stack examples:
L2: The owner personally checks real-use scenarios on packaged distribution (
electron-builderoutput), assessing visual feel/usability and other aspects automation cannot judge, and records the result in handoff.
Otherwise finish current-stack tasks at L0+L1, matching actual practice.
ci-and-verify-skill) is an example.apps/shell/extensions/** or
packages/preview-engine. Nearly all 2026-07-15/16 shell tasks belong here.Mapping/procedures are inferred from private internal task records (akari-video-internal) report.md/task.md.
Those internal records do not belong in this repository, consistent with
https://github.com/AkariLabs/akari-video/blob/main/docs/design-2026-07-13-agent-native-architecture.md §3. Executable verification procedures (commands, observation
subjects, pitfalls) are already provided in L0/L1 above. Below only identifies source tasks, all private:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
verification-ladder, akari-video, theia-stack, l0-l1-l2, task-contract
npx claudepluginhub akarilabs/akari-video --plugin akari27 skills in this plugin
/akariCreate, open, or resume AKARI Video projects. Use when asked to make a video in a folder without `.akari/`, or to check an AKARI project's state./analyze-footageAnalyze one footage file in pull-driven levels L0–L3 and record only observed evidence in analysis.json v0. By default, run L0 metadata and L1 audio (`akari media probe` → `waveform` → `transcribe` only when speech is likely); cloud transcription requires approval. Inspect keyframes, editing events, and hooks at L2, or person tracks at L3, only when requested. Use for new footage, pre-edit analysis of one file, or footage analysis needed before plan-edit./analyze-musicAnalyze a track by listening in the browser timeline — chorus, accent hits, beat, BPM, and first downbeat — then save declarations.json for BGM suggestions and beat-synced editing. Use when a user wants to mark a song's chorus, improve BGM suggestions, cut to the beat, or create declarations. Use setup-library to add tracks.(旧名: declare-audio)/analyze-projectRead project assets (analysis.json) together with surrounding context (intake.json, edit.json, planning/, README, and past projects), create the interpretation layer interpretation.json, and render a read-only analysis report limited to facts and readings of the material. Use to understand a multi-asset project across sources, integrate completed analyze-footage results, or identify missing primary information for interviews before choosing a direction. plan-edit reads this output before deciding direction./author-overlayAuthor and review AKARI Video overlay HTML, captions, tables and charts, motion graphics, thumbnails, and text-behind-person effects. Routes the work to the relevant authoring leaf.(旧名: overlay-authoring)/author-scene3dAuthor 3D scenes for AKARI Video: Three.js + glTF motion parts by default, or bake a 3D recipe (scene.py) to MP4 with headless Blender only when the declarative runtime cannot produce the image. Use for 3D, Three.js, glTF, 3D text, device mockups, baking a 3D scene, and Blender. (旧名: bake-3d)Other plugins' skills for the same job