Skip to content
Back to skills

Cli And Storage

ASecurity

"Use this sub-skill for Optuna command-line workflows and

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
databasespythongobashsqlnodebackend

Works with

  • cli

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill cli-and-storage --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cli And Storage?

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

Security grade badge for Cli And Storage
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-cli-and-storage/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-cli-and-storage)

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: cli-and-storage
description: "Use this sub-skill for Optuna command-line workflows and
  persistent/distributed storage: CLI commands, SQLite/RDB URLs, JournalStorage,
  GrpcStorageProxy, schema upgrades, CLI ask/tell, OPTUNA_STORAGE, and
  heartbeat/stale-trial behavior."
disable-model-invocation: true
metadata:
  disco-role: operating
license: NOASSERTION
---

# Optuna CLI and Storage

Use this sub-skill when the task involves operating Optuna studies from the command line or choosing/configuring persistent storage for resumable or distributed optimization.

## Route Here For

- Running `optuna` CLI commands such as `create-study`, `ask`, `tell`, `trials`, `studies`, `best-trial`, `best-trials`, `delete-study`, `study set-user-attr`, and `storage upgrade`.
- Using `--storage`, `--storage-class`, `OPTUNA_STORAGE`, SQLite URLs, `RDBStorage`, `JournalStorage`, `JournalFileBackend`, `JournalRedisBackend`, or `GrpcStorageProxy`.
- Designing ask/tell workflows where an external system evaluates suggested parameters and reports values back to Optuna.
- Handling storage schema upgrades, storage URL/class mismatches, heartbeat monitoring, stale trials, and retry callbacks.

## Route Elsewhere

- Python objective functions, `Study.optimize`, `Study.ask`, and `Study.tell` authoring patterns: use `../optimization-workflows/SKILL.md`.
- Sampler/pruner selection and algorithm settings: use `../samplers-pruners/SKILL.md`.
- Plotting, trial dataframes, parameter importances, and visual analysis: use `../analysis-visualization/SKILL.md`.
- Artifact upload/download and external artifact stores: use `../artifacts-integrations/SKILL.md`.

## Primary References

- CLI commands, flags, and safe command sequences: `references/cli-reference.md`.
- Storage backend selection, persistent/distributed patterns, upgrades, and heartbeat behavior: `references/storage-workflows.md`.
- Common failures and fixes for CLI/storage workflows: `references/troubleshooting.md`.

## Bundled Smoke Scripts

- `scripts/optuna_cli_smoke.py`: creates a temporary SQLite-backed study through the installed `optuna` CLI, runs `ask`/`tell`, and inspects trials.
- `scripts/storage_smoke.py`: verifies local `RDBStorage` and file-backed `JournalStorage` behavior without external services.

Run bundled scripts from this sub-skill directory with an environment where `optuna` is importable:

```bash
python scripts/optuna_cli_smoke.py
python scripts/storage_smoke.py
```

## Operational Defaults

- Prefer `sqlite:///relative-or-absolute-file.db` for local persistent smoke tests and examples.
- Prefer `RDBStorage` backed by PostgreSQL/MySQL for real multi-node optimization; SQLite is suitable for local development, not high-concurrency production.
- Prefer file-backed `JournalStorage(JournalFileBackend(...))` for simple local or single-node multiprocess sharing.
- Use `--storage-class JournalFileBackend` when a CLI storage path is a journal log file or when URL inference is ambiguous.
- Set `heartbeat_interval` and `grace_period` only for `RDBStorage`-style heartbeat workflows, and use `RetryHeartbeatStaleTrialCallback` when stale trials should be retried automatically.

Files in this skill

  • SKILL.md3.1 KB
  • references/cli-reference.md5.8 KB
  • references/storage-workflows.md7.6 KB
  • references/troubleshooting.md5.9 KB
  • scripts/optuna_cli_smoke.py3.9 KB
  • scripts/storage_smoke.py2.2 KB

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.