$npx -y skills add geekjourneyx/mind-skills --skill fs-streetFetches articles from Farnam Street RSS. Use when asking about decision-making, mental models, learning, or wisdom from Farnam Street blog.
| 1 | # Farnam Street |
| 2 | |
| 3 | Fetches articles from Farnam Street blog, covering topics like mental models, decision-making, leadership, and learning. |
| 4 | |
| 5 | ## Quick Start |
| 6 | |
| 7 | ``` |
| 8 | # Basic queries |
| 9 | 昨天的文章 |
| 10 | 今天的FS文章 |
| 11 | 2024-06-13的文章 |
| 12 | |
| 13 | # Search |
| 14 | 有哪些可用的日期 |
| 15 | ``` |
| 16 | |
| 17 | ## Query Types |
| 18 | |
| 19 | | Type | Examples | Description | |
| 20 | |------|----------|-------------| |
| 21 | | Relative date | `昨天的文章` `今天的文章` `前天` | Yesterday, today, day before | |
| 22 | | Absolute date | `2024-06-13的文章` | YYYY-MM-DD format | |
| 23 | | Date range | `有哪些日期` `可用的日期` | Show available dates | |
| 24 | | Topic search | `关于决策的文章` `思维模型` | Search by keyword | |
| 25 | |
| 26 | ## Workflow |
| 27 | |
| 28 | ``` |
| 29 | - [ ] Step 1: Parse date from user request |
| 30 | - [ ] Step 2: Fetch RSS data |
| 31 | - [ ] Check content availability |
| 32 | - [ ] Format and display results |
| 33 | ``` |
| 34 | |
| 35 | --- |
| 36 | |
| 37 | ## Step 1: Parse Date |
| 38 | |
| 39 | | User Input | Target Date | Calculation | |
| 40 | |------------|-------------|-------------| |
| 41 | | `昨天` | Yesterday | today - 1 day | |
| 42 | | `前天` | Day before | today - 2 days | |
| 43 | | `今天` | Today | Current date | |
| 44 | | `2024-06-13` | 2024-06-13 | Direct parse | |
| 45 | |
| 46 | **Format**: Always use `YYYY-MM-DD` |
| 47 | |
| 48 | --- |
| 49 | |
| 50 | ## Step 2: Fetch RSS |
| 51 | |
| 52 | ```bash |
| 53 | python skills/fs-street/scripts/fetch_blog.py --date YYYY-MM-DD |
| 54 | ``` |
| 55 | |
| 56 | **Available commands**: |
| 57 | |
| 58 | ```bash |
| 59 | # Get specific date |
| 60 | python skills/fs-street/scripts/fetch_blog.py --date 2024-06-13 |
| 61 | |
| 62 | # Get date range |
| 63 | python skills/fs-street/scripts/fetch_blog.py --date-range |
| 64 | |
| 65 | # Relative dates |
| 66 | python skills/fs-street/scripts/fetch_blog.py --relative yesterday |
| 67 | ``` |
| 68 | |
| 69 | **Requirements**: `pip install feedparser requests` |
| 70 | |
| 71 | --- |
| 72 | |
| 73 | ## Step 3: Check Content |
| 74 | |
| 75 | ### When NOT Found |
| 76 | |
| 77 | ```markdown |
| 78 | Sorry, no article available for 2024-06-14 |
| 79 | |
| 80 | Available date range: 2023-04-19 ~ 2024-06-13 |
| 81 | |
| 82 | Suggestions: |
| 83 | - View 2024-06-13 article |
| 84 | - View 2024-06-12 article |
| 85 | ``` |
| 86 | |
| 87 | ### Members Only Content |
| 88 | |
| 89 | Some articles are marked `[FS Members]` - these are premium content and may only show a teaser. |
| 90 | |
| 91 | --- |
| 92 | |
| 93 | ## Step 4: Format Results |
| 94 | |
| 95 | **Example Output**: |
| 96 | |
| 97 | ```markdown |
| 98 | # Farnam Street · 2024年6月13日 |
| 99 | |
| 100 | > Experts vs. Imitators: How to tell the difference between real expertise and imitation |
| 101 | |
| 102 | ## Content |
| 103 | |
| 104 | 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. |
| 105 | |
| 106 | **Key Insights**: |
| 107 | - Imitators can't answer questions at a deeper level |
| 108 | - Experts can tell you all the ways they've failed |
| 109 | - Imitators don't know the limits of their expertise |
| 110 | |
| 111 | --- |
| 112 | Source: Farnam Street |
| 113 | URL: https://fs.blog/experts-vs-imitators/ |
| 114 | ``` |
| 115 | |
| 116 | --- |
| 117 | |
| 118 | ## Configuration |
| 119 | |
| 120 | | Variable | Description | Default | |
| 121 | |----------|-------------|---------| |
| 122 | | RSS_URL | RSS feed URL | `https://fs.blog/feed/` | |
| 123 | |
| 124 | No API keys required. |
| 125 | |
| 126 | --- |
| 127 | |
| 128 | ## Troubleshooting |
| 129 | |
| 130 | | Issue | Solution | |
| 131 | |-------|----------| |
| 132 | | RSS fetch fails | Check network connectivity | |
| 133 | | Invalid date | Use YYYY-MM-DD format | |
| 134 | | No content | Check available date range | |
| 135 | | Members only | Some articles are premium content | |
| 136 | |
| 137 | --- |
| 138 | |
| 139 | ## CLI Reference |
| 140 | |
| 141 | ```bash |
| 142 | # Get specific date |
| 143 | python skills/fs-street/scripts/fetch_blog.py --date 2024-06-13 |
| 144 | |
| 145 | # Get date range |
| 146 | python skills/fs-street/scripts/fetch_blog.py --date-range |
| 147 | |
| 148 | # Relative dates |
| 149 | python skills/fs-street/scripts/fetch_blog.py --relative yesterday |
| 150 | ``` |