diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-03-05 15:18:43 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-03-05 15:18:43 +0000 |
| commit | 09c299ebb1e04bc9d17817371f3e3061fb450443 (patch) | |
| tree | 51c28e1195d9fdc3e7a6d09bf7e27cadb7cc4f7a | |
| parent | 09c3ae91830bd9c7543b401b19f8c65a15205d32 (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.
| -rw-r--r-- | skills/ngit/SKILL.md | 6 |
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) | 41 | git remote -v | grep -q 'nostr://' # primary check — no cache needed |
| 42 | ngit repo --json --offline | grep -q '"is_nostr_repo":true' | 42 | ngit repo --json --offline # full metadata when needed |
| 43 | ``` | 43 | ``` |
| 44 | 44 | ||
| 45 | Returns 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 | ||