li-stats

Sync YAML video metrics from markdown files into the data statistics table.

79|18|Updated Mar 24, 2026
One-click install
npx skills add https://github.com/jiangjiax/li-skills --skill li-stats
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: li-stats
Source: https://github.com/jiangjiax/li-skills/tree/main/li-stats
Command: npx skills add https://github.com/jiangjiax/li-skills --skill li-stats

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

When you’ve already written and filled platform metrics into your video script YAML, this Skill removes the repetitive manual work of copying those metrics into your data statistics table and archiving published videos.

Core Features & Use Cases

  • Batch YAML-to-table synchronization: Scans pending short/mid-video markdown files and updates 03-数据统计/数据统计表.md with only complete YAML records.
  • Idempotent archiving workflow: Moves processed videos into the appropriate 02-已发布内容/短视频/[分类]/[YYYY年MM月]/ path without overwriting duplicates.
  • Publication record syncing: Marks the corresponding entries in 01-内容生产/选题管理/00-选题记录.md as published when the YAML indicates the publish date.
  • Data quality guardrails: Skips items with missing critical YAML fields and reports exactly which fields are absent.
  • Cleanup for next cycle: Deletes matching “deepening reports” in 01-内容生产/待深化的选题/ after successful archiving.

Quick Start

Run li-stats when you want to sync/fill statistics by telling it to “同步/更新统计表(填入数据)” for your pending short-video folder.

Frequently Asked Questions about li-stats

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I batch sync platform stats from YAML frontmatter in markdown into a statistics table?

To batch sync platform stats from YAML frontmatter, you scan pending markdown files and update your data statistics table with metrics like views and completion rates, while archiving successfully synced items into categorized directories.

What happens to incomplete YAML records when synchronizing markdown video metrics?

When synchronizing markdown video metrics, incomplete YAML records are skipped during the table update process. The system reports exactly which critical fields are absent, ensuring only complete data enters your statistics table.

Can I use this workflow to archive published short videos idempotently without overwriting duplicates?

Yes, you can archive published short videos idempotently without overwriting duplicates. The workflow moves processed markdown files into structured paths like '02-已发布内容/短视频/[分类]/[YYYY年MM月]/' safely without data loss.

Do I need specific YAML fields in my markdown scripts to update the data statistics table?

Yes, you need specific YAML fields in your markdown scripts to update the data statistics table. Required metrics include publish date, likes, favorites, views, and completion rate to validate records for synchronization.

Why does my content archiving workflow also delete deepening reports?

Your content archiving workflow deletes deepening reports as a cleanup step for the next cycle. After successfully archiving a published video, matching reports in the '01-内容生产/待深化的选题/' directory are removed.