Detect Workflow from Git Context
cph_detect_workflowDetects the matching workflow for the current git branch, returning a match or a suggestion to create one when none exists.
Instructions
Detect which workflow matches the current git branch.
Call this if you don't have a workflow_id in CLAUDE.md yet, or if you're on an unfamiliar branch and want to know if a workflow already exists for it.
Returns either a matched workflow or a suggestion to create one.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "cph_detect_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory for git detection |