/cog-second-brain:team-brieffrom cog-second-brain
Generates a daily team intelligence brief by cross-referencing GitHub, Linear, Slack, PostHog, meetings, and braindumps. Includes two-way Linear sync-back. Useful for product managers and engineering leads during morning standup prep.
Ships in cog-second-brain. 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.
Read when SKILL.md points to them.
Check agent_mode in 00-inbox/MY-PROFILE.md frontmatter:
agent_mode: team — use the full parallel agent execution strategy below (6 agents)agent_mode: solo — run data collection sequentially in the main conversation. Skip Phase 3.5 (Linear sync-back) and Phase 3.7 (HackMD publish) to keep it fast.Generate a concise daily team intelligence brief focused on what we're doing, what needs attention, and what's falling through the cracks. Cross-references Linear work tracking, Slack discussions, GitHub activity, PostHog product analytics, braindumps, and recent meetings to surface insights, flag mismatches, and keep the team aligned.
Monday = Week Start Brief: If today is Monday, the brief covers Friday through Sunday (the full weekend window). All date ranges, queries, and language should reflect "since Friday" / "over the weekend" instead of "yesterday." This captures anything that happened Friday afternoon, weekend deploys, or async discussions.
This is NOT an industry news report. News/market intelligence belongs in the weekly brief.
/team-briefYou're not a reporting tool — you're a teammate who happens to have read every Slack thread, every PR, and every meeting note. Write like someone who genuinely cares about the team succeeding.
Do:
Don't:
Example tone:
Good day yesterday — we cut v1.2.0 with the new workflow, caching fix, and a bunch of UX polish. 11 PRs merged by 4 people. The team is shipping.
But we have a problem: two discovery calls in a row ended with the prospect unable to log in. The onboarding flow just doesn't work. We're building features for users who can't get through the front door.
The team brief MUST use parallel agents to maximize speed and efficiency.
When /team-brief is invoked, the orchestrator (main agent) should:
LOOKBACK_DATE to Friday's date. This is a Week Start Brief.LOOKBACK_DATE to yesterday's date. This is a standard Daily Brief.[CUSTOMIZE: path/to/meetings/] matching dates from LOOKBACK_DATE through today[CUSTOMIZE: path/to/braindumps/] matching dates from LOOKBACK_DATE through todayLaunch ALL of these agents in a single message using the Agent tool (named Task in older clients) with run_in_background: true. Each worker writes its findings to a file and returns the path; the orchestrator reads the files in Phase 3.
Prompt: see references/agent-prompts.md § github-analyst.
Only spawn if Slack MCP is available
Prompt: see references/agent-prompts.md § slack-monitor.
Prompt: see references/agent-prompts.md § meeting-reviewer.
Only spawn if Linear MCP is available
Prompt: see references/agent-prompts.md § linear-tracker.
Prompt: see references/agent-prompts.md § braindump-reviewer.
Only spawn if PostHog MCP is available
Prompt: see references/agent-prompts.md § posthog-analyst.
This is the most critical phase. The orchestrator must:
Collect results from all background agents using Read on their output files
Cross-reference Linear ↔ GitHub (the core alignment check):
Cross-reference Slack ↔ GitHub ↔ Linear:
Cross-reference Meetings ↔ GitHub ↔ Linear:
Cross-reference Braindumps ↔ Current Work:
Cross-reference Linear Cycle ↔ Overall Progress:
Cross-reference Initiatives ↔ Projects ↔ Issues:
Cross-reference PostHog ↔ GitHub ↔ Slack:
Generate the brief following the Content Structure below, with insights FIRST and details LAST. Use the Voice & Tone guidelines — write like a teammate, not a dashboard.
Save to [CUSTOMIZE: path/to/briefs/]team-brief-YYYY-MM-DD.md with proper metadata
Present a concise summary to the user
This phase writes data BACK to Linear to keep it up-to-date with reality from GitHub, Slack, and meetings.
Use ToolSearch to load the necessary Linear update tools: "+linear update issue", "+linear update initiative", "+linear update project", "+linear create comment", "+linear create attachment", "+linear save status update", "+linear update milestone".
For each merged or open PR found in the GitHub data:
[CUSTOMIZE: PROJ]-123)mcp__claude_ai_Linear__create_attachment to attach the PR URL to the issue (if not already linked). Use format:
https://github.com/[CUSTOMIZE: your-org/your-repo]/pull/XXXget_issue attachments) — skip if already linked to avoid duplicatesBased on the cross-reference data from Phase 3:
mcp__claude_ai_Linear__update_issue to transition the issue to "Done" state. Add a comment: "Automatically marked done — PR #XXX merged on [date]."mcp__claude_ai_Linear__update_issue to transition to "In Progress". Add a comment: "Marked in progress — PR #XXX opened."Safety rules:
For each active initiative, compose and post a status update using mcp__claude_ai_Linear__save_status_update:
**[DATE] Daily Update**
• Shipped: [list key PRs/features merged]
• In Progress: [key items being worked on]
• Blocked: [any blockers, or "None"]
• Health: [On Track / At Risk / Off Track] — [1-line reasoning]
• Next: [what's expected to ship next]
mcp__claude_ai_Linear__save_status_update to post the update to the initiativemcp__claude_ai_Linear__update_initiative to update the health fieldFor each milestone in active projects:
mcp__claude_ai_Linear__update_milestone to update its status/description with a noteFor each active project:
After all sync-back operations, compile a summary of what was updated:
Include this summary in the brief under a "Linear Sync Report" section.
This phase publishes the full daily brief to HackMD so it can be shared with the team via a link.
The HackMD API token is stored in .claude/settings/hackmd-token (one line, no whitespace). Read it with: cat .claude/settings/hackmd-token | tr -d '\n'. Alternatively check env var HACKMD_API_TOKEN.
API Details:
https://api.hackmd.io/v1Authorization: Bearer <HACKMD_API_TOKEN>Steps:
Create the note via POST https://api.hackmd.io/v1/notes with:
{
"title": "Daily Brief — [DAY_NAME], [FULL_DATE]",
"readPermission": "signed_in",
"writePermission": "owner",
"commentPermission": "disabled",
"content": "placeholder"
}
readPermission: "signed_in" means any HackMD user with the link can viewid and publishLink from the responseUpdate the note content via PATCH https://api.hackmd.io/v1/notes/<id> with the full brief markdown content:
[CUSTOMIZE: path/to/briefs/]team-brief-YYYY-MM-DD.mdcurl -X PATCH ... -d @/tmp/hackmd-payload.jsonStore the HackMD link for use in the Slack message AND the local brief file:
publishLink from step 1 (format: https://hackmd.io/@[CUSTOMIZE: your-hackmd-username]/<shortId>).md file's frontmatter by adding/updating hackmd_url: <publishLink> in the YAML frontmatter. Insert it after the created: field. Use the Edit tool to do this — do NOT rewrite the entire file.If HackMD API fails, log the error and continue — the brief should still be posted to Slack without the link. Note in the Slack message: "(HackMD link unavailable)"
Implementation pattern (Bash): see references/publish-templates.md § HackMD implementation pattern (Bash).
After presenting the brief summary to the user, always compose and show the Slack highlight message for preview. Display the exact message the user will see in Slack, then ask: "Ready to post this to #[CUSTOMIZE: your-team-channel]? (or edit anything first)"
Do NOT post until the user explicitly confirms. If they suggest edits, adjust and show the updated preview. Only post after they say yes/confirm/looks good/send it/etc.
Compose a Slack-native highlight message — NOT the full brief, just the most important bits the team should see. Keep it short enough that people actually read it.
Once user confirms, use ToolSearch to load Slack send tool, then post via mcp__claude_ai_Slack__slack_send_message to the [CUSTOMIZE: your-team-channel] channel.
Slack message format (adapt based on actual content — this is a template, not a rigid format):
For Monday (Week Start Brief): full template in references/publish-templates.md § Slack message format — Monday (Week Start Brief).
For regular days: full template in references/publish-templates.md § Slack message format — regular days.
<https://github.com/[CUSTOMIZE: your-org/your-repo]/pull/XXX|#XXX>. Never use bare #930 — make it clickable.:link: *Full brief:* [HACKMD_URL]. This is how the team accesses the full detailed brief.Quick vibe check. Was it a good shipping day? Quiet? Lots of discussion but no merges? Set the context in plain language.
If Monday (Week Start Brief): Frame the opening around the weekend + set the tone for the week ahead. Example: "Happy Monday — the team stayed busy over the weekend with 6 PRs merged. Here's what happened since Friday and what's on deck for the week."
Regular day example:
Solid day — v1.2.0 shipped with 11 PRs merged. The team is moving fast on features. But we've got a growing problem on the onboarding side that needs attention before we lose more prospects.
Things that need attention today. Keep to 3-5 max. Write them as things a teammate would flag in standup, not as system alerts.
Types (in priority order):
Example:
Onboarding is broken — Two prospects in a row got stuck at sign-up during discovery calls. No fix PR exists for either issue.
Review backlog is getting out of hand — 22 open PRs, 16 of them stale. Some are 100+ days old. We should do a quick triage to close the dead ones.
API docs (#930) need reviewer feedback resolved before we merge the implementation (#933). Let's not build on an uncertain foundation.
Combined intelligence from Slack + GitHub + Meetings. Group RELATED items together. This is where the cross-referencing shines — connect the dots between what was discussed and what actually happened in code.
Celebrate the wins. Brief summary of merged PRs. Group by theme if possible rather than just listing.
Open PRs with review status AND corresponding Linear issue status. Flag age and anything that looks stuck. Show alignment between Linear status and actual PR state.
For each active initiative, show a quick-glance status:
Format:
Initiative Name — Health: On Track | 23% complete | 76 days remaining
- Projects: Project A (In Progress, 40%), Project B (In Progress, 15%)
- Milestones: Milestone 1 (due Mar 15 — on track), Milestone 2 (due Mar 30 — at risk)
- Shipped today: PR #945 (feature X), PR #948 (feature Y)
- Blockers: None
Current Linear cycle progress — % complete, days remaining, scope changes. Flag if the team is on pace or falling behind.
Quick velocity numbers — not exhaustive, just enough to get a pulse. Include both GitHub metrics (PRs, commits) and Linear metrics (issues completed, cycle progress).
Quick snapshot of how the product is actually performing with real user data. This grounds the engineering activity in business reality.
Format:
Visitors: 342 (↑12% vs previous day) | Sign-ups: 8 (↓25%) | Core Events: 156 (↑34%) | Errors: 3 new
What the numbers say: Core events jumped after we shipped the loop detection fix (PR #942) — users are getting further into workflows without hitting errors. Sign-ups dipped but that might just be a quiet day.
Feature adoption:
new-featureused by 23 unique users (good early traction).onboarding-flowstill showing 40% drop-off at email verification step.Error watch: 3 new
TypeErrorerrors in/api/executesince yesterday's deploy. Correlates with PR #935 merge.
Rules:
Summary of what the daily brief sync-back updated in Linear:
Key insights from recent braindumps that connect to current work. This gives the brief depth beyond just "what happened" — it adds "why it matters" from the product lead's own thinking.
Detailed Slack discussion summaries. This is the appendix — people who want depth can read here.
Action items from recent meetings tracked against actual GitHub/Slack/Linear activity. Use status indicators to show progress at a glance.
Full YAML frontmatter template for the saved brief file: references/brief-frontmatter.md.
When multiple alerts exist, order by:
slack: unavailablelinear: unavailable. Flag this — Linear is now the primary work trackerposthog: unavailable. The brief will still be useful without it.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
team-brief, daily-standup, project-intelligence, linear-sync
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: skills: Invalid input, repository: Invalid input: expected string, received object
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
49 skills in this plugin
/auto-researchDeep strategic research engine — decomposes questions into parallel research threads, spawns multiple agents, and synthesizes into actionable strategic analysis/best-of-nSelector stage before a verification gate - generate N candidates in parallel, pick the best with a pivot tournament of pairwise judgements, then gate the winner. For high-variance, non-mutating deliverables only/blog-publishWrite and publish a post to your own static blog end to end: content checklist (embedded links, optional TL;DR), per-post ASCII art, an agent-readable markdown twin, deploy, and social distribution. Use when you say "write a blog post", "publish this to my blog", or "push this post to socials".
/braindumpQuick capture of raw thoughts with intelligent domain classification and competitive intelligence extraction/closed-loopRun one task through the V-model verification loop: CP-2 plan → CP-3 build → CP-3v component verify → CP-4 integration verify (full lane) → CP-5 acceptance. The worker never grades its own homework; evidence rows trace back to AC-n. Opt-in: invoke with /closed-loop or by asking for the closed loop, proper verification, or an evidence trail. Ordinary work does not run this.
/comprehensive-analysisDeep-dive 7-day analysis across all data sources for weekly reviews, board prep, and strategic planningOther plugins' skills for the same job