intersystems-community/fhir-ai-hackathon-kit/iris-sql-python
Claude Code and agent skill by intersystems-community/fhir-ai-hackathon-kit
- community
Checking that the SKILL.md file is still in the repository.
Create, load and query InterSystems IRIS SQL tables from Python using the intersystems-irispython DB-API driver (import iris). Covers connecting, CREATE TABLE, parameterised INSERT/SELECT, executemany bulk loads, loading a CSV with pandas type inference, transactions and schema discovery. Use for any tabular / relational data work against IRIS.
Install
npx vskill@latest install intersystems-community/fhir-ai-hackathon-kit/iris-sql-pythonSKILL.md
IRIS SQL from Python (DB-API)
Source tutorials: Tutorials/2-tabular/2.1-load-csv-data.ipynb, Tutorials/2-tabular/2.2-querying-sql-tables-with-python.ipynb, skip-setup Tutorials/setup-scripts/setup_csv_data.py.
Package: pip install intersystems-irispython (import name iris). For container ports/creds see the iris-environment skill.
Connect
Always close cursor then connection. Community Edition has a small connection limit; leaked connections cause license errors.
Create tables
Schema.Table naming: Sample.Person = package Sample, table Person.
Each table gets an implicit ID row id column (WHERE ID=1 works).
Insert
Use ? placeholders, never f-string values into SQL.
For large loads, executemany in batches (setup script uses 5000 rows/batch) and log progress per batch.
Query
Three steps: define, execute, fetch. cursor.execute(...) returns a status (-1 on success), not rows; failures raise (iris.dbapi.ProgrammingError etc.).
Fetches advance a cursor position. To read all rows again, re-execute.
Transactions (verified against the kit container)
The driver autocommits by default (conn.autocommit == True), so conn.rollback() does nothing. For all-or-nothing loads:
CSV -> table with inferred types
- Sanitise identifiers: ASCII only,
[^A-Za-z0-9_]->_, prefix leading digits and SQL reserved words (e.g.COL_), dedupe collisions. The full robust version is theCSVToTableclass in the 2.1 notebook ("Reusable Class" section); the setup script uses the same column names, e.g.Blood Type->BLOOD_TYPE. - Convert
NaN->Noneandpd.Timestamp->datetimebefore inserting.
Discover schema
IRIS SQL uses SELECT TOP n, not LIMIT. Identifiers are case-insensitive in queries.
Existing tutorial tables in FHIRSERVER: Sample.Person, Sample.HealthCareData, Diabetes.VectorStore.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/iris-sql-python/SKILL.md
Popularity
- Repository stars
- 11
- Repository forks
- 9
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/intersystems-community/fhir-ai-hackathon-kit/iris-sql-python)