mirror of
https://github.com/tiennm99/miti99.git
synced 2026-09-18 20:19:41 +00:00
Extract newsletter scripts to a neutral scripts/newsletter/ engine and add side-by-side support for all three AI coding tools off one source of truth. - Move 9 scripts + substack config from .claude/skills/**/scripts to scripts/newsletter/ (history preserved); fix PROJECT_ROOT depth and cross-require/config paths; repoint all SKILL.md invocations - Add canonical AGENTS.md; reduce CLAUDE.md to an @AGENTS.md import - Add opencode.json (permissions, no MCP); skills auto-discovered in place - Add codex/prompts/*.md (6 prompts) + copy installers (install.sh/.ps1) - Add docs/multi-tool-usage.md (setup, per-tool invocation, teardown) + README pointer
2.2 KiB
2.2 KiB
description, argument-hint
| description | argument-hint |
|---|---|
| Add a YouTube link to today's newsletter Bonus → Videos (Vietnamese) | <youtube-url> |
Add a YouTube video to the newsletter (video handler)
Given a YouTube link, add it to today's newsletter Bonus → Videos as a Vietnamese title link plus a 1-2 sentence Vietnamese summary. Does not classify/route — that is /prompts:mt-add-url's job. Scope: YouTube links only (watch, youtu.be, shorts); direct video files go through mt-add-url's fallback.
YouTube URL: $ARGUMENTS
Shared scripts: scripts/newsletter/ (run from repo root). Shared procedure: .claude/skills/mt-add-url/references/newsletter-post-mechanics.md — follow it for post find/create, numbering, Bonus insertion, language rules.
Workflow
- Classify / fetch title:
Confirm
node scripts/newsletter/add-url.js "<url>"route: youtube; skip ifduplicateor notaccessible. Useclean_url(canonicalwatch?v=ID) andtitle. Iftitlemissing (oEmbed failed), fetch the title from the watch URL with Codex's web tools. - Localize title to Vietnamese where natural; keep proper nouns (product/company/channel names).
- Write a 1-2 sentence Vietnamese summary. Source order: fetch the watch URL for the video description; if thin, derive a single sentence from the title. Keep it to 1-2 sentences.
- Post mechanics — follow
.claude/skills/mt-add-url/references/newsletter-post-mechanics.mdto find/create today's post and locate the Bonus section. - Insert under Bonus → Videos:
Create
**Videos:** [Tiêu đề video tiếng Việt](https://www.youtube.com/watch?v=ID) > Tóm tắt 1-2 câu về nội dung video.### Bonusif missing; append under existing**Videos:**or create the subsection. - Report:
✅ Video added to Newsletter #[number] (Bonus → Videos) 📄 content/post/YYYY/MM/DD/index.md 🎬 [Vietnamese title] — [clean_url]
Checklist
route: youtubeconfirmed; not a duplicate- Title in Vietnamese (proper nouns kept)
- 1-2 sentence Vietnamese summary present
- Entry under Bonus → Videos (section/subsection created if missing)
- Vietnamese content ≥99%