GitHub (via gh CLI):
# Open PRs
gh pr list --state open --json number,title,author,createdAt,reviewDecision,statusCheckRollup
# Recent merged PRs
gh pr list --state merged --json number,title,mergedAt --limit 10
# Open issues assigned to user
gh issue list --assignee @me --state open --json number,title,labels
# CI status on current branch
gh run list --limit 5 --json status,conclusion,name,createdAt
Git (local state):
# Recent commits
git log --oneline -20 --format="%h %s (%an, %ar)"
# Branch status
git branch -vv
# Uncommitted changes
git status --short
Build/Tests (project-specific):
# Run build check
npm run build 2>&1 | tail -20 # or equivalent
# Run test suite
npm test 2>&1 | tail -30 # or equivalent
Error Tracking (if Sentry MCP available):
- Recent unresolved errors
- Error frequency trends
- Errors correlated with recent deploys
Cross-Reference and Analyze: Connect data across sources
- Which commits are in which PRs?
- Which CI failures correspond to which commits?
- Which errors appeared after which deployments?
- Which PRs are blocked by failing CI checks?
- Which issues are addressed by open PRs?
Generate Report: Format developer status report
# Developer Report - YYYY-MM-DD
## Critical (Action Required)
- CI FAILING: main branch build broken since commit abc123 (2h ago)
- ERROR SPIKE: 500 errors up 300% in auth service since deploy v1.2.3
## PRs Requiring Attention
| PR | Title | Author | Status | CI | Age |
|----|-------|--------|--------|-----|-----|
| #42 | Fix auth timeout | @alice | Approved | Passing | 2d |
| #38 | Refactor DB layer | @bob | Changes requested | Failing | 5d |
## Recent Activity
- 5 commits merged today
- 2 new issues opened
- 1 deployment completed (v1.2.3)
## Code Health
- Build: PASSING
- Tests: 142 passed, 0 failed
- Coverage: 78.5%
Store for Trend Tracking: Log report data in memory
sc_memory_store(
content="Dev report YYYY-MM-DD: build=pass, tests=142/142, open_prs=5, errors=3",
category="dev-report",
confidence=1.0
)
- Enables: "show me build health over the past month"
- Enables: "when did test failures start increasing?"
Alert on Critical Items: Send urgent items to Telegram
sc_send_message(
message="ALERT: CI broken on main. Commit abc123 by @alice. Error: TypeScript compilation failed.",
priority="high"
)
- Only alert for: build failures on main, error rate spikes, security vulnerabilities
- Never alert for: informational updates, non-blocking PR status
# Morning Brief - {{DATE}}
## Overnight Summary
- Commits merged: {{N}}
- PRs opened: {{N}} | merged: {{N}} | closed: {{N}}
- CI status: {{PASSING/FAILING}} (main branch)
- New errors: {{N}} ({{SEVERITY}})
## Action Items
1. {{CRITICAL_ITEM}} - {{CONTEXT}}
2. {{REVIEW_NEEDED}} - PR #{{N}} by {{AUTHOR}}
3. {{FOLLOW_UP}} - {{CONTEXT}}
## Your Open PRs
| PR | Status | CI | Last Activity |
|----|--------|-----|--------------|
{{PR_TABLE}}
## Team Activity
{{ACTIVITY_SUMMARY}}
PR Review Checklist
When reviewing PRs via this workflow:
CI Failure Triage Guide
CI Failure
├── Build failure
│ ├── TypeScript error → Check recent type changes
│ ├── Import error → Check for missing dependencies
│ └── Compilation error → Check for syntax issues
├── Test failure
│ ├── Assertion error → Check expected vs actual values
│ ├── Timeout → Check for async issues or infinite loops
│ └── Setup error → Check test fixtures and mocks
└── Lint/Format failure
├── ESLint → Run auto-fix: npx eslint --fix
└── Prettier → Run auto-fix: npx prettier --write
Custom Report Templates
Users can customize reports by modifying templates in:
~/superclaw/config/report-templates/
Available template variables:
{{DATE}}, {{TIME}} -- Current date/time
{{BRANCH}} -- Current git branch
{{PR_COUNT}}, {{ISSUE_COUNT}} -- Counts
{{CI_STATUS}} -- Build status
{{ERROR_COUNT}} -- Error tracker count
Team-Wide Dashboards
For multi-developer projects:
# All team members' PR status
gh pr list --state open --json number,title,author,reviewDecision
# Contribution stats
git shortlog -sn --since="1 week ago"
# File hotspots (most changed files)
git log --since="1 week ago" --name-only --format="" | sort | uniq -c | sort -rn | head -20
Integration with Automation Pipeline
Schedule daily reports via SuperClaw's cron system:
sc_cron_add(
name="daily-dev-report",
schedule="0 9 * * 1-5", # 9 AM weekdays
command="superclaw dev-workflow morning-brief"
)
Deployment Tracking
Track deployment history:
sc_memory_add_entity(
name="deploy-v1.2.3",
type="deployment",
properties={version: "1.2.3", timestamp: "...", commit: "abc123", environment: "production"}
)
sc_memory_add_relation(from="deploy-v1.2.3", to="pr-42", type="includes")
sc_memory_add_relation(from="deploy-v1.2.3", to="pr-38", type="includes")
Query: "what PRs were in the last production deploy?"
sc_memory_graph_query(query="deployment production latest includes")
Troubleshooting
gh CLI not found?
Build command unknown?
- Check package.json for scripts (npm/yarn/pnpm)
- Check Makefile for targets
- Check for CI config files (.github/workflows/, .gitlab-ci.yml)
Rate limited by GitHub API?
- gh CLI handles authentication automatically
- For heavy usage, consider using
--limit flags
- Cache responses in memory for repeated queries within the same session
1---2name: dev-workflow3description: Developer productivity workflows - PR review, CI monitoring, deploy tracking, code metrics4---56<Purpose>7Automate common developer workflows that span multiple tools and data sources -- GitHub PRs, CI pipelines, error tracking, code metrics, and system health. This skill gathers information from disparate sources in parallel, cross-references it (which commits caused which errors, which PRs affect which issues), generates actionable developer reports, and sends critical alerts. It replaces the manual morning routine of checking GitHub, CI, Sentry, and Slack.8</Purpose>910<Use_When>11- User says "check PRs", "CI status", "what's the deploy status?"12- User asks "code metrics", "developer report", "project health"13- User says "what happened while I was away?", "catch me up", "morning brief"14- User wants to review pull requests with context from CI and error tracking15- User asks "which commits broke the build?", "what errors are new?"16- User wants to track deployment status or release readiness17- User says "dev report", "status report", "weekly summary"18</Use_When>1920<Do_Not_Use_When>21- Pure code editing or implementation -- use executor agents or `ralph` instead22- Git operations only (commit, branch, merge) -- use `git-master` skill instead23- Deep code analysis or architecture review -- use `analyze` skill instead24- Debugging a specific bug -- use `analyze` or delegate to architect agent25- Writing documentation -- use writer agent instead26</Do_Not_Use_When>2728<Why_This_Exists>29Developers waste 30-60 minutes daily checking multiple tools for status updates. GitHub notifications pile up, CI failures are missed, errors go unnoticed until users report them, and nobody knows which deploy is in production. This skill consolidates all developer-relevant information into a single workflow, cross-references data across tools, and surfaces what matters -- critical failures, blocking PRs, new errors, and deployment state.30</Why_This_Exists>3132<Execution_Policy>33- Gather data from all sources in parallel (GitHub, git, build, error tracking)34- Cross-reference data to surface actionable insights, not raw dumps35- Prioritize critical items: build failures > new errors > blocking PRs > informational36- Store reports in memory for trend tracking over time37- Send critical alerts to Telegram only for actionable issues38- Default model routing: data gathering at haiku tier, cross-referencing at sonnet tier39- Respect rate limits on external APIs (GitHub, Sentry)40</Execution_Policy>4142<Steps>431. **Collect Data in Parallel**: Gather from multiple sources simultaneously4445 **GitHub** (via gh CLI):46 ```bash47 # Open PRs48 gh pr list --state open --json number,title,author,createdAt,reviewDecision,statusCheckRollup49 # Recent merged PRs50 gh pr list --state merged --json number,title,mergedAt --limit 1051 # Open issues assigned to user52 gh issue list --assignee @me --state open --json number,title,labels53 # CI status on current branch54 gh run list --limit 5 --json status,conclusion,name,createdAt55 ```5657 **Git** (local state):58 ```bash59 # Recent commits60 git log --oneline -20 --format="%h %s (%an, %ar)"61 # Branch status62 git branch -vv63 # Uncommitted changes64 git status --short65 ```6667 **Build/Tests** (project-specific):68 ```bash69 # Run build check70 npm run build 2>&1 | tail -20 # or equivalent71 # Run test suite72 npm test 2>&1 | tail -30 # or equivalent73 ```7475 **Error Tracking** (if Sentry MCP available):76 - Recent unresolved errors77 - Error frequency trends78 - Errors correlated with recent deploys79802. **Cross-Reference and Analyze**: Connect data across sources81 - Which commits are in which PRs?82 - Which CI failures correspond to which commits?83 - Which errors appeared after which deployments?84 - Which PRs are blocked by failing CI checks?85 - Which issues are addressed by open PRs?86873. **Generate Report**: Format developer status report88 ```markdown89 # Developer Report - YYYY-MM-DD9091 ## Critical (Action Required)92 - CI FAILING: main branch build broken since commit abc123 (2h ago)93 - ERROR SPIKE: 500 errors up 300% in auth service since deploy v1.2.39495 ## PRs Requiring Attention96 | PR | Title | Author | Status | CI | Age |97 |----|-------|--------|--------|-----|-----|98 | #42 | Fix auth timeout | @alice | Approved | Passing | 2d |99 | #38 | Refactor DB layer | @bob | Changes requested | Failing | 5d |100101 ## Recent Activity102 - 5 commits merged today103 - 2 new issues opened104 - 1 deployment completed (v1.2.3)105106 ## Code Health107 - Build: PASSING108 - Tests: 142 passed, 0 failed109 - Coverage: 78.5%110 ```1111124. **Store for Trend Tracking**: Log report data in memory113 ```114 sc_memory_store(115 content="Dev report YYYY-MM-DD: build=pass, tests=142/142, open_prs=5, errors=3",116 category="dev-report",117 confidence=1.0118 )119 ```120 - Enables: "show me build health over the past month"121 - Enables: "when did test failures start increasing?"1221235. **Alert on Critical Items**: Send urgent items to Telegram124 ```125 sc_send_message(126 message="ALERT: CI broken on main. Commit abc123 by @alice. Error: TypeScript compilation failed.",127 priority="high"128 )129 ```130 - Only alert for: build failures on main, error rate spikes, security vulnerabilities131 - Never alert for: informational updates, non-blocking PR status132</Steps>133134<Tool_Usage>135- `Bash` -- Execute gh CLI commands, git commands, build/test commands136- `sc_send_message` -- Send critical alerts to Telegram137- `sc_memory_store` -- Log report data for trend tracking138- `sc_memory_search` -- Query historical reports for trend analysis139- `sc_memory_add_entity` -- Create report entities in knowledge graph140- `sc_memory_add_relation` -- Link reports to deployments, errors, PRs141- `sc_memory_graph_query` -- Query deployment history and error trends142- `Read` -- Load configuration files, build outputs, test results143- `Write` -- Save generated reports to ~/superclaw/data/reports/144- `Grep` -- Search logs and outputs for specific error patterns145- `Glob` -- Find log files, test results, coverage reports146- `WebFetch` -- Access external dashboards or status pages147- `Edit` -- Update configuration files if needed148</Tool_Usage>149150<Examples>151<Good>152User: "catch me up - what happened overnight?"153Action:1541. Parallel data collection:155 - gh pr list: 3 new PRs opened, 2 merged156 - gh run list: All CI passing on main, 1 failure on feature/auth branch157 - git log: 8 commits merged since yesterday 6PM158 - Memory search: Compare with yesterday's report1592. Cross-reference: The CI failure on feature/auth is from PR #45 (Bob's auth refactor)1603. Report: "Since yesterday 6PM: 2 PRs merged (both passing CI), 3 new PRs opened. One CI failure on feature/auth branch (PR #45) -- TypeScript error in auth.service.ts. No new errors in production. Build and tests healthy on main."1614. Store report in memory162Why good: Parallel collection, cross-referenced insights, actionable summary, historical context.163</Good>164165<Good>166User: "which commits broke the build?"167Action:1681. Get CI failure details: `gh run list --status failure`1692. Get commit list for the failing run1703. Cross-reference with git log1714. Identify the specific commit and author1725. Show the error message and affected files173Why good: Specific, actionable answer with full context.174</Good>175176<Bad>177User: "catch me up"178Action: Running `gh pr list` and pasting raw JSON output.179Why bad: Raw data dump without cross-referencing, prioritization, or formatting. Should produce a human-readable report with actionable insights.180</Bad>181182<Bad>183User: "fix the CI failure"184Action: Running dev-workflow to generate a report.185Why bad: The user wants a fix, not a report. Route to executor or `ralph` for code changes.186</Bad>187</Examples>188189<Escalation_And_Stop_Conditions>190- If gh CLI is not authenticated, instruct the user to run `gh auth login` first191- If the project has no CI pipeline configured, skip CI sections and note the gap192- If Sentry MCP is not available, skip error tracking sections and note the gap193- If git is not initialized in the project, skip git sections194- If critical alerts cannot be sent (Telegram not configured), display them prominently in the report instead195- If data collection from any source fails, proceed with available sources and note what is missing196</Escalation_And_Stop_Conditions>197198<Final_Checklist>199- [ ] Data collected from all available sources (GitHub, git, build, errors)200- [ ] Critical items identified and prioritized201- [ ] Cross-referencing performed (commits to PRs, PRs to CI, commits to errors)202- [ ] Report formatted with clear sections and priorities203- [ ] Report stored in memory for trend tracking204- [ ] Critical alerts sent via Telegram (if applicable)205- [ ] No raw data dumps -- all output is human-readable and actionable206- [ ] Missing data sources noted in the report207</Final_Checklist>208209<Advanced>210## Developer Morning Brief Template211212```markdown213# Morning Brief - {{DATE}}214215## Overnight Summary216- Commits merged: {{N}}217- PRs opened: {{N}} | merged: {{N}} | closed: {{N}}218- CI status: {{PASSING/FAILING}} (main branch)219- New errors: {{N}} ({{SEVERITY}})220221## Action Items2221. {{CRITICAL_ITEM}} - {{CONTEXT}}2232. {{REVIEW_NEEDED}} - PR #{{N}} by {{AUTHOR}}2243. {{FOLLOW_UP}} - {{CONTEXT}}225226## Your Open PRs227| PR | Status | CI | Last Activity |228|----|--------|-----|--------------|229{{PR_TABLE}}230231## Team Activity232{{ACTIVITY_SUMMARY}}233```234235## PR Review Checklist236237When reviewing PRs via this workflow:238- [ ] CI checks passing239- [ ] No merge conflicts240- [ ] Code coverage maintained or improved241- [ ] No security warnings in dependencies242- [ ] Related issues linked243- [ ] Description explains the "why" not just the "what"244245## CI Failure Triage Guide246247```248CI Failure249├── Build failure250│ ├── TypeScript error → Check recent type changes251│ ├── Import error → Check for missing dependencies252│ └── Compilation error → Check for syntax issues253├── Test failure254│ ├── Assertion error → Check expected vs actual values255│ ├── Timeout → Check for async issues or infinite loops256│ └── Setup error → Check test fixtures and mocks257└── Lint/Format failure258 ├── ESLint → Run auto-fix: npx eslint --fix259 └── Prettier → Run auto-fix: npx prettier --write260```261262## Custom Report Templates263264Users can customize reports by modifying templates in:265`~/superclaw/config/report-templates/`266267Available template variables:268- `{{DATE}}`, `{{TIME}}` -- Current date/time269- `{{BRANCH}}` -- Current git branch270- `{{PR_COUNT}}`, `{{ISSUE_COUNT}}` -- Counts271- `{{CI_STATUS}}` -- Build status272- `{{ERROR_COUNT}}` -- Error tracker count273274## Team-Wide Dashboards275276For multi-developer projects:277```bash278# All team members' PR status279gh pr list --state open --json number,title,author,reviewDecision280281# Contribution stats282git shortlog -sn --since="1 week ago"283284# File hotspots (most changed files)285git log --since="1 week ago" --name-only --format="" | sort | uniq -c | sort -rn | head -20286```287288## Integration with Automation Pipeline289290Schedule daily reports via SuperClaw's cron system:291```292sc_cron_add(293 name="daily-dev-report",294 schedule="0 9 * * 1-5", # 9 AM weekdays295 command="superclaw dev-workflow morning-brief"296)297```298299## Deployment Tracking300301Track deployment history:302```303sc_memory_add_entity(304 name="deploy-v1.2.3",305 type="deployment",306 properties={version: "1.2.3", timestamp: "...", commit: "abc123", environment: "production"}307)308sc_memory_add_relation(from="deploy-v1.2.3", to="pr-42", type="includes")309sc_memory_add_relation(from="deploy-v1.2.3", to="pr-38", type="includes")310```311312Query: "what PRs were in the last production deploy?"313```314sc_memory_graph_query(query="deployment production latest includes")315```316317## Troubleshooting318319**gh CLI not found?**320- Install: `brew install gh` (macOS) or see https://cli.github.com/321- Authenticate: `gh auth login`322323**Build command unknown?**324- Check package.json for scripts (npm/yarn/pnpm)325- Check Makefile for targets326- Check for CI config files (.github/workflows/, .gitlab-ci.yml)327328**Rate limited by GitHub API?**329- gh CLI handles authentication automatically330- For heavy usage, consider using `--limit` flags331- Cache responses in memory for repeated queries within the same session332</Advanced>