Sanity Best Practices
robotostudio/turbo-start-sanity
Sanity development best practices for schema design, GROQ queries, TypeGen, Visual Editing, images, Portable Text, Studio structure, localization, migrations, Sanity Functions, Blueprints, and…
De-identify non-English clinical text on-device with OpenMed by passing lang= and locale= to deidentify().
$ npx skills add maziyarpanahi/openmed --skill deidentifying-multilingual-text -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install maziyarpanahi/openmed deidentifying-multilingual-text --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/maziyarpanahi/openmed.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/deidentifying-multilingual-text .claude/skills/deidentifying-multilingual-text && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "deidentifying-multilingual-text" agent skill from https://github.com/maziyarpanahi/openmed/tree/master/skills/deidentifying-multilingual-text into .claude/skills/deidentifying-multilingual-text/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "deidentifying-multilingual-text", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/maziyarpanahi/openmed/tree/master/skills/deidentifying-multilingual-textType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add maziyarpanahi/openmed --skill deidentifying-multilingual-text -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install maziyarpanahi/openmed deidentifying-multilingual-text --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/maziyarpanahi/openmed.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/deidentifying-multilingual-text .agents/skills/deidentifying-multilingual-text && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "deidentifying-multilingual-text" agent skill from https://github.com/maziyarpanahi/openmed/tree/master/skills/deidentifying-multilingual-text into .agents/skills/deidentifying-multilingual-text/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "deidentifying-multilingual-text", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add maziyarpanahi/openmed --skill deidentifying-multilingual-text -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install maziyarpanahi/openmed deidentifying-multilingual-text --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/maziyarpanahi/openmed.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/deidentifying-multilingual-text .cursor/skills/deidentifying-multilingual-text && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "deidentifying-multilingual-text" agent skill from https://github.com/maziyarpanahi/openmed/tree/master/skills/deidentifying-multilingual-text into .cursor/skills/deidentifying-multilingual-text/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "deidentifying-multilingual-text", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/maziyarpanahi/openmed.git --path skills/deidentifying-multilingual-text--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add maziyarpanahi/openmed --skill deidentifying-multilingual-text -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install maziyarpanahi/openmed deidentifying-multilingual-text --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/maziyarpanahi/openmed.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/deidentifying-multilingual-text .gemini/skills/deidentifying-multilingual-text && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "deidentifying-multilingual-text" agent skill from https://github.com/maziyarpanahi/openmed/tree/master/skills/deidentifying-multilingual-text into .gemini/skills/deidentifying-multilingual-text/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "deidentifying-multilingual-text", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install maziyarpanahi/openmed deidentifying-multilingual-textInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add maziyarpanahi/openmed --skill deidentifying-multilingual-text -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/maziyarpanahi/openmed.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/deidentifying-multilingual-text .github/skills/deidentifying-multilingual-text && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "deidentifying-multilingual-text" agent skill from https://github.com/maziyarpanahi/openmed/tree/master/skills/deidentifying-multilingual-text into .github/skills/deidentifying-multilingual-text/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "deidentifying-multilingual-text", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add maziyarpanahi/openmed --skill deidentifying-multilingual-text -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install maziyarpanahi/openmed deidentifying-multilingual-text --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/maziyarpanahi/openmed.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/deidentifying-multilingual-text .opencode/skills/deidentifying-multilingual-text && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "deidentifying-multilingual-text" agent skill from https://github.com/maziyarpanahi/openmed/tree/master/skills/deidentifying-multilingual-text into .opencode/skills/deidentifying-multilingual-text/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "deidentifying-multilingual-text", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
deidentifying-multilingual-textDe-identify non-English clinical text on-device with OpenMed by passing lang= and locale= to deidentify().
Deidentifying Multilingual Text is an agent skill from maziyarpanahi/openmed. De-identify non-English clinical text on-device with OpenMed by passing lang= and locale= to deidentify(). Use when the user has Spanish, German, French, Italian, Portuguese, Dutch, Hindi, Telugu, Arabic, Japanese, or Turkish medical notes, needs locale-aware fake surrogates, must handle language-specific national IDs (DNI, NIR, Steuer-ID, codice fiscale, BSN, CPF, TCKN, Aadhaar), or asks which languages OpenMed PII supports. Covers SUPPORTEDLANGUAGES, getpiimodelsbylanguage, getpatternsforlanguage, LANGTOLOCALE…
Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Databases, covering Database schema design and Internationalization. The repository describes itself as: Local-first healthcare AI: clinical NER and HIPAA PII de-identification on hardware you control. 2,200+ medical models, 35 model-backed PII languages, and Python, MLX, Android… The licence is Apache-2.0.
5 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 9dca507. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are python).
From the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
hhs.govFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Deidentifying Multilingual Text loads about 1.7k tokens when it runs. Until then it costs about 168 tokens; SKILL.md has 551 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from maziyarpanahi/openmed at commit 9dca507, republished under its Apache-2.0 licence (© maziyarpanahi). 551 words, ~1,695 tokens.
.claude/skills/deidentifying-multilingual-text/SKILL.md (or your agent's skills folder).OpenMed de-identifies clinical text in many languages, each with a dedicated
PII model, language-specific regex patterns (national IDs, phone formats), and a
locale-aware surrogate generator. Pass lang= to deidentify / extract_pii
and the right model, patterns, and fake-data tables are selected automatically.
Everything runs on-device.
Use it whenever the source text is not English, or when surrogates must look native to the locale (a German note should get German-looking fake names and a valid-format Steuer-ID surrogate, not a US SSN).
import openmed
from openmed.core.pii_i18n import SUPPORTED_LANGUAGES, get_patterns_for_language
print(sorted(SUPPORTED_LANGUAGES)) # query it; the set is the source of truth
# Language-appropriate default model for a code:
models = openmed.get_pii_models_by_language("es")
# Language-specific regex patterns (national IDs, phones, etc.):
patterns = get_patterns_for_language("de")The set currently spans English plus European, South Asian, Middle Eastern, and
East Asian languages — but always read SUPPORTED_LANGUAGES rather than
trusting a number, since it changes as models ship. MCP exposes the same list
via openmed_list_pii_languages.
import openmed
nota = (
"El paciente Carlos Hernández (DNI 12345678Z), nacido el 11/04/1979, "
"vive en Calle Mayor 5, Madrid. Teléfono 612 345 678."
)
result = openmed.deidentify(
nota,
lang="es", # selects the Spanish PII model + ES patterns
method="replace", # locale-native fake values
locale="es_ES", # Faker locale (defaults from lang via LANG_TO_LOCALE)
)
print(result.deidentified_text)
# El paciente [surrogate name] (DNI [surrogate]), nacido el [date], ...For German, just switch the code:
befund = "Patientin Anna Müller, geb. 11.04.1979, Steuer-ID 12 345 678 901."
result = openmed.deidentify(befund, lang="de", method="replace")SUPPORTED_LANGUAGES.lang= to deidentify/extract_pii. This selects the
language-specific model (via get_pii_models_by_language) and the regex
pattern set (via get_patterns_for_language) for national IDs and formats.locale= for surrogates when method="replace". If omitted, the
locale is derived from lang through LANG_TO_LOCALE (e.g. pt→pt_PT).
Override for regional variants (pt_BR, en_GB, Gulf/Levant Arabic).deidentify auto-strips diacritics before inference and maps
spans back to the original accented text. You normally do not set
normalize_accents yourself.consistent=True, seed=....The pattern sets encode and the validators check real national identifier
formats and checksums, so structured IDs are caught even when the model is
unsure. Examples available in openmed.core.pii_i18n:
| Language | Identifier | Validator |
|---|---|---|
| French | NIR / INSEE | validate_french_nir |
| German | Steuer-ID | validate_german_steuer_id |
| Italian | Codice Fiscale | validate_italian_codice_fiscale |
| Spanish | DNI / NIE | validate_spanish_dni, validate_spanish_nie |
| Dutch | BSN | validate_dutch_bsn |
| Hindi | Aadhaar | validate_aadhaar |
| Portuguese | CPF / CNPJ | validate_portuguese_cpf, validate_portuguese_cnpj |
| Turkish | TCKN | validate_turkish_tckn |
These map to OpenMed CANONICAL_LABELS (ID_NUM, SSN) and are redacted by
the same policy actions as any other identifier.
deidentifying-clinical-text — methods, thresholds,
keep_mapping, policies (all accept lang/locale).generating-synthetic-surrogates — locale-native fakes and
custom providers per language.configuring-privacy-policies — policy= works with any lang.auditing-deidentification-runs records the model and language in
the no-PHI report.openmed_deidentify / openmed_list_pii_languages;
REST POST /pii/deidentify (both take a language parameter).lang=; the default model is English only.lang ≠ locale. lang picks the detection model and patterns;
locale shapes the replacement fakes. Set both when surrogate realism
matters (e.g. lang="pt", locale="pt_BR").te→en_IN and warns once. Override locale= if you need closer
regional surrogates.11/04/1979 as 11 April; the date logic is language-aware — keep lang set
when shifting dates.audit=True and consider a second pass.openmed/core/pii_i18n.py (SUPPORTED_LANGUAGES,
get_patterns_for_language, validators), openmed/core/model_registry.py
(get_pii_models_by_language), openmed/core/anonymizer/locales.py
(LANG_TO_LOCALE).© maziyarpanahi, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/deidentifying-multilingual-text of maziyarpanahi/openmed.
Open the folder on GitHubat commit 9dca507
Deidentifying Multilingual Text next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Deidentifying Multilingual Text this skillmaziyarpanahi/openmed | 5.5k | — | ~1.7k | Automated safety check: Pass | Apache-2.0 | |
| Sanity Best Practicesrobotostudio/turbo-start-sanity | 183 | — | ~940 | Automated safety check: Pass | MIT | |
| Mas SkillsAUTO-MAS-Project/AUTO-MAS | 711 | — | ~3.6k | Automated safety check: Pass | AGPL-3.0 | |
| SQL Optimization Patternsynulihao/AgentSkillOS | 618 | 11 repos | ~3.3k | Automated safety check: Pass | None | |
| Datamodellmnimbalyst/nimbalyst | 1.9k | — | ~713 | Automated safety check: Pass | MIT | |
| Add Mpk Taskmirage-project/mirage | 2.5k | — | ~4.5k | Automated safety check: Pass | Apache-2.0 |
robotostudio/turbo-start-sanity
Sanity development best practices for schema design, GROQ queries, TypeGen, Visual Editing, images, Portable Text, Studio structure, localization, migrations, Sanity Functions, Blueprints, and…
AUTO-MAS-Project/AUTO-MAS
A skill your agent uses when a task needs AUTO-MAS engineering conventions across frontend, UI, code style, schema naming, module boundaries, function design, API contracts, data modeling, script…
ynulihao/AgentSkillOS
Master SQL query optimization, indexing strategies, and EXPLAIN analysis to dramatically improve database performance and eliminate slow queries.
nimbalyst/nimbalyst
Create visual data models for database schemas using Nimbalyst's DataModelLM editor.
mirage-project/mirage
Step-by-step guide for adding a new task implementation to Mirage Persistent Kernel (MPK).
mirage-project/mirage
A skill your agent uses when the user wants to design or extend a FlashAttention-style forward kernel on B200/Blackwell, involving the two MMAs QKᵀ and PV, online softmax, S/P/O in TMEM, warp roles…
maziyarpanahi/openmed
Checks OpenMed de-identified clinical text against the 18 HIPAA Safe Harbor identifier categories and reports gaps and residual re-identification risk.
maziyarpanahi/openmed
Fills in a model card for an OpenMed clinical NER or de-identification model from its evaluation reports: intended use, metrics, subgroups and limitations.
maziyarpanahi/openmed
Walks a data pipeline against the HIPAA Privacy and Security Rule checklist and produces a gap report before it processes patient data.
maziyarpanahi/openmed
Suggests candidate ICD-10-CM diagnosis and ICD-10-PCS procedure codes for clinical text extracted by OpenMed, with rationale for a certified coder to review.
maziyarpanahi/openmed
Maps OpenMed-extracted, terminology-coded conditions, drugs and measurements into OMOP CDM v5.4 tables for OHDSI and ATLAS analytics.
maziyarpanahi/openmed
Finds social risks such as housing instability or food insecurity in clinical notes and proposes matching ICD-10-CM Z-codes for a coder to confirm.
Categories
De-identify non-English clinical text on-device with OpenMed by passing lang= and locale= to deidentify(). Deidentifying Multilingual Text is an agent skill from maziyarpanahi/openmed. De-identify non-English clinical text on-device with OpenMed by passing lang= and locale= to deidentify().
Deidentifying Multilingual Text fits situations like: the user has Spanish; turkish medical notes; needs locale-aware fake surrogates; must handle language-specific national IDs (DNI.
Run `npx skills add maziyarpanahi/openmed --skill deidentifying-multilingual-text -a claude-code`. Or copy the skill folder (skills/deidentifying-multilingual-text in maziyarpanahi/openmed) into .claude/skills/deidentifying-multilingual-text in your project. Claude Code loads it when a task matches its description.
Run `npx skills add maziyarpanahi/openmed --skill deidentifying-multilingual-text -a codex`. Or copy the skill folder (skills/deidentifying-multilingual-text in maziyarpanahi/openmed) into .agents/skills/deidentifying-multilingual-text in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add maziyarpanahi/openmed --skill deidentifying-multilingual-text -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/deidentifying-multilingual-text, .gemini/skills/deidentifying-multilingual-text, .github/skills/deidentifying-multilingual-text and .opencode/skills/deidentifying-multilingual-text in your project.
SKILL.md names no scripts, command-line tools or credentials: Deidentifying Multilingual Text is instructions for the agent only. Our summary lists: Python 3.
SKILL.md names 1 domain. As links in the text: hhs.gov. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Deidentifying Multilingual Text is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.7k tokens (SKILL.md is roughly 6.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Deidentifying Multilingual Text: Sanity Best Practices (robotostudio/turbo-start-sanity, 183 stars), Mas Skills (AUTO-MAS-Project/AUTO-MAS, 711 stars), SQL Optimization Patterns (ynulihao/AgentSkillOS, 618 stars) and Datamodellm (nimbalyst/nimbalyst, 1.9k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
maziyarpanahi (a GitHub user) maintains it in maziyarpanahi/openmed, which has 5,500 GitHub stars. The repository holds 74 skills in this directory. The repository was last updated on October 9, 2026.
Source: maziyarpanahi/openmed on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.