Personal Context CLI Workflow
Overview
Use this skill to operate Personal Context CLI with direct commands. Do not rely on local wrapper scripts.
One-Time Install
pipx install "git+https://github.com/WangLiquan/personal-context-cli.git@v0.1.1-beta"
Use one explicit password for the profile and pass it with --password.
Core Workflows
1) Initialize encrypted store
personal-context init \
--data-file ./profile.enc \
--password "<YOUR_PASSWORD>"
2) Maintain owner profile and preferences
personal-context profile set \
--data-file ./profile.enc \
--password "<YOUR_PASSWORD>" \
--age 32 \
--industry internet \
--income-range 50-100w
personal-context prefs set \
--data-file ./profile.enc \
--password "<YOUR_PASSWORD>" \
--response-style brief \
--strategy-style balanced \
--locale-bias CN-first
3) Maintain family members
personal-context family add \
--data-file ./profile.enc \
--password "<YOUR_PASSWORD>" \
--relation spouse
personal-context family list \
--data-file ./profile.enc \
--password "<YOUR_PASSWORD>"
4) Preview context and ask
For ask workflows, do not ask users to classify the question type or provide structured type parameters.
personal-context context preview \
"Should I increase my emergency fund?" \
--data-file ./profile.enc \
--password "<YOUR_PASSWORD>"
personal-context ask \
"Should I increase my emergency fund?" \
--provider auto \
--relay-timeout-seconds 45 \
--relay-retries 1 \
--data-file ./profile.enc \
--password "<YOUR_PASSWORD>"
Provider Modes
auto(default): trycodexfirst, thenclaudecodex: force relay tocodex execclaude: force relay toclaude -p
Troubleshooting
personal-context: command not found:- Ensure
pipxbin path is inPATH.
- Ensure
- relay timeout:
- Increase
--relay-timeout-secondsto 45 or 60.
- Increase
- decrypt failure:
- Verify
--passwordand--data-filepair.
- Verify
Verification
cd $PROJECT_ROOT
PYTHONPATH=src .venv/bin/pytest -v
References
For command recipes and expected outputs, read:
references/command-recipes.md