openclaw-knowledge-coach
by @sibo-zhao
Build and operate an OpenClaw-based local knowledge assistant that imports personal/local documents into a knowledge base and creates practice exercises duri...
clawhub install openclaw-knowledge-coachπ About This Skill
name: openclaw-knowledge-coach description: Build and operate an OpenClaw-based local knowledge assistant that imports personal/local documents into a knowledge base and creates practice exercises during import. Use when users ask to set up OpenClaw knowledge workflows, ingest local notes/files, structure chunks and tags, or generate retrieval practice (quiz, flashcards, recall prompts) to master stored knowledge.
OpenClaw Knowledge Coach
Create a local knowledge workflow in OpenClaw where importing knowledge also produces practice material for retention. OpenPraxis is on PyPI: use pip install openpraxis to get the praxis CLI.
CLI First
Use OpenPraxis CLI as the default execution path.
Install from PyPI (recommended):
pip install openpraxis
praxis --help
Or install from source for development:
git clone https://github.com/Sibo-Zhao/OpenPraxis.git
cd OpenPraxis
pip install -e ".[dev]"
praxis --help
Configure provider/model/API key before ingestion/practice:
praxis llm setup
praxis llm show
Use environment variables when needed (higher priority than config file):
export OPENAI_API_KEY="your_key_here"
or ARK_API_KEY / MOONSHOT_API_KEY / DEEPSEEK_API_KEY based on provider
Core Workflow
1. Confirm scope and source
2. Define import contract
doc_id, title, source_path, tags, created_at, and content.doc_id#chunk-001.3. Import into OpenClaw
4. Generate exercises at import time
free-recall: ask the user to explain from memory.
- qa: ask direct question-answer pairs.
- application: ask scenario-based transfer questions.
5. Build review queue
6. Validate quality
doc_id and chunk_id.CLI Command Playbook
Run this sequence when the user asks to import local knowledge and create practice:
1. Add a local file
praxis add "/absolute/path/to/note.md" --type report
2. List recent inputs and capture target input_id
praxis list --limit 20
3. Force-generate a new practice scene for an existing input
praxis practice
4. Submit answer by file (preferred for deterministic runs)
praxis answer --file "/absolute/path/to/answer.md"
5. Inspect pipeline results and insight cards
praxis show
praxis insight
6. Export insights to Markdown/JSON
praxis export --format md --output "/absolute/path/to/insights.md"
praxis export --format json --output "/absolute/path/to/insights.json"
Agent Execution Rules
praxis add for import and initial exercise generation.praxis practice and praxis answer.praxis answer --file instead of interactive stdin in automation flows.praxis add ... --force when user wants reprocessing.praxis --provider openai --model gpt-4.1-mini add "/absolute/path/to/note.md"
praxis add; OCR extraction is built in.praxis show plus praxis insight or praxis export so user gets concrete output artifacts.Output Contract
When executing tasks with this skill, always provide these outputs:
source -> doc_id -> chunk_id -> exercise_id.Exercise Format
Use this compact JSON-like structure per exercise:
{
"exercise_id": "ex-...",
"doc_id": "...",
"chunk_id": "...",
"type": "free-recall | qa | application",
"question": "...",
"answer_key": "...",
"rubric": ["point 1", "point 2"],
"difficulty": "easy | medium | hard",
"next_review": "YYYY-MM-DD"
}
For more generation patterns, read references/exercise-patterns.md.