Xpersona
R

Review Ai Writing

CLAWHUB · Unverified

Detect AI-generated writing patterns in developer text — docs, docstrings, commit messages, PR descriptions, and code comments. Use when reviewing any text a... Skill: Review Ai Writing Owner: anderskev Summary: Detect AI-generated writing patterns in developer text — docs, docstrings, commit messages, PR descriptions, and code comments. Use when reviewing any text a... Tags: latest:1.0.3 Version history: v1.0.3 | 2026-06-01T02:23:57.829Z | auto - Refactored instructions for clarity and brevity; consolidated subagent logic. - Removed step-by-step agent orchestration details

62
Rank
84
Safety
1.0k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17b1fzefm8nj8j1sdkzrze7gn83pfrg:review-ai-writing
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-anderskev-review-ai-writing/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

144,416 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: review-ai-writing
description: "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. Builds on the docs-style core writing principles."
disable-model-invocation: true
---

# 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 main)
- `--category <name>` - Only check specific category: `content|vocabulary|formatting|communication|filler|code_docs`
- Path: Target directory (default: current working directory)

## Instructions

### 1. Parse Arguments

Extract flags from `$ARGUMENTS`:
- `--all` - Full codebase scan
- `--category <name>` - Filter to specific category
- Path - Target directory

### 2. Load Skills

Load the [review-verification-protocol](../../../beagle-core/skills/review-verification-protocol/SKILL.md) 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

```bash
# Default: changed files from main
git diff --name-only $(git merge-base HEAD main)..HEAD

# If --all flag: scan all text artifacts
find . -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" \) ! -path "*/node_modules/*" ! -path "*/.git/*" ! -path "*/vendor/*" ! -path "*/__pycache__/*" ! -path "*/dist/*" ! -path "*/build/*"
```

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

```bash
# 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, commu

_meta.json

{
  "ownerId": "kn79190nfmdb20hk6xjhzt2zv583844x",
  "slug": "review-ai-writing",
  "version": "1.0.3",
  "publishedAt": 1780280637829
}

references/code-docs-patterns.md

# Code Documentation Patterns

Detecting AI-generated writing in developer documentation: docstrings, code comments, commit messages, and PR descriptions.

> **Overlap note:** Tautological docstrings and obvious comments also appear in [llm-artifacts-detection](../../../../beagle-core/skills/llm-artifacts-detection/SKILL.md) (style-criteria.md). This file focuses on the AI writing style aspect; the artifacts skill focuses on unnecessary code artifacts.

---

## 1. Tautological Docstrings

### What to Look For

Docstrings that restate the function name, parameters, or signature without adding any information a developer couldn't already read from the code. The docstring is a mirror of the declaration, not a supplement to it.

Common tells:
- Docstring is the function name split into words
- Describes the return value using only the return type
- Begins with a verb form of the function name ("Gets", "Sets", "Returns", "Creates")

### Examples

**Python**

```python
# BAD - restates the function name
def get_user(user_id: int) -> User:
    """Gets the user."""
    return db.query(User).filter_by(id=user_id).one()

def __init__(self, config: Config):
    """Initializes the class."""
    self.config = config

def get_count(self) -> int:
    """Returns the count."""
    return self._count

# GOOD - adds information not in the signature
def get_user(user_id: int) -> User:
    """Raises NoResultFound if the user does not exist."""
    return db.query(User).filter_by(id=user_id).one()

def __init__(self, config: Config):
    """Starts background sync if config.auto_sync is enabled."""
    self.config = config
    if config.auto_sync:
        self._start_sync()

# GOOD - trivial function, no docstring needed
def get_count(self) -> int:
    return self._count
```

**TypeScript**

```typescript
// BAD - restates the function name
/** Gets the user by ID. */
function getUserById(id: string): User {
  return users.get(id);
}

/** Creates a new order. */
function createOrder(items: CartItem[]): Order {
  return orderService.create(items);
}

// GOOD - explains non-obvious behavior
/** Falls back to guest user if ID is not found. */
function getUserById(id: string): User {
  return users.get(id) ?? GUEST_USER;
}

// GOOD - no doc needed for clear functions
function createOrder(items: CartItem[]): Order {
  return orderService.create(items);
}
```

**fix_safety:** Safe. Removing a tautological docstring or replacing it with useful content does not change behavior.

---

## 2. Narrating Obvious Code

### What to Look For

Comments that describe what the code does line-by-line rather than explaining why. These read like a narration of the syntax rather than a note from one developer to another. They add vertical noise without aiding comprehension.

Common tells:
- Comment restates the operation: `# Loop through items`, `# Check if valid`
- Comment names the construct: `# Return the result`, `# Set the variable`
- Every block has a comment even when the code is self

references/communication-patterns.md

# Communication Patterns

Detection criteria for conversational AI artifacts that leak into developer-facing text: documentation, commit messages, PR descriptions, and code comments.

## 1. Chat Leaks

### What to Look For

Conversational phrases from AI chat sessions copy-pasted into committed text. These read as one side of a dialogue rather than authored documentation.

### Detection Patterns

```markdown
# BAD - Chat openers leaked into docs/PRs/comments
Certainly! Here's how to configure the database connection.
Great question! The middleware stack processes requests in order.
I'd be happy to help explain the authentication flow.

# GOOD
Configure the database connection with the following environment variables.
The middleware stack processes requests in order.
```

```python
# BAD - Chat phrasing in code comments or commit messages
# Here's the implementation for the retry logic
# Let me explain what this does
# As requested, this handles the edge case
# Sure thing! This validates the token format

# GOOD
# Retry with exponential backoff, max 3 attempts
# Handles empty input by returning early
```

### fix_safety: Safe

Removing chat preambles does not change technical meaning.

---

## 2. Cutoff Disclaimers

### What to Look For

Training cutoff disclaimers or knowledge-limitation hedges in docs or comments. These expose AI-generated origin and erode reader confidence.

### Detection Patterns

```markdown
# BAD
As of my last update, the API supports cursor-based pagination.
Based on current knowledge, PostgreSQL 16 introduced merge joins.
I cannot guarantee this behavior will remain consistent.

# GOOD
The API supports cursor-based pagination (v2.3+).
PostgreSQL 16 introduced merge joins (see release notes).
This behavior may change; pin your dependency version.
```

### fix_safety: Safe

Replace disclaimers with versioned references or remove entirely.

---

## 3. Sycophantic Tone

### What to Look For

Excessive praise or enthusiasm in code review comments, PR descriptions, and documentation that reads as flattery rather than technical assessment.

### Detection Patterns

```markdown
# BAD
Excellent approach! The factory pattern here is wonderful.
Great implementation! This is a really elegant solution.
This is a brilliant way to handle the race condition!

# GOOD
The factory pattern decouples instantiation from the handler logic.
The mutex prevents the race condition identified in #247.
Consider a read-write lock since reads outnumber writes 10:1.
```

```python
# BAD
# This is a really nice pattern for dependency injection

# GOOD
# Dependency injection via constructor allows test doubles
```

### fix_safety: Safe

Replace praise with neutral technical descriptions. No semantic meaning is lost.

---

## 4. Apologetic Errors

### What to Look For

Over-apologizing in error messages, log output, or documentation. Error handling should be informative and actionable, not socially polite.

### Detection Patterns

```python
# BAD
raise Value

references/content-patterns.md

# Content Patterns

Detection patterns for AI-generated writing in developer docs, commit messages, PRs, and code comments.

## 1. Promotional Language

### What to Look For

Inflated claims about code quality or tool capabilities. AI text oversells what code does, using marketing language instead of precise technical description.

### Detection Patterns

**Commit messages**:

Before:
```text
feat: add robust and elegant caching layer for seamless data retrieval
```
After:
```text
feat: add Redis cache for user profile queries
```

**Module docs**:

Before:
```markdown
This powerful and highly flexible authentication module provides a comprehensive,
enterprise-grade solution for all your security needs.
```
After:
```markdown
Authentication module supporting OAuth 2.0 and SAML. Wraps `authlib` with
project-specific defaults and middleware hooks.
```

**Inline comments**:

Before: `// This elegant algorithm efficiently handles all edge cases`

After: `// Handles duplicate keys by keeping the last value`

### Trigger Words

`robust`, `elegant`, `seamless`, `powerful`, `comprehensive`, `cutting-edge`, `best-in-class`, `enterprise-grade`, `highly flexible`, `state-of-the-art`, `effortlessly`

### fix_safety: Safe

Replace promotional adjectives with factual descriptions of what the code actually does.

---

## 2. Vague Authority

### What to Look For

Unattributed claims borrowing authority from unnamed sources. AI text inserts "research shows" or "experts agree" without citations.

### Detection Patterns

**Docs**:

Before:
```markdown
Research shows that structured error handling significantly improves reliability.
Experts agree that the Result pattern is the preferred approach.
```
After:
```markdown
Uses the Result pattern (`Ok`/`Err`) instead of exceptions.
See ADR-0012 (the Result-pattern decision record) for the tradeoff discussion.
```

**PR descriptions**:

Before:
```text
Studies have shown that smaller functions lead to better maintainability.
This refactor follows industry-standard practices.
```
After:
```text
Split `process_order` (180 lines) into `validate_order`, `apply_discounts`,
and `submit_order`. Each function is independently testable.
```

**Code comments**:

Before: `// Best practices dictate that we should validate input here`

After: `// Validate before insert; see #422 for the injection that motivated this`

### Trigger Phrases

`research shows`, `studies have shown`, `experts agree`, `it is widely recognized`, `best practices dictate`, `industry-standard`, `as recommended by leading engineers`

### fix_safety: Safe

Replace with specific references (links, ADR numbers, issue numbers) or drop the claim entirely.

---

## 3. Formulaic Structure

### What to Look For

Rigid intro-body-conclusion scaffolding where it adds no value. AI text forces three-act structure onto commit messages and short docs.

### Detection Patterns

**Over-structured commit messages**:

Before:
```text
feat: implement user notification system

Intro

Sponsored

Ads related to Review Ai Writing and adjacent AI workflows.