add-to-cafeblr
仓库创建 2026年7月6日最近提交 21 天前SkillHot 收录 20 天前
▸ 精选理由
能自动化生成条目并创建带变更的 PR,节省手工操作。
▸ 风险提示
会执行 git/gh 操作并要求本地仓库与 GitHub 认证。
这个 Skill 做什么
从推文 URL 提取信息并向 cafeblr 仓库添加咖啡条目并提交 PR。
把用户给的推文(X/Twitter)链接里的咖啡店信息抓出来,按最新仓库数据算出下一个 id,生成 JSON 条目写入 data/cafes.json 并发起一个 PR。用在有人在对话里贴推文链接、想把那家店加入 cafeblr 目录时,流程会校验、提交并创建变更请求。流程会保证基于最新 main 分支操作,并要求本地有仓库克隆和已认证的 gh CLI。
▸ 展开 SKILL.md 英文原文
Add a cafe to Cafe BLR from a tweet URL — fetch the tweet, build the JSON entry with the next id, validate, and raise a PR. Use when the user gives an X/Twitter status link to add to the directory.
3
Stars
0
Forks
1
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/amalshaji/cafeblr/main/skills/add-to-cafeblr/SKILL.md或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/amalshaji/cafeblr/main/skills/add-to-cafeblr/SKILL.md"SKILL.MD 节选查看完整文件 ↗
Add the cafe from the tweet URL in `$ARGUMENTS` to `data/cafes.json` and raise a PR.
Requirements: a clone of `amalshaji/cafeblr` (clone it if not already inside one), `bun`,
and an authenticated `gh` CLI.
## 1. Start from latest main
Ids must be computed against the newest data, never a stale checkout:
```sh
git fetch origin && git checkout main && git pull
```
## 2. Fetch the tweet
Extract the numeric status id from the URL (`x.com/<user>/status/<id>` or `twitter.com/...`), then:
```sh
bun -e '
import { fetchTweet } from "./scripts/lib/tweet.ts";
const t = await fetchTweet("TWEET_ID");
console.log(JSON.stringify({
user: t?.user?.screen_name, likes: t?.favorite_count, text: t?.textvia SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有