Agent-driven cold-start onboarding that finds or installs Python 3.11+, runs a shared bootstrap audit/plan/apply flow, and optionally configures WRDS access.
Ships in ai-asset-pricing. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use the shared repo-local onboarding flow:
tools/onboard.ps1 or tools/onboard.sh for the pre-Python cold-start steptools/onboard_driver.py for agent orchestration once Python existstools/bootstrap.py as the shared Python-level audit/plan/apply engineDo not duplicate bootstrap logic here when the repo scripts already handle it.
Scanning your environment... before discovery.Testing WRDS connectivity... before live psql checks.python or bare pip are valid on Windows.uv pip install --python "<PYTHON>" when uv is available; fall back to "<PYTHON>" -m pip install.tools/bootstrap.py audit, the emitted bootstrap_plan, and tools/bootstrap.py apply over ad hoc local-file generation.LOCAL_ENV.md, CLAUDE.local.md, and .claude/settings.local.json are compatibility shims only.tools/bootstrap.py apply manage canonical local state. Use --write-compat-shims only for private single-user backward compatibility.conda install for system tools (psql, pdflatex, R, git). Use the OS package manager (winget/brew/apt). Conda is for Python packages only.Use the repo-local shell entrypoint, not tools/bootstrap.py directly, when the
machine may not have Python yet.
powershell -ExecutionPolicy Bypass -File tools/onboard.ps1
bash tools/onboard.sh
Those entrypoints should:
tools/onboard_driver.pyIf the package manager or installer path is unavailable, stop and give the exact manual Miniforge command for the current platform.
If the user already answered in chat, pass that through to the driver. If not, ask once:
Do you have a WRDS account and want it configured now?Outcomes:
yes: collect username when needed, create WRDS files, and run live WRDS checksno: skip WRDS setup entirelyWRDS is optional. Lack of a WRDS account must not make onboarding fail.
Once Python exists, run the shared audit:
"<PYTHON>" tools/bootstrap.py audit --json --wrds yes|no
Read the audit output and summarize the gaps before changing anything.
Read bootstrap_plan.steps from the audit payload and execute each step with
auto_run=true for the current shell in order.
The plan is the source of truth for:
tools/bootstrap.py applytools/bootstrap.py auditIf direct command execution is not available because you are running in a plain local terminal without agent approvals, you may use the best-effort convenience fallback:
"<PYTHON>" tools/bootstrap.py repair --write-canonical-state --wrds yes|no
If the bootstrap plan or fallback repair step cannot install Python packages automatically:
# With uv (preferred):
uv pip install --no-compile --python "<PYTHON>" pandas psycopg2-binary pyarrow numpy matplotlib statsmodels
# Without uv:
"<PYTHON>" -m pip install --no-compile pandas psycopg2-binary pyarrow numpy matplotlib statsmodels
If the bootstrap plan or fallback repair step cannot reinstall repo packages automatically:
# With uv (preferred):
uv pip install --no-compile --python "<PYTHON>" -e .
cd packages/PyBondLab && uv pip install --no-compile --python "<PYTHON>" -e ".[performance]"
# Without uv:
"<PYTHON>" -m pip install --no-compile -e .
cd packages/PyBondLab && "<PYTHON>" -m pip install --no-compile -e ".[performance]"
If psql is missing and the user said no to WRDS, onboarding can still be
complete. psql is only needed for WRDS data extraction.
If the user wants WRDS access later, recommend:
~/tools/pgsql/ (the probe already checks this path).brew install libpqapt install postgresql-client or dnf install postgresqlThen rerun:
"<PYTHON>" tools/bootstrap.py audit --wrds yes
NEVER use conda to install psql, PostgreSQL, LaTeX, or other system tools. Conda's dependency solver hangs on these packages and can corrupt the Python environment. Conda is for Python packages only.
If WRDS is enabled and files are missing, create or repair:
~/.pg_service.conf~/.pgpass~/.ssh/config entry for Host wrds if SSH or TAQ workflows are neededUse the username from $ARGUMENTS if provided, otherwise ask once. If
~/.pgpass is missing, ask for the WRDS password and do not echo it back.
Prefer the shared helper:
AI_ASSET_PRICING_WRDS_PASSWORD="<SECRET>" "<PYTHON>" tools/bootstrap.py wrds-files --username THEIR_USERNAME
DUO 2FA: The first
psql service=wrdsconnection from a new IP triggers a DUO push notification. Tell the user to check their phone and approve it. The connection will time out if not approved.
When testing WRDS connectivity, use a date range guaranteed to have data (for example 2022). Do not use the current year. A query returning 0 rows is not a valid connectivity confirmation.
Example:
psql service=wrds -c "SELECT COUNT(*) FROM crsp.dsi WHERE date >= '2022-01-01' AND date < '2023-01-01';"
Expected result: about 251 rows.
If you only need to refresh canonical local state after environment changes, run:
"<PYTHON>" tools/bootstrap.py apply
This writes or refreshes canonical external files:
local_env.mdclaude.local.mdsettings.local.jsonEnd with a short status table covering:
If WRDS shows as skipped because the user has no account, say clearly that onboarding is still complete once the base repo is ready.
Then list the files written and any remaining manual steps.
Tools like psql may not be on the shell PATH even when installed. After
onboarding, always use the absolute paths recorded in canonical local state
(or a repo-root compatibility shim if one was explicitly generated) rather
than bare command names. The bootstrap engine discovers these paths
automatically and writes them to the local files.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Python, uv, PostgreSQL, Git
onboarding, bootstrap, environment-setup, python-install, wrds
38 skills in this plugin
/audit-captionsAudit all table and figure captions for language, notation, and formatting consistency/audit-mathAdversarial audit of mathematical proofs, derivations, and formal environments/audit-sectionDeep audit of a single section -- style, factual accuracy, citations, logical flow/bond-dataReference for the Dickerson corporate bond dataset: column mappings between WRDS and PyBondLab, rating encoding, return definitions, signal clusters, and data gotchas. Auto-apply when loading bond data for PyBondLab analysis./build-contextGenerate guidance/paper-context.md from user-provided .tex, .md, or .pdf files/build-deckCreate and compile Beamer presentations following the Rhetoric of Decks philosophy. Use when making seminar or conference slides./ai-asset-pricing:onboard [wrds-username (optional)]from ai-asset-pricing
ai-asset-pricing@fin-skills is listed by howard-lynn-ye/fin-rsi — review the source before installing
npx claudepluginhub howard-lynn-ye/fin-rsi --plugin ai-asset-pricingOther plugins' skills for the same job