review-ai-writing
Detect AI-generated writing patterns in developer text — docs, docstrings, commit messages, PR descriptions, and code comments. Use when reviewing any text…
от existential-birds★ 92 звезды на GitHub
Установить review-ai-writing в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Review AI Writing
Detect AI-generated writing patterns across developer text artifacts, parallelizing across artifact groups when the agent supports it.
Usage
Invoke the review-ai-writing skill with optional flags: review-ai-writing [--all] [--category <name>] [path].
Flags:
--all- Scan entire codebase (default: changed files from the default base branch)--category <name>- Only check specific category:content|vocabulary|formatting|communication|filler|code_docs- Path: Target directory (default: current working directory)
Instructions
1. Parse Arguments
Parse any flags or paths provided in the user's request:
--all- Full codebase scan--category <name>- Filter to specific category- Path - Target directory
2. Load Skills
Load the review-verification-protocol skill before reporting findings. The AI-writing pattern catalog lives in this file's Reference Material section and the references/*.md files — read the categories you intend to check.
3. Determine Scope
# Default: resolve base branch safely (origin/HEAD -> origin/main|origin/master -> main|master)
BASE=$(git symbolic-ref --short refs/remotes/origin/HEAD 2>/dev/null)
if [ -z "$BASE" ]; then
for b in origin/main origin/master main master; do
git rev-parse --verify --quiet "$b" >/dev/null && BASE="$b" && break
done
fi
git diff --name-only $(git merge-base HEAD "${BASE:-main}")..HEAD
# If --all flag: scan all text artifacts
find . -type d \( -name .git -o -name node_modules -o -name vendor -o -name __pycache__ -o -name dist -o -name build \) -prune \
-o -type f \( -name "*.md" -o -name "*.py" -o -name "*.ts" -o -name "*.tsx" -o -name "*.js" -o -name "*.jsx" -o -name "*.go" -o -name "*.rs" -o -name "*.java" -o -name "*.rb" -o -name "*.swift" -o -name "*.kt" -o -name "*.ex" -o -name "*.exs" \) -print
If no files found, exit with: "No files to scan. Check your branch has changes or use --all."
4. Check for Existing LLM Artifacts Review
# Check if llm-artifacts review exists to avoid double-flagging
if [ -f .beagle/llm-artifacts-review.json ]; then
echo "Found existing llm-artifacts review — will skip overlapping findings"
fi
Parse existing findings from .beagle/llm-artifacts-review.json if present. When consolidating, skip any finding where both the file:line and pattern type match an existing llm-artifacts finding (specifically verbose_comment and over_documentation types).
5. Classify Files by Type
Partition files into three groups:
| Group | File Types | Patterns to Check |
|---|---|---|
| Prose | *.md |
All 6 categories |
| Code Docs | *.py, *.ts, *.tsx, *.js, *.jsx, *.go, *.rs, *.java, *.rb, *.swift, *.kt, *.ex, *.exs |
vocabulary, communication, filler, code_docs |
| Git | Commit messages, PR descriptions | content, vocabulary, communication, filler |
For Git artifacts, collect recent commits against the resolved base branch ($BASE from §3):
# Commits on current branch not in base branch
git log --format="%H %s" $(git merge-base HEAD "${BASE:-main}")..HEAD
6. Scan Each Artifact Group
There are three artifact groups below (Prose, Code Docs, Git). If the agent supports subagents and total items >= 4, dispatch one subagent per in-scope group in parallel (up to 3); otherwise run the same group instructions sequentially yourself — identical output either way. If --category is set, handle only the matching category. Every subagent (or sequential pass) reads this skill's Reference Material and the relevant references/*.md patterns before scanning.
Group 1: Prose
Scope: Markdown files only Check: All 6 pattern categories Instructions:
- Read each markdown file
- Scan for all pattern categories
- Apply the false positive checks from this skill
- Return findings in the Output Format below
Group 2: Code Docs
Scope: Source code files Check: vocabulary, communication, filler, code_docs categories Instructions:
- Extract docstrings and comments from each file
- Scan for applicable pattern categories
- Skip code itself — only check text in comments and docstrings
- Return findings in the Output Format below
Group 3: Git
Scope: Commit messages and PR descriptions Check: content, vocabulary, communication, filler categories Instructions:
- Read commit messages from the branch
- If on a PR branch and
ghis available and authenticated, read the PR description viagh pr view --json body - Scan for applicable pattern categories
- Use synthetic paths:
git:commit:<sha>with line 0,git:pr:<number>with line 0 - Return findings in the Output Format below
7. Consolidate Findings
Wait for all subagents to complete, then:
- Merge all findings into a single list
- Remove duplicates (same file:line and type)
- Remove findings tha
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/code-docs-patterns.md
- references/communication-patterns.md
- references/content-patterns.md
- references/filler-patterns.md
- references/formatting-patterns.md
- references/vocabulary-patterns.md
FAQ
Что делает скилл review-ai-writing?
Detect AI-generated writing patterns in developer text — docs, docstrings, commit messages, PR descriptions, and code comments. Use when reviewing any text artifact for authenticity and clarity, or when the user mentions ai writing, ai-generated or robotic writing, text that sounds like AI or ChatGPT, or writing quality.
Как установить скилл review-ai-writing?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл review-ai-writing запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…