From 09c299ebb1e04bc9d17817371f3e3061fb450443 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Thu, 5 Mar 2026 15:18:43 +0000 Subject: docs(skill): improve nostr repo detection guidance Use git remote -v as primary check; clarify that ngit repo always exits 0 and is_nostr_repo:false can be a cold-cache false negative. --- skills/ngit/SKILL.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/skills/ngit/SKILL.md b/skills/ngit/SKILL.md index 186341e..5ff760f 100644 --- a/skills/ngit/SKILL.md +++ b/skills/ngit/SKILL.md @@ -38,11 +38,11 @@ When you `git fetch`, `git-remote-nostr` reads the current ref state from Nostr ## Detecting a nostr repo ```bash -# Check if current directory is a nostr repo (always exits 0) -ngit repo --json --offline | grep -q '"is_nostr_repo":true' +git remote -v | grep -q 'nostr://' # primary check — no cache needed +ngit repo --json --offline # full metadata when needed ``` -Returns full repo info (including `nostr_url`, `maintainers`, `grasp_servers`) when true. +`ngit repo` always exits 0; `is_nostr_repo: false` can be a cold-cache false negative — if remotes show `nostr://`, run `git fetch origin` then retry. Full output includes `nostr_url`, `maintainers`, `grasp_servers`. ## nostr:// URLs -- cgit v1.2.3