johnfkoo951/cmdspace-plugins / plugins/lecture-asset/skills/lecture-asset
lecture-asset
Verified강의·세미나·워크숍이 끝난 뒤 녹취 전사본과 AI 요약을 옵시디언 볼트의 '강의 자산'으로 바꾸는 후처리 스킬. 강의 기록 허브(요약·인덱스) + 원문을 그대로 보존한 전사본 + 주장 하나씩 나눈 지식 카드(원소화) + 기존 노트와의 크로스링크(상호 연결) + Obsidian Bases 조회 표까지 한 번에 만들고, 읽기 전용 마감 게이트로 누락을 검사한다. 트리거: '강의 자산화', '강의 자산으로 만들어줘', '전사본 정리해줘', '강의 기록 만들어줘', '이 강의 카드로 나눠줘', '녹취 원소화', 'lecture asset', 'turn this talk transcript into notes', 'atomize this lecture'. 강의 전 기획·자료 준비가 아니라 강의가 끝난 뒤(post-lecture) 전용.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 22.0 KB |
| assets/Lecture.base | other | 1.5 KB |
| scripts/check_asset_run.pyexecutable | script | 8.8 KB |
| scripts/check_table_wikilinks.pyexecutable | script | 8.3 KB |
| scripts/test_asset_run.py | script | 4.6 KB |
| scripts/test_table_wikilinks.py | script | 4.9 KB |
scripts/test_table_wikilinks.py
View on GitHub#!/usr/bin/env python3
import unittest
from pathlib import Path
from check_table_wikilinks import inspect_text,skip_file,protected_lines,format_wikilink
class TableLinks(unittest.TestCase):
def kinds(self,s):return {x['kind'] for x in inspect_text(s)['issues']}
def table(self,link):return '| 카드 | 처리 |\n|---|---|\n| '+link+' | 누적 |\n'
def test_plain_alias_fails(self):self.assertIn('unescaped_alias_pipe',self.kinds(self.table('[[A|제목]]')))
def test_escaped_alias_passes(self):self.assertFalse(self.kinds(self.table(r'[[A\|제목]]')))
def test_header_phantom_detected(self):self.assertIn('table_cell_count',self.kinds('| 카드 | 처리 | |\n|---|---|---|\n| [[A\\|제목]] | 누적 |\n'))
def test_non_table_unchanged(self):self.assertFalse(self.kinds('문장 [[A|제목]]\n\n## [[B|제목]]\n'))
def test_frontmatter_protected(self):self.assertFalse(self.kinds('---\nlinks: "[[A|B]]"\n---\n'))
def test_fence_protected(self):self.assertFalse(self.kinds('```markdown\n'+self.table('[[A|B]]')+'```\n'))
def test_tilde_fence_protected(self):self.assertFalse(self.kinds('~~~\n'+self.table('[[A|B]]')+'~~~\n'))
def test_long_fence_with_short_run(self):self.assertFalse(self.kinds('````markdown\n```\n'+self.table('[[A|B]]')+'```\n````\n'))
def test_raw_marker(self):self.assertFalse(self.kinds('<!-- RAW ORIGINAL BEGIN -->\n'+self.table('[[A|B]]')+'<!-- RAW ORIGINAL END -->\n'))
def test_after_raw_is_checked(self):self.assertIn('unescaped_alias_pipe',self.kinds('<!-- RAW ORIGINAL BEGIN -->\nraw\n<!-- RAW ORIGINAL END -->\n'+self.table('[[A|B]]')))
def test_raw_heading(self):self.assertFalse(self.kinds('## Raw Original Content\n'+self.table('[[A|B]]')))
def test_fake_raw_heading_inside_fence(self):self.assertIn('unescaped_alias_pipe',self.kinds('```\n## Raw Original Content\n```\n\n'+self.table('[[A|B]]')))
def test_blockquote_table(self):self.assertIn('unescaped_alias_pipe',self.kinds(''.join('> '+x for x in self.table('[[A|B]]').splitlines(keepends=True))))
def test_blockquote_escaped(self):self.assertFalse(self.kinds(''.join('> '+x for x in self.table(r'[[A\|B]]').splitlines(keepends=True))))
def test_one_column(self):self.assertIn('unescaped_alias_pipe',self.kinds('| 카드 |\n|---|\n| [[A|B]] |\n'))
def test_single_brackets_filename(self):self.assertFalse(self.kinds(self.table('[[notes-28-[draft] sample items]]')))
def test_nested_markdown_link_label(self):self.assertFalse(self.kinds(self.table('[[Camp] 설명](https://example.org)')))
def test_heading_and_block(self):self.assertFalse(self.kinds(self.table(r'[[A#^block\|제목]]')))
def test_embed_width(self):self.assertIn('unescaped_alias_pipe',self.kinds(self.table('![[figure.png|300]]')))
def test_escape_parity(self):self.assertIn('unescaped_alias_pipe',self.kinds(self.table(r'[[A\\|B]]')))
def test_multiple_links(self):self.assertEqual(sum(x['kind']=='unescaped_alias_pipe' for x in inspect_text(self.table('[[A|B]] / [[C|D]]'))['issues']),2)
def test_inline_literal_not_active(self):self.assertNotIn('unescaped_alias_pipe',self.kinds(self.table('`[[A|B]]`')))
def test_unbalanced_link(self):self.assertIn('unbalanced_or_nested_wikilink',self.kinds(self.table('[[A')))
def test_missing_close(self):self.assertIn('unbalanced_or_nested_wikilink',self.kinds(self.table('B]]')))
def test_fm_raw_type(self):self.assertTrue(skip_file(Path('/v/x.md'),Path('/v'),'---\ntype: transcript\n---\n'))
def test_raw_note_name(self):self.assertTrue(skip_file(Path('/v/2026 X - AI 요약.md'),Path('/v'),'text'))
def test_exclude_prefix(self):self.assertTrue(skip_file(Path('/v/Refs/a.md'),Path('/v'),'text',('Refs/',)))
def test_no_default_exclude(self):self.assertIsNone(skip_file(Path('/v/Refs/a.md'),Path('/v'),'text'))
def test_crlf(self):self.assertFalse(self.kinds(self.table(r'[[A\|B]]').replace('\n','\r\n')))
def test_source_is_not_mutated(self):
s=self.table('[[A|B]]');before=s;inspect_text(s);self.assertEqual(s,before)
def test_format_table(self):self.assertEqual(format_wikilink('A#Heading','Title',in_table=True),r'[[A#Heading\|Title]]')
def test_format_prose(self):self.assertEqual(format_wikilink('A','Title'),'[[A|Title]]')
def test_format_embed(self):self.assertEqual(format_wikilink('figure.png','300',in_table=True,embed=True),r'![[figure.png\|300]]')
def test_format_rejects_padding(self):
with self.assertRaises(ValueError):format_wikilink('A ','Title',in_table=True)
def test_triple_escape_is_not_clean(self):self.assertIn('overescaped_alias_separator',self.kinds(self.table(r'[[A\\\|B]]')))
def test_double_escape_is_not_clean(self):self.assertIn('overescaped_alias_separator',self.kinds(self.table(r'[[A\\|B]]')))
def test_format_rejects_escaped_target(self):
with self.assertRaises(ValueError):format_wikilink('A\\','B',in_table=True)
def test_single_escape_not_overescaped(self):self.assertNotIn('overescaped_alias_separator',self.kinds(self.table(r'[[A\|B]]')))
if __name__=='__main__':unittest.main()
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |