From superclaw
Developer productivity workflows - PR review, CI monitoring, deploy tracking, code metrics
How this skill is triggered — by the user, by Claude, or both
Slash command
/superclaw:dev-workflowThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
<Purpose>
<Use_When>
<Do_Not_Use_When>
ralph insteadgit-master skill insteadanalyze skill insteadanalyze or delegate to architect agent<Why_This_Exists> Developers 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. </Why_This_Exists>
<Execution_Policy>
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):
Cross-Reference and Analyze: Connect data across sources
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
)
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"
)
<Tool_Usage>
Bash -- Execute gh CLI commands, git commands, build/test commandssc_send_message -- Send critical alerts to Telegramsc_memory_store -- Log report data for trend trackingsc_memory_search -- Query historical reports for trend analysisRead -- Load configuration files, build outputs, test resultsWrite -- Save generated reports to ~/superclaw/data/reports/Grep -- Search logs and outputs for specific error patternsGlob -- Find log files, test results, coverage reportsWebFetch -- Access external dashboards or status pagesEdit -- Update configuration files if needed
</Tool_Usage><Escalation_And_Stop_Conditions>
gh auth login first<Final_Checklist>
# 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}}
When reviewing PRs via this workflow:
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
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 countFor 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
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"
)
Track deployment history:
sc_memory_store(
category="deployment",
subject="deploy-v1.2.3 production",
content="Version 1.2.3 deployed to production. Commit: abc123. Includes PR #42, PR #38.",
confidence=1.0
)
Query: "what PRs were in the last production deploy?"
sc_memory_search(query="deployment production", category="deployment")
gh CLI not found?
brew install gh (macOS) or see https://cli.github.com/gh auth loginBuild command unknown?
Rate limited by GitHub API?
--limit flagsnpx claudepluginhub jaminitachi/superclaw --plugin superclawGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.