From agentflow
Diagnostic health check for the AgentFlow pipeline. Verifies prerequisites, checks connectivity, reports pipeline status. In plugin mode, also checks plugin installation, agents, hooks, and inter-agent communication.
npx claudepluginhub urrhb/agentflowThis skill uses the workspace's default tool permissions.
Run a comprehensive health check on the AgentFlow pipeline. Report status for every subsystem and provide actionable fix instructions for any issues found.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Guides MCP server integration in Claude Code plugins via .mcp.json or plugin.json configs for stdio, SSE, HTTP types, enabling external services as tools.
Run a comprehensive health check on the AgentFlow pipeline. Report status for every subsystem and provide actionable fix instructions for any issues found.
Run all checks below in order. Collect results, then print the summary at the end.
Verify each of these exists and is functional:
claude --version to confirm it is accessiblegit --versiongh --version, then gh auth status to confirm authenticationnode --versionnpm --version~/.claude/sdlc/conventions.md exists~/.claude/skills/ contains: spec-to-asana.md, sdlc-worker.md, sdlc-orchestrate.md, sdlc-stop.md, sdlc-health.md, sdlc-demo.md~/.claude/sdlc/prompts/ contains: decompose.md, research.md, build.md, review.md, test.mdFor any missing file, report exactly which file is missing and suggest running ./setup.sh from the agentflow repo.
Test the Asana MCP connection:
get_me tool. If it responds with user info, the connection is live.get_projects and confirm at least one project is returnedget_tasks for itadd_comment tool is available in the MCP toolsetIf MCP is not responding, report: "Asana MCP server not connected. Check your MCP configuration in Claude Code settings."
Search for projects with [SDLC] in the name. For each one found:
[LAST_SWEEP:] in description)
[COST:~$N] values)[MERGE_LOCK:] in Status task)[SWEEP:RUNNING] in Status task)If no [SDLC] projects found, report: "No AgentFlow projects found. Create one with: /spec-to-asana"
crontab -l and check for a line containing agentflow-cron.sh~/.claude/sdlc/agentflow-cron.sh exists and is executable/tmp/agentflow-orchestrate.log existsIf crontab is not configured: "Crontab not set up. Run: ./setup.sh --with-cron"
Run these in the current working directory:
git branch --show-current should NOT be main or master (workers should be on feature branches)git status --porcelain should be empty (uncommitted changes block worktree creation)git remote get-url origin should return a valid URLgit ls-remote --exit-code origin HEAD should succeedIf a LEARNINGS.md file exists in the current project:
If running as a Claude Code plugin:
Output:
Plugin: [OK] v2.0.0, 4 agents, 3 hooks (or [N/A] Not in plugin mode)
Print a clean summary:
AgentFlow Health Check
======================
Prerequisites: [OK] All 12 checks passed (or [FAIL] Missing: <list>)
PM Tool: [OK] Connected as <username> (or [FAIL] <error>)
Pipeline: N project(s), M active tasks, K in Needs Human
Orchestrator: [OK] Last sweep 5 min ago (or [FAIL] No sweep in 60 min!)
Crontab: [OK] Configured, last run 12 min ago (or [FAIL] Not set up)
Git: [OK] Clean, on branch feature/xyz (or [WARN] Uncommitted changes)
LEARNINGS.md: [OK] 23 lines (or [WARN] 52 lines -- over 50-line cap)
Plugin: [OK] v2.0.0, 4 agents, 3 hooks (or [N/A] Not in plugin mode)
Then list any issues, sorted by severity:
Issues Found:
[CRITICAL] No orchestrator sweep in 65 minutes -- check crontab and /tmp/agentflow-orchestrate.log
[CRITICAL] Asana MCP not responding -- check MCP server configuration
[WARNING] 2 tasks in Needs Human: APP-003, APP-007
[WARNING] GitHub CLI not authenticated -- run: gh auth login
[INFO] LEARNINGS.md is 48 lines (approaching 50-line cap)
[INFO] No AgentFlow projects found -- create one with /spec-to-asana
If zero issues found, print:
No issues found. Pipeline is healthy.
For every issue reported, include a one-line fix command or instruction:
| Issue | Fix |
|---|---|
| Claude CLI not found | Install from https://claude.ai/code |
| git not found | Install git for your platform |
| gh not installed | Install from https://cli.github.com/ |
| gh not authenticated | Run: gh auth login |
| Missing skill/prompt files | Run: cd /path/to/agentflow && ./setup.sh |
| Asana MCP not responding | Check MCP server config in Claude Code settings |
| No SDLC projects | Run: /spec-to-asana with a SPEC.md in your project |
| Crontab not configured | Run: ./setup.sh --with-cron |
| No recent sweep | Check: tail -20 /tmp/agentflow-orchestrate.log |
| Sweep errors in log | Check: grep ERROR /tmp/agentflow-orchestrate.log | tail -5 |
| On main branch | Create a feature branch: git checkout -b feature/your-feature |
| Uncommitted changes | Commit or stash: git stash |
| LEARNINGS.md over cap | Archive old entries to LEARNINGS-archive.md |