gushiwen-famous

Solely presents famous lines of poetry. Data comes from the manually curated "Famous Lines" channel of GuShiWen, covering dynasties and genres. Supports random lines, browsing by author/era/type, keyword search, and optional daily scheduled pushes. Used to respond to user requests such as "give a famous line", "recite a poem", "Li Bai's famous lines", "homesickness themed lines", "lines mentioning the bright moon", or "daily line".

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "gushiwen-famous" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-2d16ae55007527553b871a6b6e0e15b7828870200eb864bdcd00b8d44c88c702. Verify the upstream source and version against https://skillhub.cn/skills/user_283a17af/gushiwen-famous before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Solely presents famous lines of poetry. Data comes from the manually curated "Famous Lines" channel of GuShiWen, covering dynasties and genres. Supports random lines, browsing by author/era/type, keyword search, and optional daily scheduled pushes. Used to respond to user requests such as "give a famous line", "recite a poem", "Li Bai's famous lines", "homesickness themed lines", "lines mentioning the bright moon", or "daily line".

0 Downloads

Introduction source: third_party · user_283a17af · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Inputs and outputs
Translation pending; see source documentation.
Limits and differences
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: 古诗名词句展示
description: 只做一件事——展示出名的诗词名句。数据来自古诗文网「名句」频道(人工筛选的"名句"精选池,覆盖各朝代各类型),支持随机来一句、按作者/朝代/类型分类浏览、关键词检索,并可选每日定时推送。当用户说"来一句名句""背个诗词""李白的名句""思乡主题的名句""含明月的诗句""每日一句"时使用。
version: 1.0.0
disable: false

古诗名词句展示

干净的名句展示 skill:只展示出名的诗词名句本身 + 出处,不带译文、注释、赏析、出题等教学功能。所有名句按"公认度"分级,顶流永远排在最前。

何时使用

  • "来一句名句" / "背个诗词" / "给我一句诗"
  • "李白的名句" / "唐代的名句" / "思乡主题的名句"
  • "有哪些写月亮的诗句" / "搜含『明月』的名句"
  • "每天早上一句"(每日一句推送)
  • 用户只想要干净的诗词金句,不要长篇赏析

数据范围与来源

  • 只收"出名"的名句,不收录全量诗词。古诗文网全文库约 34 万首古诗文,本 skill 从中精选 9286 条出名名句(占比不到 3%),印证"真正出名的诗词名句极少"这一事实。
  • 数据源:古诗文网「名句」频道(https://www.gushiwen.cn/mingjus/)——网站人工筛选的"名句"集合,即上述约 34 万首古诗文里被公认出名的那部分(不到 3%),天然就是"出名"的子集。
  • 这 9286 条并非一视同仁:收录后再次逐句精选分级(见下「分级展示」节),头部的真正顶级名句仅 420 条,其余按公认度依次分入 tier2(6308 条)/ tier3(2558 条)——层层精益求精,越靠前越出名。
  • 字段:content(名句) / author(作者/团体) / source(出处篇名) / dynasty(朝代) / category(list 多标签:主题如 爱情·思乡·励志·月亮…,源自朝代页的名句带 朝代 标记) / tier(公认度等级,见下) / secondary(是否次级,见下)。famous.py 的 --category 为包含匹配(标签子串命中即返回)。
  • 数据重建脚本在 scripts/(crawl_mingju.py 等),仅供复现数据源;运行时只需 famous.py + mingju_pool.json。遵守 robots、请求间 sleep、带浏览器 UA;仅本地检索展示。

直接这么说(触发方式)

用户无需记命令,自然语言即可。内部由你调用 famous.py 完成检索:

  • "来一句" → --random
  • "来五句" → --random --limit 5
  • "李白的名句" → --author 李白
  • "唐代的名句" → --dynasty 唐
  • "爱情/思乡/励志名句" → --category 爱情
  • "含『明月』的诗句" → --q 明月

内部命令(agent 调用,用户无需记忆)

# 用 managed python(3.13)运行技能目录下的 famous.py
# 变量替换为实际路径:SKILL=本技能目录;PY=managed python 3.13 可执行文件
"$PY" "$SKILL/famous.py" --random
# 随机多条
"$PY" "$SKILL/famous.py" --random --limit 5
# 分类浏览
"$PY" "$SKILL/famous.py" --author 李白
"$PY" "$SKILL/famous.py" --dynasty 唐
"$PY" "$SKILL/famous.py" --category 爱情
# 主题浏览排除次级(仅标朝代、无主题标签的 tier3 结果)
"$PY" "$SKILL/famous.py" --category 爱情 --no-secondary
# 关键词检索(搜名句/篇名/作者)
"$PY" "$SKILL/famous.py" --q 明月
# 只从「顶级名句」随机(推荐做每日一句)
"$PY" "$SKILL/famous.py" --tier 1 --random
# 结构化输出(多条时便于二次排版,返回全量)
"$PY" "$SKILL/famous.py" --author 苏轼 --format json
# 列表结果过多时分批显示(默认每批10条,先显前排,再询问是否显示全部)
"$PY" "$SKILL/famous.py" --category 爱情
# 自定义每批条数(如每批5条)
"$PY" "$SKILL/famous.py" --category 爱情 --batch 5
# 直接显示全部(跳过询问)
"$PY" "$SKILL/famous.py" --category 爱情 --all

关键参数(已实测):朝代页 ?cstr=唐代(带"代"字,先秦用先秦、两汉用两汉…)、类型/主题页 ?tstr=爱情、推荐页 default.aspx。注意 ?str=唐 无效(曾误用导致朝代全漏)。

输出格式规范

  • 单条(随机 / 单句查询):直接转发脚本输出的文本卡片,形如:
    曾经沧海难为水,除却巫山不是云。
    ——【离思五首·其四】元稹(唐)「★顶级」
  • 多条(分类 / 检索):脚本逐条输出,每条 名句 + 出处 + 等级标记,干净不刷屏。
  • 出处统一写法:——【篇名】作者(朝代);缺字段时相应省略(如佚名/出处不明)。
  • 等级标记:「★顶级」(tier1)/ 「存疑」(tier3)/ 无标记(tier2)。
  • 不带译文:网上名句基本无逐句译文,展示只留名句 + 出处,最干净。

分级展示(tier 质量机制,核心)

数据每条带 tier 字段,按"公认度"分级;所有列表/检索结果默认按 tier 升序(顶级永远在最前)。

等级 数量 含义 展示位置
tier1 ★顶级 420 命中权威清单(人民网「100部名诗词」+ 千古名句单句),公认度最高 最前
tier2 6308 原主池收录、但未入顶级清单的有名句 次之
tier3 存疑/次级 2558 多为仅标朝代、无主题标签、公认度低者 垫底
  • 打标采用 作者 + 篇名双重锁定(精确/前缀匹配,前缀长度≥3),杜绝仅按词牌或篇名子串误标(如乐婉《卜算子·答施》不会因"卜算子"误判为李之仪/陆游作品;无作者白名单条目均补全规范作者,诗经/乐府统一记为「佚名」)。已逐条核查纯净。
  • --tier 1|2|3 可只看某等级,--tier 1 --random 即只抽顶级名句(推荐做每日一句)。
  • 质量铁律:名句是名人写的概率大,但名人写的不一定都是名句——绝不可按作者名批量确认为名句,必须逐句判断。tier1 由权威清单逐句对照生成,非按人名扫描。

分批显示规则(避免溢出/冗长)

列表类查询(--author / --dynasty / --category / --q,非随机、未指定 --limit)若结果很多,不会一次性全显,而是:

  1. 先按公认度(tier)排好序,显示前排 --batch 条(默认 10,可设 5);
  2. 末尾提示「共 X 条,已显示前 N 条」并询问是否显示剩余全部:
    • 交互终端:键入 y 即展开剩余全部,n 停止;
    • 本环境(非交互):输出提示「回复『全部』或加 --all 重新运行,可显示剩余 X 条」,由用户决定。
  3. --all 可跳过询问直接全显;--limit N 为精确截断(直接显 N 条、不询问)。
  4. 随机(--random)、JSON(--format json,机器消费)模式不分批:随机本就少量,JSON 返回全量。

    设计目的:主题如「爱情」有 282 条,一次性全显会刷屏冗长;分批先给最出名的(tier1 顶流在前),用户按需再要全部。

检索无结果时

脚本输出 (没有匹配的名句) 时,口语化回应即可,例如: "在名句库里没找到含『XXX』的名句,换个关键词我再试?" 不杜撰篇目。

每日一句推送

配合自动化(recurring,每日 08:00)调用 famous.py --random 推一条;若想只推顶级名句,用 --tier 1 --random。 自动化 prompt 示例:运行 gushiwen-famous 的 famous.py --tier 1 --random,把这句诗词名句发给我(含出处)。

质量门槛(核心原则)

名传千古的名句,必然有作者/团体 + 时期出处;无出处的多半是网络杜撰或民间谚语拼凑,本 skill 一律过滤剔除。

  • 清洗脚本 scripts/offline_clean.py:用「古诗文网朝代页自带 dynasty」反向建 作者→朝代 权威映射(AUTH 手工核对表优先,覆盖主流诗人 + 近现代),把每条名句补全为 作者 + 朝代 双字段;author 为空的用典籍表(孟子/论语/诗经…)从 source 提取团体出处;仍双空的删除。
  • 历史坑:曾因映射冲突按 ORDER 取"先秦"优先,把李白/苏轼等全错标成先秦(2300+ 条);已用 AUTH 权威表强制修正,冲突归零。
  • scripts/add_categories.py:仅从「类型/主题页」补爬 category 主题标签(爱情/思乡/边塞…),绝不修改 dynasty/author(已清洗字段不回退)。

限制

  • 仅覆盖古诗文网「名句」频道收录的出名名句(9286 条,系从约 34 万首古诗文中精选而出,非全量诗词)。
  • 每条名句均带 author(作者/团体) + dynasty(朝代),无出处的已剔除。
  • 主题标签来自网站全部 84 个类型页(站点实际仅 84 个 tstr 类型页,无"更多"分页;所谓"169 个"系误估)。当前 6639 条(约 71.5%) 带主题标签,共 92 个主题(含典籍类:论语/孟子/史记/老子/菜根谭/红楼梦…)。
  • 仍有约 2647 条(约 28.5%) 仅带"朝代"标记、无主题标签——这些名句站点本身就没归入任何主题页(高度集中在元曲/金/五代/魏晋/隋/南北朝,古诗文网的"类型"页主要收唐宋名句)。属站点自身分类局限,非爬取遗漏;按朝代/作者/关键词仍可查到。
  • 次级/tier3 处理(主题浏览):这 2647 条标记 secondary: true / tier3。按主题浏览(--category X)时,它们作为次级结果——主结果(带该主题标签)优先显示在前;次级(仅标朝代、无主题标签,且内容/篇名松散含 X)排在最后,以分隔符 —— 以下为存疑结果(tier3,仅标注朝代、无主题标签,仅供参考)—— 隔开,每条后缀 「存疑」 备注清楚,不优先显示。--no-secondary 可完全排除次级。非主题浏览(随机/朝代/作者)不挂此注。
  • 纯文字展示,不加配图(用户定)。
  • 运行时仅需 famous.py + mingju_pool.json;scripts/ 下为数据重建/清洗脚本,仅供复现数据源,不影响运行。

Current listing version

1.0.0

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value75/100

Highlights

  • 提供古诗文网精选名句库(9286条),数据权威且经过人工筛选与分级
  • 支持随机展示、分类浏览、关键词检索及每日推送,满足多样化文化需求
Trigger Precision90/100

Highlights

  • 触发词覆盖全面,支持自然语言表达,用户无需记忆命令
Structure and Standards90/100

Areas to improve

  • 缺少 When to Use 显式章节标题 Reported severity: Minor

    文档中虽有使用场景描述,但未使用标准标题 'When to Use',而是使用 '何时使用'

    Recommendation: 建议将 '何时使用' 改为标准标题 'When to Use' 以符合规范

Highlights

  • 文档结构完整,逻辑清晰,包含详细的使用说明、参数说明和示例
Execution Reliability85/100

Highlights

  • 工具来源明确,参数设计合理,覆盖主要异常场景
  • 数据清洗和分级机制完善,确保输出质量与一致性
Evidence Verifiability (mean of the first four)85/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • www.gushiwen.cn

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.