Skip to content

Commit 3b32bcb

Browse files
committed
Initial release: expert-mentor v0.5.0
Provider-aware expert-mentor skill and CLI: generates a professional teaching system prompt for Claude, ChatGPT, Gemini, Ollama, and llama.cpp; runs live tutoring sessions; persists learner progress across sessions with model-assisted review; and exports prompts, JSON payloads, and Ollama Modelfiles. - CLI with subcommands (run, save, curriculum, models, learners, progress, review, sessions, config) and a one-command installer - Dependency-free streaming runtime with Claude prompt caching/thinking, ChatGPT reasoning-effort handling, and usage reporting - Persistent learner memory + session transcripts - Curated field profiles and pedagogy references - Packaging (pyproject), CI, and Trusted-Publishing release workflow
0 parents  commit 3b32bcb

27 files changed

Lines changed: 4201 additions & 0 deletions

‎.editorconfig‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
trim_trailing_whitespace = true
8+
indent_style = space
9+
indent_size = 4
10+
11+
[*.md]
12+
trim_trailing_whitespace = false
13+
14+
[Makefile]
15+
indent_style = tab
16+
17+
[*.{yml,yaml,json,toml}]
18+
indent_size = 2

‎.github/workflows/ci.yml‎

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main, master]
6+
pull_request:
7+
8+
jobs:
9+
test:
10+
name: test (Python ${{ matrix.python-version }})
11+
runs-on: ubuntu-latest
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
python-version: ["3.8", "3.10", "3.12"]
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: actions/setup-python@v5
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
22+
- name: Run self-test suite
23+
run: python scripts/selftest.py
24+
25+
- name: Health check
26+
run: python scripts/expert_mentor.py doctor
27+
28+
- name: Generate a sample prompt
29+
run: python scripts/expert_mentor.py --field "quantum computing" --level beginner > /dev/null
30+
31+
package:
32+
name: build & install
33+
runs-on: ubuntu-latest
34+
steps:
35+
- uses: actions/checkout@v4
36+
- uses: actions/setup-python@v5
37+
with:
38+
python-version: "3.12"
39+
- name: Install the package
40+
run: pip install .
41+
- name: Verify console entry point
42+
run: mentor version
43+
- name: Verify bundled resources resolve after install
44+
run: mentor fields

‎.github/workflows/release.yml‎

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
name: Release
2+
3+
# Publishes to PyPI using Trusted Publishing (OIDC) — no API token stored.
4+
#
5+
# One-time setup on PyPI:
6+
# https://pypi.org/manage/account/publishing/
7+
# Add a "pending publisher" with:
8+
# PyPI project name: expert-mentor
9+
# Owner: <your GitHub username or org>
10+
# Repository name: <this repo>
11+
# Workflow name: release.yml
12+
# Environment name: pypi
13+
#
14+
# Then publish by pushing a tag: git tag v0.5.0 && git push origin v0.5.0
15+
16+
on:
17+
push:
18+
tags:
19+
- "v*"
20+
21+
permissions:
22+
contents: read
23+
24+
jobs:
25+
build:
26+
name: Build distributions
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@v4
30+
- uses: actions/setup-python@v5
31+
with:
32+
python-version: "3.12"
33+
- name: Build sdist and wheel
34+
run: |
35+
python -m pip install --upgrade build
36+
python -m build
37+
- name: Check the distributions
38+
run: |
39+
python -m pip install --upgrade twine
40+
python -m twine check dist/*
41+
- uses: actions/upload-artifact@v4
42+
with:
43+
name: dist
44+
path: dist/
45+
46+
publish:
47+
name: Publish to PyPI
48+
needs: build
49+
runs-on: ubuntu-latest
50+
environment:
51+
name: pypi
52+
url: https://pypi.org/p/expert-mentor
53+
permissions:
54+
id-token: write # required for Trusted Publishing
55+
steps:
56+
- uses: actions/download-artifact@v4
57+
with:
58+
name: dist
59+
path: dist/
60+
- uses: pypa/gh-action-pypi-publish@release/v1
61+
62+
github-release:
63+
name: Create GitHub Release
64+
needs: build
65+
runs-on: ubuntu-latest
66+
permissions:
67+
contents: write
68+
steps:
69+
- uses: actions/checkout@v4
70+
- uses: actions/download-artifact@v4
71+
with:
72+
name: dist
73+
path: dist/
74+
- name: Create release
75+
env:
76+
GH_TOKEN: ${{ github.token }}
77+
run: gh release create "${GITHUB_REF_NAME}" dist/* --generate-notes

‎.gitignore‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Python
2+
__pycache__/
3+
*.py[cod]
4+
*.egg-info/
5+
build/
6+
dist/
7+
.eggs/
8+
.venv/
9+
venv/
10+
11+
# Tooling caches
12+
.pytest_cache/
13+
.ruff_cache/
14+
.mypy_cache/
15+
16+
# Secrets and local state
17+
.env
18+
*.local
19+
20+
# Editors / OS
21+
.DS_Store
22+
.idea/
23+
.vscode/

‎LICENSE‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2026 expert-mentor contributors
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

‎Makefile‎

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
PYTHON ?= python3
2+
3+
.PHONY: help install uninstall test demo curriculum fields providers doctor dist clean
4+
5+
help:
6+
@echo "expert-mentor"
7+
@echo ""
8+
@echo " make install install the 'mentor' command and link the skill"
9+
@echo " make uninstall remove the command and skill links"
10+
@echo " make test run the self-test suite"
11+
@echo " make doctor check the local setup"
12+
@echo " make fields list curated field profiles"
13+
@echo " make providers list supported providers"
14+
@echo " make demo generate a sample prompt to stdout"
15+
@echo " make curriculum generate a sample curriculum prompt to stdout"
16+
@echo " make dist build sdist + wheel into dist/ (needs 'build')"
17+
@echo " make clean remove __pycache__ and build artifacts"
18+
19+
install:
20+
@chmod +x install.sh uninstall.sh bin/mentor scripts/*.py
21+
@./install.sh
22+
23+
uninstall:
24+
@chmod +x uninstall.sh
25+
@./uninstall.sh
26+
27+
test:
28+
@$(PYTHON) scripts/selftest.py
29+
30+
doctor:
31+
@$(PYTHON) scripts/expert_mentor.py doctor
32+
33+
fields:
34+
@$(PYTHON) scripts/expert_mentor.py --list-fields
35+
36+
providers:
37+
@$(PYTHON) scripts/expert_mentor.py --list-providers
38+
39+
demo:
40+
@$(PYTHON) scripts/expert_mentor.py --field "quantum computing" --level beginner
41+
42+
curriculum:
43+
@$(PYTHON) scripts/expert_mentor.py curriculum --field "Rust" --level intermediate
44+
45+
dist:
46+
@$(PYTHON) -m pip install --quiet --upgrade build
47+
@$(PYTHON) -m build
48+
@echo "artifacts in dist/ — publish with: python -m twine upload dist/*"
49+
50+
clean:
51+
@rm -rf scripts/__pycache__ build dist *.egg-info scripts/*.egg-info

0 commit comments

Comments
 (0)