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_diagram_variants.py

View on GitHub
#!/usr/bin/env python3
"""전체 슬라이드 조각 계열의 변형과 A단계 실행 계약을 검사한다.

번호가 같은 조각 파일은 한 계열로 발견한다(표지처럼 여러 파일인 경우 포함).
02·17·20·30은 병행 B단계이므로 현재 개수만 보존하며, B 완료 뒤
EDU_DECK_ALL_VARIANTS_COMPLETE=1로 실행하면 모든 계열에 5개를 요구한다.
화면 인용(32)은 새 아키타입 대신 mapping/compare-2 호스트를 쓴다.
픽셀 차이는 이 구조/동작 시험과 별도의 인쇄 캡처 검증이다.
"""
import os
import re
import sys
import tempfile
import unittest
from pathlib import Path

from bs4 import BeautifulSoup
from playwright.sync_api import sync_playwright

SHARED = Path(__file__).resolve().parents[1]
SNIPPETS = SHARED / 'assets' / 'snippets'
sys.path.insert(0, str(SHARED / 'scripts'))
from build_deck import build
from check_deck import launch

A_FAMILIES = {'15', '16', '19', '23', '24', '25', '26', '27', '28', '29', '32', '35', '36'}
PENDING_B = {'02': 1, '17': 2, '20': 4, '30': 2,
             # TASK-workflow-series: 계약상 계열당 2변형(22장).
             '42': 2, '43': 2, '44': 2, '45': 2, '46': 2, '47': 2,
             '48': 2, '49': 2, '50': 2, '51': 2, '52': 2,
             # P3 visual-absorb: 판정(53)=3변형 · 실물 진단(54)=1변형
             '53': 3, '54': 1,
             # TASK-style-absorb: 창 프레임(55)=1변형 — 새 아키타입 대신 도식 호스트를 쓴다
             '55': 1,
             # TASK-form-fit: 관문 게이트 체인(56)=1변형 — mapping 호스트 재사용(55 선례)
             '56': 1}
LEGACY_VARIANTS = {'15': {'tour', 'cases'}, '19': {'form', 'rules'}, '32': {None, 'screens'}}
A_SIGNATURE = {'15': 'spotlight-pin', '16': 'selection-track', '19': 'outline-then-fill',
               '23': 'choice-verdict', '24': 'classification-lanes', '25': 'judgment-stamp',
               '26': 'spotlight-focus', '27': 'commitment-stamps', '28': 'evidence-align',
               '29': 'summary-convergence', '32': 'paired-connection', '35': 'grid-wave',
               '36': 'accumulating-pieces'}


def families():
    result = {}
    for path in sorted(SNIPPETS.glob('[0-9][0-9]-*.html')):
        family = path.name[:2]
        text = path.read_text(encoding='utf-8')
        for sec in BeautifulSoup(text, 'html.parser').select('section.slide'):
            result.setdefault(family, []).append((path, sec))
    return result


def new_a_variants(groups):
    for family in sorted(A_FAMILIES):
        legacy = LEGACY_VARIANTS.get(family, {None})
        for path, sec in groups[family]:
            if sec.get('data-variant') not in legacy:
                yield family, path, sec


class DiagramVariantsTest(unittest.TestCase):
    @classmethod
    def setUpClass(cls):
        cls.groups = families()

    def test_each_discovered_family_has_the_required_variants(self):
        self.assertEqual(set(self.groups), {f'{n:02}' for n in range(1, 57)})
        all_complete = os.environ.get('EDU_DECK_ALL_VARIANTS_COMPLETE') == '1'
        for family, variants in self.groups.items():
            required = 5 if all_complete else PENDING_B.get(family, 5)
            with self.subTest(family=family):
                self.assertGreaterEqual(len(variants), required)

    def test_variants_keep_family_archetypes_and_unique_ids(self):
        for family, variants in self.groups.items():
            names = set()
            for path, sec in variants:
                variant = sec.get('data-variant')
                with self.subTest(family=family, variant=variant):
                    self.assertNotIn(variant, names)
                    names.add(variant)
                    if family == '01': expected = {'cover'}
                    elif family == '22': expected = {'worked-example'}
                    elif family == '32': expected = {'mapping', 'compare-2'}
                    elif family in {'55', '56'}: expected = {'mapping'}
                    else: expected = {path.stem[3:]}
                    self.assertIn(sec.get('data-archetype'), expected)

    def test_variant_structure_contracts(self):
        for family, variants in self.groups.items():
            for path, sec in variants:
                with self.subTest(family=family, variant=sec.get('data-variant')):
                    self.assertIn('«', str(sec))
                    self.assertIsNotNone(sec.select_one('aside.notes'))
                    for tag in ('script', 'link', 'animate'):
                        self.assertIsNone(sec.find(tag), tag)
                    if family != '32': self.assertIsNone(sec.find('img'))
                    else:
                        for image in sec.select('.screen-cite img'):
                            self.assertIn('«사용자가 제공한 화면 이미지', image.get('src', ''))
                            self.assertTrue(image.get('alt'))
                    text = path.read_text(encoding='utf-8')
                    self.assertNotIn('@keyframes', text)
                    self.assertNotIn('animation:', text)

    def test_step_attributes_are_numeric(self):
        for family, variants in self.groups.items():
            for _, sec in variants:
                for attr in ('data-step', 'data-add', 'data-only', 'data-lit', 'data-until'):
                    for el in sec.select(f'[{attr}]'):
                        with self.subTest(family=family, variant=sec.get('data-variant'), attr=attr):
                            self.assertRegex(el[attr], r'^\d+$')

    def test_chart_variants_keep_source_convention(self):
        for family in ('33', '34'):
            for _, sec in self.groups[family]:
                self.assertTrue(sec.select('[data-src]'), family)
                for el in sec.select('[data-src]'):
                    self.assertRegex(el['data-src'], r'^(«F\d+»|F\d+)$')

    def test_aria_labels_on_svg_diagrams(self):
        for family, variants in self.groups.items():
            for _, sec in variants:
                for svg in sec.select('svg.dg'):
                    if svg.get('aria-hidden') != 'true':
                        self.assertTrue(svg.get('aria-label'), (family, sec.get('data-variant')))

    def test_new_variants_steps_and_source_pairs(self):
        added = list(new_a_variants(self.groups))
        self.assertGreaterEqual(len(added), 49)
        for family, _, sec in added:
            with self.subTest(family=family, variant=sec.get('data-variant')):
                steps = {int(el['data-step']) for el in sec.select('[data-step]')}
                self.assertTrue(2 <= len(steps) <= 4, steps)
                if family == '28':
                    lines = sec.select('.src-list li[data-src]')
                    self.assertGreaterEqual(len(lines), 2)
                    for line in lines:
                        self.assertRegex(line['data-src'], r'^F\d+$')
                        self.assertGreaterEqual(len(line.select('a[href]')), 2)

    def test_new_variants_actual_motion_and_interaction(self):
        added = list(new_a_variants(self.groups))
        with tempfile.TemporaryDirectory(prefix='edu-snippet-variants-') as d:
            root = Path(d)
            srcs = []
            # Self-authored single-pixel PNG is only a browser-test fixture.
            image = ('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwC'
                     'AAAAC0lEQVR42mP8/x8AAwMCAO+/aN8AAAAASUVORK5CYII=')
            for i, (_, _, original) in enumerate(added):
                sec = BeautifulSoup(str(original), 'html.parser').select_one('section.slide')
                for el in sec.select('.screen-cite img'): el['src'] = image
                path = root / f'{i:03}.html'
                path.write_text(str(sec), encoding='utf-8')
                srcs.append(path)
            out = root / 'deck.html'
            build('변형 실행 검증', srcs, [SHARED / 'assets/css'], [SHARED / 'assets/icons'], out)
            with sync_playwright() as pw:
                browser = launch(pw)
                try:
                    page = browser.new_page(viewport={'width': 1920, 'height': 1080})
                    errors = []
                    page.on('pageerror', lambda e: errors.append(str(e)))
                    page.goto(out.as_uri())
                    page.evaluate("""() => { window.variantEvents = []; document.addEventListener('edumotion',
                        e => window.variantEvents.push({slide:e.detail.slide, sig:e.detail.sig})); }""")
                    for i, (family, _, sec) in enumerate(added):
                        with self.subTest(family=family, variant=sec.get('data-variant')):
                            slide = page.locator('#stage > .slide').nth(i)
                            page.evaluate('i => deckGo(i,0)', i)
                            page.wait_for_timeout(40)
                            if family in {'23', '24', '25'}:
                                before = slide.locator('[data-step="2"]').evaluate_all(
                                    '(es)=>es.filter(e=>getComputedStyle(e).visibility!=="hidden" && getComputedStyle(e).display!=="none").length')
                                self.assertEqual(before, 0, '정답 공개 전 단계에 답이 보임')
                                if family == '23':
                                    styles = slide.locator('.opt').evaluate_all(
                                        '(es)=>es.map(e=>[e.classList.contains("lit"),getComputedStyle(e).backgroundColor,getComputedStyle(e).borderColor])')
                                    self.assertTrue(all(not item[0] for item in styles))
                                    self.assertEqual(len({tuple(item[1:]) for item in styles}), 1)
                            page.evaluate('i => deckGo(i,1)', i)
                            page.wait_for_timeout(40)
                            page.evaluate('i => deckGo(i,2)', i)
                            page.wait_for_timeout(40)
                            if family == '23':
                                self.assertTrue(slide.locator('.opt.right.lit').count())
                            if family == '35':
                                for chip in slide.locator('.expl-chip').all():
                                    wanted = chip.get_attribute('data-x')
                                    chip.click()
                                    self.assertEqual(slide.locator('.expl-state.on').get_attribute('data-x'), wanted)
                            if family == '36':
                                for opener in slide.locator('.dsheet-open').all():
                                    wanted = opener.get_attribute('data-open')
                                    opener.click()
                                    self.assertEqual(slide.locator('.dsheet-panel.on').get_attribute('data-sheet'), wanted)
                                    page.keyboard.press('Escape')
                                    self.assertEqual(slide.locator('.dsheet-panel.on').count(), 0)
                            if family == '27':
                                todo = slide.locator('.todo').first
                                todo.click()
                                self.assertIn('done', todo.get_attribute('class').split())
                    events = page.evaluate('window.variantEvents')
                    for i, (family, _, sec) in enumerate(added):
                        self.assertTrue(any(e['slide'] == i and e['sig'] == A_SIGNATURE[family] for e in events),
                                        (family, sec.get('data-variant'), A_SIGNATURE[family]))
                    page.emulate_media(media='print')
                    for i, (family, _, sec) in enumerate(added):
                        if family not in {'35', '36'}: continue
                        selector = '.expl-state' if family == '35' else '.dsheet-panel'
                        result = page.locator('#stage > .slide').nth(i).locator(selector).evaluate_all(
                            '(es)=>es.map(e=>({display:getComputedStyle(e).display,visibility:getComputedStyle(e).visibility,bottom:e.getBoundingClientRect().bottom,slide:e.closest(".slide").getBoundingClientRect().bottom}))')
                        self.assertTrue(result, (family, sec.get('data-variant')))
                        for item in result:
                            self.assertNotEqual(item['display'], 'none')
                            self.assertNotEqual(item['visibility'], 'hidden')
                            self.assertLessEqual(item['bottom'], item['slide'] + 1, (family, sec.get('data-variant')))
                    page.emulate_media(media='screen')
                    page.evaluate('studyApi.selfstudy(true)')
                    for i, (family, _, sec) in enumerate(added):
                        if family not in {'23', '24', '25', '35', '36'}: continue
                        page.evaluate('i => deckGo(i,0)', i)
                        if family in {'23', '24', '25'}:
                            leaked = page.locator('#stage > .slide').nth(i).locator('[data-step="2"]').evaluate_all(
                                '(es)=>es.filter(e=>getComputedStyle(e).visibility!=="hidden" && getComputedStyle(e).display!=="none").length')
                            self.assertEqual(leaked, 0, (family, sec.get('data-variant'), '자습 중 정답 조기 공개'))
                        else:
                            selector = '.expl-state' if family == '35' else '.dsheet-panel'
                            result = page.locator('#stage > .slide').nth(i).locator(selector).evaluate_all(
                                '(es)=>es.map(e=>[getComputedStyle(e).display,getComputedStyle(e).visibility])')
                            self.assertTrue(result)
                            self.assertTrue(all(x[0] != 'none' and x[1] != 'hidden' for x in result), (family, sec.get('data-variant')))
                    self.assertFalse(errors, errors)
                finally:
                    browser.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