plan-edit
Plan an edit from the analyze-project analysis report (interpretation.json and analysis-report.html) as primary evidence, obtain explicit chat approval for direction, asset planning, and execution, then produce edit.json and overlay HTML. Use for multi-asset edit planning, planning from no media through question dialogue and a provisional plan.json timeline, or choosing cuts, BGM, SFX, and B-roll from analysis.(旧名: edit-plan)
- License 许可
- MIT
- 最近更新
- 2026-10-22
- Stars
- ★ 214
- Forks
- 25
01 前言 Front Matter
- name
- plan-edit
- description
- Plan an edit from the analyze-project analysis report (interpretation.json and analysis-report.html) as primary evidence, obtain explicit chat approval for direction, asset planning, and execution, then produce edit.json and overlay HTML. Use for multi-asset edit planning, planning from no media through question dialogue and a provisional plan.json timeline, or choosing cuts, BGM, SFX, and B-roll from analysis.(旧名: edit-plan)
02 资源文件 36
- 参考文档approvals-and-generation.md8.0 KB
- 参考文档autonomy.md9.9 KB
- 参考文档avatar-resolution.md14.6 KB
- 参考文档beat-sync.md36.5 KB
- 参考文档beats.md10.2 KB
- 脚本bin/candidate-core.mjs24.7 KB
- 脚本bin/canonical-json.mjs3.4 KB
- 脚本bin/contract-semantics.mjs29.9 KB
- 脚本bin/errors.mjs4.7 KB
- 脚本bin/generated/contract-validators.cjs449.0 KB
- 脚本bin/generated/runtime/equal.cjs263 B
- 脚本bin/generated/runtime/fast-deep-equal-index-9a360c74.cjs1.1 KB
- 参考文档bin/generated/runtime/licenses/ajv.txt1.1 KB
- 参考文档bin/generated/runtime/licenses/fast-deep-equal.txt1.0 KB
- 脚本bin/generated/runtime/ucs2length.cjs759 B
- 脚本bin/propose-cut-candidates.mjs22.9 KB
- 脚本bin/runtime-support.mjs22.2 KB
- 脚本bin/test/candidate-core.test.mjs15.8 KB
- 脚本bin/test/contract-validators-regen.test.mjs1.6 KB
- 脚本bin/test/errors.test.mjs2.6 KB
- 脚本bin/test/l1-real-media.test.mjs4.8 KB
- 脚本bin/test/propose-cut-candidates.test.mjs17.5 KB
- 脚本bin/test/runtime-support.test.mjs11.6 KB
- 脚本bin/test/scale.test.mjs8.6 KB
- 参考文档emphasis-detection.md18.3 KB
- 参考文档execution.md15.3 KB
- 参考文档expression-selection.md19.4 KB
- 参考文档lang/en.md2.6 KB
- 参考文档lang/ja.md4.9 KB
- 参考文档plan-json.md3.8 KB
- 参考文档recipe.md5.9 KB
- 参考文档references/asset.decisions.example.json244 B
- 参考文档references/cut-candidate-policy.a4-conversation-v1.json328 B
- 参考文档references/event.example.json188 B
- 参考文档report-guide.md21.9 KB
- 参考文档workflow.md10.3 KB
03 SKILL.md 正文
Integrate editing decisions
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.
Read lang/<content-language>.md for language-specific rules (content language: --lang → intake.json "language" → transcript language → ja; see https://github.com/AkariLabs/akari-video/blob/main/docs/contract-2026-10-11-content-language.md). If that file does not exist, read lang/en.md. For report, decision-record, and approval-prompt writing, read the section in the user's language pack, regardless of the content language; if that pack does not exist, read lang/en.md.
2026-07-22 revision: This skill no longer generates the editing decision report (fixed six-chapter HTML plus decision cards). The only formal report is the analysis report produced by analyze-project; develop the direction in chat. See the opening of report-guide.md for details and the reason for the change.
edit.json v2 vocabulary: The v2 top level is exact: do not write fields other than
version/output/sources/tracks/audio/captions/thumbnail. Do not writebeats/emphasis_words/directioninto v2edit.json. Write word-level emphasis toemphasis_words[]at the object root of the caption SSOT,captions.json.
Output rules for every mode
-
Before showing the result, read launching and checking the existing preview. Use the existing feature; do not build project-specific playback HTML, a playback UI, or audio synchronization (unless the user explicitly requests a standalone page). State the preview entry point you checked in the report.
-
Base decisions on validated
analysis.json; do not invent transcripts, frames, assets, or approvals without evidence. -
Record decisions in
decision-log.md. For a new file, use the exact table header for the user's language; when appending to an existing file, keep its header language. Write decision and reason cells in the user's language (see report-guide §decision_log). Never change or delete existing rows; always append. The read-only HTML decision-record report derived fromdecision-log.mdis a copy of the record without a decision UI and is no exception. -
Save still images as generated assets and include them with provenance in the report. Run i2v, avatar, and other video generation only after the corresponding still is on the timeline (for paid work, see autonomy.md §4).
-
Save generated assets in
<project>/assets/generated/(covered by the asset panel; revised 2026-08-12). Do not put them outside the project or under<plan-dir>/. Generate only within the project (technical enforcement is out of scope; this is a stated rule). -
Attach
<file>.meta.jsonto generated assets so their origin can be reverified, recordingprovenance.originandprovenance.generator. -
Place still images directly on the timeline: put png / jpg / webp / bmp / gif images in visual-lane
items[]as media clips (see execution.md, "Handling still assets"). Do not concatenate stills into a single video with ffmpeg merely to sequence them: that loses per-image editability and breaks theedit.jsonSSOT. -
Before paid or heavy generation, declare the method, reason, alternatives, and impact. Wait for an answer only for paid generation or external transmission; for free local generation, write the declaration to
decision-log.mdand proceed (incollaborativemode, continue to wait for an answer). Consider Codex image generation first, then Akari Cloud. Do not call OpenAI, Gemini, or similar API keys directly. -
Write only v2 (
sources[]+tracks[].items[]) toedit.json. Represent lanes withlaneand array order, and clip content withsource.kind. Do not create the oldcuts/layers/overlayskeys. Add only fields defined by the public v2 contract. -
Use the highlight markers derived under beats.md for analysis and decisions, but do not write
beatsinto v2edit.json. -
Derive word-level emphasis under emphasis-detection.md and write it to
emphasis_words[]at the object root ofcaptions.json. Do not write it into v2edit.json. -
Use the author-overlay skill for final overlays. If it is unavailable, do not skip the rules: use the authoring rules in CLAUDE.md as canonical and record that choice.
-
Use OpenMontage only as a reference for structural patterns. Do not copy AGPL text or code.
Approval rules (only when autonomy is collaborative / Japanese UI: 一緒に作る)
- Use the analyze-project analysis report as primary evidence for editing decisions. plan-edit itself must not generate a new decision HTML report. Decide the direction (thumbnail ideas, cut intensity, caption policy, chapter structure, etc.) in chat and record decisions in
decision-log.md. Never change or delete existing rows; always append. The read-only HTML decision-record report derived fromdecision-log.md(report-guide §decision_log) is a copy without a decision UI and is no exception. - Stop at each direction → asset plan → execution checkpoint. Do not treat inaction, a timeout, or blanket approval from an earlier occasion as approval now.
- After explicit approval of semantic keep/drop at Checkpoint 1, use the cut candidate bridge in workflow.md only if pause candidates are needed. Every bridge candidate is
REVIEW_REQUIRED; it only creates a report withapproved_to_apply:false. Do not automatically updateedit.jsonordecision-log.md, and stop after candidate review until Checkpoint 3 execution approval. After application, do not call the work complete until a human has checked post-cut ASR, information retention, UI timing, and audio boundaries from execution.md in the same version and explicitly approvedHUMAN_APPLY_GATE.
Execution order and contents
- Read autonomy.md and choose the mode from the workspace akari.md and
.akari/intake.json. Forfull-auto("as requested"; Japanese UI labelそのまま) andcheckpoint("with suggestions"; default; Japanese UI label提案つき), follow autonomy.md; do not read approval steps 1–11 below. Onlycollaborative("create together"; Japanese UI label一緒に作る) starts at step 1. - Read workflow.md to choose the analysis collection, parallel execution, and integration mode. When footage exists, read the analyze-project analysis report as primary evidence (request its creation first if absent). When there is no media, read plan-json.md now and first complete the question dialogue →
plan.jsonprovisional timeline (contract). - Read report-guide.md and build a recommended direction and alternatives for thumbnail ideas, cut intensity, caption policy, and chapter structure from the analysis evidence. Before presenting the direction, run recipe.md's recall procedure on
~/.akari/recipes/(workflow: "edit") and include any recommendation with its source; it must not override this request. As part of that same step before presenting the direction, also check thememorydeclaration in.akari/connections.json(contract-2026-07-25-memory-connection-v0.md). If present, start atentry(defaultINDEX.md), read only theinclude/excludescope, and record referenced paths as provenance indecision-log.md. Full-text injection is forbidden. If absent, do nothing; this is not an error. - Present the direction in chat to the human, showing the recommendation, alternatives, reasons, and tradeoffs. Do not leave the decision at "What would you like?" Obtain explicit approval or revision instructions and append the settled decision to
decision-log.md. - Read approvals-and-generation.md and apply generation declarations, provenance, and three-stage approval. Do not execute the edit at Checkpoint 1 until explicit chat approval arrives.
- If considering silence reduction after Checkpoint 1 approval, build the dedicated keep plan from workflow.md and present a review-only report with
bin/propose-cut-candidates.mjs. Confirm candidate acceptance, rejection, and classification changes in chat, then append todecision-log.mdbased on human approval. Do not let the helper append records itself.
Do not read all of edit.json / captions.json; grep by id and read only matching lines (how to read edit.json). Write with a targeted edit or the edit-store script API.
- Only after Checkpoint 3 execution approval, read execution.md, create v2
edit.jsonand overlay HTML, and validate them. As completion work, check the freeze procedure in recipe.md and offer to save a recipe once (offer-once) if this project has not already received that offer. - When deriving highlight markers, read beats.md and derive candidates from
analysis.jsonevents / transcript. Do not write them to v2edit.json; leave the mapping and evidence in the decision record. - When connecting approved highlights to effects, read beat-sync.md and build audio-lane media clips under its projection, SFX trigger, chapter-turn snap, density guardrail, and default SFX rules.
- When choosing an expressive means for each scene, read expression-selection.md and follow its meaning-to-means mapping, the hard filter from the effect card's
allowed_means, catalog search (when_to_use/tagsand license check), and evidence-recording rules. This selects candidates; the asset-plan approval gate still applies. - When creating word-level emphasis, read emphasis-detection.md, derive candidates from
analysis.jsontranscript[].words, and write them toemphasis_words[]at the object root ofcaptions.json. Do not write them into v2edit.json; record target tier, highlight linkage, density, and evidence in the decision record. - When asked to insert a person or character (avatar), read avatar-resolution.md and follow staged L0/L1/L2 reading, rendition resolution, decision cards, and recording.
Read only the leaf needed for the current stage. Do not execute later stages ahead of time.
04 同仓库更多 Skills
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)
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)
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.
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)
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)
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)