argv[1] is this plugin root: Cursor writes it into the command text when it loads the plugin.
View or update NVIDIA Skill Finder options in ~/.cursor/plugins/data/nvidia-skills/config.json.
Works with
claude-code (native)
Content
Run this plugin's own compass_ctl.py helper with the Shell tool to show or change the user's Skill Finder settings for Cursor; it writes config.json in the Cursor plugin data directory, never edits the plugin's own files, and starts no download. The helper is resolved only from this plugin's install folder, never by searching plugin caches. When the user gives no arguments, run config show and explain the available options (hint_style = ask-finder, shortlist-top3, or config; per_prompt_pick = true or false; gpu_guard_mode = off, advise, or refuse; stage_log = true or false, which turns the local decision log on or off and is false by default). When the user asks to change an option (for example set hint_style=shortlist-top3 or reset), append those arguments after the quoted plugin root and report the resulting effective settings.
python3 -c '
import json, os, stat, subprocess, sys
from pathlib import Path
NAME = "nvidia-skills"
# argv[1] is this plugin root: Cursor writes it into the command text when it loads the plugin.
# When it is empty (an older Cursor), only the fixed local install folder is tried; caches are never searched.
given = sys.argv[1].strip() if len(sys.argv) > 1 else ""
home = Path(os.environ.get("CURSOR_CONFIG_DIR", "").strip() or (Path.home() / ".cursor")).expanduser()
root = Path(given) if given else home / "plugins" / "local" / NAME
script = root / "scripts" / "compass_ctl.py"
try:
manifest = json.loads((root / ".cursor-plugin" / "plugin.json").read_text(encoding="utf-8"))
ok = root.is_absolute() and manifest.get("name") == NAME and stat.S_ISREG(os.lstat(script).st_mode)
except (OSError, ValueError, AttributeError):
ok = False
if not ok:
sys.exit("compass_ctl.py not found in the nvidia-skills plugin root %s; reinstall the plugin" % root)
args = sys.argv[2:] or ["show"]
raise SystemExit(subprocess.call([sys.executable, str(script), "config", *args]))
' "${CURSOR_PLUGIN_ROOT}"Source and license
- Source
- NVIDIA Skills
- Original
- NVIDIA/skills/plugins/nvidia-skills/cursor/commands/compass-config.md
- License
- Apache-2.0 AND CC-BY-4.0