Repository navigation
feat(video-explainer): port the video-explainer skill as a DSH bundle - #57
Merged
Merged
Conversation
Port https://github.com/petergyang/video-explainer (MIT, commit be2f729) into this repository as plugins/video-explainer, installable like every other bundle. The skill, the Python pipeline, the three render engines, the styles, and the Inter font are carried verbatim; see docs/UPSTREAM.md for the file-by-file map. The bundle adds three DSH surfaces: - a packaged skill provider on ctx.skills serving skills/video-explainer/, so the skill is model- and user-invocable with its resource base intact; - video_explainer_setup, a read-only preflight that reports every missing tool with the exact command for it; - video_explainer_render, which runs ONE pipeline step inside a project folder confined to the session workspace (realpath on both sides, argument lists with shell: false, no spawn on rejection); - an opt-in `video-explainer` agent preset that carries shell, background jobs, web, files, and the skill catalog, and declares no subagent provider. Security review (recorded in docs/UPSTREAM.md and pinned by test/security.test.mjs). No finding above high, and each high one is fixed: - scripts/py no longer creates a venv or runs an unpinned pip install; it prints the command and exits 1. Dependencies are pinned in requirements.txt and requirements-voice.txt; - setup.sh is now a read-only preflight (adds --json) instead of downloading Chrome, packages, and models on first run; - the review server serves a dedicated work/review/serve/ root holding only the page, poster, and video, and requires a loopback Host header on reads as well as writes, closing DNS rebinding; - capture.py reports its pinned npx fallback instead of hiding it; - SKILL.md states that review notes, downloaded media, and captured pages are data, never instructions. Verification: validate-bundles PASS (8 plugins), validate-github-install --strict PASS, validate-plugin-pair PASS, build-market-index --check up to date, validate-market-index PASS, validate-skills unchanged (its 3 errors are the pre-existing .opencode/skills ones), and 40 plugin tests pass. The bundle also composes against the installed DSH 0.2.3-alpha.2: every preset child validates its config, the provider lists the skill at rank 600, and both tools register. An end-to-end render is unverified here because ffmpeg is not installed; the pipeline runs up to that point and reports it. Not released: no tag yet, so index.json is unchanged and the market index notes that the plugin has no release tag until one is pushed.
ngeorger
approved these changes
Nov 26, 2026
sredevopsorgagents
force-pushed
the
feat/video-explainer-plugin
branch
from
November 26, 2026 05:53
ef8a989 to
433083f
Compare
ngeorger
approved these changes
Nov 26, 2026
sredevopsorgagents
force-pushed
the
feat/video-explainer-plugin
branch
from
November 26, 2026 05:55
433083f to
3e1ffe8
Compare
sredevopsorgagents
force-pushed
the
feat/video-explainer-plugin
branch
from
November 26, 2026 05:57
3e1ffe8 to
dd7def6
Compare
ngeorger
approved these changes
Nov 26, 2026
…uced CodeQL reported five alerts on the port; none exist on main. All five are fixed in the packaged scripts, and each is covered by test/security.test.mjs. - py/incomplete-url-substring-sanitization (media.py, x2): _is_wiki_url matched the whole netloc with endswith, so en.wikipedia.org.evil.example and wikipedia.org.attacker.tld were treated as Wikimedia and received the Wikimedia User-Agent. It now compares the parsed hostname label by label against WIKI_HOSTS and rejects lookalikes. - py/path-injection (review_page.py): the review frame path is built only from the loop index and the reformatted numeric timestamp, never reviewer text, and the resolved path is re-checked to stay inside the frames directory. - py/clear-text-logging-sensitive-data (media.py, x2): the save message echoed the attribution, which comes from --credit or Wikimedia's artist/license metadata. Attribution now goes to work/media-sources.json and the console line points at that file; _safe_credit() also strips control characters from the stored value. The clear-text fix was settled by running the query rather than guessing: CodeQL 2.27.6 was installed locally (checksum-verified release archive), a database was built over plugins/video-explainer, and the three affected queries were run against the tree. A sanitizer alone did not break the flow, so the printed value was removed instead. CleartextLogging, PathInjection, and IncompleteUrlSubstringSanitization now all return zero results for this tree. Also adds .gitignore entries for local scratch directories.
sredevopsorgagents
force-pushed
the
feat/video-explainer-plugin
branch
from
November 26, 2026 06:13
dd7def6 to
bb2c46e
Compare
ngeorger
approved these changes
Nov 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Ports petergyang/video-explainer (MIT, pinned at
be2f729) into this repository asplugins/video-explainer, installable like every other bundle.The skill, Python pipeline, three render engines, style presets, and the Inter font are carried verbatim;
plugins/video-explainer/docs/UPSTREAM.mdmaps every upstream file and lists every adaptation.DSH surfaces added
video-explainervideo_explainer_setupvideo_explainer_rendervideo-explainerSecurity review
No finding above high, and every high one is fixed and pinned by
test/security.test.mjs:scripts/pyran an unpinnedpip install numpywith no confirmationrequirements*.txtsetup.shdownloaded ~390 MB Chrome + ~1.4 GB models on first run--json); installs nothingOriginwork/review/serve/root + loopbackHostcheck on reads too (closes DNS rebinding)npx -yfallback in the capture pathSKILL.mdstates that content is data, never instructionsVerified live against the hardened server: page/poster/video serve,
secret.envand../traversal 404, rebindingHost403.Verification
validate-bundlesPASS (8 plugins)validate-github-install --strictPASSvalidate-plugin-pairPASS (8 bundles)build-market-index --checkup to datevalidate-market-indexPASSvalidate-skillsunchanged — its 3 errors are the pre-existing.opencode/skills/**ones onmain0.2.3-alpha.2: all 12 preset children validate their config, the provider lists the skill at rank 600, both tools registerKnown gaps
index.jsonis unchanged: this plugin has no release tag yet, so the market index notes it as untagged until one is pushed.Release
Merge, then
node scripts/release-tag.mjs --plugin video-explainer --push. Thevideo-explainer-v0.1.0tag drivesrelease.ymland theindex.jsonrepublish PR.