From 4d23e609ec3d6c25b5f5918fd317eef02a434efe Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Thu, 5 Mar 2026 10:39:19 +0000 Subject: refine ngit skill: pr/issue command corrections - ngit init: use user's preferred grasp server or fall back to defaults - note git push / git push --force can update existing PRs - prefer pr checkout over pr apply for agent use - issue/pr comment: --reply-to accepts ID or nevent - issue body supports markdown - restore --verbose flag to reference table - fix typos --- skills/ngit/SKILL.md | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) (limited to 'skills') diff --git a/skills/ngit/SKILL.md b/skills/ngit/SKILL.md index 795ed91..6da6305 100644 --- a/skills/ngit/SKILL.md +++ b/skills/ngit/SKILL.md @@ -54,8 +54,7 @@ Standard git commands work directly with these URLs — `git-remote-nostr` resol ## Publishing a repo ```bash -ngit init # interactive -ngit init --name "My Project" --description "What it does" -d # non-interactive +ngit init --name "My Project" --description "What it does" -d # uses user's preferred grasp server or falls back to defaults ngit repo edit --description "New description" # update metadata ngit repo --json --offline # view repo info (check nostr_url field) ``` @@ -80,7 +79,7 @@ git push -u origin pr/my-feature \ -o 'description=Summary.\n\nDetail here.' ``` -Push options `title=` and `description=` are required. Use `\n\n` for paragraph breaks. +Push options `title=` and `description=` are required. Use `\n\n` for paragraph breaks. `git push` or `git push --force` can update existing prs. ### Advanced: ngit send @@ -99,14 +98,13 @@ ngit pr list --json --label bug ngit pr view --json ngit pr view --json --comments ngit pr comment --body "Looks good" -ngit pr comment --body "Fixed!" --reply-to +ngit pr comment --body "Fixed!" --reply-to ``` ### Checkout / apply ```bash ngit pr checkout -ngit pr apply ``` ### Merge (maintainer) @@ -129,7 +127,7 @@ ngit pr ready # mark draft as ready for review ## Issues ```bash -ngit issue create --title "Bug title" --body "Details" --label bug +ngit issue create --title "Bug title" --body "Details as markdown" --label bug ngit issue create --title "Feature" --body "..." --label enhancement --label help-wanted ngit issue list --json ngit issue list --json --status closed @@ -137,7 +135,7 @@ ngit issue list --json --label bug ngit issue view --json ngit issue view --json --comments ngit issue comment --body "Reproduced on v2.1" -ngit issue comment --body "Thanks!" --reply-to +ngit issue comment --body "Thanks!" --reply-to ngit issue close ngit issue reopen ``` @@ -164,14 +162,14 @@ ngit sync --ref-name main # sync specific ref ## Key flags -| Flag | Description | -| --- | --- | -| `-d`, `--defaults` | Non-interactive; use sensible defaults | -| `--offline` | Local cache only, skip network | -| `--json` | Structured output (ngit commands only) | +| Flag | Description | +| --------------------- | -------------------------------------- | +| `-d`, `--defaults` | Non-interactive; use sensible defaults | +| `--offline` | Local cache only, skip network | +| `--json` | Structured output (ngit commands only) | | `-n`, `--nsec ` | Provide nsec or hex private key inline | -| `-f`, `--force` | Bypass safety guards | -| `-v`, `--verbose` | Verbose output | +| `-f`, `--force` | Bypass safety guards | +| `-v`, `--verbose` | Verbose output | ## git config -- cgit v1.2.3