mcpField
F
fs-street

fs-street

github.com/geekjourneyx生产力2660 次安装37 周前更新
代码仓库

关于 fs-street

fs-street 用于按日期或主题获取 Farnam Street 博客文章,支持相对日期、指定日期、可用日期查询和关键词搜索;会员文章可能仅显示预览。

主要功能

  1. 01按日期获取文章
  2. 02解析相对日期
  3. 03查询可用日期范围
  4. 04按主题搜索文章
  5. 05处理会员文章预览

适用场景

  1. 01阅读 Farnam Street 昨日文章
  2. 02查找决策主题文章
  3. 03查看可用的发布日期

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/geekjourneyx/mind-skills --skill fs-street

安装后在 Claude Code 中输入/fs-street确认已加载。

包含的文件

除 SKILL.md 外,安装时一起下载的参考资料和脚本。

references/
output-format.md
scripts/
fetch_blog.py
src/
__init__.py

详细介绍

Farnam Street

从 Farnam Street 博客获取文章,涵盖思维模型、决策、领导力和学习等主题。

快速开始

# Basic queries
昨天的文章
今天的FS文章
2024-06-13的文章

# Search
有哪些可用的日期

查询类型

类型示例描述
相对日期昨天的文章 今天的文章 前天昨天、今天、前天
绝对日期2024-06-13的文章YYYY-MM-DD 格式
日期范围有哪些日期 可用的日期显示可用日期
主题搜索关于决策的文章 思维模型按关键词搜索

工作流

- [ ] Step 1: Parse date from user request
- [ ] Step 2: Fetch RSS data
- [ ] Check content availability
- [ ] Format and display results

步骤 1:解析日期

用户输入目标日期计算方式
昨天昨天今天 - 1 天
前天前天今天 - 2 天
今天今天当前日期
2024-06-132024-06-13直接解析

格式:始终使用 YYYY-MM-DD


步骤 2:获取 RSS

python skills/fs-street/scripts/fetch_blog.py --date YYYY-MM-DD

可用命令:

# Get specific date
python skills/fs-street/scripts/fetch_blog.py --date 2024-06-13

# Get date range
python skills/fs-street/scripts/fetch_blog.py --date-range

# Relative dates
python skills/fs-street/scripts/fetch_blog.py --relative yesterday

要求:pip install feedparser requests


步骤 3:检查内容

当未找到时
Sorry, no article available for 2024-06-14

Available date range: 2023-04-19 ~ 2024-06-13

Suggestions:
- View 2024-06-13 article
- View 2024-06-12 article
仅会员内容

部分文章标记为 [FS Members]——这些是付费内容,可能仅显示预览。


步骤 4:格式化结果

输出示例:

# Farnam Street · 2024年6月13日

> Experts vs. Imitators: How to tell the difference between real expertise and imitation

## Content

If you want the highest quality information, you have to speak to the best people. The problem is many people claim to be experts, who really aren't.

**Key Insights**:
- Imitators can't answer questions at a deeper level
- Experts can tell you all the ways they've failed
- Imitators don't know the limits of their expertise

---
Source: Farnam Street
URL: https://fs.blog/experts-vs-imitators/

配置

变量描述默认值
RSS_URLRSS feed URLhttps://fs.blog/feed/

无需 API 密钥。


故障排除

问题解决方案
RSS 获取失败检查网络连接
无效日期使用 YYYY-MM-DD 格式
无内容检查可用日期范围
仅会员部分文章为付费内容

命令行参考

# Get specific date
python skills/fs-street/scripts/fetch_blog.py --date 2024-06-13

# Get date range
python skills/fs-street/scripts/fetch_blog.py --date-range

# Relative dates
python skills/fs-street/scripts/fetch_blog.py --relative yesterday

评论

支持 Markdown