agent-schema-swift-mirror
description (verbatim frontmatter)
The Swift (5th-language) mirror of the fleet's typed agent schema — real `enum AgentModel: String, Codable, CaseIterable` and `enum AgentTool` whose rawValues exactly mirror crates/schema/src/agent.rs (serde), scripts/agents/schema.ts (Zod), and scripts/agents/schema.py (Pydantic) — plus an executable cross-language drift check (compile with swiftc, print rawValues as JSON, diff against schema.py). Use when the user asks for the agent schema in Swift, to check the Swift mirror for drift, to add a model or tool to the shared agent enums, or after any edit to agent.rs/schema.ts/ schema.py. Trigger on "AgentModel in Swift", "swift mirror", "schema drift", "5th language", "cross-language check". Do NOT use for the Messages-API wire shape (swift-stack-trace owns CodingKeys/ClaudeAPI), for regenerating .claude/agents/*.yaml (that's `cargo run -p agent-gen`), or for editing the sibling mirrors themselves without also updating this one.
summary
The Swift (5th-language) mirror of the fleet's typed agent schema — real `enum AgentModel: String, Codable, CaseIterable` and `enum AgentTool` whose rawValues exactly mirror crates/schema/src/agent.rs (serde), scripts/agents/schema.ts (Zod), and scripts/agents/schema.py (Pydantic) — plus an execu...
source
plugins/cwc-swift-engineering/skills/agent-schema-swift-mirror/SKILL.md
provenance
created 2026-07-10 18:13:13 · JSON