Skip to content

ythx-101/live-panel-skill

live-panel

Verified

Build a terminal-style, always-running animated architecture diagram (a "live panel") from a JSON config and render it to an mp4. Use when the user wants a system, agent or org architecture diagram that looks like a monitoring dashboard in a terminal window - fixed layout, glowing packets on the wires, scrolling log, counters, bars that flip state - as a screen-recording-style video or a live web page, instead of a static picture or a step-by-step reveal. 中文:当用户要做"活的"架构图、agent 树或系统监控面板风格的动画(mp4 视频或循环网页)时使用——终端里一直在跑的监控面板外观,固定布局、线上流动的数据包、滚动日志、翻转的计数器和状态条;不是静态图,也不是分步演示。

FileKindSize
SKILL.mdskill md11.2 KB
assets/fonts/Excalifont-OFL.txtmarkdown5.1 KB
assets/fonts/Excalifont-Regular-Latin.woff2binary24.4 KB
assets/fonts/SmileySans-OFL.txtmarkdown4.3 KB
assets/fonts/SmileySans-Oblique.woff2binary1.1 MB
assets/fonts/Xiaolai-OFL.txtmarkdown4.3 KB
assets/template.htmlother35.9 KB
assets/views/LUCIDE-LICENSE.txtmarkdown3.1 KB
assets/views/ROUGH-LICENSE.txtmarkdown1.0 KB
assets/views/excalidraw.jsscript50.0 KB
assets/views/funnel.jsscript15.5 KB
assets/views/loop.jsscript74.3 KB
assets/views/ring.jsscript15.2 KB
assets/views/sketchboard.jsscript18.7 KB
examples/agent-architecture/agent-architecture.mp4binary1.4 MB
examples/agent-architecture/config.jsonconfig37.1 KB
examples/agent-architecture/preview.webpbinary1.2 MB
examples/airbnb/airbnb.mp4binary1.9 MB
examples/airbnb/config.jsonconfig20.3 KB
examples/airbnb/preview.webpbinary1.4 MB
examples/codex-agents/codex-agents.mp4binary1.8 MB
examples/codex-agents/config.jsonconfig19.1 KB
examples/codex-agents/preview.webpbinary1.6 MB
examples/excalidraw-aqua/README.mdmarkdown760 B
examples/excalidraw-aqua/build_config.pyscript6.6 KB
examples/excalidraw-aqua/config-3x4.jsonconfig8.3 KB
examples/excalidraw-aqua/config-4x5.jsonconfig8.3 KB
examples/excalidraw-aqua/preview.webpbinary2.3 MB
examples/excalidraw-gardener/README.mdmarkdown671 B
examples/excalidraw-gardener/build_config.pyscript6.4 KB
examples/excalidraw-gardener/config-3x4.jsonconfig7.6 KB
examples/excalidraw-gardener/config-4x5.jsonconfig7.6 KB
examples/excalidraw-gardener/preview.webpbinary1.2 MB
examples/excalidraw-import/agent-loop.excalidrawother6.7 KB
examples/excalidraw-import/agent-loop.mp4binary1.6 MB
examples/excalidraw-import/config.jsonconfig3.9 KB
examples/funnel-karpathy/config.jsonconfig1.2 KB
examples/funnel/config.jsonconfig1.2 KB
examples/funnel/funnel.mp4binary1.1 MB
examples/funnel/preview.webpbinary475.3 KB
examples/hybrid-agent/README.mdmarkdown729 B
examples/hybrid-agent/config.jsonconfig6.2 KB
examples/loop-poteto/config.jsonconfig6.6 KB
examples/loop-poteto/loop-poteto.mp4binary2.1 MB
examples/loop-poteto/preview-dark.webpbinary638.3 KB
examples/loop-poteto/preview-light.webpbinary627.2 KB
examples/minimal/config.jsonconfig1.9 KB
examples/minimal/preview.webpbinary146.3 KB
examples/ring/config.jsonconfig940 B
examples/ring/preview.webpbinary150.9 KB
examples/ring/ring.mp4binary593.1 KB
references/config-schema.mdmarkdown4.9 KB
references/motion-grammar.mdmarkdown6.4 KB
references/verify-view.mdmarkdown3.3 KB
references/view-rules.mdmarkdown4.3 KB
references/views.mdmarkdown24.7 KB
scripts/check_frames.pyexecutablescript4.6 KB
scripts/excalidraw_import.pyscript14.7 KB
scripts/fetch_fonts.shexecutablescript528 B
scripts/livepanel.pyexecutablescript10.2 KB
scripts/render.pyexecutablescript3.8 KB
scripts/scaffold.pyexecutablescript25.0 KB
scripts/verify_view.pyscript28.5 KB

examples/excalidraw-aqua/build_config.py

View on GitHub
#!/usr/bin/env python3
"""Build the AQuA (inner + outer loop) configs for the excalidraw view: 4:5 (X) and 3:4 (Xiaohongshu).
Recreation of the diagram in Google adk-recipes' Ambient Quality Agent README, made to move.
  python3 examples/excalidraw-aqua/build_config.py   -> config-4x5.json, config-3x4.json next to this file"""
import json
from pathlib import Path

HERE = Path(__file__).parent
# box fills sampled from the reference image: Excalidraw's pastels, a touch greyer
PASTEL = {"xblue": "#b8d3ec", "xgreen": "#bedcb9", "xyellow": "#f5e49e", "xred": "#ecbcb6", "xviolet": "#d3c6ef"}


def build(preset):
    tall = preset == "3:4"
    SH = 1330 if tall else 1250
    Y = (lambda y: round(28 + y * 1.04)) if tall else (lambda y: y)   # 3:4 has a little more height: stretch y

    def P(pts):
        return [[x, Y(y)] for x, y in pts]

    nodes = [
        dict(id="offline", t="offline\nevals", x=500, y=222, w=222, h=112, hue="green"),
        dict(id="evalset", t="eval set", x=800, y=405, w=222, h=96, hue="blue"),
        dict(id="coding", t="coding\nagent /\noptimizer", x=200, y=405, w=222, h=140, hue="yellow", size=34),
        dict(id="compare", t="compare\n+ deploy", x=500, y=592, w=226, h=112, hue="red"),
        dict(id="live", t="live\ntraffic", x=500, y=810, w=210, h=108, hue="blue"),
        dict(id="online", t="online\nevals", x=800, y=966, w=216, h=112, hue="violet"),
        dict(id="sweep", t="AQuA\nsweep", x=500, y=1122, w=216, h=108, hue="green"),
        dict(id="root", t="AQuA root\ncause", x=200, y=966, w=226, h=116, hue="yellow"),
    ]
    for n in nodes:
        n["y"] = Y(n["y"])
        n.setdefault("size", 38)

    def E(id, f, t, fs, ts, bend=0.25, fo=0, to=0, **kw):
        return dict(id=id, **{"from": f}, to=t, fromSide=fs, toSide=ts, bend=bend, fromOff=fo, toOff=to, **kw)

    edges = [
        E("e1", "evalset", "offline", "top", "right", 0.25, fo=-0.45),
        E("e2", "offline", "coding", "left", "top", 0.25),
        E("e3", "coding", "compare", "bottom", "left", 0.25),
        E("e4", "compare", "evalset", "right", "bottom", 0.25, to=-0.1),
        E("deploy", "compare", "live", "bottom", "top", 0, width=3.6, label="deploy", labelAt=[566, Y(707)]),
        E("e5", "live", "online", "right", "top", -0.25),
        E("e6", "online", "sweep", "bottom", "right", -0.25),
        E("e7", "sweep", "root", "left", "bottom", -0.25),
        E("d1", "online", "evalset", "top", "bottom", 0.17, fo=0.72, to=0.72, dashed=True,
          label="failing transcripts\nseed evals", labelAt=[908, Y(712)], labelAlign="right"),
        E("d2", "root", "coding", "top", "bottom", -0.17, fo=-0.72, to=-0.72, dashed=True,
          label="root causes, evidence\n& raw traces", labelAt=[72, Y(712)], labelAlign="left"),
    ]
    AT = {  # where each box's handwritten note goes: next to it, in free space
        "compare": ([500, Y(488)], "center"), "evalset": ([846, Y(312)], "center"), "offline": ([640, Y(156)], "left"),
        "coding": ([338, Y(454)], "left"), "live": ([500, Y(910)], "center"), "online": ([692, Y(897)], "right"),
        "sweep": ([500, Y(1024)], "center"), "root": ([140, Y(870)], "left"),
    }
    steps = [  # starts on the failed compare, so the first frame (the X cover) reads "not better yet"
        ("compare", "e4", "not better yet", 1.5),
        ("evalset", "e1", "run it again", 1),
        ("offline", "e2", "scoring offline…", 1),
        ("coding", "e3", "trying another fix", 1),
        ("compare", "deploy", "better → ship it", 1.5),
        ("live", "e5", "real users, 24/7", 1),
        ("online", "e6", "reviewing sessions", 1),
        ("sweep", "e7", "grouping failures", 1),
        ("root", "d2", "root cause found", 1),
        ("coding", "e3", "applying the fix", 1),
        ("compare", "deploy", "better → ship it", 1.5),
        ("live", "e5", "real users, 24/7", 1),
        ("online", "d1", "a failing transcript!", 1),
        ("evalset", "e1", "new eval case", 1),
        ("offline", "e2", "scoring offline…", 1),
        ("coding", "e3", "patching the agent", 1),
    ]
    view = {
        "type": "view", "kind": "excalidraw", "space": [1000, SH], "period": 32, "t0": 1.55, "seed": 11,
        "boil": {"step": 0.125, "variants": 4, "amp": 0.5}, "noteSize": 30, "roughness": 1.05, "strokeWidth": 2.6,
        "edgeRough": 0.8, "edgeMulti": False,
        "zones": [  # pale washes: inner loop (top) vs outer loop (bottom)
            {"x": 34, "y": Y(132), "w": 932, "h": Y(680) - Y(132), "fill": "#f1f6fc", "r": 40},
            {"x": 34, "y": Y(744), "w": 932, "h": Y(1204) - Y(744), "fill": "#f1f7ef", "r": 40},
        ],
        "texts": [
            {"t": "Ambient Quality Agent (AQuA)", "x": 500, "y": Y(64), "size": 56, "c": "ink", "weight": 0.8,
             "underline": {"hue": "yellow", "width": 16, "dy": 20, "tilt": -4}},
            {"t": "INNER LOOP:\nBuild & Test\n(local / CI)", "x": 140, "y": Y(200), "size": 28, "c": "slate"},
            {"t": "OUTER LOOP:\nShip, Monitor & Learn\n(24/7 in production)", "x": 940, "y": Y(1153), "size": 22, "c": "sage", "align": "right"},
        ],
        "icons": [{"kind": "laptop", "x": 500, "y": Y(372), "w": 112}, {"kind": "cloud", "x": 500, "y": Y(966), "w": 150}],
        "nodes": nodes, "edges": edges,
        "steps": [dict({"node": n, "edge": e, "note": t, "at": AT[n][0], "align": AT[n][1], "dur": d}, **({"dwell": 0.62} if i == 0 else {}))
                  for i, (n, e, t, d) in enumerate(steps)],
    }
    cw, ch = (1080, 1440) if tall else (1200, 1500)
    return {
        "meta": {"title": "AQuA inner + outer loop (excalidraw view)", "lang": "en"},
        "canvas": {"preset": preset, "duration": 32, "fps": 30},
        "theme": {"preset": "light-pastel", "font": 'Excalifont, Xiaolai, "Noto Sans CJK SC", sans-serif',
                  "fonts": [{"family": "Excalifont", "src": "Excalifont-Regular-Latin.woff2", "weight": "400"}],
                  "colors": {"bg": "#ffffff", "muted": "#5c636b", **PASTEL}},
        "credit": {"text": "after Google adk-recipes AQuA diagram, via @Saboo_Shubham_ · https://github.com/google/adk-recipes/tree/main/core/python/ambient-quality-agent\n"
                           "https://x.com/Saboo_Shubham_/status/2112428713979900248 · recreation, motion illustrative · made with live-panel (excalidraw view)",
                   "y": ch - 28, "size": 12.5, "lh": 16, "c": "#868e96", "font": '"Noto Sans CJK SC", sans-serif'},
        "elements": [view],
    }


if __name__ == "__main__":
    for preset, name in (("4:5", "config-4x5.json"), ("3:4", "config-3x4.json")):
        (HERE / name).write_text(json.dumps(build(preset), ensure_ascii=False, indent=1), encoding="utf-8")
        print("wrote", HERE / name)
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 471kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 322kUpdated Claude CodeCodexVerifiedInstall