AGENT SKILL

verify-edit

Verify edit.json and optional analysis.json / captions.json / media with a deterministic CLI, then finish QA with frame inspection and reporting after PASS. Use immediately after writing or modifying edit.json, before export, and after applying review feedback.(旧名: edit-lint)

License 许可
MIT
最近更新
2026-10-22
Stars
★ 214
Forks
25

01 前言 Front Matter

name
verify-edit
description
Verify edit.json and optional analysis.json / captions.json / media with a deterministic CLI, then finish QA with frame inspection and reporting after PASS. Use immediately after writing or modifying edit.json, before export, and after applying review feedback.(旧名: edit-lint)

02 资源文件 1

03 SKILL.md 正文

Lint edits and close QA

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.

Hard rules

  1. Deterministic: Same input → same output. No LLM judgment, randomness, or current time in verdicts (checked_at may be recorded but not used for judgments).
  2. Zero external npm dependencies. Invoke ffmpeg / ffprobe directly, never through wrapper libraries.
  3. Write only .akari/lint.json and .akari/reports/. Never auto-fix edit.json; fixes are human/agent edits visible in git diff.
  4. No network (fully local; headless-first invariant means no app required).
  5. Do not copy external candidates' code (loudcheck, etc., are design references only). Regardless of survey copy conditions, this CLI is wholly original, consistent with zero dependencies.
  6. Missing analysis.json / captions.json / .akari/intake.json is not an error: report skipped. Runs at every project maturity level.
  7. Default execution without --media does not decode media, preserving speed for startup/CI use.
  8. Never put inspection keyframes, QA outputs, or ad-hoc temporary verification scripts directly in the project root. Put the former in .akari/reports/, the latter in .akari/work/ (project-structure-v0 contract §1, Japanese). Within .akari/work/, use tmp/ for disposable files and keep/ for irreplaceable ones.

Procedure

Resolve executables

First run akari doctor --json. Use edit_lint.path as <edit-lint> and cli.node.exec_path as the node executable. If cli.node.runtime is electron, include cli.node.required_env (ELECTRON_RUN_AS_NODE=1) using cli.node.invocation.sh / .cmd; omitting it launches the GUI app. cli.node.electron_run_as_node reflects only the diagnostic environment; do not use it to judge availability. On older versions without runtime, treat an exec_path filename other than node / node.exe as Electron and likewise set ELECTRON_RUN_AS_NODE=1. If these fields are absent, use the search below.

ls the following 3 forms top to bottom and use the first existing <edit-lint>:

Form macOS Windows
(a) Desktop app bundle <App>/Contents/Resources/packages/edit-lint/bin/edit-lint.mjs (default <App>: /Applications/AKARI Video.app) <install dir>\resources\packages\edit-lint\bin\edit-lint.mjs
(b) install.sh installation ~/.akari/app/packages/edit-lint/bin/edit-lint.mjs %USERPROFILE%\.akari\app\packages\edit-lint\bin\edit-lint.mjs
(c) Monorepo <repo>/packages/edit-lint/bin/edit-lint.mjs <repo>\packages\edit-lint\bin\edit-lint.mjs

Users with only desktop app (a) have no ~/.akari/app.

Node resolution: AKARI_NODE_BIN → PATH node (20+) → bundled Electron as node with ELECTRON_RUN_AS_NODE=1. Below, node means the resolved executable and <edit-lint> the resolved script path.

Do not Read all of edit.json / captions.json; grep by ID and read matching lines only (Reading edit.json). Write through relevant-line Edit or edit-store's script API.

  1. Immediately after saving edit.json, run:

    node <edit-lint> <project-root|edit.json>
    

    Resolve edit.json relative paths against the nearest ancestor with .akari/, or edit.json's directory if none. akari capture --edit uses the same base.

  2. Check exit code and <project>/.akari/lint.json: 0 PASS, 1 FAIL, 2 input/environment error.

  3. On FAIL, read findings[] top-down; fix indicated edit.json, referenced files, overlay HTML, captions.json with relevant-line Edit or edit-store's script API. Do not let the CLI auto-fix.

  4. Rerun until no error findings and verdict: "pass". Check skipped[] for inspections lacking analysis.json/captions.json.

  5. Before export, rerun with --engine gpu or --engine osr according to the output engine. If export auto-selects, use --engine auto; engine compatibility must also PASS.

  6. After PASS, follow Launch and check the existing preview to open target edit.json and verify playback, seeking, and audio if present. Do not build a dedicated player. Report the checked entry point and unverified items. Then visually inspect cut boundaries and overlay start/end frames. Also inspect intermediate times at 1/4, 1/2, and 3/4 of every interval: exact beats/cut boundaries hit interval extremes (0% / 100% = off-screen / opacity 0), risking misdiagnosis of normal motion. akari capture --auto deterministically derives representative times including overlay/caption midpoints. Mechanical PASS does not replace semantic quality checks.

  7. Reflect <project>/.akari/reports/edit-lint-report.html and frame-inspection results in the editing report; close checkpoint state/provenance according to actual results.

Add --media only when checking audio too. Silence/loudness values default to warnings; only checks with these explicit thresholds can cause FAIL:

node <edit-lint> <project> --media
node <edit-lint> <project> --media --silence-error-seconds 2 --max-volume-error-db -0.1

For machine-readable stdout, add --json, e.g., node <edit-lint> <project> --json. .akari/lint.json is always canonical; HTML is visualization only.

If .akari/intake.json exists (workflow-form storage; contract packages/schemas/intake.schema.json), validate schema and consistency: unknown task IDs, simultaneous duration_s/keep_length, status: submitted without submitted_at, etc. Invalid values are errors (FAIL); status: "draft" (workflow undecided) is only a warning. decision-log.predict-missing (warning): an item added in suggestions/direct mode lacks a machine:director prediction row in decision-log.md.

Outside scope and possible extensions

Black frames, freezes, beats, scenes, flash frames, gaps, duplicate clips, offline media, safe zones, and frame-rate mismatches are future candidates; do not add guessed current PASS conditions.

Music-grid checks (only with declarations)

Only when a declaration matching audio.bgm.path exists, build the timeline-seconds grid with musicGrid from packages/audio-library-setup/shared/beat-grid.mjs and compare audio.sfx[].t. Declaration resolution matches suggest-bgm / beat-grid: --declarations → environment AKARI_SOUNDS_DECLARATIONS → <ライブラリ>/declarations.json (existing library placeholder).

  • audio.sfx.music-grid (warning): Warn if the difference from the truly nearest grid point, regardless of kind, exceeds ±0.12 seconds. Only on equal distance, prioritize hit > bar start > beat. Off-beat staging is valid, so this is not an error.
  • audio.sfx.music-grid-seam (warning): Warn for SE firing within ±0.3 seconds of a BGM end-to-start loop seam.

Quietly skip if declarations/audio.bgm are absent, audio.sfx is empty, or ffprobe cannot obtain actual BGM duration. Record reasons in skipped[], without warnings. Declarations are optional; this differs from automatic media beat detection.

Public contracts

Inspect edit.json fields defined by these public contracts. Do not infer checks for undeclared fields. Contracted checks (structure, unique IDs, ranges, reference consistency) are already implemented.

04 同仓库更多 Skills

AkariLabs
AkariLabs/akari-video

verify-project

Verify an AKARI Video project with the L0 / L1 / L2 verification ladder required by an AKARI Video task contract on the current Theia stack. Read when acceptance criteria specify levels such as L0 or L0+L1, to determine exactly what to run and how at each level.(旧名: verify)

★ 214
AkariLabs
AkariLabs/akari-video

setup-remote

Set up remote access to approval reports and previews from another device such as a phone, and send footage to the workspace. Use doctor to assess Tailscale, guide installation and login (human actions), expose the preview server (default 4567) and approval report helper over tailnet-only HTTPS with tailscale serve, connect Taildrop reception to workspace inbox/, and verify access from another device. Use for requests to view reports on a phone, approve remotely, send footage from a phone, or set up remote access. Public internet exposure (funnel) is outside the default scope.

★ 214
AkariLabs
AkariLabs/akari-video

setup-project

Set up an AKARI Video project headlessly. Recursively copy `templates/project-default/`, record the template version, initialize git only when safe, and generate an HTML creation report. No app launch is needed. Use to create a video project or fill in an existing folder as an AKARI Video project.(旧名: create-project)

★ 214
AkariLabs
AkariLabs/akari-video

setup-library

Use for first-time AKARI Video setup or when the current project needs more usable assets. This first-run skill checks ffmpeg / whisper-cli (and can install with approval), reads the bundled catalog with akari assets to propose a starter pack, obtains explicit human approval, then acquires, places, validates, and updates INDEX entries. It also covers the audio library (BGM and sound effects): bulk acquisition of first-party AKARI Sounds from GitHub Releases, a free-source candidate HTML list with drop-folder matching or assisted acquisition for missing families, and keep/drop decisions in the listening gallery. Use for requests such as "I want more BGM" or "add sound effects to the library".(旧名: setup-audio-library)

★ 214
AkariLabs
AkariLabs/akari-video

setup-connections

Set up and inspect AKARI Video connections: AI-service keys, which models are allowed, cost-approval policy, the tool and media-service state, and 3D settings. Use for first-time setup, adding a provider or key later, checking what is usable (「何が使える?」 'what can I use?'), setting a key such as fal (「fal の鍵を設定したい」), 3D settings (「3D の設定を使いたい」), connection checks, and gates before paid generation or external publication. Model selection belongs to the production skills (they read the ledger and preferences); this skill decides allowed models and the cost policy. Works with `.akari/connections.json` and a free, read-only doctor.(旧名: manage-connections)(旧名: connect)

★ 214
AkariLabs
AkariLabs/akari-video

setup-chat-approval

Set up Telegram notifications at approval gates and return approvals with a button tap. Use doctor to assess state, guide BotFather token issuance and credentials.env registration (human actions), identify the chat ID, register the connection, and verify real-device notification and button approval. Use for requests to approve in chat, receive phone notifications, or configure a Telegram bot. Free-text instructions and agent startup are outside scope (separate contract).

★ 214