mcp-zen-of-languages
CLAUDE.md2 starsChanged 3 months agoMITView on GitHub
Use GitHub MCP tools (mcp__github__*) for all GitHub operations — listing PRs, reading diffs, viewing issues, creating PRs, etc. Do not use the gh CLI. The project uses Keysafe which blocks third-party CLI token consumers, so gh will always return 401 Bad credentials. This project uses uv exclusively. Never use pip or pip install directly. Coverage threshold is 95% — pytest will fail if it drops below. Coverage is measured over src/mcp_zen_of_languages/ only; scripts/ and tests/ are excluded. Ruff is…
- Installs packages
In this repositoryOne other file it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
The file
We split this CLAUDE.md into the rules it gives an agent
7 rules. About 0 are common, 1 is distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 5
Use GitHub MCP tools (mcp__github__*) for all GitHub operations — listing PRs, reading diffs, viewing issues, creating PRs, etc.
- Distinctive: line 54
Use rrt (repo-release-tools) for branch creation and versioning — never create branches or bump versions manually.
- Very specific: line 70
Commit messages must follow Conventional Commits (feat:, fix:, ci:, docs:, chore:, refactor:, test:, perf:, style:, build:).
- Very specific: line 76
When rrt bump runs it updates versions in two files simultaneously:
- Very specific: line 80
Never edit these manually when bumping.
- Very specific: line 122
Run uv run poe check_orphan_docs before committing to ensure all new pages are wired into mkdocs.yml navigation.
- Very specific: line 162
If a hook auto-fixes files, stage the fixes and re-run git commit (do not use --no-verify to bypass).
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Claude Code Instructions
GitHub operations
Use GitHub MCP tools (mcp__github__*) for all GitHub operations — listing PRs,
reading diffs, viewing issues, creating PRs, etc. Do not use the gh CLI.
The project uses Keysafe which blocks third-party CLI token consumers, so gh
will always return 401 Bad credentials.
Package manager
This project uses uv exclusively. Never use pip or pip install directly.
uv sync --all-groups --all-extras # install all deps (dev + docs)
uv sync --group dev # dev deps only
uv run <command> # run any tool in the project venv
uvx <tool> # run a one-off tool without installingRunning tests
uv run pytest -xvs # run full suite (stops at first failure)
uv run pytest -x -q --no-cov <path> # fast run without coverageCoverage threshold is 95% — pytest will fail if it drops below.
Coverage is measured over src/mcp_zen_of_languages/ only; scripts/ and
tests/ are excluded.
Linting and type checking
uv run ruff check --fix # lint with auto-fix
uv run ruff format # format
uv run ty check --error-on-warning # strict type checking (ty, not mypy)
uvx pre-commit run --all-files # run all pre-commit hooksRuff is configured with select = ["ALL"] — all rules enabled, only a handful
explicitly suppressed (see [tool.ruff.lint.extend-ignore] in pyproject.toml).
scripts/** have relaxed rules (D, T201, INP001, S, ANN ignored).
Ruff 0.16 formats Markdown.
ruff formatwith no path argument reformats Python inside fenced code blocks in.mdfiles, not just.pysources. The pre-commit hook is deliberately gatedtypes_or: ["python", "pyi"]and does not do this, so a bareuv run ruff formatandpre-commit run ruff-formatproduce different results. Prefer the hook. If you runruff formatdirectly, checkgit statusfor unintended.mdchanges before staging.
Branching and commits (repo-release-tools)
Use rrt (repo-release-tools) for branch creation and versioning — never create branches or bump versions manually.
uv run poe branch_feat # create feat/<name> branch
uv run poe branch_fix # create fix/<name> branch
uv run poe branch_ci # create ci/<name> branch
uv run poe branch_docs # create docs/<name> branch
# etc. — see pyproject.toml [tool.poe.tasks] for full list
uv run poe bump_patch # bump patch version (updates pyproject.toml + __init__.py)
uv run poe bump_minor
uv run poe bump_major
uv run poe changelog_preview # dry-run: preview changelog without writingCommit messages must follow Conventional Commits (feat:, fix:, ci:,
docs:, chore:, refactor:, test:, perf:, style:, build:).
The rrt-commit-subject pre-commit hook enforces this on every commit.
Version targets
When rrt bump runs it updates versions in two files simultaneously:
pyproject.toml—[project] versionsrc/mcp_zen_of_languages/__init__.py—__version__
Never edit these manually when bumping; always use rrt bump.
Release workflow
uv run poe branch_chore— create a release prep branchuv run poe bump_patch(orbump_minor/bump_major)- Review and commit the generated changelog entry
- Open a PR → merge to
main - Tag
vX.Y.Zon main → CI publishes to PyPI, GHCR, and GitHub Releases
The CI github-release job attaches wheel, sdist, SBOM, and .mcpb bundle to
every GitHub Release automatically.
Building the .mcpb bundle locally
uv run poe build_mcpb # outputs dist/mcp-zen-of-languages-{version}.mcpbdist/ is gitignored, so the bundle is never committed.
The bundle uses uv tool run (long form of uvx) to install from PyPI at runtime.
Documentation
Docs are built with Zensical (MkDocs wrapper).
uv run poe run_server # local dev server with live reload
uv run poe build_docs # build static site to site/Many doc pages are auto-generated from scripts in scripts/. If you change
the implementation (new language, new rule, new CLI command), regenerate:
uv run poe generate_language_docs
uv run poe generate_cli_docs
uv run poe generate_mcp_tools_docs
uv run poe generate_config_docs
uv run poe generate_implementation_countsRun uv run poe check_orphan_docs before committing to ensure all new pages
are wired into mkdocs.yml navigation.
Python version
Requires Python 3.12+. CI tests against 3.12, 3.13, and 3.14.
The ty type checker targets 3.12 ([tool.ty] environment.python-version = "3.12").
Architecture overview
src/mcp_zen_of_languages/
├── server.py # FastMCP server — all MCP tools defined here
├── cli.py # Typer CLI (zen / mcp-zen-of-languages-cli)
├── __main__.py # stdio entry point for MCP
├── analyzers/ # language analysis pipeline (registry + factory)
├── rules/ # zen-principle detectors
├── languages/ # per-language analyzer implementations
├── frameworks/ # framework detection (React, Next.js, …)
├── reporting/ # report generation, prompts, agent tasks
├── dogmas/ # the 10 Zen Dogmas definitions
├── config.py # configuration management
└── models.py # Pydantic data modelsMCP entry points (all equivalent):
mcp-zen-of-languages-server← preferredmcp-zen-of-languageszen-mcp-server(legacy alias)
Pre-commit hooks
26 hooks run on every commit. Key ones:
ruff-check+ruff-format— lint and formatrrt-branch-name— enforces branch naming conventionrrt-commit-subject— enforces Conventional Commitsty— type checkinginterrogate— 90% docstring coverage onsrc/- Several doc-quality checks (links, contrast, orphans, Sphinx roles)
If a hook auto-fixes files, stage the fixes and re-run git commit (do not use
--no-verify to bypass).
CI pipeline
Jobs in order: lint → rrt-checks → [test, language-tests, visual-regression]
→ docker-image-check → [build, docker-publish] → [build-mcpb, sbom, attest]
→ publish-testpypi → verify-testpypi → publish-pypi → github-release.
Tag-only jobs (run only on vX.Y.Z tags): docker-publish, build-mcpb,
publish-testpypi, verify-testpypi, publish-pypi, github-release.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

