datarobot-oss/datarobot-agent-skills / skills/datarobot-gap-analysis
datarobot-gap-analysis
FlaggedUse when the user wants to assess whether an AI agent repository (DataRobot-built or not) is enterprise-ready, run a gap analysis / readiness scan against security, governance, reliability, or regulatory standards, score an agent against EU AI Act requirements, or find and fix gaps (secrets, unpinned models, missing CI, missing guardrails, over-permissioned identity, etc.) before deploying an agent to production. Works on any repository, not only ones built with DataRobot.
scripts/gap_analysis/_bootstrap.py
View on GitHub# Copyright (c) 2026 DataRobot, Inc. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
"""Locate datarobot-skills-utils: a sibling `packages/` checkout (found by
walking up from this file) wins, then an installed distribution, then a
one-time install from PyPI into the running interpreter.
Run directly (`python3 _bootstrap.py`) to resolve it ahead of time."""
from __future__ import annotations
import importlib
import importlib.util
import shutil
import subprocess
import sys
from pathlib import Path
# Exact pin: an unpinned install would take whatever is newest on PyPI. Keep in
# step with `__version__` in the package's __init__.py, its single version
# source (a test enforces it).
SKILLS_UTILS_REQUIREMENT = "datarobot-skills-utils==0.1.1"
INSTALL_HINT = (
"datarobot-skills-utils not found: run `python3 -m pip install "
f"'{SKILLS_UTILS_REQUIREMENT}'`, or run from a checkout that contains "
"packages/datarobot-skills-utils"
)
def _sibling_src() -> Path | None:
for parent in Path(__file__).resolve().parents:
src = parent / "packages" / "datarobot-skills-utils" / "src"
if (src / "datarobot_skills_utils").is_dir():
return src
return None
def _importable() -> bool:
importlib.invalidate_caches()
return importlib.util.find_spec("datarobot_skills_utils") is not None
def _install_command() -> list[str] | None:
if importlib.util.find_spec("pip") is not None:
return [sys.executable, "-m", "pip", "install", SKILLS_UTILS_REQUIREMENT]
uv = shutil.which("uv")
if uv is not None:
return [
uv,
"pip",
"install",
"--python",
sys.executable,
SKILLS_UTILS_REQUIREMENT,
]
return None
def ensure_skills_utils() -> None:
src = _sibling_src()
if src is not None:
if str(src) not in sys.path:
sys.path.insert(0, str(src))
return
if _importable():
return
cmd = _install_command()
if cmd is None:
raise ImportError(f"{INSTALL_HINT} (neither pip nor uv is available)")
print(
"datarobot-skills-utils is not installed; installing from PyPI ...",
file=sys.stderr,
)
result = subprocess.run(cmd, check=False, stdout=sys.stderr)
if result.returncode != 0 or not _importable():
raise ImportError(INSTALL_HINT)
def main() -> int:
try:
ensure_skills_utils()
except ImportError as exc:
print(exc, file=sys.stderr)
return 1
spec = importlib.util.find_spec("datarobot_skills_utils")
origin = spec.origin if spec is not None else None
print(f"datarobot-skills-utils: {Path(origin).parent if origin else '<unknown>'}")
return 0
if __name__ == "__main__":
sys.exit(main())
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |