A living system that learns how you work, what you focus on, where you’re growing, and where you should push further. Produces actionable output for daily syncs and quarterly reviews.
gh (authored PRs, reviews, releases/tags) — often more
accurate than local commits alonecore/BRAIN.md)sync). Other platforms: jira.sh when JIRA_URL, JIRA_EMAIL, and JIRA_API_TOKEN are set.Critical: Standup-relevant work is frequently not in authored git commits.
Reviews, releases, demos, meetup/office-hours prep, and design-feedback work must
be pulled from GitHub/tracker/transcripts/BRAIN — not inferred from git log --author alone.
These commands can be invoked differently depending on your platform:
/engineer-brain <command>engineer-brain <command> or natural language (e.g., “run my daily sync”)@workspace engineer-brain <command> or natural language/engineer-brain <command> or natural languagesync (daily standup helper)Generate today’s standup notes.
Scope: Current team and current role only.
Only include work from team repos / team activities in this workspace.
Never reference past roles or personal/side projects — this is for your team’s standup thread.
Repos listed in PERSONAL_REPOS inside scan.sh are excluded from team standup scope.
Schedule: Workdays only (Monday–Friday). If today is Monday, “yesterday” means last Friday. If today is a weekend, skip — standups don’t happen on weekends.
bash <path-to-scripts>/scan.sh "$HOME/path/to/workspace" [1 or 3]
scan.sh emits these when gh is authenticated
and GH_OWNERS / RELEASE_REPOS are configured):
2a. Calendar signal (gcal, optional but preferred when available):
gcal MCP is connected, call status() first.
configured: true → call today_sync() (on Mondays also
upcoming_sync(3)) — not raw today(). Only task-related or
active-participation events (hackathon, demo, meetup, workshop).configured: false → call authorize_instructions() once, relay
the one-time setup to the user, and fall back to BRAIN.md’s
Upcoming Events table for this sync (don’t block on it).gcal MCP available → run bash core/scripts/gcal.sh today --sync if
the platform can shell out; otherwise fall back to BRAIN.md Upcoming Events.gcal/BRAIN.md. Precision over recall.2b. Jira signal (required on every sync):
plugin-atlassian-atlassian (Atlassian plugin).
If namespace missing / needsAuth → point user to ONBOARDING.md (installed) or
engineer-brain-onboarding.md Step 3; mark Jira blocked in standup.bash <path-to-scripts>/jira.sh done 1 (or done 3 on Monday) when JIRA_* env is set.getAccessibleAtlassianResources → cloudId (required for searchJiraIssuesUsingJql)assignee = currentUser() AND updated >= startOfDay(-1))assignee = currentUser() AND statusCategory = "In Progress" (matches jira.sh active)PROJ-12345).2c. Platform note: Atlassian MCP is Cursor-only. Claude Code, Copilot, Windsurf, Aider, and Continue.dev use jira.sh for the Jira signal — see ONBOARDING.md Step 5.
Read BRAIN.md for sprint context, active tickets, and scheduled team
events (Upcoming Events table — the fallback when gcal isn’t configured).
update (refresh the brain)Re-scan everything and update BRAIN.md.
bash <path-to-scripts>/scan.sh "$HOME/path/to/workspace" 30
Read the current BRAIN.md.
Write the updated BRAIN.md back.
quarterly (performance review prep)Generate quarterly performance review content.
Scope: Current quarter only (last 3 months), current team only. Only include work done in repos in this workspace. Do NOT reference past roles, past teams, or personal/side projects.
bash <path-to-scripts>/scan.sh "$HOME/path/to/workspace" 90
Read BRAIN.md for context.
## Quarterly Review — [QUARTER] [YEAR]
### Team: [Your team name]
### Key Accomplishments
[For each merged PR in the quarter, summarize impact in business language]
[Group by theme: Security, Quality, DevEx, Performance, Features]
### Technical Impact (Numbers)
- PRs merged: X across Y repos
- Lines of code: +X / -Y
- Test coverage added: X test files, Y test cases
- Issues resolved: X
### Growth & Learning
[What new skills were developed this quarter]
[What areas did you stretch into]
[Presentations, demos, knowledge sharing events]
### Cross-Team Collaboration
[Repos contributed to beyond primary]
[Reviews done for other team members]
### Goals for Next Quarter
[Based on gap analysis from BRAIN.md growth roadmap]
[Aligned with team priorities]
reflect (pattern analysis and feedback)Analyze current patterns and provide actionable feedback.
Analyze and report:
## Reflection — [DATE]
### What You're Doing Well
[Cite specific commits and patterns]
### Habit Observations
- Work hours pattern: [when you're most productive]
- Commit frequency: [daily average, consistency]
- PR size tendency: [small/medium/large, recommendation]
- Fix-to-feature ratio: [current ratio, ideal ratio]
### Blind Spots
[Repos you have cloned but haven't touched]
[Types of work you consistently skip]
[Skills on your growth list that haven't progressed]
### Recommendations
1. [Specific, actionable suggestion with reasoning]
2. [Specific, actionable suggestion with reasoning]
3. [Specific, actionable suggestion with reasoning]
jira (assigned tasks from Jira)Fetch your assigned Jira issues, grouped by status.
Preferred in Cursor: Atlassian MCP (plugin-atlassian-atlassian) — see
ONBOARDING.md Step 3 (installed copy: .engineer-brain/ONBOARDING.md or .cursor/skills/engineer-brain/ONBOARDING.md).
CLI fallback (terminals / non-MCP platforms):
Usage: jira [filter] [days]
Filters:
all (default) — all open issues assigned to youactive — only “In Progress” issuesbacklog — only “Backlog” issuesreview — only issues in “Review” statussprint — issues in the current open sprintdone [days] — issues completed in the last N days (default 7)weekly — issues completed in the last 7 daysquarterly — issues completed since the start of the current quarterbash <path-to-scripts>/jira.sh [filter] [days]
Required env vars: JIRA_URL, JIRA_EMAIL, JIRA_API_TOKEN
Integration with other commands:
sync: Cursor uses Atlassian MCP when the plugin is connected (see step 2b). Other platforms: jira done 1 (or jira done 3 on Monday) when MCP is unavailable.quarterly, also run jira quarterly to include all closed Jira tasks for the quarter in the review content.reflect, check jira all for stale assigned issues that haven’t been updated recently.scan (raw data refresh)Just run the scanner and display results.
[days] argument (default: 7) and optional --json.# Human / AI-readable text (default)
bash <path-to-scripts>/scan.sh "$HOME/path/to/workspace" [days]
# Structured JSON for dashboard, CI, or jq (#3) — requires python3
bash <path-to-scripts>/scan.sh "$HOME/path/to/workspace" [days] --json
bash <path-to-scripts>/scan.sh --json "$HOME/path/to/workspace" [days]
jq / a consumer:
bash <path-to-scripts>/scan.sh "$HOME/path/to/workspace" 7 --json | jq '.velocity'
JSON notes: same sections as text mode (commits, branches, uncommitted,
type_breakdown, files_touched, velocity, github). Personal repos stay in
commits with "personal": true but are excluded from team velocity / type
breakdown / files — matching text mode. See architecture.md.
doctor (brain health check)Check the health and completeness of your engineering brain.
bash <path-to-scripts>/doctor.sh "$HOME/path/to/workspace"
engineer-brain update to improve data freshness.watch (PR digest across repos)Scan GitHub repos for open PRs and generate a prioritized digest.
Scope: All GitHub repos in the workspace (or specified repos).
Requires the gh CLI to be installed and authenticated (gh auth login).
Usage: watch [--repos owner/repo,...] [--stale-days N] [--loop N]
Flags:
--repos : comma-separated owner/repo slugs (default: auto-discover from workspace git remotes)--stale-days : days of inactivity before a PR is classified as stale (default: 14)--loop : re-run every N minutes (default: run once and exit)bash <path-to-scripts>/watch.sh "$HOME/path/to/workspace" [--repos ...] [--stale-days N] [--loop N]
The script classifies each PR into buckets:
--stale-days days (default 14), including your own stale PRs. Sorted by idle time.Output includes PR size labels (S/M/L/XL based on lines changed), age, idle time, author, and labels.
Integration with other commands:
sync, mention the count from watch (e.g., “3 PRs waiting for your review”) in section 2 (planned work).reflect, flag if your review queue is growing or if you have stale PRs of your own.gcal (calendar signal — read-only)Google Calendar integration used mainly by sync (see step 2a above), but
callable standalone. Generic and independent of Team Brain / Jira keys.
One-time setup: bash core/scripts/gcal.sh authorize --client-secrets <path> — see mcp/gcal/README.md.
Usage:
bash core/scripts/gcal.sh status # config status, no secrets
bash core/scripts/gcal.sh today [--json] # today's events
bash core/scripts/gcal.sh upcoming [days] [--json] # next N days (default 7)
bash core/scripts/gcal.sh range <since> <until> [--json]
bash core/scripts/gcal.sh calendars [--json]
If the platform supports MCP, prefer the gcal MCP server
(mcp/gcal/) — same underlying client, agent-native tool calls
(status, today, upcoming, events_range, list_calendars,
authorize_instructions).
When asked to write a comment for a ticket tracker, use one of two formats:
short (default — quick status update)Hi team,
[One-liner update summarizing the status, action taken, or decision made.]
Thank you!
in-depth (detailed update with structure)Hi team,
**Updates:**
- [Update point 1]
- [Update point 2]
- [Update point 3]
**Next Steps:**
- [Action item 1]
- [Action item 2]
- [Action item 3]
Thank you!
Rules:
When running update, apply these heuristics to evolve the brain:
fix:, flag that feature work is underrepresentedAfter each update, compare current state against previous state:
feat: or perf:) → note the growthsync before standup meetings — always includes Jira (Atlassian MCP on Cursor; jira.sh elsewhere)ONBOARDING.md beside your skill or .engineer-brain/reflect on Fridaysupdate at month startquarterly before performance reviewsjira command when Atlassian MCP unavailable and JIRA_* env is set