skills/gsv-package-development/SKILL.md
Guide on how to build and modify GSV packages, including source checkout, app/backend/CLI changes, manifests, validation, staged commits, and syncing.
npx skillsauth add deathbyknowledge/gsv gsv-package-developmentInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use native shell on target: "gsv":
pkg list
pkg show <package>
pkg manifest <package>
pkg source status <package>
Do not invent source paths. Visible package source lives under /src/packages/<package-path>. When cwd is inside a package source tree, most pkg source commands can infer the package.
Use the current user's repo owner unless the user explicitly asks for another owner:
pkg create --repo <username>/<repo> --template web-ui --enable
pkg create --repo <username>/<repo> --template command --enable
Then edit the mounted source under /src/packages/<package>.
Keep the manifest in src/package.ts. Browser apps use browser.entry, backends use backend.entry, and CLI commands use cli.commands.
Declare only the Kernel grants the package entrypoints actually need:
fs.* for filesystem workrepo.* for ripgit repository contentpkg.* only for package lifecycle operationsCapabilities are part of the package trust contract. Do not broaden them to make development convenient.
pkg source status <package>
pkg source diff <package>
Source writes are staged per process for ripgit-backed package source. They are not installed or shared until committed.
Commit staged source edits:
pkg source commit <package> --message "short imperative message" --branch <branch>
Move an installed package to a committed ref:
pkg checkout <ref> <package>
Builtin package sync is a host CLI workflow after root/gsv has the desired source:
gsv packages sync
Pulling upstream, checking out a ref, and syncing are different:
root/gsvgsv packages sync with native package source commit/checkout.development
Use active GSV web shell browser targets to inspect windows/apps, run browser JS, open files, and move files across targets.
documentation
Guide on what a GSV process is, how to orient around its identity, cwd, virtual filesystem paths, source mounts, and runtime events.
documentation
Guide on how to coordinate durable GSV processes, including spawning, IPC, handoffs, scheduled work, conversation state, and compaction.
documentation
Guide on how context and skills work in GSV and how to add/edit them.