---
title: "hello-mod"
url: "https://claudemods.dev/ja/builds/hello-mod-7ab0fe"
source: "https://github.com/BeLazy167/claude-mods-skill/tree/main/examples/hello-mod"
source_type: "github"
repo: "https://github.com/BeLazy167/claude-mods-skill/tree/main/examples/hello-mod"
author: "BeLazy167"
author_handle: "BeLazy167"
stars: 14
category: "セキュリティ・プライバシー"
categories: ["security"]
tags: ["bash-guard", "claude-code", "hooks", "plugin", "starter-template", "tool-hook"]
permission_level: 2
scan_complete: true
install: "claude plugin marketplace add BeLazy167/claude-mods-skill\nclaude plugin install hello-mod"
added: "2026-10-04T15:55:58.667Z"
updated: "2026-10-06T05:05:14Z"
locale: "ja"
content_locale: "ja"
---

# hello-mod

入門用 mod：各ツール呼び出しを記録し、rm -rf を含む Bash コマンドをブロックします。

## Description

実際に機能する最小の mod です。`tool.call` フック 1 つで、ツール名を会話記録に残し、`rm -rf` を含む Bash コマンドを拒否します。

このフォルダーをコピーして新しい mod を作成できます。`.claude-plugin/plugin.json` で名前を変更してください。

1 回のセッションで試す：

```sh
CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1 claude --plugin-dir examples/hello-mod
```

対話セッションなしで読み込めることを確認する：

```sh
examples/hello-mod/smoke.sh examples/hello-mod hello-mod
```

## Install

```
claude plugin marketplace add BeLazy167/claude-mods-skill
claude plugin install hello-mod
```

## Original README

# hello-mod

The smallest mod that does something. One `tool.call` hook: logs the tool
name to the transcript and refuses Bash commands containing `rm -rf`.

Copy this folder to start a new mod. Rename in `.claude-plugin/plugin.json`.

Try it for one session:

```sh
CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1 claude --plugin-dir examples/hello-mod
```

Prove it loads without an interactive session:

```sh
examples/hello-mod/smoke.sh examples/hello-mod hello-mod
```
