---
title: "redact-output"
url: "https://claudemods.dev/ko/builds/redact-output-3ee3e5"
source: "https://github.com/BeLazy167/claude-mods-skill/tree/main/examples/redact-output"
source_type: "github"
repo: "https://github.com/BeLazy167/claude-mods-skill/tree/main/examples/redact-output"
author: "BeLazy167"
author_handle: "BeLazy167"
stars: 9
category: "보안 및 개인정보"
categories: ["security"]
tags: ["bash", "hooks", "output-redaction", "plugin", "secrets"]
permission_level: 2
scan_complete: true
install: "claude plugin marketplace add BeLazy167/claude-mods-skill\nclaude plugin install redact-output@claude-mods-skill"
added: "2026-10-12T04:02:52.843Z"
updated: "2026-10-06T05:05:14Z"
locale: "ko"
content_locale: "ko"
---

# redact-output

모델이 읽기 전에 Bash 출력을 재작성하여 토큰과 비밀이 컨텍스트에 들어가는 것을 방지하는 Claude Code mod 예제입니다.

## Description

redact-output은 Claude Code용 TypeScript 함수 후크 mod로, Bash 도구 출력을 가로채고 모델이 읽기 전에 재작성하여 토큰 및 기타 민감한 값이 컨텍스트 창에 들어가지 않도록 합니다. claude-mods-skill 플러그인의 다섯 가지 예제 중 하나로 제공되며 claude plugin validate, claude plugin test 및 tsc를 통과합니다. 세션에 설치하려면 `claude --plugin-dir examples/redact-output`을 사용하거나 claude-mods-skill 마켓플레이스 플러그인 전체를 설치하세요. Claude Code 2.1.287 이상이 필요하며, 레거시 CLAUDE_CODE_ENABLE_FUNCTION_HOOKS 플래그는 무시됩니다.

## Install

```
claude plugin marketplace add BeLazy167/claude-mods-skill
claude plugin install redact-output@claude-mods-skill
```

## Original README

# claude-mods-skill

A Claude Code skill that teaches an agent how to build **Claude Mods**:
plugins whose behaviour is a TypeScript function-hook module that runs
inside Claude Code. It ships five small example mods that the agent copies.
Each example passes `claude plugin validate`, `claude plugin test` and `tsc`.

Tested with Claude Code **2.1.290**. Mods need 2.1.287 or later and are on
by default. The old `CLAUDE_CODE_ENABLE_FUNCTION_HOOKS` flag is ignored;
remove it from your settings.

Claude Code also has a built-in `plugin-authoring` skill. That one knows
your exact build. This skill sits on top of it: tested examples, traps seen
on real builds, and how to prove and ship a mod.

## Install

At the Claude Code prompt:

```
/plugin install claude-mods-skill --marketplace BeLazy167/claude-mods-skill
```

Or from your shell:

```sh
claude plugin marketplace add BeLazy167/claude-mods-skill
claude plugin install claude-mods-skill@claude-mods-skill
```

Then ask Claude to build a mod. The `creating-mods` skill loads on its own.

## What is inside

- `skills/creating-mods/SKILL.md`: the workflow, which example to copy, quick reference, loader rules, sharing.
- `skills/creating-mods/references/gotchas.md`: version-tagged traps from real builds.
- `skills/creating-mods/references/examples.md`: Anthropic and community mods worth reading.
- `examples/`:

| Example | Shows |
|---|---|
| `hello-mod` | Block a tool call; fail-closed `.catch`; `smoke.sh` proves the deny |
| `redact-output` | Rewrite Bash output before the model reads it |
| `branch-band` | Git branch above the prompt; `$.process.run` on a timer; `$.state` |
| `notes-pane` | `/note` and `/notes`; a pane with a Button; `$.store` |
| `dice-tool` | A tool the model can call |

Try one for a session: `claude --plugin-dir examples/notes-pane`.

## Keeping it current

The mods API changes between releases. After a Claude Code update, run:

```sh
scripts/check.sh
```

It validates, tests and type-checks every example against your build.

## Links

- Docs: https://code.claude.com/docs/en/plugins/mods/overview
- Built-in mods source: https://github.com/anthropics/claude-code/tree/main/mods
- Design thread: https://github.com/anthropics/claude-code/issues/91870
- Community catalogue: https://github.com/karanb192/awesome-claude-code-mods
