From phdwin-v2
Use for PhdWIN v2 extraction prerequisites, Clarion driver guidance, PHDWin report-generated Access database inspection, SQLite extracted table mapping, key/join explanation, and safe read-only querying of extracted PhdWIN inputs using reusable lookup logic.
How this skill is triggered — by the user, by Claude, or both
Slash command
/phdwin-v2:phdwin-v2-queryingThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use this skill when a task involves a local PhdWIN v2 implementation, PhdWIN v2 Clarion/Topspeed datasets, PHDWin report-generated Access databases, extraction prerequisites, SQLite extracted-table interpretation, schema discovery, read-only query drafting, or mapping petroleum-engineering questions onto the PhdWIN data model.
adapters/README.mdadapters/claude.mdadapters/codex.mdadapters/copilot.mdagents/openai.yamlreferences/lookups/select-query-map.mdreferences/schema/generated-entity-map.mdreferences/schema/schema-notes.mdreferences/workflow/api-endpoints.mdreferences/workflow/extraction-guide.mdreferences/workflow/phz-getting-started.mdreferences/workflow/query-patterns.mdscripts/build_entity_map.pyscripts/common.pyscripts/export_sqlite.pyscripts/extract_phz.pyscripts/list_odbc_drivers.pyscripts/phdwin_cli.pyscripts/phdwin_wizard.pyscripts/run_phdwin_wizard.shUse this skill when a task involves a local PhdWIN v2 implementation, PhdWIN v2 Clarion/Topspeed datasets, PHDWin report-generated Access databases, extraction prerequisites, SQLite extracted-table interpretation, schema discovery, read-only query drafting, or mapping petroleum-engineering questions onto the PhdWIN data model.
Use only the checked-in skill references, generated entity maps, bundled Tauris-authored notes, cleared bundled reference artifacts, and source code in this repo. Do not rely on proprietary vendor help files, local reference-input folders, uncommitted documents, or third-party manuals/spreadsheets unless they are explicitly cleared for redistribution.
The cleared PHDWin output definitions spreadsheet at ../../mcp-servers/PHDWinv2_MCP/reference/phdwin-v2/Phdwinout definitions_complete.xls is allowed reference material for PHDWin v2 table/field interpretation and PHDWin-to-Aries mapping review.
Use agent-specific wrappers from adapters/ when packaging this skill for other AI systems:
adapters/claude.mdadapters/codex.mdadapters/copilot.mdThese files should remain thin. The core domain logic belongs in this SKILL.md, references/, and scripts/.
This skill provides PhdWIN v2 domain knowledge, schema references, query patterns, and extraction guidance.
PhdWIN is a Windows desktop application. In normal use, .phz, .phd, .mod, and related dataset artifacts live on the user's local machine or another local Windows-accessible environment.
It does not directly query .phd, .mod, .tps, or .phz files unless the runtime environment has access to:
pyodbc or another ODBC clientCloud-hosted AI environments usually cannot access the user's local ODBC driver. In those environments, the skill should generate scripts, SQL, API wrappers, or troubleshooting steps rather than claiming it can query the dataset directly.
.phz, .phd, .mod.mdb, .accdb.sqlite, .db.tps) storagepyodbc for read-only inventory and sampling663545 when documenting this source path/api/schema and /api/schematable to discover tables and columns/api/query only for read-only SQL that is not already covered by a typed endpointPHD_* or MOD_* source{{phd}} resolves to the .phd file name.{{mod}} resolves to the .mod file name.{{phd}}\&MAINLSE are the canonical source of truth..phz, Access, Excel, CSV, or extracted SQLiteSELECT-style guidance or endpoint calls onlyWhen a user wants to work with a local .phz file from the PhdWIN desktop application:
.phz as a ZIP package with a PhdWIN-specific extension..Phd and optional .MOD files.Preferred pipeline:
.phz renamed ZIP package
-> extract .Phd / .MOD and related files
-> Clarion TopSpeed ODBC
-> Python pyodbc runner
-> CSV / SQLite / API
-> AI analysis
Treat .phz, .phd, and .mod as local desktop-side artifacts. Do not imply that a cloud agent can directly open them unless the execution environment is actually local and Windows-capable.
When running inside Codex CLI or a local IDE agent, first determine whether the environment can actually execute the workflow.
Check for:
pyodbc.Phd / .MODIf the user is in WSL but the ODBC driver is installed on Windows, do not assume Linux Python can use it. Prefer Windows Python, PowerShell, or a local Windows API bridge.
Codex should not fabricate query results. If the driver or dataset is unavailable, produce a runnable script and explain what the user must run locally.
The skill should help generate a local runner in this order:
phdwin_cli.py - single command surface for environment checks, source inspection, .phz extraction, smoke tests, SQLite export, and the optional wizardlist_odbc_drivers.py - prints installed ODBC driversextract_phz.py - extracts .phz into a dataset foldersmoke_test.py - attempts read-only queries against core tablesexport_sqlite.py - exports selected PhdWIN tables to SQLiteapi_server.py - optional FastAPI wrapper exposing schema/query endpointsphdwin_wizard.py - optional interactive wrapper around the core stepsrun_phdwin_wizard.sh - optional shell launcher for the wizardAll generated code must default to read-only access.
Preferred implementation order:
list_odbc_drivers.pyextract_phz.pysmoke_test.pyexport_sqlite.pyapi_server.pyphdwin_wizard.pyPreferred command-line workflow:
python scripts/phdwin_cli.py env
python scripts/phdwin_cli.py inspect <file.phz | dataset-folder | extracted.sqlite>
python scripts/phdwin_cli.py extract <file.phz>
python scripts/phdwin_cli.py smoke <dataset-folder>
python scripts/phdwin_cli.py export-sqlite <dataset-folder> <output.sqlite>
Treat the wizard as convenience only. Do not make it the primary execution path until the lower-level scripts are proven on real client machines.
Use different integration patterns depending on where the agent runs:
.phz, .phd, .mod, ODBC, or Python CLI commands directly..phz, smoke-test, export SQLite, list tables, and run approved SELECT queries.Use scripts/test_cli_harness.py for local smoke coverage of the CLI surface.
It validates:
.phz source inspection.phz extraction using a synthetic archiveRun it from the skill folder:
python3 scripts/test_cli_harness.py
This harness does not prove Clarion / TopSpeed ODBC access. Real native extraction still needs a Windows integration test with:
pyodbc.phd and optional .mod.phz file is a ZIP archive with a PhdWIN-specific extension. Its purpose in this workflow is to provide the contained .Phd, .MOD, and related dataset files..phz; it is to produce extracted SQLite tables with stable naming that downstream query workflows understand..phd and .modPHD_* and MOD_* surfaces are readablePhdWIN files may contain confidential reserves, production, ownership, and economic data.
Default behavior:
.Phd, .MOD, or .tps/api/mainlse, /api/groups, /api/filter, /api/filterline, /api/sort, /api/owner, /api/monhist, and /api/forcast.SELECT logic or equivalent endpoint calls.datasource request header is required by the server. It points at the uncompressed dataset folder or other supported source..phd file and optionally one .mod file.*_dttm not-mapped properties. In raw SQL, treat the base integer column as the source of truth unless the API already materializes the converted date.segmentdate$1 or prod1$12. The generated entities flatten these into .NET arrays for API use, but raw SQL must use the literal column names with $n.FORCAST is intentionally misspelled in the source data and in the generated entity/table annotation. Do not "correct" it to FORECAST.OdbcConnectionFactory; it contains hardcoded connection details and is not the PhdWIN query path this skill is for.Depending on the request, produce one of these:
SELECT logicUse the references directory by subfolder:
references/workflow/
phz-getting-started.md: non-coder first-run workflow for turning a local .phz file into extracted SQLiteextraction-guide.md: driver requirement, extraction prerequisites, and expected extracted table shapeapi-endpoints.md: verified REST endpoints and request shapes from the local PhdWIN implementationquery-patterns.md: safe SQL and endpoint usage patternsreferences/schema/
schema-notes.md: verified schema landmarks, key tables, identifiers, and quirksgenerated-entity-map.md: generated route-to-entity-to-table map built from the current reporeferences/lookups/
select-query-map.md: PhdWIN tables and fields for common read-only lookup questionspython3 scripts/build_entity_map.py /path/to/phdwin-implementation > references/generated-entity-map.md
Searches MemPalace before answering questions about past work, people, projects, or prior decisions. Returns verbatim stored content instead of guessing from model memory.
Guides Payload CMS config (payload.config.ts), collections, fields, hooks, access control, APIs. Debugs validation errors, security, relationships, queries, transactions, hook behavior.
Implements vector databases with Pinecone, Weaviate, Qdrant, Milvus, pgvector for semantic search, RAG, recommendations, and similarity systems. Optimizes embeddings, indexing, and hybrid search.
npx claudepluginhub tauris-ai/tauris-skills --plugin phdwin-v2