upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/skills
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2026-03-05 15:18:43 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2026-03-05 15:18:43 +0000
commit09c299ebb1e04bc9d17817371f3e3061fb450443 (patch)
tree51c28e1195d9fdc3e7a6d09bf7e27cadb7cc4f7a /skills
parent09c3ae91830bd9c7543b401b19f8c65a15205d32 (diff)
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.
Diffstat (limited to 'skills')
-rw-r--r--skills/ngit/SKILL.md6
1 files 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
38## Detecting a nostr repo 38## Detecting a nostr repo
39 39
40```bash 40```bash
41# Check if current directory is a nostr repo (always exits 0) 41git remote -v | grep -q 'nostr://' # primary check — no cache needed
42ngit repo --json --offline | grep -q '"is_nostr_repo":true' 42ngit repo --json --offline # full metadata when needed
43``` 43```
44 44
45Returns full repo info (including `nostr_url`, `maintainers`, `grasp_servers`) when true. 45`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`.
46 46
47## nostr:// URLs 47## nostr:// URLs
48 48