/brewtools:text-human [prompt] [path|commit|folder|text] [custom instructions]from brewtools
Strips AI artifacts from code, docs, commits, articles, and chat text, then injects natural human style. Useful when asked to humanize a file, commit, or pasted text.
Ships in brewtools. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Humanizes source code and docstrings, technical docs, commits/PRs, articles and reddit/chat: strips validated AI tells, then injects domain style where the flow allows. Never claims to detect AI authorship.
$ARGUMENTS is one free-form RU/EN prompt; flow keywords may sit anywhere in it. There are no mode
flags: Phase 0 below is this skill's resolution algorithm, and its Flow table carries the EN/RU
keywords and Mutates? per flow.
AskUserQuestion ("What to humanize?") is the ONE scoping
question -- do not skip it and do not guess a flow. Unanswered or headless -> stop, "nothing to
humanize", no edits.customPrompt (Phase 0 Argument parsing)
extracts it and both selects/overrides the flow and adds custom rules. Fired by Claude mid-task
(Skill tool), args is the prompt: the path, commit hash or exact text, never a summary of it.AskUserQuestion before any work.
Phase 0.5's dirty-path gate IS that question whenever it fires, and it outranks the scoping one.
Unanswered or headless -> its safest option (Phase 0.5); nothing blocks.Print once, right after Phase 0 announces Flow: <name> -- <reason>, before Phase 1 touches any
file; SCOPE names the resolved target paths -- for mixed, the resolved block list (labels and plan
values English, INPUT verbatim):
PLAN — brewtools:text-human
INPUT: <arguments verbatim, or "(empty)">
MODE: <resolved flow> — <explicit | matched keyword: X | content-sniff | AskUserQuestion>
SCOPE: <resolved target paths (file/commit/folder/text), custom instructions if any>
DO: <2-5 imperative bullets>
RESULT: <what the user ends up holding>
@reference/ai-patterns.md: HIGH tier acts on one instance, MED only on a cluster. Behavior-changing items (hallucinated refs, fake tickets, try/except-everything) change meaning when edited: surface them, never edit.@reference/human-patterns.md, gated by domain: off for code, API docs, formal contracts. No flow injects typos, errors or fabricated references.Pick exactly one flow, announce Flow: <name> -- <reason>, then load only its flow file and the
pattern sections that file names.
scope; the rest is customPrompt.customPrompt (inline text or intent); detect the flow from it.customPrompt rules win over flow defaults on conflict.AskUserQuestion here: "What to humanize?" (commit / file / folder / paste text)..md/.mdx/.rst -> docs (long-form essay/blog content -> article); 7+ hex git hash or folder -> mixed.| Flow | EN keywords | RU keywords | Mutates? | Load | Domain |
|---|---|---|---|---|---|
| code | .java/.kt/.py/.ts/... ext, javadoc, jsdoc, kdoc, docstring, "api doc" | джавадок, апи док | yes (CLEAN-ONLY, inject OFF) | @reference/flows/code.md | source, comments, docstrings, JavaDoc/JSDoc/KDoc |
| docs | pr, pull request, commit, changelog, readme, docs, guide | коммит, документация, гайд | yes | @reference/flows/docs.md | README, docs, guides, PR/commit (inject restrained) |
| social | reddit, forum, slack, discord, chat | чат, форум | yes (file) / no (inline text -- prints result) | @reference/flows/social.md | reddit, forum, slack, discord, chat |
| article | article, blog, essay, post | статья, эссе | yes (file) / no (inline text -- prints result) | @reference/flows/article.md | formal essay, published blog, long-form |
| mixed | 7+ hex git hash, folder of mixed files | (same -- hash/folder pattern is language-neutral) | yes | @reference/flows/mixed.md | commit / folder dispatcher -> routes each file to its flow |
Files are rewritten in place with no backup; git is the only undo. Before the first edit, over the resolved target paths only:
git status --porcelain -- '<resolved path>'
One single-quoted arg per target path.
AskUserQuestion listing them:
proceed on them / process only the clean ones / abort. It replaces the Phase 0 scoping question;
mixed commit mode runs this gate over the commit's paths. Unanswered -> only the clean ones;
none clean -> stop, no edits.git rev-parse --git-dir fails) -> say so; proceed only on an explicit go-ahead
(unanswered -> stop, no edits).Inline text skips this gate.
@reference/flows/mixed.md; each file gets its own flow's rules. Delegates cannot resolve relative paths: name rule files under ${CLAUDE_SKILL_DIR}/reference/.A custom prompt is prepended to direct processing and every delegate prompt:
CUSTOM INSTRUCTIONS (highest priority, override defaults):
<customPrompt>
---
Main owns every spawn and acceptance; delegates never nest and return open decisions. One delegate = one block (~<=5 files, ~<=10 steps); a large commit or folder splits into N blocks spawned in one message.
Every spawn brief carries six labeled fields, since a subagent starts with an empty context: GOAL (task + why), ROLE (owns, must not touch), SCOPE (paths/commands in and out), CONTEXT (done, by whom, in parallel), CONSUMER (who uses the result + its shape), DONE (acceptance + return: verdict first, evidence, bounded; long output to a file, path returned). A bare one-line task is never enough. Shape:
Agent(subagent_type="general-purpose", prompt="
GOAL: humanizing <commit|folder> so it reads as human-written; you own block <N>/<M>,
siblings own the rest and the reports are merged into one Humanization Report.
ROLE: edit only your block's files in place. Do NOT touch files outside the block,
do NOT auto-fix behavior-changing items — surface them instead.
SCOPE: in — <exact file list>. Out — every other path, git history, build output.
CONTEXT: classification is already done — flow=<code|docs|social|article> per file, PASS 2
inject <ON|OFF> for this domain, custom instructions (verbatim, highest priority) if any.
Sibling agents hold blocks <list> of the same commit; every file outside your list is
already claimed, so a "helpful" extra edit collides with another agent.
CONSUMER: the skill merges each block's JSON into one Humanization Report; the user acts on
'surfaced' items by hand, so a surfaced item you silently fixed never reaches them.
DONE: JSON per the mixed.md aggregation schema — stripped, injected, surfaced per file.
Surfaced items are listed, never applied.
")
## Humanization Report
Flow: <name>
### Summary
| Metric | Value |
|--------|-------|
| Scope | <file|commit|folder|text> |
| Files / blocks | N / M |
| Haiku / Sonnet | X / Y |
### Results
[per-file or per-block: stripped, injected, surfaced]
### Surfaced for review (NOT auto-applied)
[file:line -- issue] e.g. hallucinated ref, fabricated ticket, try/except-everything
### Totals
| Metric | Count |
|--------|-------|
| AI tells stripped | X |
| Human edits injected | Y |
| Items surfaced | Z |
| Unicode normalized | W |
| Error | Action |
|---|---|
| Agent failure/partial output | Keep completed edits/evidence, report incomplete block, continue others; never count unverified work done |
| File read error, binary file | Skip, note in report |
| No changes | Report "No humanization required" |
/brewtools:text-human src/main/java/OrderService.java # code flow, single file
/brewtools:text-human 3be67487 # mixed flow, commit
/brewtools:text-human src/main/java/services/ # mixed flow, folder
/brewtools:text-human review this reddit reply: "<text>" # social flow, inline text
/brewtools:text-human humanize this blog post: "<text>" # article flow
/brewtools:text-human clean the javadoc in PaymentApi.java # code flow, CLEAN-ONLY
/brewtools:text-human 3be67487 also drop all @author tags # mixed + custom rule
/brewtools:text-human src/ only strip AI artifacts, no inject # custom prompt overrides
git status, git rev-parse and git diff --name-only calls run unprompted in default mode (CC 2.1.296); in-place edits to the user's files follow the session's permission mode by design.LICENSE (opens in a new tab)README.md (opens in a new tab)reference/ai-patterns.md (opens in a new tab)reference/flows/article.md (opens in a new tab)reference/flows/code.md (opens in a new tab)reference/flows/docs.md (opens in a new tab)reference/flows/mixed.md (opens in a new tab)reference/flows/social.md (opens in a new tab)reference/human-patterns.md (opens in a new tab)reference/java.md (opens in a new tab)reference/python.md (opens in a new tab)reference/typescript.md (opens in a new tab)tests/run.sh (opens in a new tab)tests/suite-frontmatter.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
sonnetThree short reads, in order
ai-artifacts, humanize-text, text-cleanup, unicode-fix, writing-style
13 skills in this plugin
/agent-deadline-setupInstalls, configures or removes the agent-deadline hooks (soft wall-clock budget for subagents). Triggers: agent-deadline, subagent timeout, agent time limit, дедлайн агента, таймаут саб-агента./agent-return-setupInstalls, configures or removes the agent-return hooks (size budget on every subagent's final return message). Triggers: agent-return, subagent return budget, return too large, бюджет ответа агента, размер отчёта саб-агента./agent-router-setupInstalls, configures or removes the agent-router hook (routes a generic Agent spawn to the real project/plugin expert). Triggers: agent-router, wrong agent, route to expert, роутер агентов, не тот агент.npx claudepluginhub kochetkov-ma/claude-brewcode --plugin brewtoolsOther plugins' skills for the same job