init

init is a command for Claude Code from qqabcv520/my-claude-marketplaces. It costs 5 tokens per session (670 once invoked), scanned A, original, MIT.

A setup command for a Claude Notifications plugin, which sends alerts about events such as completed tasks or errors. It checks Node.js, installs dependencies, and asks for notification preferences.

In plain words
What is it for?
It helps enable or disable sound, choose a cooldown between alerts, select notification types, and verify that the installation works.
Why use it?
It turns the plugin's required installation and configuration steps into a guided setup process.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the notify plugin — 1 command shipped together

Good fit It helps enable or disable sound, choose a cooldown between alerts, select notification types, and verify that the installation works.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add qqabcv520/my-claude-marketplaces
Claude Code
/plugin install notify

Made for: Claude Code.

Or install notify, the plugin that ships this one along with the rest of its 1 command.

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 init

README.md
[![agentmods](https://agentmods.dev/badge/commands/qqabcv520/my-claude-marketplaces/init/github.svg)](https://agentmods.dev/commands/qqabcv520/my-claude-marketplaces/init)
Your own site
<a href="https://agentmods.dev/commands/qqabcv520/my-claude-marketplaces/init"><img src="https://agentmods.dev/badge/commands/qqabcv520/my-claude-marketplaces/init/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 init

Your own site · 80×15
<a href="https://agentmods.dev/commands/qqabcv520/my-claude-marketplaces/init"><img src="https://agentmods.dev/badge/commands/qqabcv520/my-claude-marketplaces/init.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 5 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 670 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.
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.00005 $0.00670
Opus 5 $0.00003 $0.00335
Sonnet 5 $0.00001 $0.00134
Haiku 4.5 $0.00001 $0.00067

Measured 11d ago against content hash 41b77b052efc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

init 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 11d 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.

plugins/notify/commands/init.md · 102 lines

What it actually says

初始化 Claude Notifications 插件

你需要执行以下步骤来初始化插件:

步骤 1: 检查 Node.js

首先检查 Node.js 是否已安装(需要 v14 或更高版本):

node --version

如果未安装或版本过低,请提示用户安装 Node.js。

步骤 2: 安装依赖

进入插件目录并安装 npm 依赖:

cd ${CLAUDE_PLUGIN_ROOT}
npm install

步骤 3: 配置选项

依次使用 AskUserQuestion 询问用户以下配置项,每个问题将默认值作为第一个选项并标注「推荐」:

3.1 声音设置

询问:是否启用系统提示音?

  • ✅ 开启(推荐)
  • ❌ 关闭

3.2 冷却时间

询问:通知冷却时间(防止短时间内重复通知)?

  • 30秒(推荐)
  • 15秒
  • 60秒

3.3 禁用通知类型

询问:是否需要禁用某些通知类型?

  • 全部启用(推荐)
  • 自定义禁用(如选择此项,进一步列出所有类型供用户多选:task_complete / execution_error / question / plan_ready)

根据用户选择,更新 ${CLAUDE_PLUGIN_ROOT}/config/config.json

{
  "enabled": true,
  "sound": true,
  "cooldown_seconds": 30,
  "disabled_types": []
}

步骤 4: 验证依赖安装

运行依赖检查脚本验证安装:

node ${CLAUDE_PLUGIN_ROOT}/lib/check-dependencies.js

如果检查通过,说明插件已准备就绪。

注意:如果用户需要测试通知功能,可以告知他们 test-notification.js 是可选的开发工具,需要从源码目录手动复制。

步骤 5: 显示使用说明

初始化完成后,向用户显示以下信息:

✅ Claude Notifications 插件初始化完成!

🔔 支持的通知类型:
  ✅ 任务完成 (Task Complete)
  🔴 执行出错 (Execution Error)
  ❓ Claude 有问题 (Question)
  📋 计划就绪 (Plan Ready)

💡 提示:
  - 通知会在关键事件发生时自动触发
  - 默认启用 30 秒冷却时间,防止重复通知
  - 声音使用系统提示音,无需额外文件
  - 如需自定义配置,可编辑 config/config.json

📝 可选:测试通知功能
  如果用户想要测试通知,可以运行:
  ```bash
  # 需要先确保 test-notification.js 文件存在
  node ${CLAUDE_PLUGIN_ROOT}/test-notification.js

注意:test-notification.js 是开发工具,默认不包含在安装中。

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. 11d ago First seen · 102 lines · 5 tokens per session scan A 41b77b052efc

Subscribe to this mod's changes

init is a command published in the GitHub repository qqabcv520/my-claude-marketplaces (2 stars, last pushed 5mo ago), licensed MIT. It adds 5 tokens to every session and 670 once invoked, about $0.0000 per session on Opus 5. 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-31.