npx claudepluginhub sanghun0724/swift-chameleonRepository-specific Swift patterns and recent implementation examples before AI edits.
SwiftChameleon shows an AI coding agent relevant Swift implementations from your repository before it edits code. It derives structural patterns and uses Git history to prefer recent implementations within a compatible role.
This independent project is based on Chameleon. The upstream history and MIT license are retained. The original project documentation is preserved in upstream-readme.md.
Swift support is extraction and contextual guidance. It does not provide compiler type resolution, macro expansion, a complete call graph, or Swift convention blocking. New files have path evidence until their source exists. Comments and identifier changes still count as Git changes.
Follow the Codex setup guide to register the local MCP server, derive and trust your Swift repository profile, and enable native hooks. No Claude CLI or Claude account is required.
The initial release retains the internal chameleon_mcp package, .chameleon profiles, and CHAMELEON_* settings for upstream compatibility. The independent project and marketplace name is swift-chameleon.
The inherited Claude compatibility package also retains /chameleon-explain, /chameleon-pr-review, /chameleon-receiving-code-review, and /chameleon-deep-work. See the upstream command guide for their workflows. These commands do not add Swift compiler analysis or Swift lint enforcement.
The server runs locally over stdio:
uv run --project /absolute/path/to/swift-chameleon/plugin/mcp --frozen chameleon-mcp
For Codex, register that command:
codex mcp add swift-chameleon --env CHAMELEON_CONVENTIONS_MD=0 -- uv run --project /absolute/path/to/swift-chameleon/plugin/mcp --frozen chameleon-mcp
Ask the agent to call chameleon_lifecycle with action bootstrap_repo and the repository path. Review and trust the resulting profile through action trust_profile. Call get_pattern_context with the absolute Swift file path before editing.
MCP supplies tools. Native Codex hooks supply startup and apply_patch context when you explicitly configure and trust them. See the Codex setup guide.
cd plugin/mcp
uv sync --frozen --extra dev
uv run ruff check chameleon_mcp/ ../../tests/unit/
uv run ruff format --check chameleon_mcp/ ../../tests/unit/
cd ../..
PYTHONPATH=. plugin/mcp/.venv/bin/python -m pytest tests/unit/ -q
See the implementation plan and verification evidence for the release scope and unrun checks.
Copyright for the upstream implementation remains with Cris Nahine. See LICENSE and NOTICE. This project is independently maintained and is not an upstream Chameleon release.
7-day visitors to each marketplace page
Anthropic example skills
Anthropic's Claude Code plugins, installed from the claude-plugins-official repository
Ultra-compressed communication mode. Shortens prose while preserving technical terms, code, commands, and exact errors.