Skill: jiajiaoy/daily-movie (version 1.0.3)

--- name: daily-movie description: "Daily movie & TV recommendation — curated by genre, mood, or theme. One great watch per day with synopsis, streaming platform, and audience ratings." keywords: - 今天看什么 - 电影推荐 - 看什么电影 - 剧推荐 - 今晚看什么 - 每日电影 - 电影 - 剧集 - 好看的电影 - 值得看的剧 - 豆瓣高分 - IMDb - Netflix - 爱奇艺 - 优酷 - 腾讯视频 - 剧情片 - 喜剧 - 悬疑 - 爱情片 - 动作片 - 科幻 - 纪录片 - 动画 - 韩剧 - 美剧 - 日剧 - 国产剧 - 经典电影 - 新片推荐 - movie recommendation - what to watch - film of the day - Netflix recommendation - series recommendation - best movies - top rated - must watch - TV show - binge watch metadata: openclaw: runtime: node: ">=18" --- # 每日影视推荐 > 每日影视推荐 — 今日精选 · 评分推荐 · 观影指南 · 中英双语 ## 何时使用 - 用户说"今晚看什么""电影推荐""推荐部电影" - 用户说"what to watch""movie recommendation" - 用户说"好看的剧""最近有什么新片" - 用户说"Netflix推荐""豆瓣高分""IMDb top" --- ## 推送管理 ```bash node scripts/push-toggle.js on <userId> node scripts/push-toggle.js on <userId> --morning 10:00 --evening 19:00 --channel feishu node scripts/push-toggle.js off <userId> node scripts/push-toggle.js status <userId> ``` 支持渠道：`telegram` / `feishu` / `slack` / `discord`

path: README.md
content: # Daily Movie — Movie & TV Recommendation Skill

> One curated film or series pick every day — synopsis, Douban + IMDb ratings, where to stream. Bilingual EN/CN.

[![clawhub](https://img.shields.io/badge/clawhub-daily--movie-blue)](https://clawhub.ai/skills/daily-movie)
[![openclaw](https://img.shields.io/badge/openclaw-skill-orange)](https://openclaw.ai)

An [OpenClaw](https://openclaw.ai) skill that recommends one movie and one TV series every day — with synopsis, Douban/IMDb ratings, platform availability, and a spoiler-free reason to watch. High open rate by design: everyone wants to know what to watch tonight.

---

## Features

- **Daily Pick** — 1 movie + 1 series per day, genre rotates by weekday
- **Ratings** — Douban + IMDb scores
- **Spoiler-Free** — Synopsis without plot reveals
- **Platform Guide** — Where to watch (Netflix, iQiyi, Youku, etc.)
- **Evening Pick** — Lighter recommendation for tonight + weekend preview
- **Bilingual** — Chinese and English

---

## Daily Push Schedule

| Push | Time | Content |
|------|------|---------|
| Morning | 10:00 | Today's movie + series recommendation |
| Evening | 19:00 | Tonight's watch + weekend new releases preview |

```bash
node scripts/push-toggle.js on <userId>
node scripts/push-toggle.js on <userId> --morning 10:00 --evening 19:00 --channel feishu
node scripts/push-toggle.js off <userId>
node scripts/push-toggle.js status <userId>
```

Supported channels: `telegram` / `feishu` / `slack` / `discord`

---

## Weekly Genre Rotation

| Day | Genre |
|-----|-------|
| Mon | 励志 Inspiring |
| Tue | 悬疑惊悚 Thriller |
| Wed | 爱情 Romance |
| Thu | 喜剧 Comedy |
| Fri | 动作科幻 Action/Sci-Fi |
| Sat | 经典名作 Classics |
| Sun | 家庭纪录片 Family/Documentary |

---

*MIT License · OpenClaw Skill*

## Keywords

movie recommendation · what to watch · film recommendation · daily movie · Netflix · Korean drama · 电影推荐 · 今天看什么 · 今晚看什么 · 豆瓣高分 · 剧推荐 · 看什么电影

---

Built for [OpenClaw](https://openclaw.ai) · Published on [clawhub.ai](https://clawhub.ai/skills/daily-movie)


path: _meta.json
content: {
  "slug": "daily-movie",
  "version": "1.0.0",
  "runtime": {
    "node": ">=18"
  },
  "ownerId": "kn79bebfnwg15sb0g7cj5z5nyd83gxh0"
}

path: package.json
content: {
  "name": "daily-movie",
  "version": "1.0.2",
  "description": "Daily movie & TV recommendation — curated by genre, mood, or theme. One great watch per day with synopsis, streaming platform, and audience ratings.",
  "engines": {
    "node": ">=18"
  },
  "license": "MIT"
}

path: scripts/evening-push.js
content: #!/usr/bin/env node
'use strict';
const fs=require('fs'),path=require('path');
const USERS_DIR=path.join(__dirname,'../data/users');
function sanitizeId(v){if(typeof v!=='string'||!/^[a-zA-Z0-9_-]{1,128}$/.test(v)){console.error('invalid userId');process.exit(1);}return v;}
function safeUserPath(u){const r=path.resolve(USERS_DIR,u+'.json');if(!r.startsWith(path.resolve(USERS_DIR)+path.sep)){console.error('illegal path');process.exit(1);}return r;}
function loadUser(u){const f=safeUserPath(u);return fs.existsSync(f)?JSON.parse(fs.readFileSync(f,'utf8')):{};}
const userId=sanitizeId(process.argv[2]||'default');
loadUser(userId);
const now=new Date();
const WEEKDAYS=['星期日','星期一','星期二','星期三','星期四','星期五','星期六'];
const wd=now.getDay();
const date=`${now.getFullYear()}-${String(now.getMonth()+1).padStart(2,'0')}-${String(now.getDate()).padStart(2,'0')}`;
const weekday=WEEKDAYS[wd];
const month=now.getMonth()+1;
const day=now.getDate();
const tomorrow_weekday=WEEKDAYS[(wd+1)%7];
console.log(`今晚看什么🎬今天是${date}。请推荐一部今晚适合的轻松影视：①今晚推荐（1部，标注时长+评分，附3句不剧透理由）②今晚不推荐看的类型（根据睡眠健康：避免恐怖/过于烧脑）③本周末值得期待的新片/新剧预告（搜索本周上映信息）④观影小仪式建议（零食/姿势/音量）。轻松愉快，像私人选片顾问。`);


path: scripts/morning-push.js
content: #!/usr/bin/env node
'use strict';
const fs=require('fs'),path=require('path');
const USERS_DIR=path.join(__dirname,'../data/users');
function sanitizeId(v){if(typeof v!=='string'||!/^[a-zA-Z0-9_-]{1,128}$/.test(v)){console.error('invalid userId');process.exit(1);}return v;}
function safeUserPath(u){const r=path.resolve(USERS_DIR,u+'.json');if(!r.startsWith(path.resolve(USERS_DIR)+path.sep)){console.error('illegal path');process.exit(1);}return r;}
function loadUser(u){const f=safeUserPath(u);return fs.existsSync(f)?JSON.parse(fs.readFileSync(f,'utf8')):{};}
const userId=sanitizeId(process.argv[2]||'default');
loadUser(userId);
const now=new Date();
const WEEKDAYS=['星期日','星期一','星期二','星期三','星期四','星期五','星期六'];
const wd=now.getDay();
const date=`${now.getFullYear()}-${String(now.getMonth()+1).padStart(2,'0')}-${String(now.getDate()).padStart(2,'0')}`;
const weekday=WEEKDAYS[wd];
const month=now.getMonth()+1;
const day=now.getDate();
const tomorrow_weekday=WEEKDAYS[(wd+1)%7];
console.log(`今天是${weekday}（${date}），请搜索并推荐今日精选影视。根据星期确定类型（周一励志/周二悬疑/周三爱情/周四喜剧/周五动作科幻/周六经典/周日家庭纪录片）。搜索相关推荐，选1部电影+1部剧集，每部含：①片名（中英）+年份+类型②豆瓣/IMDb评分③一句话吸引你看的理由（不剧透）④剧情简介（100字）⑤适合人群⑥在哪里看（平台）。中英双语，语气像朋友推荐。`);


path: scripts/push-toggle.js
content: #!/usr/bin/env node
'use strict';
const fs=require('fs'),path=require('path');
const SKILL='daily-movie',DEFAULT_MORNING='10:00',DEFAULT_EVENING='19:00';
const USERS_DIR=path.join(__dirname,'../data/users');
const ALLOWED_CH=new Set(['telegram','feishu','slack','discord']);
function sanitizeId(v){if(typeof v!=='string'||!/^[a-zA-Z0-9_-]{1,128}$/.test(v)){console.error('invalid userId');process.exit(1);}return v;}
function sanitizeTime(v,l){if(!/^\d{1,2}:\d{2}$/.test(v)){console.error('invalid '+l);process.exit(1);}const[h,m]=v.split(':').map(Number);if(h>23||m>59){console.error('invalid '+l);process.exit(1);}return{h,m};}
function safeUserPath(u){const r=path.resolve(USERS_DIR,u+'.json');if(!r.startsWith(path.resolve(USERS_DIR)+path.sep)){console.error('illegal path');process.exit(1);}return r;}
function loadUser(u){const f=safeUserPath(u);return fs.existsSync(f)?JSON.parse(fs.readFileSync(f,'utf8')):{};}
function saveUser(u,d){fs.mkdirSync(USERS_DIR,{recursive:true});fs.writeFileSync(safeUserPath(u),JSON.stringify(d,null,2),'utf8');}
function enablePush(userId,opts){
  userId=sanitizeId(userId);
  const user=loadUser(userId);
  const mt=opts.morning||user.morningTime||DEFAULT_MORNING;
  const et=opts.evening||user.eveningTime||DEFAULT_EVENING;
  const{h:mh,m:mm}=sanitizeTime(mt,'--morning');
  const{h:eh,m:em}=sanitizeTime(et,'--evening');
  const ch=opts.channel||user.channel||'telegram';
  if(!ALLOWED_CH.has(ch)){console.error('unsupported channel:'+ch);process.exit(1);}
  const sk=`agent:main:${ch}:direct:${userId}`;
  console.log('__OPENCLAW_CRON_ADD__:'+JSON.stringify({name:`${SKILL}-morning-${userId}`,cronExpr:`${mm} ${mh} * * *`,tz:'Asia/Shanghai',session:'isolated',sessionKey:sk,channel:ch,to:userId,announce:true,timeoutSeconds:180,message:`node ${path.join(__dirname,'morning-push.js')} ${userId}`}));
  console.log('__OPENCLAW_CRON_ADD__:'+JSON.stringify({name:`${SKILL}-evening-${userId}`,cronExpr:`${em} ${eh} * * *`,tz:'Asia/Shanghai',session:'isolated',sessionKey:sk,channel:ch,to:userId,announce:true,timeoutSeconds:180,message:`node ${path.join(__dirname,'evening-push.js')} ${userId}`}));
  saveUser(userId,{...user,morningTime:mt,eveningTime:et,channel:ch,pushEnabled:true,updatedAt:new Date().toISOString()});
  console.log(`\n✅ ${SKILL} 推送已开启\n⏰ 早推: ${mt}  🌙 晚推: ${et}  📡 渠道: ${ch}\n关闭: node push-toggle.js off ${userId}`);
}
function disablePush(userId){
  userId=sanitizeId(userId);
  console.log(`__OPENCLAW_CRON_RM__:${SKILL}-morning-${userId}`);
  console.log(`__OPENCLAW_CRON_RM__:${SKILL}-evening-${userId}`);
  saveUser(userId,{...loadUser(userId),pushEnabled:false,updatedAt:new Date().toISOString()});
  console.log(`✅ ${SKILL} 推送已关闭`);
}
function showStatus(userId){
  userId=sanitizeId(userId);
  const u=loadUser(userId);
  console.log(`\n📡 ${SKILL} — ${userId}\n状态: ${u.pushEnabled?'✅ 开启':'❌ 关闭'}  早推: ${u.morningTime||DEFAULT_MORNING}  晚推: ${u.eveningTime||DEFAULT_EVENING}  渠道: ${u.channel||'telegram'}\n`);
}
if(require.main!==module)return;
const[cmd,uid,...rest]=process.argv.slice(2);
if(!cmd||!uid){console.log('Usage: node push-toggle.js on|off|status <userId>');process.exit(1);}
const opts={};
const mi=rest.indexOf('--morning');if(mi!==-1)opts.morning=rest[mi+1];
const ei=rest.indexOf('--evening');if(ei!==-1)opts.evening=rest[ei+1];
const ci=rest.indexOf('--channel');if(ci!==-1)opts.channel=rest[ci+1];
if(cmd==='on')enablePush(uid,opts);
else if(cmd==='off')disablePush(uid);
else if(cmd==='status')showStatus(uid);
else{console.error('unknown cmd:'+cmd);process.exit(1);}


Security scan verdicts — ClawScan: clean | static analysis: clean | VirusTotal: clean | SkillSpector: suspicious (HIGH)