Skip to main content

Agent + CLI that turns Claude into a private French tutor: track progress, get an overview, get advice, read stories, and learn & practice French (written and spoken) online from your phone.

Project description

french-cli

Agent + CLI that turns Claude into a private French tutor: track progress, get an overview, get advice, read stories, and learn & practice French (written and spoken) online from your phone.

What you get

  • An agent-first CLI cited from teken (afi-cli) — the runtime package has no third-party dependencies.
  • A mesh identityculture.yaml (suffix + backend) and the matching resident prompt file (AGENTS.colleague.md, since this template runs backend: colleague).
  • The canonical guildmaster skill kit (11 skills) under .claude/skills/, vendored cite-don't-import. See docs/skill-sources.md.
  • A build + deploy baseline — pytest, lint, the agent-first rubric gate, and PyPI Trusted Publishing wired into GitHub Actions.

Quickstart

uv sync
uv run pytest -n auto                 # run the test suite
uv run french whoami                  # identity from culture.yaml
uv run french learn                   # self-teaching prompt (add --json)
uv run teken cli doctor . --strict    # the agent-first rubric gate CI runs

The installed command is french; the PyPI package and repo are french-cli. french explain french and french explain french-cli both resolve to the root doc entry.

CLI

french-cli is an LLM-free tutor engine that implements the learn subject-plugin contract: it owns the committed French content (stories, lessons, exercises) and each learner's mastery state, resolves what to teach next, and emits structured teaching directives. The driving agent (or human) does the conversational tutoring the directive describes, grades pass|partial|fail, and writes the result back with record. french never converses, grades free text, or computes scores — learn-cli's motivation layer does the scoring.

Tutor verbs (the contract surface)

Verb What it does Payload kind
french overview Subject self-description: modules + content counts. subject_overview
french progress The learner's mastery, counters, and next step. progress
french advice Deterministic study advice from stored state. advice
french story list | read <id> Graded stories + a reading directive. story_list / story_read
french lesson start | next | repeat Teaching directives from the curriculum. lesson_directive
french practice [<scope>] A batch of exercises to run (no scope = review). practice_directive
french record --item <id> --result … Write back one graded outcome; updates mastery. record_ack
french doctor Self-check + the pinned contract version. subject_doctor

Agent-first verbs

Verb What it does
french whoami Report this agent's nick, version, backend, and model from culture.yaml.
french learn Print a structured self-teaching prompt.
french explain <path> Markdown docs for any noun/verb path.
french cli overview Describe the CLI surface itself.

Every command supports --json. Results go to stdout, errors/diagnostics to stderr (never mixed). Exit codes: 0 success, 1 user error, 2 environment error, 3+ reserved.

Learner state

Learner-scoped verbs take --learner <id> (default: $FRENCH_CLI_LEARNER or the OS user; the resolved id is echoed back). State persists one JSON file per learner under $FRENCH_CLI_LEARN_HOME (or $XDG_DATA_HOME/french_cli/learn, or ~/.local/share/french_cli/learn), written atomically and resumed across sessions.

Content

Stories are committed JSON files under content/stories/*.json (flat, one file per story, filename == id), each validated against the shared story schema in CI (tests/test_story_content.py). The starter set ships dev-prefixed dev stories; the full graded ladder is authored separately. The curriculum (modules, lessons, items, exercises) lives as structured data in french/tutor/curriculum.py.

The contract schemas + validator are cited (cite-don't-import) into french/contract_cite/ — see docs/contract-provenance.md.

See CLAUDE.md for the architecture and the full conventions (version-bump-every-PR, the cicd PR lane, deploy setup).

License

Apache 2.0 — see LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

french_cli-0.5.0.tar.gz (193.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

french_cli-0.5.0-py3-none-any.whl (97.0 kB view details)

Uploaded Python 3

File details

Details for the file french_cli-0.5.0.tar.gz.

File metadata

  • Download URL: french_cli-0.5.0.tar.gz
  • Upload date:
  • Size: 193.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for french_cli-0.5.0.tar.gz
Algorithm Hash digest
SHA256 560db8a93a1edd771fd98eee4d441d661d4048f252666fc017baa4e459fd52e6
MD5 933d7bfa3b7980cc24154b6d59c7a6ce
BLAKE2b-256 e95ff78eeb340c8b4db5d20731c245e1ce92186607dde78922cde32cf996f618

See more details on using hashes here.

File details

Details for the file french_cli-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: french_cli-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 97.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for french_cli-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e4a3d59e26e67eb6f49b6b0546d868e93e78e1bd9f064200b38b1fd19fc84558
MD5 74c8bbbe23bc5835fbce73bdb3df7ec5
BLAKE2b-256 1be3d749b430acf5236fd1b0469608a9a668c947b80b668b3a448e56e42331c9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page