/branch-reads:branch-readsfrom branch-reads
Reads the diff on your current git branch or PR, identifies the libraries, APIs, and patterns you're touching, and finds 3-5 relevant daily.dev posts with code-specific explanations. Use when starting, finishing, or reviewing a branch.
Ships in branch-reads. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are mid-branch, touching an API you half-know. Branch Reads looks at what you changed, not what you follow, and hands you the few posts that matter for this piece of work, each with a one-line reason tied to your code.
gh is optional (only for PR mode).https://api.daily.dev/mcp) connected to your agent, orDAILY_DEV_TOKEN (https://daily.dev/settings/api). Base URL https://api.daily.dev/public/v1, header Authorization: Bearer $DAILY_DEV_TOKEN. Never send the token anywhere except api.daily.dev.Each API step lists the MCP tool first and the REST call after it.
Pick from what the user said; default is branch.
git diff HEAD).gh pr diff N). Never save to bookmarks in this mode unless asked.Get the diff. Local git only; nothing from this step leaves the machine.
git symbolic-ref --quiet --short refs/remotes/origin/HEAD (strip origin/); if that fails, use main, then master, whichever exists. Then BASE=$(git merge-base HEAD origin/<default> 2>/dev/null || git merge-base HEAD <default>).git branch --show-current (on a detached HEAD, use git rev-parse --short HEAD; in pr mode, use pr-N). Repo name: basename of git rev-parse --show-toplevel.git diff --stat $BASE...HEAD, then git diff -U2 $BASE...HEAD. In wip mode use git diff --stat HEAD / git diff -U2 HEAD.git diff HEAD~5...HEAD, or fewer if the history is shorter) and say so.vendor/, node_modules/, dist/, build/, minified files, snapshots, images and generated code. If more than 15 files remain, read only the 15 with the most added lines.Find the topics. From the added lines (+), list the concrete, public things being used for the first time or in a non-trivial way:
Bus::batch, Vue defineModel, useOptimistic, Postgres LISTEN/NOTIFY, a GitHub Actions concurrency block);Skip the obvious (a for loop, a getter) and anything the project already uses heavily outside this diff. Keep 3 to 5 topics. For each: a short label, the evidence (path:line), and a query of 2-3 public keywords (e.g. laravel job batching, vue defineModel).
Privacy rule: queries may contain only public technology names and generic terms. Never put internal class or function names, domain words, customer names, URLs, hostnames, file paths, secrets or code snippets into any API call.
Search. Per topic, at most two calls:
getRecommendKeyword with q = the most specific technical term(s), limit 10, time year (GET /recommend/keyword?q=...&limit=10&time=year). It works best on exact terms like defineModel and returns nothing for long phrases.getSearchPosts with the 2-3 keyword query, limit 10, time year (GET /search/posts?q=...&limit=10&time=year). Use time all only for stable, older topics.Stop at 10 search calls per run in total.
Rank and pick 3-5 posts overall, at most 2 per topic:
summary must address the specific API or pattern from step 2, not just the framework. A general "What's new in Laravel" loses to a post on job batching.numUpvotes and numComments, then recency (publishedAt, falling back to createdAt). Prefer articles over videos unless a video is clearly the best fit.id and by url.If a topic has nothing that fits, say so in one line instead of padding with weak matches.
Report (under 300 words, before any write):
Branch Reads: <repo>/<branch> and one line naming the topics found.commentsPermalink), then source.name · readTime min · numUpvotes upvotes · date, then Why for this branch: one line that names the file or change it applies to. Add Heads-up: only if the summary flags a gotcha that matches the diff.<branch> bookmark folder?"Save, only if the user says yes.
getProfile (GET /profile/) and read isPlus.getBookmarksLists (GET /bookmarks/lists). Reuse a list named exactly <repo>/<branch> if it exists; otherwise postBookmarksLists with name = <repo>/<branch> truncated to 100 characters and icon 🌿 (POST /bookmarks/lists). Then postBookmarks with all picked postIds and that listId (POST /bookmarks/).postBookmarks without listId. Do that only on a second yes.git commands that change state (no checkout, fetch, commit, stash or reset).retry-after value.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub dailydotdev/marketplace --plugin branch-reads