Skip to content
Back to skills

Extension Prefs

ASecurity

`prefs.js` at root. Exports default class extending `ExtensionPreferences`.

  • 14 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 19, 2026
toolsgoshell

Security analysis

A100/100

Scanned September 19, 2026

npx -y skills add itsnin/spotlight --skill extension-prefs --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Extension Prefs?

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

Security grade badge for Extension Prefs
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/itsnin-extension-prefs/badge)](https://www.skillsdirectory.com/skills/itsnin-extension-prefs)

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
# extension-prefs

## Entry Point
`prefs.js` at root. Exports default class extending `ExtensionPreferences`.

## fillPreferencesWindow
Single method receives `Adw.PreferencesWindow`. Add `Adw.PreferencesPage` instances.

## Process Isolation
Prefs process must never import St, Clutter, Meta, or Shell.
Only Adw, Gtk, Gio, GLib, GObject are allowed.

## Binding
`settings.bind(key, widget, property, Gio.SettingsBindFlags.DEFAULT)`

## Shortcut Rows
Use `Adw.ActionRow` with `Gtk.ShortcutLabel` or custom accelerator capture.

## Gdk Keyval Name
`Gdk.keyval_name()` can return null for unknown keyvals. Always null-check before calling methods on the result.

## Canonical Accelerator Format
When building accelerator strings from user input in prefs, use `Gtk.accelerator_name_with_keycode(null, keyval, keycode, mask)` rather than manual string concatenation. It produces the canonical format that `gtk_accelerator_parse()` and Mutter's `grab_accelerator` expect, handling casing, modifier order, and special key names automatically. Filter the modifier mask through `Gtk.accelerator_get_default_mod_mask()` to strip non-accelerator modifiers like Lock.

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.