sync
Skill1 starsChanged 7 months agoMITView on GitHub
Pull mentions, DMs, hot channel topics, calendar events, and Linear updates from the last 48h (24h for Slack DMs) into the wiki daily folder, and snapshot active vault notes. Sources: Gmail, Slack, Linear, Google Calendar, local `wiki/notes/`. Creates `wiki/daily/<YYYY-MM-DD>/{mentions.md, topics.md, linear.md, calendar.md, notes.md}`. If the date folder already exists, dedupes by stable ID and appends new items under an `## Update <HH:MM>` section. Prints all collected items as bullets in chat. Triggers on: "/digital-brain:sync", "/sync", "sync my day", "pull mentions", "what did I miss".
50 other projects use a version of this.
Adopted by
Most recently taken up by
- microsoft/vscodetheir own version, first seen Nov 12, 2026
- thekinv21/NotificationServicetheir own version, first seen Oct 3, 2026
- GavinGreenwood/agentic-workflow-templatetheir own version, first seen Oct 2, 2026
- kapadias/nonnatheir own version, first seen Oct 1, 2026
- thekinv21/RBAC_Authenticationtheir own version, first seen Oct 1, 2026
- lurio84/claude-skillstheir own version, first seen Oct 1, 2026
Used with
Projects with it also use develop, scope and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
bamechoSkilldevelop
开发实施阶段详细规则;进入开发实施时读取;包含执行流程、代码规范、一致性审计、方案包迁移
Also in 6 projects that use this
vltingSkillscope
Interactive planning + orchestration. Approval-gated workflow covering saga→epic→task hierarchy via progressive scoping.
Also in 6 projects that use this
kt057Skillcheck
lint, typecheck, test を一括実行して結果をサマリーする
Also in 7 projects that use this
nicolasestremSkilldocument
Create focused documentation for specific components or features
Also in 5 projects that use this
Microsoft AzureSkilltest
Also in 9 projects that use this
jdonohooSkillarchitect
Architect Vern - Systems design, scalable architecture, production-grade thinking. The blueprints before the build.
Also in 7 projects that use this
Other versions50 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 50
- microsoft/vscode★ 196ksame name
- jsmastery-pro/skills★ 1.4ksame name
- H-mmer/pentest-agents★ 984same name
- cortex-tms/cortex-tms★ 182same name
- iurykrieger/claude-bedrock★ 104same name
- jdpolasky/ai-chief-of-staff★ 104same name
- grainulation/grainulator★ 86same name
- anombyte93/atlas-session-lifecycle★ 85same name
- tomascortereal/claude-code-setup★ 62same name
- lsnackerman/raw-clauding-skills★ 44same name
40 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository19 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/digital-brain.mdcCursor rule
- autoresearchSkill
- canvasSkill
- defuddleSkill
- noteSkill
- obsidian-basesSkill
- obsidian-markdownSkill
- pplSkill
- saveSkill
- supSkill
- taskSkill
- wiki-foldSkill
- wiki-ingestSkill
- wiki-lintSkill
- wiki-pruneSkill
- wiki-querySkill
- wikiSkill
- writeSkill
The file
We split this skill into the rules it gives an agent
11 rules. 0 are common, 3 are distinctive, and 8 are very specific to this project.
0
Common
Most of the 45 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 40
Read wiki/daily/_config.json.
- Very specific: line 63
Compute time windows: Use date (Bash) or built-in date math.
- Very specific: line 69
Load or scaffold config: Read wiki/daily/_config.json.
- Very specific: line 75
Sweep expired notes: Before pulling anything else, scan wiki/notes/*.md.
- Very specific: line 89
Read wiki/entities/people/_index.md.
- Very specific: line 96
Snapshot active notes: After the sweep, glob wiki/notes/*.md and load every file with status: open.
- Distinctive: line 99
If missing: create folder. Write all five files from scratch using the templates below.
- Very specific: line 120
When appending, read the existing file, extract all <!-- key:...
- Very specific: line 200
If a section is empty, write the header with _none_.
- Distinctive: line 229
If a Linear mention already appears in the table, do NOT also add the matching Linear notification email.
- Distinctive: line 231
Use 🔥 for hard deadlines in next 4h, High for explicit asks-of-you in last 24h, Med for older / context items.
“Common” is measured: kept by at least 6 in 10 of the 45 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
sync: Daily Mentions + Hot Topics Sync
Pull everything that needs your attention from the last 48h across Gmail, Slack, Linear, Calendar into the wiki daily folder. Surface as bullets in chat at the end.
User identity: you@example.com (Slack handle resolved from this).
Scope
| Source | What to pull | Window | Filed under |
| Gmail | Threads where you is in To/Cc OR appears in body as a mention | 48h | daily/<date>/mentions.md |
| Slack | @your-handle mentions in any public/private channel | 48h | daily/<date>/mentions.md |
| Slack | @your-handle mentions in groups (group DMs / mpdm) | 48h | daily/<date>/mentions.md |
| Slack | DMs received from any user | 24h | daily/<date>/mentions.md |
| Slack | Hot topics from configured channels (high reply or reaction count) | 48h | daily/<date>/topics.md |
| Linear | Issues assigned to you (any status except Done/Canceled) | open | daily/<date>/linear.md |
| Linear | Comments mentioning you | 48h | daily/<date>/linear.md |
| Calendar | Events you is invited to | next 48h | daily/<date>/calendar.md |
| Notes | Active vault notes (status: open, not expired) — from wiki/notes/ | open | daily/<date>/notes.md |
Config
Read wiki/daily/_config.json. If missing, create it with:
{
"user_email": "you@example.com",
"slack_user_handle": "your-handle",
"slack_hot_channels": ["CXXXXXXXXXX", "CXXXXXXXXXX"],
"calendar_id": "primary",
"linear_user_email": "you@example.com",
"linear_default_team_key": "TEAM",
"linear_default_team_id": "",
"linear_user_id": ""
}linear_default_team_key / linear_default_team_id / linear_user_id are used by /task and the notes sweep. The two _id fields start empty and get cached after the first MCP lookup.
Config is the source of truth for which channels count as "hot". User edits this file to add/remove channels.
Workflow
- Compute time windows. Use
date(Bash) or built-in date math.today=YYYY-MM-DDin local timesince_48h_iso= now - 48h in RFC3339 UTCsince_24h_iso= now - 24h in RFC3339 UTCnext_48h_iso= now + 48h in RFC3339 UTC
- Load or scaffold config. Read
wiki/daily/_config.json. If missing, write the default above and proceed. - Resolve user IDs once.
- Slack:
slack_search_userswith queryyour-handle→ cache the user ID - Linear:
list_usersfiltered by emailyou@example.com→ cache the user ID
- Slack:
- Sweep expired notes. Before pulling anything else, scan
wiki/notes/*.md. For each file wherestatus: openandtoday > expires(date compare), flipstatus: expiredand bumpupdated:to today. Drop those rows fromwiki/notes/_index.md. Cheap, idempotent, runs every sync. Pull from all sources in parallel (issue tool calls in one assistant turn).
Token discipline (mandatory). Every Slack call MUST pass
response_format: "concise"andinclude_context: false. Context chains account for >half the token cost of /sync — Slack repeats the same message 18 times across context-before/after blocks of nearby results. Never bulk-read 100 messages out of a channel to find 2-3 hot threads; search for the threads, then read them. Target total /sync turn cost: under 15k tokens of tool output. If you blow past that, you skipped these flags somewhere.- Gmail —
search_threadswith query(to:me OR cc:me OR "your-handle") newer_than:2d -category:promotions -category:socialandpageSize: 50. Snippet + headers are enough; don't follow up withget_threadunless the snippet is unreadable. - Slack channel/group mentions —
slack_search_public_and_privatewithquery: "@<slack_user_id> after:<YYYY-MM-DD of 2d ago>",channel_types: "public_channel,private_channel",response_format: "concise",include_context: false,limit: 20. The result already contains the full text of each hit. - Slack DMs (24h) —
slack_search_public_and_privatewithquery: "is:dm after:<YYYY-MM-DD of 1d ago>",channel_types: "im,mpim",response_format: "concise",include_context: false,limit: 20. If DM filtering returns junk, fall back to a second searchto:me after:<date>with the same options. - Slack hot topics — DO NOT bulk-read each channel. For each channel ID in
slack_hot_channels, issueslack_search_public_and_privatewithquery: "in:<channel_id> is:thread after:<date>",response_format: "concise",include_context: false,limit: 10,sort: "score". Take the top 5 per channel. Only callslack_read_threadon a specific message if the snippet is too truncated to summarize. - Linear assigned —
list_issueswithassignee: "me",updatedAt: "-P14D",limit: 50. The 14-day window cuts stale backlog that doesn't change daily. If the response still exceeds the tool limit, narrow to-P7Dand addstate: "started"(in-progress only). On the first /sync of a day, reuse yesterday'slinear.mdbacklog rows verbatim and only overwrite issues that appear in the active set — backlog issues with noupdatedAtchange carry forward. - Linear mentions — skip the dedicated lookup. Linear's notification emails already surface
@mentionevents via Gmail. Only calllist_commentson a specific issue when the chat surfaces an unresolved question on it. - Calendar —
list_eventswithcalendarId=primary,startTime=<now>,endTime=<next_48h_iso>,orderBy=startTime,pageSize: 50. Don't request full event descriptions; summary + attendees + time are enough.
- Gmail —
Flywheel: recognize and file new people BEFORE writing the daily files. Read
wiki/entities/people/_index.md. For every distinct person name extracted from this batch — Gmail senders/recipients (excluding notification bots), Slack message authors, Slack@mentions, Linear comment authors, Calendar attendees — check:- Is there a page at
wiki/entities/people/<Full Name>.mdor an alias match in_index.md? - If no, and the name appears either (a) ≥2x in this batch, or (b) once with a clear role signal (email signature, channel pin, "Head of X",
@<role>ping), then file them now via thepplskill's add flow. Use best-guess role from context; if uncertain, file withrole: "—"+ a> [!todo] Confirm rolecallout. Defaultcompany: Your Organizationunless the source domain says otherwise (e.g.@external1.com,@external2.com,@external3.com→ External). - Track the list of newly-filed people; surface it in the chat summary so the user can correct roles.
Why: the wiki's compounding value is the link graph. Each
/syncshould add nodes, not just edges. Never emit a[[Name]]wikilink to a non-existent page (phantom link rots the graph), and never silently skip a recognizable person. File or don't link — those are the only two options.- Is there a page at
- Snapshot active notes. After the sweep, glob
wiki/notes/*.mdand load every file withstatus: open. Sort bydueascending. These rows go intodaily/<today>/notes.md(template below) and feed the Top-10 alongside Gmail / Slack / Linear / Calendar. - Check for existing date folder.
wiki/daily/<today>/:- If missing: create folder. Write all five files from scratch using the templates below.
- If present: dedupe each item against the existing file by stable ID (see "Dedup keys" below). Append new items under a heading
## Update HH:MMat the bottom of each file.notes.mdis regenerated whole each run (not append-dedup) — it's a live snapshot of the working set.
- Print chat output. Show all items collected this run as bullets, grouped by source (notes included). End with the absolute paths written/updated.
Dedup keys
| Source | Stable key |
| Gmail thread | gmail:<threadId> |
| Slack message | slack:<channel_id>:<ts> or the permalink |
| Linear issue | linear:<identifier> (e.g. ENG-123) |
| Linear comment | linear-comment:<comment_id> |
| Calendar event | gcal:<event_id> |
| Vault note | note:<note_id> (filename without .md) |
Embed the key as an HTML comment on each bullet so future runs can grep:
- [ ] ... <!-- key:gmail:18c3... -->
When appending, read the existing file, extract all <!-- key:... --> markers, and skip any new item whose key already exists.
File templates
mentions.md
# Mentions — <date>
## Gmail
- [ ] **<subject>** — from <sender> — <relative time> — [open](<gmail link>) <!-- key:gmail:<threadId> -->
## Slack — channel mentions
- [ ] **#<channel-name>** — <author>: "<preview, ~120 chars>" — <relative time> — [open](permalink) <!-- key:slack:<channel>:<ts> -->
## Slack — group mentions
- [ ] **<group name or members>** — <author>: "<preview>" — <relative time> — [open](permalink) <!-- key:slack:<channel>:<ts> -->
## Slack — DMs (24h)
- [ ] **<author>**: "<preview>" — <relative time> — [open](permalink) <!-- key:slack:<channel>:<ts> -->topics.md
# Hot topics — <date>
> Channels: #<name1>, #<name2>, #<name3> (from `_config.json`)
## #<channel-name>
- **<one-line topic summary>** — <N> replies, <N> reactions — started by <author> <relative time> — [open](permalink) <!-- key:slack:<channel>:<ts> -->linear.md
# Linear — <date>
## Assigned to me — open
- [ ] **<ID>** <title> — <status> — <priority> — [open](url) <!-- key:linear:<ID> -->
## Mentions (48h)
- <comment author> on **<ID>** <title>: "<preview>" — <relative time> — [open](<comment url>) <!-- key:linear-comment:<comment_id> -->calendar.md
# Calendar — next 48h, as of <date> <HH:MM>
- **<start local time>** (<duration>) — <title> — <attendee count> attendees — [open](<event url>) <!-- key:gcal:<event_id> -->notes.md
Snapshot of every wiki/notes/*.md with status: open (sweep already removed expired). Regenerated whole each run — not append-dedup.
# Notes — <date> <HH:MM>
> Live snapshot of `wiki/notes/` — vault TTL 7d. Manage with `/note`, `/task`, or `/note done <id>`.
## Active Tasks
- [ ] **<title>** — assignee <Full Name or me> — due <YYYY-MM-DD HH:MM> — <Linear ID or —> — [open](obsidian://open?vault=digital-brain&file=notes%2F<note_id>) <!-- key:note:<note_id> -->
## Active Reminders
- [ ] **<title>** — due <YYYY-MM-DD HH:MM> — [open](obsidian://open?vault=digital-brain&file=notes%2F<note_id>) <!-- key:note:<note_id> -->If a section is empty, write the header with _none_.
Chat output (after writing)
Lead with a Top-10 table. Persistence still happens in the four files; the chat output is for triage. Use this shape:
Synced <today>. Wrote/updated:
- wiki/daily/<today>/mentions.md (<N> new)
- wiki/daily/<today>/topics.md (<N> new)
- wiki/daily/<today>/linear.md (<N> new)
- wiki/daily/<today>/calendar.md (<N> new)
- wiki/daily/<today>/notes.md (<N> active · <N> expired this sweep)
### Top 10
| # | Priority | Source | Item | Deadline / age | Action |
| - | -------- | ----------------- | --------------------------------------- | ---------------- | ----------------- |
| 1 | 🔥 | Slack group DM | Dan: review red-team demo video | by 16:00 today | Watch + post take |
| … | … | … | … | … | … |
### Counts (full detail in the daily files)
- Gmail: <N> threads · Slack channel mentions: <N> · Slack DMs: <N> · Linear assigned: <N> open · Calendar: <N> next 48h · Notes: <N> active (<N> tasks, <N> reminders; <N> expired this sweep)Top-10 selection rules (same as /sup):
- Drop
notifications@linear.app,notifications@mixmax.com,notifications@shapes.co,aws-marketing-email-replies@amazon.com, and any "calendar invitation accepted/declined" emails — they don't get rows even though they still land inmentions.mdfor the historical record. - If a Linear mention already appears in the table, do NOT also add the matching Linear notification email.
- Slack DMs only earn a row if they ask for a decision, review, or name a deadline. Reaction emojis, links, "ok"/"thanks"/"got it", and banter never get a row.
- Use 🔥 for hard deadlines in next 4h, High for explicit asks-of-you in last 24h, Med for older / context items.
- Notes earn rows. Every
note_kind: taskwithstatus: openalways gets a row (source:Note (task)).note_kind: remindergets a row only ifdue ≤ now + 24h(source:Note (reminder)). Score 🔥 ifdue ≤ now + 4h, High otherwise. If a note has alinearID and the matching Linear issue already appears in the table, dedupe — keep one row (prefer the note row, since it carries your own framing).
Be terse: title + 1-line context + link per item in the table. Do not paste full message bodies in chat — the daily files already have the full detail.
Failure modes
- No MCP for a source (e.g. Gmail not authenticated): skip that source, note
(skipped: not authenticated)in chat output. Do not block the rest. - Rate limit / API error: log it, continue with what you have.
- No items in a section: still write the section header with
_none_so future updates have an anchor.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

