SkillAtlasSkill 详情

add

This is an agent skill suite (9 atomic /command skills) + CLI for Tongji Look (look.

审核状态:已审核Quality 80Security 80

复制安装命令

用 Codex 或 Claude 安装复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它先审查 Skill 页面再帮你安装。

复制前请先查看来源、License 和安全提示。

项目 README

来源文件:README.md

抓取于 2026年7月29日

English | 中文

MIT License Version 1.1.1

This is an agent skill suite (9 atomic /command skills) + CLI for Tongji Look (look.tongji.edu.cn):

  • login via Tongji IAM SSO (Playwright),
  • list courses (recent list or full search),
  • transcribe a lecture to SRT + TXT,
  • generate a lecture timeline outline (*_timeline.txt) from SRT (agent-generated, Simplified Chinese),
  • download lecture slide snapshots (filename includes snapshot time),
  • then let the current agent write a Markdown study note from transcript + slide images.

Commands

CommandDescription
/setupConfigure credentials, check dependencies (Python, Node.js, ffmpeg, vision-support, TeX), set workspace
/listList courses, search by keyword, interactive selection
/transTranscribe one lecture to SRT + TXT; optionally download slides in parallel
/noteGenerate study notes + timeline outline from transcript + slides
/addImport supplementary materials (PDF, PPTX, DOCX) into a lecture session
/wikiBuild and locally serve the static course knowledge base
/pageDeploy the built course wiki to GitHub Pages via gh CLI
/cheatsheetGenerate A4 cheat sheet (LaTeX or HTML) from course notes
/ralphtransBatch transcribe all lectures in a course with checkpoint/resume

Install

Recommended: npx skills

If your agent supports the skills protocol:

npx skills install https://github.com/walkerkiller/look-tongji-notes

Claude Code Marketplace

In Claude Code:

/plugin marketplace add https://github.com/walkerkiller/look-tongji-notes
/plugin install look-tongji-notes

Other Platforms

PlatformHow
Claude CodeMarketplace (above) or point plugin root to this repo
Codex CLI.codex-plugin/plugin.json → ./skills/
Cursor.cursor-plugin/plugin.json → ./skills/
Gemini CLI / OpenClaw / OpenCode / Hermes Agentplugin.json → ./skills/

Usage (CLI)

<SKILL_DIR> is the folder that contains SKILL.md.

Setup credentials (recommended):

python "<SKILL_DIR>/../../scripts/look_tongji.py" setup

List recent courses:

python "<SKILL_DIR>/../../scripts/look_tongji.py" list

Search courses by name (recommended for accuracy, calls get_all_courses internally):

python "<SKILL_DIR>/../../scripts/look_tongji.py" list --all --query "<COURSE_NAME_KEYWORD>"

Transcript only (transcribe, aliases transcript / trans):

python "<SKILL_DIR>/../../scripts/look_tongji.py" transcribe --lecture-url "<LECTURE_URL>"

Combined mode (note, runs transcript + slide in parallel by default):

python "<SKILL_DIR>/../../scripts/look_tongji.py" note --lecture-url "<LECTURE_URL>"

Note style (affects how the generated note is formatted):

python "<SKILL_DIR>/../../scripts/look_tongji.py" note --lecture-url "<LECTURE_URL>" --note-style dialogue

Supports standard (lecture notes, default) and dialogue (Q&A format).

[!TIP] The CLI detects lectures shorter than 1 hour and prints a non-blocking warning: [Warning] 课时不足1小时 — suggesting a retry, as very short lectures may indicate an incomplete recording or playback error.

Download slide snapshots for a lecture:

python "<SKILL_DIR>/../../scripts/look_tongji.py" slide --lecture-url "<LECTURE_URL>"

If throttling is suspected, reduce concurrency:

python "<SKILL_DIR>/../../scripts/look_tongji.py" slide --course-id "<COURSE_ID>" --sub-id "<SUB_ID>" --concurrency 2 --retries 5

In the /note workflow, the agent generates a timeline outline after the SRT subtitle file is produced:

  • File: ./tongji-output/<course_id>_<sub_id>_timeline.txt
  • One line per segment (Simplified Chinese), format: Start-Over:Stage Main Content
    • Example: 00:00-05:30:Course Orientation and Assessment Description
  • Skip only if the user explicitly says: no outline / no timeline.

Artifacts are written to the configured course-wiki workspace by default.

Agent Note

When a user says /setup / /list / /trans / /note / /wiki / /add / /page / /cheatsheet / /ralphtrans, follow the corresponding skills/<name>/SKILL.md and run the matching CLI commands in scripts/look_tongji.py. For /note, default to running transcript + slide download in parallel; only skip slide download when the user explicitly asks not to download slides/PPT. When writing notes, use both transcript output and slide images by default. If the user provides a course name, prefer list --all --query ... to avoid missing courses that are not in the recent list.

After notes are generated or updated, rebuild and preview the site with:

python "<SKILL_DIR>/../../scripts/look_tongji.py" index
python "<SKILL_DIR>/../../scripts/look_tongji.py" build
python "<SKILL_DIR>/../../scripts/look_tongji.py" serve --port 8765

The generated workspace can also become the user's own GitHub Pages repository. It includes:

  • llmwiki/
  • index.py
  • build.sh
  • serve.sh
  • .github/workflows/wiki-checks.yml
  • .github/workflows/pages.yml

Notice / Compliance

[!CAUTION] It is strongly recommended to set your Tongji account/password via the CLI (setup) before asking the agent to generate notes. Do not paste passwords into chat.

[!NOTE]

  • Inspiration and parts of the code are from: Fudan_iCourse_Subscriber
  • This project is intended for personal learning and review only, and for technical communication. It does not save full video files by default.
  • Users must comply with the relevant platform rules and school policies. Any misuse (including re-distribution of copyrighted course videos/audios) is the user's responsibility.
  • When logging in outside the campus network (or without Tongji VPN), enhanced authentication may be triggered. Keep this in mind if you run the agent remotely.

ToDo

  • Generate course knowledge base static site skeleton (courses, sessions, video, timeline, i18n controls).

  • Support login flows with enhanced authentication.

  • Add course-level LLM wiki + notes database foundation.

  • Build a standalone TUI/GUI tool for manual transcription/notes/Q&A.

Best practices

  • Generate subtitles + notes for the latest lecture:

    • /note help me generate subtitles and notes for the latest lecture
  • Generate subtitles + notes for a named course:

    • /note help me generate subtitles and notes for today's Advanced Mathematics lecture
  • List recent courses and let the user choose:

    • /trans list recent courses and let me choose one to process
  • If the agent cannot find the course:

    Use list --all --query "<keyword>" to search the full course list, or open the platform and copy the lecture URL.

    example_link

    then say: /trans here is the link,generate note

Contributing

Coming soon.

文档与办公

中风险

  • 来源需自行核对维护者身份。
  • 包含脚本或命令调用,安装前请复核。
  • 未检测到明显外部权限要求。
  • 未检测到高风险命令。
  • 扫描发现:1 条。

Codex — Git Clone 安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 克隆仓库:git clone https://github.com/WALKERKILLER/Look-Tongji-Notes.git
  3. 将 "skills/add" 文件夹复制到 Codex 的 skills 目录中。
  4. 重启 Codex 让新的 skill 生效。

Codex — 手动复制安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 从源仓库下载 SKILL.md 及相关文件。
  3. 在 Codex 的 skills 目录中创建新文件夹。
  4. 将所有 skill 文件复制到新文件夹中。
  5. 重启 Codex 让新的 skill 生效。

Claude Code — Git Clone 安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 克隆仓库:git clone https://github.com/WALKERKILLER/Look-Tongji-Notes.git
  3. 将 "skills/add" 文件夹复制到 Claude Code 的 skills 目录中。
  4. 重启 Claude Code 让新的 skill 生效。

Claude Code — 手动复制安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 从源仓库下载 SKILL.md 及相关文件。
  3. 在 Claude Code 的 skills 目录中创建新文件夹。
  4. 将所有 skill 文件复制到新文件夹中。
  5. 重启 Claude Code 让新的 skill 生效。

Cursor — Git Clone 安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 克隆仓库:git clone https://github.com/WALKERKILLER/Look-Tongji-Notes.git
  3. 将 "skills/add" 文件夹复制到 Cursor 的 skills 目录中。
  4. 重启 Cursor 让新的 skill 生效。

Cursor — 手动复制安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 从源仓库下载 SKILL.md 及相关文件。
  3. 在 Cursor 的 skills 目录中创建新文件夹。
  4. 将所有 skill 文件复制到新文件夹中。
  5. 重启 Cursor 让新的 skill 生效。

GitHub Copilot — Git Clone 安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 克隆仓库:git clone https://github.com/WALKERKILLER/Look-Tongji-Notes.git
  3. 将 "skills/add" 文件夹复制到 GitHub Copilot 的 skills 目录中。
  4. 重启 GitHub Copilot 让新的 skill 生效。

GitHub Copilot — 手动复制安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 从源仓库下载 SKILL.md 及相关文件。
  3. 在 GitHub Copilot 的 skills 目录中创建新文件夹。
  4. 将所有 skill 文件复制到新文件夹中。
  5. 重启 GitHub Copilot 让新的 skill 生效。

Windsurf — Git Clone 安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 克隆仓库:git clone https://github.com/WALKERKILLER/Look-Tongji-Notes.git
  3. 将 "skills/add" 文件夹复制到 Windsurf 的 skills 目录中。
  4. 重启 Windsurf 让新的 skill 生效。

Windsurf — 手动复制安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 从源仓库下载 SKILL.md 及相关文件。
  3. 在 Windsurf 的 skills 目录中创建新文件夹。
  4. 将所有 skill 文件复制到新文件夹中。
  5. 重启 Windsurf 让新的 skill 生效。
查看 SKILL.md 原文
name: add
description: "Add supplementary materials (PDF, PPTX, DOCX, images) to a lecture session. Converts to Markdown via MarkItDown and indexes into the course wiki — without triggering transcription or slide download."
license: MIT
metadata:
  author: WALKERKILLER
  version: "1.1"

Add Materials

Attach supplementary materials to a lecture session.

When to Use

  • User says /add or "add this material to the course".
  • After transcribing a lecture, adding additional PDFs/PPTs/docs.
  • User wants materials indexed into the wiki without re-running transcription.

Workflow

  1. Import materials:
python "<SKILL_DIR>/../../scripts/look_tongji.py" add \
  --course-id "<ID>" --sub-id "<ID>" \
  --material "handout=/path/to/file.pdf"
  1. The CLI copies files into the session's materials/<name>/ directory.
  2. MarkItDown auto-converts supported formats to Markdown.
  3. The course wiki index is updated automatically.

Supported Formats

  • PDF (.pdf), PPTX (.pptx), DOCX (.docx) — via MarkItDown
  • Images (.png, .jpg, .webp) — copied as-is
  • Text/Code (.txt, .md, .py, .js) — copied as-is

Difference from /note --material

/add only imports materials + updates the index. It does NOT trigger transcription or slide download.

Where <SKILL_DIR> Points

<SKILL_DIR> is the directory containing this SKILL.md. Shared scripts (look_tongji.py, timeline_tools.py, tongji_backend/) and references live two levels up in the repository root (<SKILL_DIR>/../../scripts/ and <SKILL_DIR>/../../references/).

发现问题?提交给管理员复核

评分:

评论 (0)

暂无评论,成为第一个评论者吧!