Skip to content

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) 전용.

FileKindSize
SKILL.mdskill md22.0 KB
assets/Lecture.baseother1.5 KB
scripts/check_asset_run.pyexecutablescript8.8 KB
scripts/check_table_wikilinks.pyexecutablescript8.3 KB
scripts/test_asset_run.pyscript4.6 KB
scripts/test_table_wikilinks.pyscript4.9 KB

scripts/test_asset_run.py

View on GitHub
#!/usr/bin/env python3
"""Regression fixtures for check_asset_run.py: each test reproduces a miss from a real run."""
import os,subprocess,sys,tempfile,time,unittest
from pathlib import Path
HERE=Path(__file__).parent
HUB='Outputs/Lectures/2026-01-01-sample/2026-01-01 샘플 행사 - 제목.lecture.md'
EV='Assets/Lecture Cards/2026-01-01 샘플 행사'
CARD=EV+'/주장은 문장으로 쓴다.md'
CORR='Assets/Transcription/corrections.yaml'
GOOD_CARD='---\ntype: lecture-chunk\nlectures:\n  - "[[2026-01-01 샘플 행사 - 제목.lecture]]"\n---\n# 주장\n> [!quote]+ 발췌\n\n## 연결\n- [[공통-01-원소화-기준]]\n'

class Gate(unittest.TestCase):
 def run_gate(self,files,extra=(),skill_age=None):
  with tempfile.TemporaryDirectory() as d:
   base=Path(d);root=base/'Main';(base/'Wiki/Concepts').mkdir(parents=True);(base/'Wiki/Concepts/Concept.md').write_text('x')
   skill=base/'SKILL.md';skill.write_text('x')
   if skill_age is not None:os.utime(skill,(time.time()-skill_age,)*2)
   base_files={HUB:'---\ntranscript: "[[t]]"\n---\n## 회고\n[[09-회고]]\n',CARD:GOOD_CARD,
    'Assets/Lecture Cards/_Shared/공통-01-원소화-기준.md':'x','Outputs/Lectures/2026-01-01-sample/09-회고.md':'x',
    'Outputs/Lectures/2026-01-01-sample/t.md':'x',CORR:'# Last updated: 2026-01-02\n# 2026-01-02 추가 — x\n'}
   base_files.update(files)
   for k,v in base_files.items():
    f=root/k;f.parent.mkdir(parents=True,exist_ok=True);f.write_text(v)
   cmd=[sys.executable,str(HERE/'check_asset_run.py'),'--root',str(root),'--hub',HUB,'--cards-dir',EV,'--skill-file',str(skill),*extra]
   r=subprocess.run(cmd,capture_output=True,text=True,cwd=root)
   return r.returncode,r.stdout
 def test_clean_run_passes(self):self.assertEqual(self.run_gate({})[0],0)
 def test_card_without_shared_asset_fails(self):
  code,out=self.run_gate({CARD:GOOD_CARD.replace('[[공통-01-원소화-기준]]','[[09-회고]]')});self.assertEqual(code,1);self.assertIn('shared card library',out)
 def test_link_to_other_lecture_card_counts(self):
  other='Assets/Lecture Cards/2025-12-01 이전 행사/위임은 아는 일에만 성립한다.md'
  code,out=self.run_gate({other:'x',CARD:GOOD_CARD.replace('[[공통-01-원소화-기준]]','[[위임은 아는 일에만 성립한다]]')});self.assertEqual(code,0,out)
 def test_explicit_shared_narrows_library(self):
  other='Assets/Lecture Cards/2025-12-01 이전 행사/위임은 아는 일에만 성립한다.md'
  code,out=self.run_gate({other:'x',CARD:GOOD_CARD.replace('[[공통-01-원소화-기준]]','[[위임은 아는 일에만 성립한다]]')},['--shared','Assets/Lecture Cards/_Shared']);self.assertEqual(code,1)
 def test_missing_links_section_fails(self):
  code,out=self.run_gate({CARD:GOOD_CARD.replace('## 연결','## 메모')});self.assertIn('links) section',out)
 def test_english_links_heading_passes(self):self.assertEqual(self.run_gate({CARD:GOOD_CARD.replace('## 연결','## Links')})[0],0)
 def test_wiki_uri_wrong_path_fails(self):
  code,out=self.run_gate({CARD:GOOD_CARD+'[w](obsidian://open?vault=Wiki&file=Concept)\n'});self.assertIn('URI target missing',out)
 def test_wiki_uri_right_path_passes(self):
  code,out=self.run_gate({CARD:GOOD_CARD+'[w](obsidian://open?vault=Wiki&file=Concepts%2FConcept)\n'});self.assertEqual(code,0,out)
 def test_ambiguous_basename_fails(self):
  code,out=self.run_gate({'Outputs/Lectures/other/09-회고.md':'y'});self.assertIn('path-qualified',out)
 def test_hub_without_retro_fails(self):
  code,out=self.run_gate({HUB:'---\ntranscript: "[[t]]"\n---\n본문\n'});self.assertIn('retrospective',out)
 def test_stale_corrections_header_fails(self):
  code,out=self.run_gate({CORR:'# Last updated: 2026-01-01\n# 2026-01-02 추가 — x\n'},['--corrections',CORR]);self.assertIn('bump',out)
 def test_corrections_not_checked_unless_given(self):self.assertEqual(self.run_gate({CORR:'# Last updated: 2026-01-01\n# 2026-01-02 추가 — x\n'})[0],0)
 def test_skill_changed_mid_run_fails(self):
  code,out=self.run_gate({},['--started-at','2000-01-01T00:00']);self.assertIn('changed during the run',out)
 def test_skill_unchanged_passes(self):
  self.assertEqual(self.run_gate({},['--started-at','2099-01-01T00:00'],skill_age=60)[0],0)
 def test_raw_not_preserved_fails(self):
  with tempfile.NamedTemporaryFile('w',suffix='.txt',delete=False) as f:f.write('[00:01] 원문 그대로')
  try:
   code,out=self.run_gate({'Outputs/Lectures/2026-01-01-sample/t.md':'[00:01] 다듬은 원문'},['--preserve',f.name+'::Outputs/Lectures/2026-01-01-sample/t.md'])
   self.assertIn('NOT preserved',out)
  finally:os.unlink(f.name)
if __name__=='__main__':unittest.main()
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
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: 194kUpdated Claude CodeCodexVerifiedInstall