Skip to content
Back to skills

Test Package

ASecurity

Run grok test for Datagrok packages and report results

  • 74 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 12, 2026
testinggobashnode

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned September 12, 2026

npx -y skills add datagrok-ai/public --skill test-package --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Test Package?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Test Package
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/datagrok-ai-test-package/badge)](https://www.skillsdirectory.com/skills/datagrok-ai-test-package)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: test-package
description: Run grok test for Datagrok packages and report results
when-to-use: When user asks to test a package, run tests, verify, or validate package functionality
context: fork
effort: medium
argument-hint: "<PackageName(s)> [--host host] [--category cat] [--test name] [--verbose]"
---

# Test Package

Run `grok test` for one or more Datagrok packages and provide a summary of results.

## Instructions

1. Parse the user's input to extract:
   - One or more package names (required). These are directory names under `public/packages/`.
   - `--host` value (default: `localhost`)
   - Use `--csv` flag to get csv output 
   - Check if npm install is needed
   - Check if package needs to be rebuilt. Compare /dist/*.js timestamp with the most recent timestamp in *.ts or *.js file in the package. If dist folder is newer, use --skip-build
   - Any extra `grok test` flags (`--category`, `--test`, `--verbose`, `--skip-build`, `--gui`, `--no-retry`, `--benchmark`, `--tag`)

2. For each package, run tests from the package directory using the Bash tool:
   ```
   cd /c/Repos/Datagrok/public/packages/<PackageName> && node grok test --host <host> --no-retry [extra flags]
   ```
   Use a timeout of 600000ms (10 minutes). Print output to console.

3. After all packages finish, provide a **summary table** with:
   - Package name
   - Total passed / failed / skipped counts (parse csv output file test-results.csv)
   - List of any failed categories and test names
   - Overall verdict: PASSED or FAILED

4. Cleanup csv output file

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.