Skip to content

insightflo/edu-deck-skills / edu-deck

edu-deck

Flagged

Entry skill for education deck requests. Use FIRST when the user wants 교육자료, 강의 자료, 교육용 슬라이드, 직원 교육 덱, or a training series (예: "○○ 교육자료 만들어줘", "사내 교육 시리즈 만들어", "여러 편으로 나눠 교육 자료"). 판별 후 단일 발행(주제 하나, 파일 하나)이면 edu-deck-solo 경로를, 여러 편 시리즈·진도 관리·허브가 필요하면 edu-deck-series 경로를 탄다. 애매하면 사용자에게 한 번 묻는다. 덱 제작 절차는 이 스킬에 없고 각 하위 스킬에 있다.

FileKindSize
SKILL.mdskill md14.1 KB
distribution/NOTICES.mdmarkdown1.5 KB
distribution/README.mdmarkdown3.4 KB
distribution/USAGE.mdmarkdown5.5 KB
shared/assets/css/components.cssother23.2 KB
shared/assets/css/core.cssother15.1 KB
shared/assets/css/pack-runtime.cssother9.4 KB
shared/assets/css/responsive.cssother10.6 KB
shared/assets/css/theme-switch.cssother3.4 KB
shared/assets/css/themes.cssother11.2 KB
shared/assets/css/tokens.cssother2.5 KB
shared/assets/css/viewer.cssother17.5 KB
shared/assets/css/visual-motion.cssother19.3 KB
shared/assets/fonts/GowunBatang-Regular.woff2binary523.3 KB
shared/assets/fonts/GowunDodum-Regular.woff2binary435.5 KB
shared/assets/fonts/OFL-GowunBatang.txtmarkdown4.3 KB
shared/assets/fonts/OFL-GowunDodum.txtmarkdown4.3 KB
shared/assets/fonts/OFL.txtmarkdown4.3 KB
shared/assets/fonts/PretendardVariable.woff2binary2.0 MB
shared/assets/icons/base.svgother9.3 KB
shared/assets/icons/extra.svgother18.4 KB
shared/assets/icons/si.svgother7.6 KB
shared/assets/js/cover-art.jsscript82.9 KB
shared/assets/js/motion.jsscript84.4 KB
shared/assets/js/patterns.jsscript7.2 KB
shared/assets/js/responsive.jsscript21.6 KB
shared/assets/js/sheet.jsscript1.5 KB
shared/assets/js/study.jsscript33.6 KB
shared/assets/js/talk.jsscript9.2 KB
shared/assets/js/themes.jsscript7.8 KB
shared/assets/js/viewer.jsscript29.1 KB
shared/assets/kit/patterns.cssother5.4 KB
shared/assets/kit/stack.jsscript15.8 KB
shared/assets/pack-shell.htmlother2.9 MB
shared/assets/packs/atlas/style.cssother1.7 KB
shared/assets/packs/atlas/template.htmlother2.1 KB
shared/assets/packs/base.cssother2.2 KB
shared/assets/packs/briefing/style.cssother1.4 KB
shared/assets/packs/briefing/template.htmlother1.7 KB
shared/assets/packs/casebook/style.cssother1.4 KB
shared/assets/packs/casebook/template.htmlother1.5 KB
shared/assets/packs/catalog.jsonconfig10.3 KB
shared/assets/packs/editorial/style.cssother1.2 KB
shared/assets/packs/editorial/template.htmlother2.0 KB
shared/assets/packs/field/style.cssother1.5 KB
shared/assets/packs/field/template.htmlother1.6 KB
shared/assets/packs/flows.jsonconfig21.8 KB
shared/assets/packs/lab/style.cssother1.4 KB
shared/assets/packs/lab/template.htmlother1.6 KB
shared/assets/packs/seminar/style.cssother1.4 KB
shared/assets/packs/seminar/template.htmlother1.7 KB
shared/assets/packs/workbook/style.cssother1.6 KB
shared/assets/packs/workbook/template.htmlother1.7 KB
shared/assets/shell.htmlother2.9 MB
shared/assets/snippets/01-cover-bauhaus.htmlother3.3 KB
shared/assets/snippets/01-cover-bento.htmlother6.7 KB
shared/assets/snippets/01-cover-bigstat.htmlother2.3 KB
shared/assets/snippets/01-cover-blueprint.htmlother4.3 KB
shared/assets/snippets/01-cover-bold-poster.htmlother3.4 KB
shared/assets/snippets/01-cover-center.htmlother2.5 KB
shared/assets/snippets/01-cover-diagram.htmlother2.4 KB
shared/assets/snippets/01-cover-editorial-lab.htmlother3.6 KB
shared/assets/snippets/01-cover-future-portal.htmlother3.6 KB
shared/assets/snippets/01-cover-learning-path.htmlother3.7 KB
shared/assets/snippets/01-cover-modular-cards.htmlother3.9 KB
shared/assets/snippets/01-cover-monograph.htmlother3.1 KB
shared/assets/snippets/01-cover-mosaic.htmlother2.4 KB
shared/assets/snippets/01-cover-paper-collage.htmlother3.1 KB
shared/assets/snippets/01-cover-split.htmlother2.8 KB
shared/assets/snippets/01-cover-stripes.htmlother2.4 KB
shared/assets/snippets/01-cover-workbook-notes.htmlother3.8 KB
shared/assets/snippets/02-agenda.htmlother21.2 KB
shared/assets/snippets/03-timeline.htmlother14.2 KB
shared/assets/snippets/04-map.htmlother16.3 KB
shared/assets/snippets/05-mechanism.htmlother14.5 KB
shared/assets/snippets/06-traits-grid.htmlother16.9 KB
shared/assets/snippets/07-meter.htmlother17.1 KB
shared/assets/snippets/08-compare-2.htmlother18.2 KB
shared/assets/snippets/09-compare-table.htmlother16.0 KB
shared/assets/snippets/10-hub.htmlother15.1 KB
shared/assets/snippets/11-levels.htmlother15.1 KB
shared/assets/snippets/12-tile-grid.htmlother12.3 KB
shared/assets/snippets/13-sequence.htmlother15.0 KB
shared/assets/snippets/14-mapping.htmlother13.7 KB
shared/assets/snippets/15-mock-legend.htmlother11.2 KB
shared/assets/snippets/16-mock-options.htmlother10.5 KB
shared/assets/snippets/17-statement.htmlother7.5 KB
shared/assets/snippets/18-build-up.htmlother14.0 KB
shared/assets/snippets/19-frame-form.htmlother9.2 KB
shared/assets/snippets/20-before-after.htmlother13.6 KB
shared/assets/snippets/21-worked-example.htmlother16.5 KB
shared/assets/snippets/22-worked-artifact.htmlother9.2 KB
shared/assets/snippets/23-quiz-ab.htmlother7.1 KB
shared/assets/snippets/24-quiz-sort.htmlother8.0 KB
shared/assets/snippets/25-quiz-ox.htmlother6.9 KB
shared/assets/snippets/26-rules-dark.htmlother13.7 KB
shared/assets/snippets/27-checklist.htmlother8.3 KB
shared/assets/snippets/28-sources.htmlother9.8 KB
shared/assets/snippets/29-closing.htmlother6.0 KB
shared/assets/snippets/30-check.htmlother10.3 KB
shared/assets/snippets/31-stat-strip.htmlother11.4 KB
shared/assets/snippets/32-screen-cite.htmlother14.1 KB
shared/assets/snippets/33-chart-bar.htmlother17.0 KB
shared/assets/snippets/34-chart-line.htmlother17.9 KB
shared/assets/snippets/35-explore.htmlother9.6 KB
shared/assets/snippets/36-detail-sheet.htmlother9.9 KB
shared/assets/snippets/37-arch-flow.htmlother17.2 KB
shared/assets/snippets/38-part-divider.htmlother7.0 KB
shared/assets/snippets/39-quadrant.htmlother10.0 KB
shared/assets/snippets/40-flashcards.htmlother12.4 KB
shared/assets/snippets/41-ops-report.htmlother22.8 KB
shared/assets/snippets/42-sankey-flow.htmlother9.7 KB
shared/assets/snippets/43-decision-tree.htmlother8.7 KB
shared/assets/snippets/44-kanban-board.htmlother9.4 KB
shared/assets/snippets/45-version-graph.htmlother8.9 KB
shared/assets/snippets/46-event-fanout.htmlother8.1 KB
shared/assets/snippets/47-route-tour.htmlother9.3 KB
shared/assets/snippets/48-waterfall.htmlother7.9 KB
shared/assets/snippets/49-mesh-network.htmlother7.8 KB
shared/assets/snippets/50-heatmap-grid.htmlother11.9 KB
shared/assets/snippets/51-swimlane.htmlother8.2 KB
shared/assets/snippets/52-cycle-ring.htmlother7.1 KB
shared/assets/snippets/53-verdict.htmlother6.9 KB
shared/assets/snippets/54-diagnose.htmlother3.0 KB
shared/assets/snippets/55-window-frame.htmlother3.3 KB
shared/assets/snippets/56-gate-chain.htmlother5.6 KB
shared/assets/snippets/patterns/code.htmlother1.2 KB
shared/assets/snippets/patterns/faq.htmlother839 B
shared/assets/snippets/patterns/fx.htmlother2.8 KB
shared/assets/snippets/patterns/pin-shot.htmlother1.5 KB
shared/assets/snippets/patterns/tabs.htmlother1.1 KB
shared/assets/style-sheets/README.mdmarkdown1.7 KB
shared/assets/style-sheets/previews/clean-professional.pngbinary1.4 MB
shared/assets/style-sheets/previews/creative-magazine.pngbinary2.1 MB
shared/assets/style-sheets/previews/data-dashboard.pngbinary1.3 MB
shared/assets/style-sheets/previews/e-ink-magazine.pngbinary2.4 MB
shared/assets/style-sheets/previews/handdrawn-technical.pngbinary2.0 MB
shared/assets/style-sheets/previews/handdrawn-whiteboard.pngbinary1.9 MB
shared/assets/style-sheets/previews/mckinsey-style.pngbinary1.7 MB
shared/assets/style-sheets/previews/party-government-red.pngbinary1.5 MB
shared/assets/style-sheets/previews/retro-flat-illustration.pngbinary2.3 MB
shared/assets/style-sheets/previews/scientific-defense.pngbinary1.4 MB
shared/assets/style-sheets/previews/teaching-courseware.pngbinary1.4 MB
shared/assets/style-sheets/previews/warm-handmade.pngbinary2.3 MB
shared/assets/style-sheets/党政红风格.mdmarkdown8.5 KB
shared/assets/style-sheets/创意杂志风.mdmarkdown3.3 KB
shared/assets/style-sheets/复古扁平插画风.mdmarkdown3.3 KB
shared/assets/style-sheets/手绘技术解释风.mdmarkdown4.7 KB
shared/assets/style-sheets/手绘白板风.mdmarkdown3.3 KB
shared/assets/style-sheets/教学课件风.mdmarkdown9.7 KB
shared/assets/style-sheets/数据仪表盘风.mdmarkdown3.4 KB
shared/assets/style-sheets/清爽专业风.mdmarkdown4.4 KB
shared/assets/style-sheets/温暖手工风.mdmarkdown3.3 KB
shared/assets/style-sheets/电子墨水杂志风.mdmarkdown4.6 KB
shared/assets/style-sheets/科研答辩风.mdmarkdown9.1 KB
shared/assets/style-sheets/麦肯锡风格.mdmarkdown14.8 KB
shared/dev/README.mdmarkdown12.7 KB
shared/dev/crayon-reference.htmlother19.1 KB
shared/dev/defect_test.pyscript5.7 KB
shared/dev/fill_test.pyscript3.4 KB
shared/dev/make_icons.pyscript10.0 KB
shared/dev/make_snippets.pyscript16.0 KB
shared/dev/pack_shell_template.htmlother35.7 KB
shared/dev/port.pyscript1.5 KB
shared/dev/shell_template.htmlother61.0 KB
shared/dev/test_absorb_snippets.pyscript5.5 KB
shared/dev/test_arch_lanes.pyscript12.0 KB
shared/dev/test_arch_si.pyscript17.5 KB
shared/dev/test_arch_trace.pyscript5.6 KB
shared/dev/test_check_talk_est.pyscript4.1 KB
shared/dev/test_chrome_menu.pyscript13.2 KB
shared/dev/test_consult_chart.pyscript35.9 KB
shared/dev/test_consult_regen.pyscript3.5 KB
shared/dev/test_consulting_check.pyscript7.4 KB
shared/dev/test_contrast_backdrop.pyscript8.6 KB
shared/dev/test_contrast_matrix.pyscript9.2 KB
shared/dev/test_cover_art.pyscript10.7 KB
shared/dev/test_cover_custom.pyscript10.8 KB
shared/dev/test_cover_rework.pyscript8.3 KB
shared/dev/test_dblclick_finish.pyscript6.5 KB
shared/dev/test_diagram_variants.pyscript13.8 KB
shared/dev/test_extract_copy.pyscript7.3 KB
shared/dev/test_extract_style.pyscript13.8 KB
shared/dev/test_figslot.pyscript14.0 KB
shared/dev/test_final_gate.pyscript2.5 KB
shared/dev/test_flint_model.pyscript5.5 KB
shared/dev/test_flint_theme.pyscript4.6 KB
shared/dev/test_free_mode.pyscript10.7 KB
shared/dev/test_fx_absorb.pyscript13.8 KB
shared/dev/test_fx_draft.pyscript38.0 KB
shared/dev/test_fx_patterns.pyscript16.8 KB
shared/dev/test_key_motion.pyscript9.3 KB
shared/dev/test_koboyo_icons.pyscript8.6 KB
shared/dev/test_miniflow.pyscript11.7 KB
shared/dev/test_motion_techniques.pyscript11.9 KB
shared/dev/test_ops_report.pyscript11.4 KB
shared/dev/test_pack_browser.pyscript15.7 KB
shared/dev/test_pack_checker.pyscript10.1 KB
shared/dev/test_pack_icons.pyscript6.5 KB
shared/dev/test_pack_router.pyscript5.1 KB

shared/dev/test_motion_techniques.py

View on GitHub
#!/usr/bin/env python3
"""공통 모션 기법 5종 계약 시험 (TASK-motions).

[목적] scatter-gather·slice-reveal·row-mask-rise·weight-wave·rack-focus 가
       ① 채택 스니펫의 저작 속성 계약(data-fx 이름·대상·한도)을 지키고
       ② 정적 모드(인쇄·감속·자습)에서 저작한 최종 DOM 그대로 완결되며
       ③ 미지원 브라우저(clip-path·가변 wght)에서 침묵으로 최종 상태를 보이고
       ④ 화면 발화 후 이탈 시 마스크·글자·필터 잔재 없이 취소된다 — 를 잠근다.
[입력] assets/snippets 5계열 첫 section 으로 /tmp 미니덱 빌드 + 실제 Chromium.
[출력] 없음(단정문).
[주의] 시각적 차이(픽셀·중간 프레임)는 TASK-motions-STATE.md 증거가 맡고,
       이 시험은 계약과 정적 완결만 잠근다.
"""
import re
import sys
import unittest
from pathlib import Path

from bs4 import BeautifulSoup
from playwright.sync_api import sync_playwright

S = Path(__file__).resolve().parents[1]
sys.path.insert(0, str(S / 'scripts'))
from build_deck import build  # noqa: E402
from check_deck import FX_KINDS  # noqa: E402

SNIPPETS = S / 'assets' / 'snippets'
MOTION = (S / 'assets' / 'js' / 'motion.js').read_text(encoding='utf-8')
OUT = Path('/tmp/edudeck-motion-fx')
SRC = OUT / 'src'

TECHNIQUES = ('scatter-gather', 'slice-reveal', 'row-mask-rise',
              'weight-wave', 'rack-focus')

# 채택 계열 -> (스니펫 파일, 아키타입, data-fx 이름, 대상 선택자, 최대 대상 수)
ADOPTIONS = {
    'cover': ('01-cover-center.html', 'scatter-gather', '#cx-typed', 48),
    'agenda': ('02-agenda.html', 'row-mask-rise', '.rm-col', 12),
    'statement': ('17-statement.html', 'weight-wave', '.t2', 48),
    'before-after': ('20-before-after.html', 'slice-reveal', '.win', 12),
    'check': ('30-check.html', 'rack-focus', '.chk-why', 12),
}

NOTES = ('시험 장의 발표 노트입니다. 각 단계의 드러남과 최종 상태를 확인하는 '
         '안내 문구이며 자습 모드에서는 이 화면 그대로 읽습니다.')


def first_section(stem):
    soup = BeautifulSoup(
        (SNIPPETS / stem).read_text(encoding='utf-8'), 'html.parser')
    return str(soup.select_one('section.slide'))


def build_mini():
    SRC.mkdir(parents=True, exist_ok=True)
    order = ['01-cover-center.html', '02-agenda.html', '17-statement.html',
             '20-before-after.html', '30-check.html']
    srcs = []
    for i, name in enumerate(order):
        p = SRC / f'{i:02d}-{name}'
        p.write_text(first_section(name), encoding='utf-8')
        srcs.append(p)
    html = OUT / 'deck.html'
    build('모션 기법 시험', srcs, [S / 'assets/css'],
          [S / 'assets/icons'], html)
    return html


class AttributeContractTest(unittest.TestCase):
    """저작 속성 계약: 채택처·이름·한도·엔진 등록."""

    def test_adopted_snippets_carry_declared_fx(self):
        for arch, (stem, fx, sel, cap) in ADOPTIONS.items():
            text = (SNIPPETS / stem).read_text(encoding='utf-8')
            soup = BeautifulSoup(text, 'html.parser')
            with self.subTest(arch=arch):
                hits = soup.select(f'{sel}[data-fx="{fx}"]')
                self.assertTrue(hits, f'{stem}: {sel} 에 data-fx="{fx}" 없음')
                for el in hits:
                    self.assertEqual(el.get('data-archetype'), None,
                                     '효과는 요소 속성 — 계열 속성과 혼합 금지')
            # 대상 한도: 변형(섹션)마다 해당 속성 요소 수가 계약 상한 이하
            for sec in soup.select('section.slide'):
                with self.subTest(arch=arch, scope='limit',
                                  variant=sec.get('data-variant')):
                    self.assertLessEqual(len(sec.select(f'[data-fx="{fx}"]')),
                                         cap,
                                         f'{stem}: 대상 {cap}개 초과')

    def test_engine_registers_five_techniques(self):
        for name in TECHNIQUES:
            with self.subTest(fx=name):
                self.assertIn(f"'{name}'", MOTION, 'motion.js FX 표 미등록')
                self.assertIn(name, FX_KINDS, 'check_deck FX_KINDS 미등록')
        # TASK-workflow-series 이후 실행 이름 41종(기존 30 + 신규 11) — 공유 기법 5종과 별도.
        names = set(re.findall(r"name:'([a-z-]+)'", MOTION))
        self.assertEqual(len(names), 44,
                         f'실행 이름 {len(names)}종 — 41종 체계 변경 감지: {sorted(names)}')

    def test_no_forbidden_motion_in_snippets(self):
        for stem, _, _, _ in ADOPTIONS.values():
            text = (SNIPPETS / stem).read_text(encoding='utf-8')
            with self.subTest(stem=stem):
                self.assertNotIn('@keyframes', text)
                self.assertNotIn('<animate', text)  # SMIL
                self.assertIsNone(BeautifulSoup(text, 'html.parser')
                                  .find('script'))


class StaticCompletenessTest(unittest.TestCase):
    """정적 완결: 인쇄·감속·자습에서 최종 DOM = 저작 DOM."""

    @classmethod
    def setUpClass(cls):
        cls.html = build_mini()
        cls._pw = sync_playwright().start()
        cls._browser = cls._pw.chromium.launch(channel='chrome')

    @classmethod
    def tearDownClass(cls):
        cls._browser.close()
        cls._pw.stop()

    def _page(self, **ctx_kw):
        ctx = self._browser.new_context(
            viewport={'width': 1920, 'height': 1080}, **ctx_kw)
        pg = ctx.new_page()
        pg.goto('file://' + str(self.html))
        pg.wait_for_timeout(2000)
        return ctx, pg

    def test_reduced_motion_shows_authored_final(self):
        ctx, pg = self._page(reduced_motion='reduce')
        try:
            self.assertEqual(pg.evaluate(
                "document.getElementById('cx-typed').textContent"), '«표지 제목 ≤12자»')
            pg.evaluate('deckGo(1,5)')
            self.assertEqual(pg.evaluate(
                "document.querySelectorAll('.ed-fx-mask').length"), 0)
            pg.evaluate('deckGo(2)')
            self.assertEqual(pg.evaluate(
                "document.querySelector('.t2').textContent"), '«마지막 어절 ≤4자»')
            self.assertEqual(pg.evaluate(
                "document.querySelectorAll('.t2 .ed-letter').length"), 0,
                '정적 모드에서 글자 분할은 일어나지 않는다')
        finally:
            ctx.close()

    def test_print_emulation_settles(self):
        ctx, pg = self._page()
        try:
            pg.evaluate('deckGo(1,5)')
            pg.wait_for_timeout(800)
            pg.emulate_media(media='print')
            pg.wait_for_timeout(400)
            self.assertEqual(pg.evaluate(
                "document.querySelectorAll('.ed-fx-mask').length"), 0)
            self.assertEqual(pg.evaluate(
                "getComputedStyle(document.querySelector('[data-fx=\"slice-reveal\"]')).clipPath"),
                'none')
            self.assertEqual(pg.evaluate(
                "document.getAnimations().length"), 0)
        finally:
            ctx.close()

    def test_self_study_is_complete(self):
        ctx, pg = self._page()
        try:
            pg.keyboard.press('s')
            pg.wait_for_timeout(500)
            self.assertIn('st-self', pg.evaluate('document.body.className'))
            self.assertEqual(pg.evaluate(
                "document.querySelectorAll('.ed-fx-mask').length"), 0)
        finally:
            ctx.close()


class UnsupportedSilenceTest(unittest.TestCase):
    """미지원 브라우저: clip-path·가변 wght 없이 침묵 + 최종 상태."""

    @classmethod
    def setUpClass(cls):
        cls._pw = sync_playwright().start()
        cls._browser = cls._pw.chromium.launch(channel='chrome')

    @classmethod
    def tearDownClass(cls):
        cls._browser.close()
        cls._pw.stop()

    def test_unsupported_apis_are_silent(self):
        ctx = self._browser.new_context(
            viewport={'width': 1920, 'height': 1080})
        pg = ctx.new_page()
        pg.add_init_script("""()=>{const o=CSS.supports.bind(CSS);
          CSS.supports=(p,v)=>((p==='clip-path'||p==='font-variation-settings')
            ?false:o(p,v));}""")
        errors = []
        pg.on('pageerror', lambda e: errors.append(str(e)))
        pg.goto('file://' + str(build_mini()))
        pg.wait_for_timeout(2400)
        try:
            # scatter-gather 는 transform/opacity — 글자 분할은 kinetic 과 동일
            self.assertEqual(pg.evaluate(
                "document.querySelectorAll('#cx-typed .ed-letter').length"), 10)
            pg.evaluate('deckGo(2)')
            pg.wait_for_timeout(1200)
            # weight-wave: 분할은 kinetic 동일, wght 애니메이션은 침묵
            self.assertEqual(pg.evaluate(
                "document.querySelectorAll('.t2 .ed-letter').length"), 10)
            pg.evaluate('deckGo(3)')
            pg.wait_for_timeout(1000)
            # slice-reveal: clip-path 미지원 → 즉시 최종 상태
            self.assertEqual(pg.evaluate(
                "getComputedStyle(document.querySelector('[data-fx=\"slice-reveal\"]')).clipPath"),
                'none')
            self.assertEqual(pg.evaluate(
                "document.getAnimations().length"), 0)
            self.assertEqual(errors, [], f'pageerror: {errors}')
        finally:
            ctx.close()


class CancellationContractTest(unittest.TestCase):
    """취소·정착 계약: 이탈 시 잔재 0, 뒤로가기·재방문 재생 없음."""

    @classmethod
    def setUpClass(cls):
        cls._pw = sync_playwright().start()
        cls._browser = cls._pw.chromium.launch(channel='chrome')

    @classmethod
    def tearDownClass(cls):
        cls._browser.close()
        cls._pw.stop()

    def test_mid_flight_navigation_leaves_no_residue(self):
        ctx = self._browser.new_context(
            viewport={'width': 1920, 'height': 1080})
        pg = ctx.new_page()
        pg.goto('file://' + str(build_mini()))
        pg.wait_for_timeout(800)
        try:
            # 의제 행 상승 도중 즉시 이탈 — 마스크가 남지 않아야 한다
            pg.evaluate('deckGo(1,1)')
            pg.wait_for_timeout(120)
            self.assertGreater(pg.evaluate(
                "document.querySelectorAll('.ed-fx-mask').length"), 0,
                '상승 도중 마스크가 있어야 이탈 시험이 의미 있다')
            pg.evaluate('deckGo(0)')
            pg.wait_for_timeout(300)
            self.assertEqual(pg.evaluate(
                "document.querySelectorAll('.ed-fx-mask').length"), 0,
                '이탈 시 진행 중 마스크가 제거돼야 한다')
            # 재방문: 새로 발화해 완주 뒤에도 래퍼가 정리된다
            pg.evaluate('deckGo(1,5)')
            pg.wait_for_timeout(1800)
            self.assertEqual(pg.evaluate(
                "document.querySelectorAll('.ed-fx-mask').length"), 0)
            self.assertEqual(pg.evaluate(
                "document.querySelectorAll('.rm-col')[2].children.length"), 4)
        finally:
            ctx.close()

    def test_rack_focus_settles_after_verdict(self):
        ctx = self._browser.new_context(
            viewport={'width': 1920, 'height': 1080})
        pg = ctx.new_page()
        pg.goto('file://' + str(build_mini()))
        pg.wait_for_timeout(2400)
        try:
            pg.evaluate('deckGo(4)')
            pg.wait_for_timeout(400)
            pg.evaluate("document.querySelector('.chk-o').click()")
            pg.wait_for_timeout(1400)
            self.assertEqual(pg.evaluate(
                "getComputedStyle(document.querySelector('.chk-why')).filter"),
                'none')
            self.assertEqual(pg.evaluate(
                "getComputedStyle(document.querySelector('.chk-q')).filter"),
                'none')
            self.assertEqual(pg.evaluate(
                "document.getAnimations().length"), 0)
        finally:
            ctx.close()


if __name__ == '__main__':
    unittest.main()
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