autonomous-loop
Iterate until success or limit, composing existing skills with Jidoka integration
Detect domain from context and find appropriate team member
$ npx -y skills add WellApp-ai/Well --skill team-routing --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/team-routingContext preview
The summary Claude sees to decide when to auto-load this skill.
Detect domain from context and find appropriate team member
name: team-routing description: Detect domain from context and find appropriate team member
Automatically detect domain from branch names or file paths and find the appropriate reviewer.
Extract domain keywords from context:
**From branch name:**
feature/tables-filter → keywords: ["tables"] fix/auth-token-expired → keywords: ["auth"] chore/settings-refactor → keywords: ["settings"]
**From changed files:**
git diff --name-only origin/develop | head -20
Match file paths against known patterns:
API-query-database: [Domains-DB-ID]
Filter: Keywords contains [extracted-keyword]
OR Codebase_Paths contains [file-pattern]**Expected result:**
API-query-database: Team Capabilities
Filter: Primary_Domain matches [domain-name]
AND Availability = "Available"
Sort: Open_PR_Count ASC**Expected result:**
For each candidate: 1. Query current open PRs:
gh pr list --state open --author [github_handle] --json number | jq length
2. Compare against Max_Open_PRs threshold 3. Skip if at or over capacity
If no available primary owner:
1. **Backup Owners:** Query Skills table for overlapping skills 2. **Skills Match:** Match changed file extensions to skill file patterns 3. **No Match:** Return warning: "No available reviewer found for domain [X]"
---
Present findings as:
## Domain Detection **Branch:** [branch-name] **Detected Domain:** [domain-name] **Topology:** [stream-aligned | platform | enabling | complicated-subsystem] ### Reviewer Assignment **Primary Owner:** @[github_handle] ([person_name]) **Availability:** [Available | At capacity (X/Y PRs)] **Assignment:** [Assigned | Fallback to @backup | No available reviewer]
---
This skill is invoked by:
**Notion Databases Required:**
Iterate until success or limit, composing existing skills with Jidoka integration
Generate and maintain BPMN 2.0 diagrams linked to Gherkin scenarios
Research best-in-class products using Browser MCP and WebSearch
Systematic debugging with MCP integration, auto-invoke from qa-commit, Phase 7 Harden