Creator · K-Dense-AI
Last updated · Sep 1, 2026
Use this skill when working with Brain Imaging Data Structure (BIDS) datasets: organizing neuroscience and biomedical data (MRI, EEG, MEG, iEEG, PET, microscopy, NIRS, motion capture, EMG, MR spectroscopy, behavioral), querying BIDS layouts, validating compliance, converting DICO
Creator · K-Dense-AI
Last updated · Sep 1, 2026
Use this skill when working with Brain Imaging Data Structure (BIDS) datasets: organizing neuroscience and biomedical data (MRI, EEG, MEG, iEEG, PET, microscopy, NIRS, motion capture, EMG, MR spectroscopy, behavioral), querying BIDS layouts, validating compliance, converting DICO
Creator · K-Dense-AI
Last updated · Sep 1, 2026
Use this skill when working with Brain Imaging Data Structure (BIDS) datasets: organizing neuroscience and biomedical data (MRI, EEG, MEG, iEEG, PET, microscopy, NIRS, motion capture, EMG, MR spectroscopy, behavioral), querying BIDS layouts, validating compliance, converting DICO
Creator · K-Dense-AI
Last updated · Sep 1, 2026
Use this skill when working with Brain Imaging Data Structure (BIDS) datasets: organizing neuroscience and biomedical data (MRI, EEG, MEG, iEEG, PET, microscopy, NIRS, motion capture, EMG, MR spectroscopy, behavioral), querying BIDS layouts, validating compliance, converting DICO
Sandbox only
Install targets
Codex install prompt
Install the "bids" agent skill from https://github.com/K-Dense-AI/scientific-agent-skills/tree/main/skills/bids. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: Use this skill when working with Brain Imaging Data Structure (BIDS) datasets: organizing neuroscience and biomedical data (MRI, EEG, MEG, iEEG, PET, microscopy, NIRS, motion capture, EMG, MR spectroscopy, behavioral), querying BIDS layouts, validating compliance, converting DICOM to BIDS, writing metadata sidecars, or creating BIDS derivatives. After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"k-dense-ai-bids","task":"Install bids","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Code review, repo analysis, testing, CI, GitHub, DevOps, and developer workflow skills.
Scenario
GitHub automation
I need my agent to triage GitHub issues, review pull requests, and summarize repository changes.
Agent fit
Claude Code + CLI + Codex
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add K-Dense-AI/scientific-agent-skills --skill bids
Maintenance
fresh
6d since push
Risk
Needs review
Dependency or permission surface needs review
GitHub quality
38K
92/100 Quality · 75/100 Trust
Coverage tags
Review notes
Dependency or permission surface needs review · Permission surface may require sandboxing
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
ExcellentHigh-confidence pick with strong adoption and healthy maintenance signals.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
38K GitHub stars
Repo activity
38K stars, 3.6K forks
Maintenance
6d since push
License
https://creativecommons.org/licenses/by/4.0/
Install
npx skills add K-Dense-AI/scientific-agent-skills --skill bids
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add K-Dense-AI/scientific-agent-skills --skill bidsDo not use when
Agent safety v2
Sparse or mixed signals. Useful for discovery, but not for autonomous installation.
Test manually in an isolated workspace and compare against safer alternatives.
high
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
medium
Skill may read or write project files, documents, generated artifacts, or local workspace state.
medium
Skill may inspect schemas, query databases, or work with persistent stores.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20bids%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20bids%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/k-dense-ai-bids/install
Agent should check
Copy prompt
Task: Use bids in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20bids%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/k-dense-ai-bids/install
Install command: npx skills add K-Dense-AI/scientific-agent-skills --skill bids
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/k-dense-ai-bids/install
LLM text format
/api/skills/k-dense-ai-bids/install?format=text
Find alternatives
/api/skills/search?q=bids&limit=3
Agent prompt
Use bids for this task. Review https://www.openagentskill.com/api/skills/k-dense-ai-bids/install, then install with: npx skills add K-Dense-AI/scientific-agent-skills --skill bidsRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/k-dense-ai-bids
LLM text
/api/registry/manifest/k-dense-ai-bids?format=text
Install alias
/api/registry/install/k-dense-ai-bids
Recommend
/api/registry/recommend?task=Use%20bids%20in%20an%20agent%20workflow&limit=3
Agent fit
GitHub automation
Use-case tags
Platforms
Claude Code
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Use this as a leading candidate, then validate the README and install path in your own agent stack.
Role in stack
Primary pick
Primary fit
GitHub automation
Trust label
Production-ready
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
PASS38K GitHub stars
Stars/forks activity
PASS38K stars, 3.6K forks; issue activity unavailable in current metadata
Recent maintenance
PASS6d since push
License clarity
PASShttps://creativecommons.org/licenses/by/4.0/
Good signals
Review before install
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
High-confidence pick with strong adoption and healthy maintenance signals.
Workflow fit
Manage repositories
I need my agent to triage GitHub issues, review pull requests, and summarize repository changes.
Investigate faster
I need my agent to research a topic, compare sources, and produce a concise report.
Build and ship code
I need a coding agent that can understand a repository, edit code, and review pull requests.
Workflow fit
Find, compare, and synthesize
A workflow for agents that gather sources, compare claims, summarize long material, and draft useful research briefs.
Inspect, patch, and verify code
A workflow for software agents that inspect repositories, review pull requests, generate tests, and turn findings into shippable patches.
Turn skills into distribution
A workflow for turning newly indexed skills into SEO briefs, social drafts, comparison pages, and reusable publishing workflows.
Alternative shortlist
Similar skills that may fit this task.
Wazuh - The Open Source Security Platform. Unified XDR and SIEM protection for endpoints and cloud workloads.
🕵️♂️ Collect a dossier on a person by username from 3000+ sites
Nuclei is a fast, customizable vulnerability scanner powered by the global security community and built on a simple YAML-based DSL, enabling collaboration to tackle trending vulnerabilities on the internet. It helps you find vulnerabilities in your applications, APIs, networks, DNS, and cloud configurations.
Infisical is the open-source platform for secrets, certificates, and privileged access management.
--- name: bids description: > Use this skill when working with Brain Imaging Data Structure (BIDS) datasets: organizing neuroscience and biomedical data (MRI, EEG, MEG, iEEG, PET, microscopy, NIRS, motion capture, EMG, MR spectroscopy, behavioral), querying BIDS layouts, validating compliance, converting DICOM to BIDS, writing metadata sidecars, or creating BIDS derivatives. license: https://creativecommons.org/licenses/by/4.0/ metadata: version: "1.1" skill-author: Yaroslav Halchenko ---
# Brain Imaging Data Structure (BIDS)
## Overview
The Brain Imaging Data Structure (BIDS) is a community standard for organizing and describing neuroscience and biomedical research datasets. It defines a consistent file naming convention, directory hierarchy, and metadata schema so that datasets are immediately understandable by humans and software tools alike. BIDS is governed by the BIDS Specification (currently v1.11.x) and is maintained by the community via the BIDS-Standard GitHub organization.
While BIDS originated for MRI, it has grown well beyond neuroimaging. The specification now covers 11 modalities spanning imaging, electrophysiology, and behavioral data:
- **Imaging**: MRI (structural, functional, diffusion, fieldmaps, perfusion/ASL), PET, microscopy - **Electrophysiology**: EEG, MEG, iEEG (intracranial EEG), EMG - **Other**: NIRS (near-infrared spectroscopy), motion capture, behavioral data (without imaging), MR spectroscopy
Active BEPs are extending BIDS further — notably BEP032 (microelectrode electrophysiology) will add support for extracellular recordings including Neuropixels probes, bringing BIDS to a prevalent methodology in animal neuroscience research (see also the neuropixels-analysis skill).
Adoption is required or strongly encouraged by major data repositories (OpenNeuro, DANDI), leading journals (NeuroImage, Human Brain Mapping, Scientific Data), and funding agencies (NIH, ERC).
The Python ecosystem for BIDS centers on **PyBIDS** (`pybids`) for querying and indexing BIDS datasets, and the **bids-validator** (Deno-based, available as PyPI package `bids-validator-deno` or via Deno directly) for compliance checking. Conversion from DICOM is typically done with **HeuDiConv**, **dcm2bids**, or **BIDScoin**.
## When to Use This Skill
Apply this skill when: - Organizing raw neuroscience data (imaging, electrophysiology, behavioral) into BIDS-compliant directory structures - Querying an existing BIDS dataset to find specific files by subject, session, task, run, or modality - Validating a dataset against the BIDS specification before sharing or submission - Converting DICOM data from scanners into BIDS format - Writing or editing JSON sidecar metadata files - Creating BIDS-compliant derivatives (preprocessed data, analysis outputs) - Setting up a `dataset_description.json` for a new dataset - Working with BIDS entities (subject, session, task, acquisition, run, etc.) - Configuring `.bidsignore` to exclude files from validation - Preparing data for upload to OpenNeuro, DANDI, or other BIDS-aware repositories
## Installation
```bash # Core BIDS querying library uv pip install pybids
# BIDS validator (Deno-based, installed via PyPI wrapper) uv pip install bids-validator-deno # Alternative: install directly via Deno # deno install -g -A npm:bids-validator
# DICOM-to-BIDS converters (install as needed) uv pip install heudiconv # HeuDiConv - heuristic-based DICOM conversion uv pip install dcm2bids # dcm2bids - config-file-based conversion # BIDScoin: uv pip install bidscoin
# Useful companions uv pip install nibabel # NIfTI/other neuroimaging file I/O uv pip install pydicom # DICOM file reading (used by converters) ```
## Core Workflows
Twelve workflow areas, each with worked code, are documented in [references/core_workflows.md](references/core_workflows.md):
1. **BIDS directory structure** — the required layout and where each modality belongs. 2. **`dataset_description.json`** — the required fields and how to generate it. 3. **Querying with PyBIDS** — `BIDSLayout`, entity filters, sidecar metadata with automatic inheritance, and building paths from entities. 4. **Validation** — `bids-validator` via the PyPI wrapper (recommended), via Deno directly, the legacy Node validator, and using `.bidsignore` to exclude files. 5. **Entities and file naming** — the entity order and naming grammar. 6. **DICOM to BIDS conversion** — HeuDiConv (including the turnkey ReproIn path and the reconnaissance → heuristic → convert sequence) and dcm2bids (config-file based). 7. **Metadata sidecars** — required and recommended JSON fields per modality. 8. **Events files** — task fMRI event timing and column conventions. 9. **Participants file** — `participants.tsv` and its data dictionary. 10. **Derivatives** — the derivatives layout and its `dataset_description.json`. 11. **Advanced PyBIDS** — index caching, including derivatives, confound regressors, and DataFrame output. 12. **BIDS-Apps** — the standard invocation pattern, and fMRIPrep, MRIQC, and QSIPrep.
Validate early and often: PyBIDS validates structure when it indexes a dataset, so an indexing failure usually means a naming or metadata problem rather than a code bug.
## Reference Materials
This skill includes detailed reference documentation:
- **bids_schema.json**: Machine-readable BIDS schema (from https://bids-specification.readthedocs.io/en/stable/schema.json). This is the authoritative source for entity definitions, ordering rules, filename templates, allowed suffixes per datatype, and metadata field requirements. BEP-specific schemas are at https://github.com/bids-standard/bids-schema/tree/main/BEPs. - **beps.yml**: Current list of all BIDS Extension Proposals with titles, leads, status, and links (from [bids-website](https://github.com/bids-standard/bids-website/blob/main/data/beps/beps.yml)) - **bids_specification.md**: Human-readable summary of the entity table, datatype reference, directory structure rules, template spaces, and specification changelog - **metadata_fields.md**: Required and recommended JSON sidecar fields for every BIDS modality (anat, func, dwi, fmap, eeg, meg, pet, etc.) - **conversion_tools.md**: Detailed workflows for HeuDiConv, dcm2bids, and BIDScoin including heuristic/config examples and troubleshooting
Update schema and BEPs with: `python scripts/update_schema.py`
## Common Issues and Solutions
### 1. Validator reports "Not a BIDS dataset" **Cause**: Missing `dataset_description.json` at the root. **Fix**: Create the file with at minimum `{"Name": "...", "BIDSVersion": "1.10.0"}`.
### 2. Inconsistent subjects warning **Cause**: Not all subjects have the same set of files (some missing sessions, runs, etc.). **Fix**: This is a warning, not an error. Use `--ignoreSubjectConsistency` if intentional. Document missing data in `participants.tsv` or a `scans.tsv`.
### 3. Missing SliceTiming **Cause**: `dcm2niix` couldn't extract slice timing from DICOM headers. **Fix**: Determine slice order from the scan protocol and add manually to the JSON sidecar. Common patterns: ascending, descending, interleaved (odd-first or even-first).
### 4. Phase encoding direction confusion **Cause**: Axis labels (i/j/k vs x/y/z vs LR/AP/SI) are confusing. **Fix**: In BIDS, use NIfTI image axes: `i`=first axis, `j`=second, `k`=third. `-` means negative direction. For standard axial acquisitions: `j` is typically anterior-posterior. Verify with the acquisition protocol.
### 5. PyBIDS is slow on large datasets **Cause**: Full filesystem indexing on every `BIDSLayout()` call. **Fix**: Use `database_path` to cache the index to an SQLite file: ```python layout = BIDSLayout("/data", database_path="/data/.pybids_cache.db") ```
### 6. Derivatives not found by PyBIDS **Cause**: Derivatives directory missing its own `dataset_description.json`. **Fix**: Every derivatives directory must have `dataset_description.json` with `"DatasetType": "derivative"`.
### 7. Events file timing is off **Cause**: `onset` times are relative to the wrong reference (e.g., trigger time vs first volume). **Fix**: Onsets must be in seconds relative to the first volume of that run's acquisition. Account for dummy scans if they were discarded.
### 8. TSV files fail validation **Cause**: Encoding or delimiter issues (spaces instead of tabs, BOM characters, Windows line endings). **Fix**: Ensure tab-separated values with UTF-8 encoding and Unix line endings (`\n`). Use `n/a` (not `NA`, `NaN`, or empty) for missing values.
## Best Practices
1. **Validate early and often** - Run the BIDS validator after every conversion or modification. Fix errors before they compound.
2. **Use metadata inheritance** - Place shared metadata (e.g., `TaskName`, scanner parameters) in top-level sidecar files rather than duplicating in every subject's directory.
3. **Keep sourcedata** - Store the original DICOM (or other raw) data under `sourcedata/` so conversions are reproducible. Add `sourcedata/` to `.bidsignore`.
4. **Use consistent naming from the start** - Define your BIDS naming scheme before data collection. Use the ReproIn naming convention for scan protocols to enable automatic conversion.
5. **Document your dataset** - Write a thorough `README` describing the study design, acquisition parameters, known issues, and any deviations from BIDS.
6. **Use scans.tsv for run-level metadata** - Record per-run acquisition times and quality notes: ``` filename acq_time quality func/sub-01_task-rest_bold.nii.gz 2025-01-15T10:30:00 good ```
7. **Version your dataset** - Use `CHANGES` to document dataset modifications. Consider DataLad for full version control of large datasets.
8. **Deface anatomical images** - Remove facial features from T1w/T2w images before sharing (e.g., using `pydeface`, `mri_deface`, or `afni_refacer`). Store defaced versions as the primary data or use `_defacemask` files.
9. **Use BIDS URIs for provenance** - In derivatives, reference source files using BIDS URIs: `bids::sub-01/anat/sub-01_T1w.nii.gz`.
10. **Prefer community tools** - Use established BIDS-Apps (fMRIPrep, MRIQC, QSIPrep) rather than custom pipelines when possible. They handle BIDS I/O correctly and produce BIDS-compliant derivatives.
11. **Study bids-examples** - The [bids-examples](https://github.com/bids-standard/bids-examples) repository is the canonical collection of prototypical BIDS datasets covering different modalities and use cases (MRI, fMRI, DWI, EEG, MEG, iEEG, PET, ASL, genetics, derivatives, and more). Use it as a reference when structuring your own dataset, as test data for BIDS tools, or to understand how a specific modality should be organized. Each example passes the BIDS validator.
## BIDS Extension Proposals (BEPs)
BEPs are community-driven proposals to extend BIDS to new modalities, derivatives, or metadata. The full list with status, leads, and links is in `references/beps.yml` (fetched from the [bids-website](https://github.com/bids-standard/bids-website/blob/main/data/beps/beps.yml)). BEP-specific schema previews are rendered at https://github.com/bids-standard/bids-schema/tree/main/BEPs.
**Current BEPs** (as of schema update):
| BEP | Title | Content | Status | |-----|-------|---------|--------| | 004 | Susceptibility Weighted Imaging | raw | Seeking new leader | | 011 | Structural preprocessing derivatives | derivative | Has PR (#518) | | 012 | Functional preprocessing derivatives | derivative | Has PR (#519), schema implemented | | 014 | Affine transforms and nonlinear field warps | derivative | X5 format development | | 016 | Diffusion weighted imaging derivatives | derivative | Has PR (#2211) | | 017 | Generic BIDS connectivity data schema | derivative | In development | | 021 | Common Electrophysiological Derivatives | derivative | In development | | 023 | PET Preprocessing derivatives | derivative | In development | | 024 | Computed Tomography scan | raw | S
Decision snapshot
38,487 GitHub stars
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for bids, ready for a manual X post.
bids: Use this skill when working with Brain Imaging Data Structure (BIDS) datasets: organizing neu... 38.5K stars https://www.openagentskill.com/skills/k-dense-ai-bids?ref=x
Listing + install path for bids: https://www.openagentskill.com/skills/k-dense-ai-bids?ref=x Install: npx skills add K-Dense-AI/scientific-agent-skills --skill bids
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to K-Dense-AI but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/k-dense-ai-bids?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/k-dense-ai-bids?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/k-dense-ai-bids/audit)
[](https://www.openagentskill.com/skills/k-dense-ai-bids?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)K-Dense-AI
@k-dense-ai
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Sandbox only
Wazuh
Wazuh - The Open Source Security Platform. Unified XDR and SIEM protection for endpoints and cloud workloads.
16.3K StarsMaigret
🕵️♂️ Collect a dossier on a person by username from 3000+ sites
32.9K StarsNuclei
Nuclei is a fast, customizable vulnerability scanner powered by the global security community and built on a simple YAML-based DSL, enabling collaboration to tackle trending vulnerabilities on the internet. It helps you find vulnerabilities in your applications, APIs, networks, DNS, and cloud configurations.
29.2K StarsInfisical
Infisical is the open-source platform for secrets, certificates, and privileged access management.
27.4K StarsSandbox only
Install targets
Codex install prompt
Install the "bids" agent skill from https://github.com/K-Dense-AI/scientific-agent-skills/tree/main/skills/bids. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: Use this skill when working with Brain Imaging Data Structure (BIDS) datasets: organizing neuroscience and biomedical data (MRI, EEG, MEG, iEEG, PET, microscopy, NIRS, motion capture, EMG, MR spectroscopy, behavioral), querying BIDS layouts, validating compliance, converting DICOM to BIDS, writing metadata sidecars, or creating BIDS derivatives. After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"k-dense-ai-bids","task":"Install bids","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Code review, repo analysis, testing, CI, GitHub, DevOps, and developer workflow skills.
Scenario
GitHub automation
I need my agent to triage GitHub issues, review pull requests, and summarize repository changes.
Agent fit
Claude Code + CLI + Codex
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add K-Dense-AI/scientific-agent-skills --skill bids
Maintenance
fresh
6d since push
Risk
Needs review
Dependency or permission surface needs review
GitHub quality
38K
92/100 Quality · 75/100 Trust
Coverage tags
Review notes
Dependency or permission surface needs review · Permission surface may require sandboxing
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
ExcellentHigh-confidence pick with strong adoption and healthy maintenance signals.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
38K GitHub stars
Repo activity
38K stars, 3.6K forks
Maintenance
6d since push
License
https://creativecommons.org/licenses/by/4.0/
Install
npx skills add K-Dense-AI/scientific-agent-skills --skill bids
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add K-Dense-AI/scientific-agent-skills --skill bidsDo not use when
Agent safety v2
Sparse or mixed signals. Useful for discovery, but not for autonomous installation.
Test manually in an isolated workspace and compare against safer alternatives.
high
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
medium
Skill may read or write project files, documents, generated artifacts, or local workspace state.
medium
Skill may inspect schemas, query databases, or work with persistent stores.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20bids%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20bids%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/k-dense-ai-bids/install
Agent should check
Copy prompt
Task: Use bids in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20bids%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/k-dense-ai-bids/install
Install command: npx skills add K-Dense-AI/scientific-agent-skills --skill bids
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/k-dense-ai-bids/install
LLM text format
/api/skills/k-dense-ai-bids/install?format=text
Find alternatives
/api/skills/search?q=bids&limit=3
Agent prompt
Use bids for this task. Review https://www.openagentskill.com/api/skills/k-dense-ai-bids/install, then install with: npx skills add K-Dense-AI/scientific-agent-skills --skill bidsRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/k-dense-ai-bids
LLM text
/api/registry/manifest/k-dense-ai-bids?format=text
Install alias
/api/registry/install/k-dense-ai-bids
Recommend
/api/registry/recommend?task=Use%20bids%20in%20an%20agent%20workflow&limit=3
Agent fit
GitHub automation
Use-case tags
Platforms
Claude Code
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Use this as a leading candidate, then validate the README and install path in your own agent stack.
Role in stack
Primary pick
Primary fit
GitHub automation
Trust label
Production-ready
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
PASS38K GitHub stars
Stars/forks activity
PASS38K stars, 3.6K forks; issue activity unavailable in current metadata
Recent maintenance
PASS6d since push
License clarity
PASShttps://creativecommons.org/licenses/by/4.0/
Good signals
Review before install
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
High-confidence pick with strong adoption and healthy maintenance signals.
Workflow fit
Manage repositories
I need my agent to triage GitHub issues, review pull requests, and summarize repository changes.
Investigate faster
I need my agent to research a topic, compare sources, and produce a concise report.
Build and ship code
I need a coding agent that can understand a repository, edit code, and review pull requests.
Workflow fit
Find, compare, and synthesize
A workflow for agents that gather sources, compare claims, summarize long material, and draft useful research briefs.
Inspect, patch, and verify code
A workflow for software agents that inspect repositories, review pull requests, generate tests, and turn findings into shippable patches.
Turn skills into distribution
A workflow for turning newly indexed skills into SEO briefs, social drafts, comparison pages, and reusable publishing workflows.
Alternative shortlist
Similar skills that may fit this task.
Wazuh - The Open Source Security Platform. Unified XDR and SIEM protection for endpoints and cloud workloads.
🕵️♂️ Collect a dossier on a person by username from 3000+ sites
Nuclei is a fast, customizable vulnerability scanner powered by the global security community and built on a simple YAML-based DSL, enabling collaboration to tackle trending vulnerabilities on the internet. It helps you find vulnerabilities in your applications, APIs, networks, DNS, and cloud configurations.
Infisical is the open-source platform for secrets, certificates, and privileged access management.
--- name: bids description: > Use this skill when working with Brain Imaging Data Structure (BIDS) datasets: organizing neuroscience and biomedical data (MRI, EEG, MEG, iEEG, PET, microscopy, NIRS, motion capture, EMG, MR spectroscopy, behavioral), querying BIDS layouts, validating compliance, converting DICOM to BIDS, writing metadata sidecars, or creating BIDS derivatives. license: https://creativecommons.org/licenses/by/4.0/ metadata: version: "1.1" skill-author: Yaroslav Halchenko ---
# Brain Imaging Data Structure (BIDS)
## Overview
The Brain Imaging Data Structure (BIDS) is a community standard for organizing and describing neuroscience and biomedical research datasets. It defines a consistent file naming convention, directory hierarchy, and metadata schema so that datasets are immediately understandable by humans and software tools alike. BIDS is governed by the BIDS Specification (currently v1.11.x) and is maintained by the community via the BIDS-Standard GitHub organization.
While BIDS originated for MRI, it has grown well beyond neuroimaging. The specification now covers 11 modalities spanning imaging, electrophysiology, and behavioral data:
- **Imaging**: MRI (structural, functional, diffusion, fieldmaps, perfusion/ASL), PET, microscopy - **Electrophysiology**: EEG, MEG, iEEG (intracranial EEG), EMG - **Other**: NIRS (near-infrared spectroscopy), motion capture, behavioral data (without imaging), MR spectroscopy
Active BEPs are extending BIDS further — notably BEP032 (microelectrode electrophysiology) will add support for extracellular recordings including Neuropixels probes, bringing BIDS to a prevalent methodology in animal neuroscience research (see also the neuropixels-analysis skill).
Adoption is required or strongly encouraged by major data repositories (OpenNeuro, DANDI), leading journals (NeuroImage, Human Brain Mapping, Scientific Data), and funding agencies (NIH, ERC).
The Python ecosystem for BIDS centers on **PyBIDS** (`pybids`) for querying and indexing BIDS datasets, and the **bids-validator** (Deno-based, available as PyPI package `bids-validator-deno` or via Deno directly) for compliance checking. Conversion from DICOM is typically done with **HeuDiConv**, **dcm2bids**, or **BIDScoin**.
## When to Use This Skill
Apply this skill when: - Organizing raw neuroscience data (imaging, electrophysiology, behavioral) into BIDS-compliant directory structures - Querying an existing BIDS dataset to find specific files by subject, session, task, run, or modality - Validating a dataset against the BIDS specification before sharing or submission - Converting DICOM data from scanners into BIDS format - Writing or editing JSON sidecar metadata files - Creating BIDS-compliant derivatives (preprocessed data, analysis outputs) - Setting up a `dataset_description.json` for a new dataset - Working with BIDS entities (subject, session, task, acquisition, run, etc.) - Configuring `.bidsignore` to exclude files from validation - Preparing data for upload to OpenNeuro, DANDI, or other BIDS-aware repositories
## Installation
```bash # Core BIDS querying library uv pip install pybids
# BIDS validator (Deno-based, installed via PyPI wrapper) uv pip install bids-validator-deno # Alternative: install directly via Deno # deno install -g -A npm:bids-validator
# DICOM-to-BIDS converters (install as needed) uv pip install heudiconv # HeuDiConv - heuristic-based DICOM conversion uv pip install dcm2bids # dcm2bids - config-file-based conversion # BIDScoin: uv pip install bidscoin
# Useful companions uv pip install nibabel # NIfTI/other neuroimaging file I/O uv pip install pydicom # DICOM file reading (used by converters) ```
## Core Workflows
Twelve workflow areas, each with worked code, are documented in [references/core_workflows.md](references/core_workflows.md):
1. **BIDS directory structure** — the required layout and where each modality belongs. 2. **`dataset_description.json`** — the required fields and how to generate it. 3. **Querying with PyBIDS** — `BIDSLayout`, entity filters, sidecar metadata with automatic inheritance, and building paths from entities. 4. **Validation** — `bids-validator` via the PyPI wrapper (recommended), via Deno directly, the legacy Node validator, and using `.bidsignore` to exclude files. 5. **Entities and file naming** — the entity order and naming grammar. 6. **DICOM to BIDS conversion** — HeuDiConv (including the turnkey ReproIn path and the reconnaissance → heuristic → convert sequence) and dcm2bids (config-file based). 7. **Metadata sidecars** — required and recommended JSON fields per modality. 8. **Events files** — task fMRI event timing and column conventions. 9. **Participants file** — `participants.tsv` and its data dictionary. 10. **Derivatives** — the derivatives layout and its `dataset_description.json`. 11. **Advanced PyBIDS** — index caching, including derivatives, confound regressors, and DataFrame output. 12. **BIDS-Apps** — the standard invocation pattern, and fMRIPrep, MRIQC, and QSIPrep.
Validate early and often: PyBIDS validates structure when it indexes a dataset, so an indexing failure usually means a naming or metadata problem rather than a code bug.
## Reference Materials
This skill includes detailed reference documentation:
- **bids_schema.json**: Machine-readable BIDS schema (from https://bids-specification.readthedocs.io/en/stable/schema.json). This is the authoritative source for entity definitions, ordering rules, filename templates, allowed suffixes per datatype, and metadata field requirements. BEP-specific schemas are at https://github.com/bids-standard/bids-schema/tree/main/BEPs. - **beps.yml**: Current list of all BIDS Extension Proposals with titles, leads, status, and links (from [bids-website](https://github.com/bids-standard/bids-website/blob/main/data/beps/beps.yml)) - **bids_specification.md**: Human-readable summary of the entity table, datatype reference, directory structure rules, template spaces, and specification changelog - **metadata_fields.md**: Required and recommended JSON sidecar fields for every BIDS modality (anat, func, dwi, fmap, eeg, meg, pet, etc.) - **conversion_tools.md**: Detailed workflows for HeuDiConv, dcm2bids, and BIDScoin including heuristic/config examples and troubleshooting
Update schema and BEPs with: `python scripts/update_schema.py`
## Common Issues and Solutions
### 1. Validator reports "Not a BIDS dataset" **Cause**: Missing `dataset_description.json` at the root. **Fix**: Create the file with at minimum `{"Name": "...", "BIDSVersion": "1.10.0"}`.
### 2. Inconsistent subjects warning **Cause**: Not all subjects have the same set of files (some missing sessions, runs, etc.). **Fix**: This is a warning, not an error. Use `--ignoreSubjectConsistency` if intentional. Document missing data in `participants.tsv` or a `scans.tsv`.
### 3. Missing SliceTiming **Cause**: `dcm2niix` couldn't extract slice timing from DICOM headers. **Fix**: Determine slice order from the scan protocol and add manually to the JSON sidecar. Common patterns: ascending, descending, interleaved (odd-first or even-first).
### 4. Phase encoding direction confusion **Cause**: Axis labels (i/j/k vs x/y/z vs LR/AP/SI) are confusing. **Fix**: In BIDS, use NIfTI image axes: `i`=first axis, `j`=second, `k`=third. `-` means negative direction. For standard axial acquisitions: `j` is typically anterior-posterior. Verify with the acquisition protocol.
### 5. PyBIDS is slow on large datasets **Cause**: Full filesystem indexing on every `BIDSLayout()` call. **Fix**: Use `database_path` to cache the index to an SQLite file: ```python layout = BIDSLayout("/data", database_path="/data/.pybids_cache.db") ```
### 6. Derivatives not found by PyBIDS **Cause**: Derivatives directory missing its own `dataset_description.json`. **Fix**: Every derivatives directory must have `dataset_description.json` with `"DatasetType": "derivative"`.
### 7. Events file timing is off **Cause**: `onset` times are relative to the wrong reference (e.g., trigger time vs first volume). **Fix**: Onsets must be in seconds relative to the first volume of that run's acquisition. Account for dummy scans if they were discarded.
### 8. TSV files fail validation **Cause**: Encoding or delimiter issues (spaces instead of tabs, BOM characters, Windows line endings). **Fix**: Ensure tab-separated values with UTF-8 encoding and Unix line endings (`\n`). Use `n/a` (not `NA`, `NaN`, or empty) for missing values.
## Best Practices
1. **Validate early and often** - Run the BIDS validator after every conversion or modification. Fix errors before they compound.
2. **Use metadata inheritance** - Place shared metadata (e.g., `TaskName`, scanner parameters) in top-level sidecar files rather than duplicating in every subject's directory.
3. **Keep sourcedata** - Store the original DICOM (or other raw) data under `sourcedata/` so conversions are reproducible. Add `sourcedata/` to `.bidsignore`.
4. **Use consistent naming from the start** - Define your BIDS naming scheme before data collection. Use the ReproIn naming convention for scan protocols to enable automatic conversion.
5. **Document your dataset** - Write a thorough `README` describing the study design, acquisition parameters, known issues, and any deviations from BIDS.
6. **Use scans.tsv for run-level metadata** - Record per-run acquisition times and quality notes: ``` filename acq_time quality func/sub-01_task-rest_bold.nii.gz 2025-01-15T10:30:00 good ```
7. **Version your dataset** - Use `CHANGES` to document dataset modifications. Consider DataLad for full version control of large datasets.
8. **Deface anatomical images** - Remove facial features from T1w/T2w images before sharing (e.g., using `pydeface`, `mri_deface`, or `afni_refacer`). Store defaced versions as the primary data or use `_defacemask` files.
9. **Use BIDS URIs for provenance** - In derivatives, reference source files using BIDS URIs: `bids::sub-01/anat/sub-01_T1w.nii.gz`.
10. **Prefer community tools** - Use established BIDS-Apps (fMRIPrep, MRIQC, QSIPrep) rather than custom pipelines when possible. They handle BIDS I/O correctly and produce BIDS-compliant derivatives.
11. **Study bids-examples** - The [bids-examples](https://github.com/bids-standard/bids-examples) repository is the canonical collection of prototypical BIDS datasets covering different modalities and use cases (MRI, fMRI, DWI, EEG, MEG, iEEG, PET, ASL, genetics, derivatives, and more). Use it as a reference when structuring your own dataset, as test data for BIDS tools, or to understand how a specific modality should be organized. Each example passes the BIDS validator.
## BIDS Extension Proposals (BEPs)
BEPs are community-driven proposals to extend BIDS to new modalities, derivatives, or metadata. The full list with status, leads, and links is in `references/beps.yml` (fetched from the [bids-website](https://github.com/bids-standard/bids-website/blob/main/data/beps/beps.yml)). BEP-specific schema previews are rendered at https://github.com/bids-standard/bids-schema/tree/main/BEPs.
**Current BEPs** (as of schema update):
| BEP | Title | Content | Status | |-----|-------|---------|--------| | 004 | Susceptibility Weighted Imaging | raw | Seeking new leader | | 011 | Structural preprocessing derivatives | derivative | Has PR (#518) | | 012 | Functional preprocessing derivatives | derivative | Has PR (#519), schema implemented | | 014 | Affine transforms and nonlinear field warps | derivative | X5 format development | | 016 | Diffusion weighted imaging derivatives | derivative | Has PR (#2211) | | 017 | Generic BIDS connectivity data schema | derivative | In development | | 021 | Common Electrophysiological Derivatives | derivative | In development | | 023 | PET Preprocessing derivatives | derivative | In development | | 024 | Computed Tomography scan | raw | S
Decision snapshot
38,487 GitHub stars
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for bids, ready for a manual X post.
bids: Use this skill when working with Brain Imaging Data Structure (BIDS) datasets: organizing neu... 38.5K stars https://www.openagentskill.com/skills/k-dense-ai-bids?ref=x
Listing + install path for bids: https://www.openagentskill.com/skills/k-dense-ai-bids?ref=x Install: npx skills add K-Dense-AI/scientific-agent-skills --skill bids
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to K-Dense-AI but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/k-dense-ai-bids?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/k-dense-ai-bids?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/k-dense-ai-bids/audit)
[](https://www.openagentskill.com/skills/k-dense-ai-bids?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)K-Dense-AI
@k-dense-ai
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Sandbox only
Wazuh
Wazuh - The Open Source Security Platform. Unified XDR and SIEM protection for endpoints and cloud workloads.
16.3K StarsMaigret
🕵️♂️ Collect a dossier on a person by username from 3000+ sites
32.9K StarsNuclei
Nuclei is a fast, customizable vulnerability scanner powered by the global security community and built on a simple YAML-based DSL, enabling collaboration to tackle trending vulnerabilities on the internet. It helps you find vulnerabilities in your applications, APIs, networks, DNS, and cloud configurations.
29.2K StarsInfisical
Infisical is the open-source platform for secrets, certificates, and privileged access management.
27.4K StarsSandbox only
Install targets
Codex install prompt
Install the "bids" agent skill from https://github.com/K-Dense-AI/scientific-agent-skills/tree/main/skills/bids. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: Use this skill when working with Brain Imaging Data Structure (BIDS) datasets: organizing neuroscience and biomedical data (MRI, EEG, MEG, iEEG, PET, microscopy, NIRS, motion capture, EMG, MR spectroscopy, behavioral), querying BIDS layouts, validating compliance, converting DICOM to BIDS, writing metadata sidecars, or creating BIDS derivatives. After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"k-dense-ai-bids","task":"Install bids","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Code review, repo analysis, testing, CI, GitHub, DevOps, and developer workflow skills.
Scenario
GitHub automation
I need my agent to triage GitHub issues, review pull requests, and summarize repository changes.
Agent fit
Claude Code + CLI + Codex
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add K-Dense-AI/scientific-agent-skills --skill bids
Maintenance
fresh
6d since push
Risk
Needs review
Dependency or permission surface needs review
GitHub quality
38K
92/100 Quality · 75/100 Trust
Coverage tags
Review notes
Dependency or permission surface needs review · Permission surface may require sandboxing
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
ExcellentHigh-confidence pick with strong adoption and healthy maintenance signals.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
38K GitHub stars
Repo activity
38K stars, 3.6K forks
Maintenance
6d since push
License
https://creativecommons.org/licenses/by/4.0/
Install
npx skills add K-Dense-AI/scientific-agent-skills --skill bids
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add K-Dense-AI/scientific-agent-skills --skill bidsDo not use when
Agent safety v2
Sparse or mixed signals. Useful for discovery, but not for autonomous installation.
Test manually in an isolated workspace and compare against safer alternatives.
high
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
medium
Skill may read or write project files, documents, generated artifacts, or local workspace state.
medium
Skill may inspect schemas, query databases, or work with persistent stores.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20bids%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20bids%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/k-dense-ai-bids/install
Agent should check
Copy prompt
Task: Use bids in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20bids%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/k-dense-ai-bids/install
Install command: npx skills add K-Dense-AI/scientific-agent-skills --skill bids
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/k-dense-ai-bids/install
LLM text format
/api/skills/k-dense-ai-bids/install?format=text
Find alternatives
/api/skills/search?q=bids&limit=3
Agent prompt
Use bids for this task. Review https://www.openagentskill.com/api/skills/k-dense-ai-bids/install, then install with: npx skills add K-Dense-AI/scientific-agent-skills --skill bidsRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/k-dense-ai-bids
LLM text
/api/registry/manifest/k-dense-ai-bids?format=text
Install alias
/api/registry/install/k-dense-ai-bids
Recommend
/api/registry/recommend?task=Use%20bids%20in%20an%20agent%20workflow&limit=3
Agent fit
GitHub automation
Use-case tags
Platforms
Claude Code
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Use this as a leading candidate, then validate the README and install path in your own agent stack.
Role in stack
Primary pick
Primary fit
GitHub automation
Trust label
Production-ready
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
PASS38K GitHub stars
Stars/forks activity
PASS38K stars, 3.6K forks; issue activity unavailable in current metadata
Recent maintenance
PASS6d since push
License clarity
PASShttps://creativecommons.org/licenses/by/4.0/
Good signals
Review before install
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
High-confidence pick with strong adoption and healthy maintenance signals.
Workflow fit
Manage repositories
I need my agent to triage GitHub issues, review pull requests, and summarize repository changes.
Investigate faster
I need my agent to research a topic, compare sources, and produce a concise report.
Build and ship code
I need a coding agent that can understand a repository, edit code, and review pull requests.
Workflow fit
Find, compare, and synthesize
A workflow for agents that gather sources, compare claims, summarize long material, and draft useful research briefs.
Inspect, patch, and verify code
A workflow for software agents that inspect repositories, review pull requests, generate tests, and turn findings into shippable patches.
Turn skills into distribution
A workflow for turning newly indexed skills into SEO briefs, social drafts, comparison pages, and reusable publishing workflows.
Alternative shortlist
Similar skills that may fit this task.
Wazuh - The Open Source Security Platform. Unified XDR and SIEM protection for endpoints and cloud workloads.
🕵️♂️ Collect a dossier on a person by username from 3000+ sites
Nuclei is a fast, customizable vulnerability scanner powered by the global security community and built on a simple YAML-based DSL, enabling collaboration to tackle trending vulnerabilities on the internet. It helps you find vulnerabilities in your applications, APIs, networks, DNS, and cloud configurations.
Infisical is the open-source platform for secrets, certificates, and privileged access management.
--- name: bids description: > Use this skill when working with Brain Imaging Data Structure (BIDS) datasets: organizing neuroscience and biomedical data (MRI, EEG, MEG, iEEG, PET, microscopy, NIRS, motion capture, EMG, MR spectroscopy, behavioral), querying BIDS layouts, validating compliance, converting DICOM to BIDS, writing metadata sidecars, or creating BIDS derivatives. license: https://creativecommons.org/licenses/by/4.0/ metadata: version: "1.1" skill-author: Yaroslav Halchenko ---
# Brain Imaging Data Structure (BIDS)
## Overview
The Brain Imaging Data Structure (BIDS) is a community standard for organizing and describing neuroscience and biomedical research datasets. It defines a consistent file naming convention, directory hierarchy, and metadata schema so that datasets are immediately understandable by humans and software tools alike. BIDS is governed by the BIDS Specification (currently v1.11.x) and is maintained by the community via the BIDS-Standard GitHub organization.
While BIDS originated for MRI, it has grown well beyond neuroimaging. The specification now covers 11 modalities spanning imaging, electrophysiology, and behavioral data:
- **Imaging**: MRI (structural, functional, diffusion, fieldmaps, perfusion/ASL), PET, microscopy - **Electrophysiology**: EEG, MEG, iEEG (intracranial EEG), EMG - **Other**: NIRS (near-infrared spectroscopy), motion capture, behavioral data (without imaging), MR spectroscopy
Active BEPs are extending BIDS further — notably BEP032 (microelectrode electrophysiology) will add support for extracellular recordings including Neuropixels probes, bringing BIDS to a prevalent methodology in animal neuroscience research (see also the neuropixels-analysis skill).
Adoption is required or strongly encouraged by major data repositories (OpenNeuro, DANDI), leading journals (NeuroImage, Human Brain Mapping, Scientific Data), and funding agencies (NIH, ERC).
The Python ecosystem for BIDS centers on **PyBIDS** (`pybids`) for querying and indexing BIDS datasets, and the **bids-validator** (Deno-based, available as PyPI package `bids-validator-deno` or via Deno directly) for compliance checking. Conversion from DICOM is typically done with **HeuDiConv**, **dcm2bids**, or **BIDScoin**.
## When to Use This Skill
Apply this skill when: - Organizing raw neuroscience data (imaging, electrophysiology, behavioral) into BIDS-compliant directory structures - Querying an existing BIDS dataset to find specific files by subject, session, task, run, or modality - Validating a dataset against the BIDS specification before sharing or submission - Converting DICOM data from scanners into BIDS format - Writing or editing JSON sidecar metadata files - Creating BIDS-compliant derivatives (preprocessed data, analysis outputs) - Setting up a `dataset_description.json` for a new dataset - Working with BIDS entities (subject, session, task, acquisition, run, etc.) - Configuring `.bidsignore` to exclude files from validation - Preparing data for upload to OpenNeuro, DANDI, or other BIDS-aware repositories
## Installation
```bash # Core BIDS querying library uv pip install pybids
# BIDS validator (Deno-based, installed via PyPI wrapper) uv pip install bids-validator-deno # Alternative: install directly via Deno # deno install -g -A npm:bids-validator
# DICOM-to-BIDS converters (install as needed) uv pip install heudiconv # HeuDiConv - heuristic-based DICOM conversion uv pip install dcm2bids # dcm2bids - config-file-based conversion # BIDScoin: uv pip install bidscoin
# Useful companions uv pip install nibabel # NIfTI/other neuroimaging file I/O uv pip install pydicom # DICOM file reading (used by converters) ```
## Core Workflows
Twelve workflow areas, each with worked code, are documented in [references/core_workflows.md](references/core_workflows.md):
1. **BIDS directory structure** — the required layout and where each modality belongs. 2. **`dataset_description.json`** — the required fields and how to generate it. 3. **Querying with PyBIDS** — `BIDSLayout`, entity filters, sidecar metadata with automatic inheritance, and building paths from entities. 4. **Validation** — `bids-validator` via the PyPI wrapper (recommended), via Deno directly, the legacy Node validator, and using `.bidsignore` to exclude files. 5. **Entities and file naming** — the entity order and naming grammar. 6. **DICOM to BIDS conversion** — HeuDiConv (including the turnkey ReproIn path and the reconnaissance → heuristic → convert sequence) and dcm2bids (config-file based). 7. **Metadata sidecars** — required and recommended JSON fields per modality. 8. **Events files** — task fMRI event timing and column conventions. 9. **Participants file** — `participants.tsv` and its data dictionary. 10. **Derivatives** — the derivatives layout and its `dataset_description.json`. 11. **Advanced PyBIDS** — index caching, including derivatives, confound regressors, and DataFrame output. 12. **BIDS-Apps** — the standard invocation pattern, and fMRIPrep, MRIQC, and QSIPrep.
Validate early and often: PyBIDS validates structure when it indexes a dataset, so an indexing failure usually means a naming or metadata problem rather than a code bug.
## Reference Materials
This skill includes detailed reference documentation:
- **bids_schema.json**: Machine-readable BIDS schema (from https://bids-specification.readthedocs.io/en/stable/schema.json). This is the authoritative source for entity definitions, ordering rules, filename templates, allowed suffixes per datatype, and metadata field requirements. BEP-specific schemas are at https://github.com/bids-standard/bids-schema/tree/main/BEPs. - **beps.yml**: Current list of all BIDS Extension Proposals with titles, leads, status, and links (from [bids-website](https://github.com/bids-standard/bids-website/blob/main/data/beps/beps.yml)) - **bids_specification.md**: Human-readable summary of the entity table, datatype reference, directory structure rules, template spaces, and specification changelog - **metadata_fields.md**: Required and recommended JSON sidecar fields for every BIDS modality (anat, func, dwi, fmap, eeg, meg, pet, etc.) - **conversion_tools.md**: Detailed workflows for HeuDiConv, dcm2bids, and BIDScoin including heuristic/config examples and troubleshooting
Update schema and BEPs with: `python scripts/update_schema.py`
## Common Issues and Solutions
### 1. Validator reports "Not a BIDS dataset" **Cause**: Missing `dataset_description.json` at the root. **Fix**: Create the file with at minimum `{"Name": "...", "BIDSVersion": "1.10.0"}`.
### 2. Inconsistent subjects warning **Cause**: Not all subjects have the same set of files (some missing sessions, runs, etc.). **Fix**: This is a warning, not an error. Use `--ignoreSubjectConsistency` if intentional. Document missing data in `participants.tsv` or a `scans.tsv`.
### 3. Missing SliceTiming **Cause**: `dcm2niix` couldn't extract slice timing from DICOM headers. **Fix**: Determine slice order from the scan protocol and add manually to the JSON sidecar. Common patterns: ascending, descending, interleaved (odd-first or even-first).
### 4. Phase encoding direction confusion **Cause**: Axis labels (i/j/k vs x/y/z vs LR/AP/SI) are confusing. **Fix**: In BIDS, use NIfTI image axes: `i`=first axis, `j`=second, `k`=third. `-` means negative direction. For standard axial acquisitions: `j` is typically anterior-posterior. Verify with the acquisition protocol.
### 5. PyBIDS is slow on large datasets **Cause**: Full filesystem indexing on every `BIDSLayout()` call. **Fix**: Use `database_path` to cache the index to an SQLite file: ```python layout = BIDSLayout("/data", database_path="/data/.pybids_cache.db") ```
### 6. Derivatives not found by PyBIDS **Cause**: Derivatives directory missing its own `dataset_description.json`. **Fix**: Every derivatives directory must have `dataset_description.json` with `"DatasetType": "derivative"`.
### 7. Events file timing is off **Cause**: `onset` times are relative to the wrong reference (e.g., trigger time vs first volume). **Fix**: Onsets must be in seconds relative to the first volume of that run's acquisition. Account for dummy scans if they were discarded.
### 8. TSV files fail validation **Cause**: Encoding or delimiter issues (spaces instead of tabs, BOM characters, Windows line endings). **Fix**: Ensure tab-separated values with UTF-8 encoding and Unix line endings (`\n`). Use `n/a` (not `NA`, `NaN`, or empty) for missing values.
## Best Practices
1. **Validate early and often** - Run the BIDS validator after every conversion or modification. Fix errors before they compound.
2. **Use metadata inheritance** - Place shared metadata (e.g., `TaskName`, scanner parameters) in top-level sidecar files rather than duplicating in every subject's directory.
3. **Keep sourcedata** - Store the original DICOM (or other raw) data under `sourcedata/` so conversions are reproducible. Add `sourcedata/` to `.bidsignore`.
4. **Use consistent naming from the start** - Define your BIDS naming scheme before data collection. Use the ReproIn naming convention for scan protocols to enable automatic conversion.
5. **Document your dataset** - Write a thorough `README` describing the study design, acquisition parameters, known issues, and any deviations from BIDS.
6. **Use scans.tsv for run-level metadata** - Record per-run acquisition times and quality notes: ``` filename acq_time quality func/sub-01_task-rest_bold.nii.gz 2025-01-15T10:30:00 good ```
7. **Version your dataset** - Use `CHANGES` to document dataset modifications. Consider DataLad for full version control of large datasets.
8. **Deface anatomical images** - Remove facial features from T1w/T2w images before sharing (e.g., using `pydeface`, `mri_deface`, or `afni_refacer`). Store defaced versions as the primary data or use `_defacemask` files.
9. **Use BIDS URIs for provenance** - In derivatives, reference source files using BIDS URIs: `bids::sub-01/anat/sub-01_T1w.nii.gz`.
10. **Prefer community tools** - Use established BIDS-Apps (fMRIPrep, MRIQC, QSIPrep) rather than custom pipelines when possible. They handle BIDS I/O correctly and produce BIDS-compliant derivatives.
11. **Study bids-examples** - The [bids-examples](https://github.com/bids-standard/bids-examples) repository is the canonical collection of prototypical BIDS datasets covering different modalities and use cases (MRI, fMRI, DWI, EEG, MEG, iEEG, PET, ASL, genetics, derivatives, and more). Use it as a reference when structuring your own dataset, as test data for BIDS tools, or to understand how a specific modality should be organized. Each example passes the BIDS validator.
## BIDS Extension Proposals (BEPs)
BEPs are community-driven proposals to extend BIDS to new modalities, derivatives, or metadata. The full list with status, leads, and links is in `references/beps.yml` (fetched from the [bids-website](https://github.com/bids-standard/bids-website/blob/main/data/beps/beps.yml)). BEP-specific schema previews are rendered at https://github.com/bids-standard/bids-schema/tree/main/BEPs.
**Current BEPs** (as of schema update):
| BEP | Title | Content | Status | |-----|-------|---------|--------| | 004 | Susceptibility Weighted Imaging | raw | Seeking new leader | | 011 | Structural preprocessing derivatives | derivative | Has PR (#518) | | 012 | Functional preprocessing derivatives | derivative | Has PR (#519), schema implemented | | 014 | Affine transforms and nonlinear field warps | derivative | X5 format development | | 016 | Diffusion weighted imaging derivatives | derivative | Has PR (#2211) | | 017 | Generic BIDS connectivity data schema | derivative | In development | | 021 | Common Electrophysiological Derivatives | derivative | In development | | 023 | PET Preprocessing derivatives | derivative | In development | | 024 | Computed Tomography scan | raw | S
Decision snapshot
38,487 GitHub stars
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for bids, ready for a manual X post.
bids: Use this skill when working with Brain Imaging Data Structure (BIDS) datasets: organizing neu... 38.5K stars https://www.openagentskill.com/skills/k-dense-ai-bids?ref=x
Listing + install path for bids: https://www.openagentskill.com/skills/k-dense-ai-bids?ref=x Install: npx skills add K-Dense-AI/scientific-agent-skills --skill bids
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to K-Dense-AI but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/k-dense-ai-bids?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/k-dense-ai-bids?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/k-dense-ai-bids/audit)
[](https://www.openagentskill.com/skills/k-dense-ai-bids?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)K-Dense-AI
@k-dense-ai
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Sandbox only
Wazuh
Wazuh - The Open Source Security Platform. Unified XDR and SIEM protection for endpoints and cloud workloads.
16.3K StarsMaigret
🕵️♂️ Collect a dossier on a person by username from 3000+ sites
32.9K StarsNuclei
Nuclei is a fast, customizable vulnerability scanner powered by the global security community and built on a simple YAML-based DSL, enabling collaboration to tackle trending vulnerabilities on the internet. It helps you find vulnerabilities in your applications, APIs, networks, DNS, and cloud configurations.
29.2K StarsInfisical
Infisical is the open-source platform for secrets, certificates, and privileged access management.
27.4K StarsSandbox only
Install targets
Codex install prompt
Install the "bids" agent skill from https://github.com/K-Dense-AI/scientific-agent-skills/tree/main/skills/bids. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: Use this skill when working with Brain Imaging Data Structure (BIDS) datasets: organizing neuroscience and biomedical data (MRI, EEG, MEG, iEEG, PET, microscopy, NIRS, motion capture, EMG, MR spectroscopy, behavioral), querying BIDS layouts, validating compliance, converting DICOM to BIDS, writing metadata sidecars, or creating BIDS derivatives. After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"k-dense-ai-bids","task":"Install bids","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Code review, repo analysis, testing, CI, GitHub, DevOps, and developer workflow skills.
Scenario
GitHub automation
I need my agent to triage GitHub issues, review pull requests, and summarize repository changes.
Agent fit
Claude Code + CLI + Codex
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add K-Dense-AI/scientific-agent-skills --skill bids
Maintenance
fresh
6d since push
Risk
Needs review
Dependency or permission surface needs review
GitHub quality
38K
92/100 Quality · 75/100 Trust
Coverage tags
Review notes
Dependency or permission surface needs review · Permission surface may require sandboxing
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
ExcellentHigh-confidence pick with strong adoption and healthy maintenance signals.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
38K GitHub stars
Repo activity
38K stars, 3.6K forks
Maintenance
6d since push
License
https://creativecommons.org/licenses/by/4.0/
Install
npx skills add K-Dense-AI/scientific-agent-skills --skill bids
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add K-Dense-AI/scientific-agent-skills --skill bidsDo not use when
Agent safety v2
Sparse or mixed signals. Useful for discovery, but not for autonomous installation.
Test manually in an isolated workspace and compare against safer alternatives.
high
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
medium
Skill may read or write project files, documents, generated artifacts, or local workspace state.
medium
Skill may inspect schemas, query databases, or work with persistent stores.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20bids%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20bids%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/k-dense-ai-bids/install
Agent should check
Copy prompt
Task: Use bids in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20bids%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/k-dense-ai-bids/install
Install command: npx skills add K-Dense-AI/scientific-agent-skills --skill bids
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/k-dense-ai-bids/install
LLM text format
/api/skills/k-dense-ai-bids/install?format=text
Find alternatives
/api/skills/search?q=bids&limit=3
Agent prompt
Use bids for this task. Review https://www.openagentskill.com/api/skills/k-dense-ai-bids/install, then install with: npx skills add K-Dense-AI/scientific-agent-skills --skill bidsRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/k-dense-ai-bids
LLM text
/api/registry/manifest/k-dense-ai-bids?format=text
Install alias
/api/registry/install/k-dense-ai-bids
Recommend
/api/registry/recommend?task=Use%20bids%20in%20an%20agent%20workflow&limit=3
Agent fit
GitHub automation
Use-case tags
Platforms
Claude Code
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Use this as a leading candidate, then validate the README and install path in your own agent stack.
Role in stack
Primary pick
Primary fit
GitHub automation
Trust label
Production-ready
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
PASS38K GitHub stars
Stars/forks activity
PASS38K stars, 3.6K forks; issue activity unavailable in current metadata
Recent maintenance
PASS6d since push
License clarity
PASShttps://creativecommons.org/licenses/by/4.0/
Good signals
Review before install
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
High-confidence pick with strong adoption and healthy maintenance signals.
Workflow fit
Manage repositories
I need my agent to triage GitHub issues, review pull requests, and summarize repository changes.
Investigate faster
I need my agent to research a topic, compare sources, and produce a concise report.
Build and ship code
I need a coding agent that can understand a repository, edit code, and review pull requests.
Workflow fit
Find, compare, and synthesize
A workflow for agents that gather sources, compare claims, summarize long material, and draft useful research briefs.
Inspect, patch, and verify code
A workflow for software agents that inspect repositories, review pull requests, generate tests, and turn findings into shippable patches.
Turn skills into distribution
A workflow for turning newly indexed skills into SEO briefs, social drafts, comparison pages, and reusable publishing workflows.
Alternative shortlist
Similar skills that may fit this task.
Wazuh - The Open Source Security Platform. Unified XDR and SIEM protection for endpoints and cloud workloads.
🕵️♂️ Collect a dossier on a person by username from 3000+ sites
Nuclei is a fast, customizable vulnerability scanner powered by the global security community and built on a simple YAML-based DSL, enabling collaboration to tackle trending vulnerabilities on the internet. It helps you find vulnerabilities in your applications, APIs, networks, DNS, and cloud configurations.
Infisical is the open-source platform for secrets, certificates, and privileged access management.
--- name: bids description: > Use this skill when working with Brain Imaging Data Structure (BIDS) datasets: organizing neuroscience and biomedical data (MRI, EEG, MEG, iEEG, PET, microscopy, NIRS, motion capture, EMG, MR spectroscopy, behavioral), querying BIDS layouts, validating compliance, converting DICOM to BIDS, writing metadata sidecars, or creating BIDS derivatives. license: https://creativecommons.org/licenses/by/4.0/ metadata: version: "1.1" skill-author: Yaroslav Halchenko ---
# Brain Imaging Data Structure (BIDS)
## Overview
The Brain Imaging Data Structure (BIDS) is a community standard for organizing and describing neuroscience and biomedical research datasets. It defines a consistent file naming convention, directory hierarchy, and metadata schema so that datasets are immediately understandable by humans and software tools alike. BIDS is governed by the BIDS Specification (currently v1.11.x) and is maintained by the community via the BIDS-Standard GitHub organization.
While BIDS originated for MRI, it has grown well beyond neuroimaging. The specification now covers 11 modalities spanning imaging, electrophysiology, and behavioral data:
- **Imaging**: MRI (structural, functional, diffusion, fieldmaps, perfusion/ASL), PET, microscopy - **Electrophysiology**: EEG, MEG, iEEG (intracranial EEG), EMG - **Other**: NIRS (near-infrared spectroscopy), motion capture, behavioral data (without imaging), MR spectroscopy
Active BEPs are extending BIDS further — notably BEP032 (microelectrode electrophysiology) will add support for extracellular recordings including Neuropixels probes, bringing BIDS to a prevalent methodology in animal neuroscience research (see also the neuropixels-analysis skill).
Adoption is required or strongly encouraged by major data repositories (OpenNeuro, DANDI), leading journals (NeuroImage, Human Brain Mapping, Scientific Data), and funding agencies (NIH, ERC).
The Python ecosystem for BIDS centers on **PyBIDS** (`pybids`) for querying and indexing BIDS datasets, and the **bids-validator** (Deno-based, available as PyPI package `bids-validator-deno` or via Deno directly) for compliance checking. Conversion from DICOM is typically done with **HeuDiConv**, **dcm2bids**, or **BIDScoin**.
## When to Use This Skill
Apply this skill when: - Organizing raw neuroscience data (imaging, electrophysiology, behavioral) into BIDS-compliant directory structures - Querying an existing BIDS dataset to find specific files by subject, session, task, run, or modality - Validating a dataset against the BIDS specification before sharing or submission - Converting DICOM data from scanners into BIDS format - Writing or editing JSON sidecar metadata files - Creating BIDS-compliant derivatives (preprocessed data, analysis outputs) - Setting up a `dataset_description.json` for a new dataset - Working with BIDS entities (subject, session, task, acquisition, run, etc.) - Configuring `.bidsignore` to exclude files from validation - Preparing data for upload to OpenNeuro, DANDI, or other BIDS-aware repositories
## Installation
```bash # Core BIDS querying library uv pip install pybids
# BIDS validator (Deno-based, installed via PyPI wrapper) uv pip install bids-validator-deno # Alternative: install directly via Deno # deno install -g -A npm:bids-validator
# DICOM-to-BIDS converters (install as needed) uv pip install heudiconv # HeuDiConv - heuristic-based DICOM conversion uv pip install dcm2bids # dcm2bids - config-file-based conversion # BIDScoin: uv pip install bidscoin
# Useful companions uv pip install nibabel # NIfTI/other neuroimaging file I/O uv pip install pydicom # DICOM file reading (used by converters) ```
## Core Workflows
Twelve workflow areas, each with worked code, are documented in [references/core_workflows.md](references/core_workflows.md):
1. **BIDS directory structure** — the required layout and where each modality belongs. 2. **`dataset_description.json`** — the required fields and how to generate it. 3. **Querying with PyBIDS** — `BIDSLayout`, entity filters, sidecar metadata with automatic inheritance, and building paths from entities. 4. **Validation** — `bids-validator` via the PyPI wrapper (recommended), via Deno directly, the legacy Node validator, and using `.bidsignore` to exclude files. 5. **Entities and file naming** — the entity order and naming grammar. 6. **DICOM to BIDS conversion** — HeuDiConv (including the turnkey ReproIn path and the reconnaissance → heuristic → convert sequence) and dcm2bids (config-file based). 7. **Metadata sidecars** — required and recommended JSON fields per modality. 8. **Events files** — task fMRI event timing and column conventions. 9. **Participants file** — `participants.tsv` and its data dictionary. 10. **Derivatives** — the derivatives layout and its `dataset_description.json`. 11. **Advanced PyBIDS** — index caching, including derivatives, confound regressors, and DataFrame output. 12. **BIDS-Apps** — the standard invocation pattern, and fMRIPrep, MRIQC, and QSIPrep.
Validate early and often: PyBIDS validates structure when it indexes a dataset, so an indexing failure usually means a naming or metadata problem rather than a code bug.
## Reference Materials
This skill includes detailed reference documentation:
- **bids_schema.json**: Machine-readable BIDS schema (from https://bids-specification.readthedocs.io/en/stable/schema.json). This is the authoritative source for entity definitions, ordering rules, filename templates, allowed suffixes per datatype, and metadata field requirements. BEP-specific schemas are at https://github.com/bids-standard/bids-schema/tree/main/BEPs. - **beps.yml**: Current list of all BIDS Extension Proposals with titles, leads, status, and links (from [bids-website](https://github.com/bids-standard/bids-website/blob/main/data/beps/beps.yml)) - **bids_specification.md**: Human-readable summary of the entity table, datatype reference, directory structure rules, template spaces, and specification changelog - **metadata_fields.md**: Required and recommended JSON sidecar fields for every BIDS modality (anat, func, dwi, fmap, eeg, meg, pet, etc.) - **conversion_tools.md**: Detailed workflows for HeuDiConv, dcm2bids, and BIDScoin including heuristic/config examples and troubleshooting
Update schema and BEPs with: `python scripts/update_schema.py`
## Common Issues and Solutions
### 1. Validator reports "Not a BIDS dataset" **Cause**: Missing `dataset_description.json` at the root. **Fix**: Create the file with at minimum `{"Name": "...", "BIDSVersion": "1.10.0"}`.
### 2. Inconsistent subjects warning **Cause**: Not all subjects have the same set of files (some missing sessions, runs, etc.). **Fix**: This is a warning, not an error. Use `--ignoreSubjectConsistency` if intentional. Document missing data in `participants.tsv` or a `scans.tsv`.
### 3. Missing SliceTiming **Cause**: `dcm2niix` couldn't extract slice timing from DICOM headers. **Fix**: Determine slice order from the scan protocol and add manually to the JSON sidecar. Common patterns: ascending, descending, interleaved (odd-first or even-first).
### 4. Phase encoding direction confusion **Cause**: Axis labels (i/j/k vs x/y/z vs LR/AP/SI) are confusing. **Fix**: In BIDS, use NIfTI image axes: `i`=first axis, `j`=second, `k`=third. `-` means negative direction. For standard axial acquisitions: `j` is typically anterior-posterior. Verify with the acquisition protocol.
### 5. PyBIDS is slow on large datasets **Cause**: Full filesystem indexing on every `BIDSLayout()` call. **Fix**: Use `database_path` to cache the index to an SQLite file: ```python layout = BIDSLayout("/data", database_path="/data/.pybids_cache.db") ```
### 6. Derivatives not found by PyBIDS **Cause**: Derivatives directory missing its own `dataset_description.json`. **Fix**: Every derivatives directory must have `dataset_description.json` with `"DatasetType": "derivative"`.
### 7. Events file timing is off **Cause**: `onset` times are relative to the wrong reference (e.g., trigger time vs first volume). **Fix**: Onsets must be in seconds relative to the first volume of that run's acquisition. Account for dummy scans if they were discarded.
### 8. TSV files fail validation **Cause**: Encoding or delimiter issues (spaces instead of tabs, BOM characters, Windows line endings). **Fix**: Ensure tab-separated values with UTF-8 encoding and Unix line endings (`\n`). Use `n/a` (not `NA`, `NaN`, or empty) for missing values.
## Best Practices
1. **Validate early and often** - Run the BIDS validator after every conversion or modification. Fix errors before they compound.
2. **Use metadata inheritance** - Place shared metadata (e.g., `TaskName`, scanner parameters) in top-level sidecar files rather than duplicating in every subject's directory.
3. **Keep sourcedata** - Store the original DICOM (or other raw) data under `sourcedata/` so conversions are reproducible. Add `sourcedata/` to `.bidsignore`.
4. **Use consistent naming from the start** - Define your BIDS naming scheme before data collection. Use the ReproIn naming convention for scan protocols to enable automatic conversion.
5. **Document your dataset** - Write a thorough `README` describing the study design, acquisition parameters, known issues, and any deviations from BIDS.
6. **Use scans.tsv for run-level metadata** - Record per-run acquisition times and quality notes: ``` filename acq_time quality func/sub-01_task-rest_bold.nii.gz 2025-01-15T10:30:00 good ```
7. **Version your dataset** - Use `CHANGES` to document dataset modifications. Consider DataLad for full version control of large datasets.
8. **Deface anatomical images** - Remove facial features from T1w/T2w images before sharing (e.g., using `pydeface`, `mri_deface`, or `afni_refacer`). Store defaced versions as the primary data or use `_defacemask` files.
9. **Use BIDS URIs for provenance** - In derivatives, reference source files using BIDS URIs: `bids::sub-01/anat/sub-01_T1w.nii.gz`.
10. **Prefer community tools** - Use established BIDS-Apps (fMRIPrep, MRIQC, QSIPrep) rather than custom pipelines when possible. They handle BIDS I/O correctly and produce BIDS-compliant derivatives.
11. **Study bids-examples** - The [bids-examples](https://github.com/bids-standard/bids-examples) repository is the canonical collection of prototypical BIDS datasets covering different modalities and use cases (MRI, fMRI, DWI, EEG, MEG, iEEG, PET, ASL, genetics, derivatives, and more). Use it as a reference when structuring your own dataset, as test data for BIDS tools, or to understand how a specific modality should be organized. Each example passes the BIDS validator.
## BIDS Extension Proposals (BEPs)
BEPs are community-driven proposals to extend BIDS to new modalities, derivatives, or metadata. The full list with status, leads, and links is in `references/beps.yml` (fetched from the [bids-website](https://github.com/bids-standard/bids-website/blob/main/data/beps/beps.yml)). BEP-specific schema previews are rendered at https://github.com/bids-standard/bids-schema/tree/main/BEPs.
**Current BEPs** (as of schema update):
| BEP | Title | Content | Status | |-----|-------|---------|--------| | 004 | Susceptibility Weighted Imaging | raw | Seeking new leader | | 011 | Structural preprocessing derivatives | derivative | Has PR (#518) | | 012 | Functional preprocessing derivatives | derivative | Has PR (#519), schema implemented | | 014 | Affine transforms and nonlinear field warps | derivative | X5 format development | | 016 | Diffusion weighted imaging derivatives | derivative | Has PR (#2211) | | 017 | Generic BIDS connectivity data schema | derivative | In development | | 021 | Common Electrophysiological Derivatives | derivative | In development | | 023 | PET Preprocessing derivatives | derivative | In development | | 024 | Computed Tomography scan | raw | S
Decision snapshot
38,487 GitHub stars
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for bids, ready for a manual X post.
bids: Use this skill when working with Brain Imaging Data Structure (BIDS) datasets: organizing neu... 38.5K stars https://www.openagentskill.com/skills/k-dense-ai-bids?ref=x
Listing + install path for bids: https://www.openagentskill.com/skills/k-dense-ai-bids?ref=x Install: npx skills add K-Dense-AI/scientific-agent-skills --skill bids
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to K-Dense-AI but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/k-dense-ai-bids?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/k-dense-ai-bids?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/k-dense-ai-bids/audit)
[](https://www.openagentskill.com/skills/k-dense-ai-bids?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)K-Dense-AI
@k-dense-ai
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Sandbox only
Wazuh
Wazuh - The Open Source Security Platform. Unified XDR and SIEM protection for endpoints and cloud workloads.
16.3K StarsMaigret
🕵️♂️ Collect a dossier on a person by username from 3000+ sites
32.9K StarsNuclei
Nuclei is a fast, customizable vulnerability scanner powered by the global security community and built on a simple YAML-based DSL, enabling collaboration to tackle trending vulnerabilities on the internet. It helps you find vulnerabilities in your applications, APIs, networks, DNS, and cloud configurations.
29.2K StarsInfisical
Infisical is the open-source platform for secrets, certificates, and privileged access management.
27.4K StarsPermission surface
shell or command execution, filesystem or document access
Agent outcomes
No agent outcome data yet
Docs
Strong README/SKILL.md context
Risk summary
Install readiness
Permission surface
shell or command execution, filesystem or document access
Agent outcomes
No agent outcome data yet
Docs
Strong README/SKILL.md context
Risk summary
Install readiness
Permission surface
shell or command execution, filesystem or document access
Agent outcomes
No agent outcome data yet
Docs
Strong README/SKILL.md context
Risk summary
Install readiness
Permission surface
shell or command execution, filesystem or document access
Agent outcomes
No agent outcome data yet
Docs
Strong README/SKILL.md context
Risk summary
Install readiness