Token导航 LogoToken导航TokenDH.com
开发权限需确认github未标认证来源可访问许可证需确认审计通过

addon-nostr-nip-profile-selector插件 nostr nip 配置文件选择器

Agent Skill

addon-nostr-nip-profile-selector 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

225

周安装

9

GitHub Stars

公开资料未说明

下载量

73
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:addon-nostr-nip-profile-selector(插件 nostr nip 配置文件选择器)
来源仓库:https://github.com/ajrlewis/ai-skills
仓库路径:skills/addon-nostr-nip-profile-selector
安装命令:
npx skills add https://github.com/ajrlewis/ai-skills --skill addon-nostr-nip-profile-selector
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/ajrlewis/ai-skills --skill addon-nostr-nip-profile-selector

简介

addon-nostr-nip-profile-selector 允许显式定义项目支持的 NIP 协议版本,避免隐式兼容问题。

  • 适用于社交客户端、长文发布或私信类 Nostr 应用,可按产品形态预设基础 NIP 列表。
  • 支持覆盖默认 NIP 配置,并可选择是否启用遗留兼容性以适配旧版客户端。
  • 建议在安装后查阅 docs/nostr/NIP_PROFILE.md 了解各模式的默认约束规则。
  • 常与 addon-nostr-client-nextjs、addon-nostr-key-custody 等插件组合部署。

SKILL.md

Add-on: Nostr NIP Profile Selector

Use this skill when a Nostr project should explicitly select which NIPs it supports instead of ad hoc protocol use.

Compatibility

  • Best with addon-nostr-client-nextjs.
  • Commonly paired with addon-nostr-key-custody, addon-nostr-nip23-longform, and addon-nostr-nip-sync-lock.

Inputs

Collect:

  • PRODUCT_MODE: social-client | longform-publisher | dm-client | custom.
  • LEGACY_COMPAT: yes | no (default no).
  • NIP_OVERRIDE: optional comma-separated explicit NIP list.

Integration Workflow

  1. Add files:
src/lib/nostr/nip-profile.ts
docs/nostr/NIP_PROFILE.md
  1. Define profile defaults (override when needed):
  • social-client: 01,07,10,19,21,25,27,65
  • longform-publisher: 01,07,19,21,23,65
  • dm-client: 01,07,17,44,59
  1. Apply constraints:
  • Exclude deprecated/legacy NIPs by default.
  • Only include legacy NIPs when LEGACY_COMPAT=yes, and document why.
  1. Wire runtime checks:
  • Expose selected NIPs in a typed config object.
  • Use selected NIPs to gate feature flags (DM, longform publish, reactions, etc).

Required Template

src/lib/nostr/nip-profile.ts

export type NostrProfileMode = "social-client" | "longform-publisher" | "dm-client" | "custom";

export const NIP_PROFILES: Record<NostrProfileMode, number[]> = {
  "social-client": [1, 7, 10, 19, 21, 25, 27, 65],
  "longform-publisher": [1, 7, 19, 21, 23, 65],
  "dm-client": [1, 7, 17, 44, 59],
  custom: [],
};

Guardrails

  • Documentation contract for generated code:

- Python: write module docstrings and docstrings for public classes, methods, and functions. - Next.js/TypeScript: write JSDoc for exported components, hooks, utilities, and route handlers. - Add concise rationale comments only for non-obvious logic, invariants, or safety constraints. - Apply this contract even when using template snippets below; expand templates as needed.

  • Treat NIP selection as an explicit contract, not implicit behavior.
  • Do not include NIP-04 for new builds unless explicit legacy requirement exists.
  • Keep docs/nostr/NIP_PROFILE.md synchronized with code and review bundle.

Validation Checklist

  • Confirm generated code includes required docstrings/JSDoc and rationale comments for non-obvious logic.
test -f src/lib/nostr/nip-profile.ts
test -f docs/nostr/NIP_PROFILE.md
rg -n "NIP_PROFILES|social-client|longform-publisher|dm-client" src/lib/nostr/nip-profile.ts

Manual checks:

  • Profile selection maps to enabled app features.
  • Legacy NIP usage is explicitly documented when enabled.

Decision Justification Rule

  • Every non-trivial decision must include a concrete justification.
  • Capture the alternatives considered and why they were rejected.
  • State tradeoffs and residual risks for the chosen option.
  • If justification is missing, treat the task as incomplete and surface it as a blocker.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.42%
按下载量换算26

Claude

30.15%
按下载量换算22

Cursor

18.23%
按下载量换算13

Gemini CLI

9.06%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

权限需确认

当前来源未能明确判断权限范围,默认进入异常复核队列。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills