学习电影
grahama19702026-10-25查看 1034复制 1665
分析电影以提取电影摄影技术并将其存储到记忆中。
📘如何使用这个技能
- 1复制技能内容·点击上方「Copy SKILL.md」复制全部内容,或 Download 下载到本地
- 2打开你的 AI 客户端·支持 Claude Code、Trae、Cursor、ChatGPT、DeepSeek、Kimi 等任意 AI 助手
- 3粘贴为系统提示/知识文件·Claude Code:放入 .claude/skills/ 目录;普通对话:作为首条消息发送并说「请严格按这份技能文档执行」
- 4直接提出你的需求·AI 会按技能定义的工作流、格式和约束来处理,无需再解释背景
💡 提示:技能生效后,每次对话只需一句需求,AI 会按 SKILL.md 的流程执行。
SKILL.md2742 chars
--- name: learn-movie description: Analyze movies to extract cinematographic techniques and store them in memory. triggers: - learn movie - analyze film - cinematography extraction - movie analysis provides: - learn-movie composes: - task-monitor - agentic-evals disciplines: - data-engineering - content-creation --- # learn-movie TEACH Horus by analyzing actual movies. Extracts lighting, composition, emotional cues, and director style from video files. ## Features - **Scene Detection**: Automatically detects scene cuts using ffmpeg. - **VLM Analysis**: Uses Vision-Language Models (via `scillm`) to analyze keyframes. - **Memory Integration**: Stores learned patterns into the `horus-movies` collection. ## Usage ```bash # Analyze a video file /learn-movie analyze path/to/movie.mp4 # Analyze with specific director context /learn-movie analyze path/to/movie.mp4 --director "Ridley Scott" ``` ## Setup Requires `ffmpeg` installed. Uses `scillm` skill for VLM inference (e.g., `pixtral-12b`). ## Memory + Taxonomy Integration Follows the canonical `create-context/memory_integration.py` pattern with graceful degradation. ### Pre-hook: `recall_prior_analyses(movie_name, k=5)` - Recalls prior cinematographic analyses for the same movie before analysis begins - Surfaces previously learned techniques to avoid redundant storage - Enables cumulative learning across sessions ### Post-hook: `learn_analysis(movie_name, techniques, scenes, insights)` - Stores analysis snapshot (movie, date, technique counts, bridge tags) - Stores individual techniques (shot type, lighting, composition) - Stores scene-level insights for cross-movie pattern matching - Tags: `["learn_movie", movie_name] + bridges` ### Bridge Keywords (keyword fallback) | Bridge | Keywords | |--------|----------| | Precision | technique, frame, composition, symmetry, geometric, calculated | | Resilience | adaptation, creative, enduring, triumphant, recovery | | Fragility | inconsistency, discontinuity, fragile, delicate, breaking | | Corruption | distortion, decay, grotesque, horror, darkness | | Loyalty | devotion, sacrifice, bond, duty, honor | | Stealth | shadow, silhouette, hidden, subtle, muted | ### Graceful Degradation - Uses `try/except ImportError` at every hook callsite - Falls back to keyword-based bridge extraction when taxonomy module unavailable - All hooks are no-ops when `common.memory_client` is not importable ## File Structure | File | Purpose | |------|---------| | `SKILL.md` | This file | | `run.sh` | Execution entry point | | `sanity.sh` | Health check | | `orchestrator.py` | Main orchestrator (scene detect, VLM analyze, memorize) | | `memory_integration.py` | Memory + Taxonomy hooks (pre/post) |