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 alone${SKILL_DIR}/BRAIN.md (the living document)sync). Other platforms: jira.sh CLI when JIRA_* env is set.Critical: Standup-relevant work is frequently not in authored git commits.
Reviews, releases, demos, office-hours/meetup prep, cross-team notifications, and
design-feedback incorporation must be pulled from GitHub/Jira/transcripts/BRAIN —
not inferred from git log --author alone.
Parse the user’s request to determine which command to run:
sync (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.
gh to Friday-dated activity onlybash "${SKILL_DIR}/scripts/scan.sh" "$HOME/path/to/workspace" [1 or 3]
gh auth; scan.sh
already emits these when configured):
# Authored PRs updated in window
gh search prs --author=@me --updated=">=YYYY-MM-DD" --limit 20
# Reviews given in window
gh search prs --reviewed-by=@me --updated=">=YYYY-MM-DD" --limit 20
# Recent releases (configure RELEASE_REPOS in scan.sh)
gh release list --repo your-org/your-repo --limit 3
Plus BRAIN.md “Current Sprint Context” / upcoming events (demos, office hours, meetups).
2a. Calendar signal (gcal MCP, optional but preferred when connected):
status() on the gcal MCP server first.
configured: true → call today_sync() (add upcoming_sync(3) or
events_range + manual filter on Mondays) — not raw today().
Only merge task-related or active-participation events into standup
(hackathon, demo, meetup, workshop, release dry-run).configured: false → call authorize_instructions(), relay the
one-time setup to the user once, and fall back to BRAIN.md’s
Upcoming Events table for this sync — don’t block on it.gcal MCP connected → run bash core/scripts/gcal.sh today --sync if you
can shell out, otherwise fall back to BRAIN.md Upcoming Events.gcal or BRAIN.md. Precision over recall: when unsure,
omit the meeting or ask the user once.2b. Jira signal (Atlassian MCP — required on every Cursor sync):
gh alone miss
ticket work, ops/verify closes, hackathon filings, and doc-only deliverables.plugin-atlassian-atlassian (Cursor marketplace Atlassian plugin).
Do not rely on jira.sh in Cursor unless MCP is unavailable and JIRA_* env vars are set.needsAuth → tell the user to complete
ONBOARDING.md Step 3;
list Jira as blocked in standup — do not silently omit ticket context.getAccessibleAtlassianResources → cloudId (pass to every searchJiraIssuesUsingJql call)searchJiraIssuesUsingJql — tickets updated in the standup window
(Monday: Friday only; Tue–Fri: prior calendar day). Example Tue–Fri:
assignee = currentUser() AND updated >= startOfDay(-1) ORDER BY updated DESCsearchJiraIssuesUsingJql — assignee = currentUser() AND statusCategory = "In Progress" ORDER BY updated DESC
(aligns with jira.sh active; works across custom workflow status names)sprint in openSprints() — may be empty; in-progress query is the fallbackgetJiraIssue for top 1–2 active keys when summary/epic context helpsPROJ-12345, epic name).
Prefer recently updated + In Progress over a raw issue dump.Read ${SKILL_DIR}/BRAIN.md for sprint context, active tickets, and
scheduled team events (Upcoming Events table — the fallback when gcal
isn’t configured).
Prefer the tone of a real standup (what a teammate cares about) over a git archaeology report. Example of good output:
1. What I worked on yesterday:
- Reviewed quality-gate PRs, prepared a demo for a community session, incorporated feedback for TICKET-123 and got it ready for review, and released my-tool upstream.
2. What I plan on working on today:
- Preparing the release notification for the partner team and raising the corresponding dependency bump PR, actively reviewing open PRs, and preparing for the community meetup.
3. Blockers:
- None
sync follow-up)Mirrors the Team Brain correction loop (correct / same source_ref update):
human paste → absorb as ground truth → record what was wrong → close the gap.
When the user pastes or describes their real standup after a generated sync:
scan.sh + gh + Jira MCP returned.scripts/scan.sh config and/or the sync steps above in the same session.update (refresh the brain)Re-scan everything and update BRAIN.md.
bash "${SKILL_DIR}/scripts/scan.sh" "$HOME/path/to/workspace" 30
Read the current ${SKILL_DIR}/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 "${SKILL_DIR}/scripts/scan.sh" "$HOME/path/to/workspace" 90
Read ${SKILL_DIR}/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]
scan (raw data refresh)Just run the scanner and display results.
[days] argument (default: 7) and optional --json.bash "${SKILL_DIR}/scripts/scan.sh" "$HOME/path/to/workspace" [days]
# Structured output for tooling (requires python3):
bash "${SKILL_DIR}/scripts/scan.sh" "$HOME/path/to/workspace" [days] --json
jq / a local consumer.
Prefer text for standups; prefer --json when feeding the dashboard data port or CI.doctor (brain health check)Check the health and completeness of your engineering brain.
bash "${SKILL_DIR}/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 "${SKILL_DIR}/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)When asked to write a Jira comment, use one of two formats based on the request:
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)docs/engineer-brain-onboarding.md in the brainstack repo)reflect on Fridaysupdate at month startquarterly before performance reviewsjira.sh only when Atlassian MCP unavailable and JIRA_* env is setsession-analyzer skill is available, pull AI usage statswatch to see review queue, stale PRs, and team activity