# Cfn Routing Config

> Provider routing and hybrid routing config for CFN. Use when configuring which API provider handles requests, or setting up hybrid multi-provider routing.

- Skill: `masharratt/cfn-routing-config` (Agent Skill)
- Install (CLI): `npx skillmds@latest add masharratt/cfn-routing-config`
- Raw SKILL.md: https://api.skillmd.com/api/skills/masharratt/cfn-routing-config/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: masharratt (https://skillmd.com/u/masharratt)
- Updated: 2026-09-10
- Page: https://skillmd.com/skills/masharratt/cfn-routing-config

---


# Routing Config Skill (Mega-Skill)

**Version:** 1.0.0
**Purpose:** Provider routing and hybrid configuration for CFN
**Status:** Production
**Consolidates:** cfn-provider-routing, cfn-hybrid-routing

---

## Overview

This mega-skill provides complete routing configuration:
- **Provider** - API provider selection and routing rules
- **Hybrid** - Hybrid mode routing (CLI + Task coordination)

---

## Directory Structure

```
routing-config/
├── SKILL.md
├── lib/
│   ├── provider/         # From cfn-provider-routing
│   └── hybrid/           # From cfn-hybrid-routing
└── cli/
```

---

## GUARDRAIL: Anthropic API Ban (CRITICAL)

**Anthropic API calls are BANNED in project code.** This covers Claude SDK calls, direct Anthropic provider integrations, and benchmark candidates referencing `anthropic:claude-*` models. Claude Code itself stays in use for development; the ban applies only to programmatic API usage from project code.

Any routing config MUST resolve Anthropic model ids to their xAI replacements:

| Banned model | Replacement |
|--------------|-------------|
| `anthropic:claude-sonnet-*` | `xai:grok-4-1-fast-non-reasoning` |
| `anthropic:claude-opus-*` | `xai:grok-4.20-beta-0309-reasoning` |
| `anthropic:claude-haiku-*` | `xai:grok-4-1-fast-non-reasoning` |

Adding any Anthropic provider integration requires explicit per-request user permission. No exceptions, no defaults.

---

## Migration Paths

| Old Path | New Path |
|----------|----------|
| cfn-provider-routing/ | routing-config/lib/provider/ |
| cfn-hybrid-routing/ | routing-config/lib/hybrid/ |

---

## Version History

### 1.0.0 (2025-12-02)
- Consolidated 2 routing skills into mega-skill


