amethyst: Skill for Claude Code

.claude/skills/ngit-pr/SKILL.md

ngit-pr is a skill for Claude Code from vitorpamplona/amethyst. It costs 0 tokens per session (3,148 once invoked), scanned A, original, MIT.

A guide to creating and reviewing pull requests, which are proposed code changes sent for review before they are merged into the main project.

In plain words
What is it for?
Use it to open, update, review, revise, or merge pull requests and to identify the correct GitHub or git-over-nostr remote.
Why use it?
It explains the repository's two contribution routes—GitHub and git-over-nostr, a system that publishes review proposals through Nostr—so changes reach the correct destination.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: positional $N argument; mentions AGENTS.md.

This is vitorpamplona/amethyst's own configuration. It tells Claude Code how to work on amethyst itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything amethyst configures →

About the project

Amethyst is an Android client for Nostr, a social network protocol that lets people control their own social activity and connections. People use it to read and publish Nostr content, follow accounts, and exchange encrypted direct messages from Android and other supported platforms. The catalogue add-ons support workflows for developing or operating the client.

vitorpamplona/amethyst · 1,620 stars · on GitHub · amethyst.social

Reuse

Borrowing it

Nothing to install: this file belongs to vitorpamplona/amethyst. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/vitorpamplona/amethyst/main/.claude/skills/ngit-pr/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/vitorpamplona/amethyst

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ngit-pr

README.md
[![agentmods](https://agentmods.dev/badge/skills/vitorpamplona/amethyst/ngit-pr/github.svg)](https://agentmods.dev/skills/vitorpamplona/amethyst/ngit-pr)
Your own site
<a href="https://agentmods.dev/skills/vitorpamplona/amethyst/ngit-pr"><img src="https://agentmods.dev/badge/skills/vitorpamplona/amethyst/ngit-pr/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ngit-pr

Your own site · 80×15
<a href="https://agentmods.dev/skills/vitorpamplona/amethyst/ngit-pr"><img src="https://agentmods.dev/badge/skills/vitorpamplona/amethyst/ngit-pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,148 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 4 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Tool Misuse · line 47
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • high Tool Misuse · line 47
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • high Tool Misuse · line 89
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • high Tool Misuse · line 117
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.03148
Opus 5.5 $0.00000 $0.01259
Sonnet 5.5 $0.00000 $0.00630
Haiku 4.5 $0.00000 $0.00315

Measured 5d ago against content hash 34de782a8d2f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ngit-pr scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/ngit-pr/SKILL.md · 169 lines

How it starts

The opening of the file, as written. The whole thing — 169 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Pull requests: GitHub and git-over-nostr

This repo can be contributed to two ways, via two kinds of remote. Both end up in GitHub main. Opening a PR at all is gated by AGENTS.md "Git Workflow" (only when the human asks).

Remote kind URL pattern Role
GitHub github.com/vitorpamplona/amethyst Canonical main. Moves constantly (bots merge often). Standard gh PR flow.
git-over-nostr nostr://…/relay.ngit.dev/amethyst ngit. A push fans out to GitHub and the GRASP git servers and publishes nostr events. PRs are proposals (the pr/feat/* branches), reviewed on gitworkshop.dev, not GitHub PRs.

Step 0: identify YOUR remotes (names are not universal)

Remote names are per-clone. In the maintainer's checkout the GitHub remote is upstream and the nostr remote is origin, but yours may differ, and you may have only one (e.g. cloned straight from nostr://…; pushing it still reaches GitHub via fan-out). Detect by URL, never assume a name:

git remote -v
GH_REMOTE=$(git remote -v    | awk '/github\.com/   {print $1; exit}')   # may be empty
NOSTR_REMOTE=$(git remote -v | awk '/nostr:\/\//     {print $1; exit}')  # may be empty

Which path?

GitHub path (gh) nostr path (ngit)
Needs a GitHub remote + gh auth status a nostr:// remote + ngit ≥ 3.0 (ngit --version; ngit update --check)
PR lives on GitHub only nostr + GitHub + GRASP (fans out)
Use when Default. Simplest, no alignment gate. The PR must be reviewable over nostr (gitworkshop), or you're revising/merging an existing proposal (pr/feat/*).

Default to GitHub unless the task is specifically about a nostr proposal (a gitworkshop link, a pr/feat/* branch, "the PRs on the nostr remote"). One remote decides it for you. Revise/merge a PR on the same path it was created.

The build gate (both paths, every create, revise and merge)

Read the full file on GitHub · 169 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago Changed · -8 lines 34de782a8d2f
  2. 9d ago Changed · +1 lines 23d5e18aded8
  3. 12d ago Changed 6b0a8575b21b
  4. 18d ago Changed · +15 lines 849f0221884a
  5. 25d ago Changed · -23 lines · -156 tokens per session 657d10d68570
  6. 2mo ago First seen · 184 lines · 156 tokens per session scan A a68476c310aa

Subscribe to this mod's changes

ngit-pr is a skill published in the GitHub repository vitorpamplona/amethyst (1,620 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 3,148 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

ngit-pr compared with skills from other repositories

ngit-pr next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ngit-prvitorpamplona/amethystSkill1.6kyesterdayMITA0Claude Code
shepherdchrisbanes/skillsSkill1.1kyesterdayApache-2.0A37Claude Code, Codex
engineer-bot-getting-startedmakecindy/cindySkill9.3ktodayApache-2.0A44Claude Code, Codex
release-kotlin-librarychrisbanes/skillsSkill1.1kyesterdayApache-2.0A46Claude Code
deliver-specchrisbanes/skillsSkill1.1kyesterdayApache-2.0A33Claude Code, Codex
changelogchrisbanes/skillsSkill1.1kyesterdayApache-2.0A39Claude Code
kotlin-concurrency-and-flowchrisbanes/skillsSkill1.1kyesterdayApache-2.0A60Claude Code