agentleFS
anzy-renlab-aianzy-renlab-ai/pronounce/CLAUDE.md

pronounce

CLAUDE.md41 starsChanged 7 months agoMITView on GitHub

The core runtime is one Bash CLI with no npm runtime, paired with an agent skill: The CLI is the engine; the skill is the AI-side trigger. Both are installed by install.sh (CLI → $PREFIX/bin, skill → $CLAUDE_SKILLS_DIR/pronounce-word/; skill step is skipped if the skills dir doesn't exist). Release guards are dependency-light:

The file

We split this CLAUDE.md into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    No CLI runtime deps: Keep the CLI in Bash and route audio through the existing backend helpers.

    line 41

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

What this repo ships

The core runtime is one Bash CLI with no npm runtime, paired with an agent skill:

  1. bin/say-it — Bash CLI with no npm runtime. It detects macOS say, Linux espeak-ng/espeak, or Windows PowerShell System.Speech, then speaks a word N times (default 3). File output is available on backends that can render it.
  2. skills/pronounce-word/SKILL.md — Claude Code skill that auto-triggers on "X 怎么读" / "how to pronounce X" / etc. and shells out to say-it so the user actually hears the audio instead of just reading IPA.

The CLI is the engine; the skill is the AI-side trigger. Both are installed by install.sh (CLI → $PREFIX/bin, skill → $CLAUDE_SKILLS_DIR/pronounce-word/; skill step is skipped if the skills dir doesn't exist).

Common commands

./install.sh                              # install CLI + skill
PREFIX=/custom ./install.sh               # override install prefix
CLAUDE_SKILLS_DIR=/path ./install.sh      # override skill target

./bin/say-it simile                       # smoke-test without installing
./bin/say-it -v Daniel -n 1 -r 130 word   # voice / repetitions / rate
./bin/say-it --list                       # list every macOS voice

Release guards are dependency-light:

node --test tools/test-v2-audio.mjs
python3 -m unittest tools/test_build_v2_data.py tools/test_make_og_all.py tools/test_chrome_dictionary.py
bash tools/lint-dict.sh
bash tools/smoke-test.sh

Conventions when editing

  • Cross-platform as of v0.3 (CLI and VS Code extension). macOS → say, Linux → espeak-ng (preferred) or espeak, Windows → PowerShell System.Speech.Synthesis. macOS quality stays the gold standard; the rest are functional best-effort. All TTS goes through the tts_speak / tts_save / audio_play helpers in bin/say-it — don't reintroduce direct say / afplay calls or platform gates.
  • Opinionated defaults are load-bearing. 3 repetitions, voice Samantha, rate 130 wpm (RATE=130 in bin/say-it; keep the CLI, its --help, and skills/pronounce-word/SKILL.md all stating 130). The VS Code extension's pronounce.rate default in integrations/vscode/package.json is kept in lockstep (also 130). Note the (rate-175)/25 PowerShell mapping in bin/say-it and speak.ts is a wpm→SAPI-scale anchor, NOT the default — leave it at 175. README §Contributing calls these out explicitly — change with care.
  • Voice presets (Samantha/Daniel/Karen/Moira/Tessa) are documented in README and SKILL.md. If you add/rename one, update both.
  • CLI ↔ skill drift is the main hazard. Flag changes in bin/say-it must be mirrored in skills/pronounce-word/SKILL.md (the skill calls say-it <word>, say-it -o, say-it -r).
  • No CLI runtime deps. Keep the CLI in Bash and route audio through the existing backend helpers. Website build dependencies are separate; do not introduce an npm runtime requirement for say-it.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.