Tropes

From FradSer/dotclaude · View interactive version

Tropes is an AI agent skill from the GitHub repository FradSer/dotclaude. Detects and eliminates AI writing tropes that make text sound artificial or formulaic. Use when generating text content, writing documentation, creating code comments, or reviewing writing style. Supports four-tier JSON preferences (global/project x shared/local office.json) read via load-preference

How to use this skill

Skill file

AI Writing Tropes Detection

Scan generated text for common AI writing patterns that make content sound artificial or formulaic. This skill provides a systematic workflow for identifying and eliminating tropes.

Source: tropes.fyi by ossama.is

Original gist: ossa-ma/f3baa9d2 — the raw 33-trope list this skill's references/ are structured from and extended.

Core Principle

Write like a human expert: varied, precise, and professional.

The goal is to find the "middle ground" between overly colloquial or casual writing and the obscure, formulaic style typical of AI generation. A single pattern used once is usually fine; the problem occurs when multiple tropes cluster together or when the same trope repeats throughout the text.

When to Check

Scan for tropes when:

Detection Workflow

0. Load User Preferences

CRITICAL: User preferences live in office.*.json files (NOT Claude Code's settings.json). These are the office plugin's own preference files following the .claude/plugin-name.local.* convention with .json carriers. They do NOT participate in the harness four-layer settings merge — the merge is done by load-preferences.sh.

Run the loader script to get the merged preferences as a single JSON object:

bash ${CLAUDE_PLUGIN_ROOT}/scripts/load-preferences.sh

The script reads up to four files in precedence order (highest first): .claude/office.local.json (project, personal) > .claude/office.json (project, shared) > ~/.claude/office.local.json (global, personal) > ~/.claude/office.json (global, shared). It deep-merges them (scalars replaced by higher layer, lists concatenated and deduped, pattern_caps deduped by id, dead_metaphors.entries by word), and prints the merged JSON to stdout. If jq is missing or all files are absent, it fails open to {} and default rules apply.

Apply the merged preferences as overrides/supplements to the default detection below:

If no preference file exists (all four files are absent), after the detection run, offer to create the global file with default values.

See references/preferences-schema.md for the full field reference and merge rules.

1. Pattern Scan

Read through the text and identify:

2. Cluster Check

Look for multiple tropes appearing together:

3. Revision Strategy

For each identified trope:

4. Verification

After revision:

5. Preference Sync (Optional)

After the detection run, offer to save preferences to one of the four files (default ~/.claude/office.local.json):

When the user wants a rule shared with a team, suggest a .json (shared) file; for personal preferences, a .local.json file. Then:

Default target is the global file unless the user specifies project-level. Do not auto-write. Present a diff preview: which file, which field, and what the merged JSON will look like. Let the user confirm before writing.

Pattern Categories

The complete trope catalog is organized into seven categories. Load specific references as needed:

  1. Word Choice - references/word-choice.md

Ornate vocabulary, magic adverbs, pompous constructions

  1. Sentence Structure - references/sentence-structure.md

Negative parallelism, rhetorical questions, formulaic patterns

  1. Paragraph Structure - references/paragraph-structure.md

Short fragments, listicle disguises

  1. Tone - references/tone.md

False suspense, pedagogical voice, vague attributions

  1. Formatting - references/formatting.md

Em-dash overuse, bold-first bullets, unicode decoration

  1. Composition - references/composition.md

Fractal summaries, dead metaphors, content duplication

  1. Professional Balance - references/professional-balance.md

Avoiding both overly colloquial "humanisms" and obscure AI-isms.

Plus one supporting schema (not a trope category):

Four-tier JSON config: .claude/office.local.json (project personal) > .claude/office.json (project shared) > ~/.claude/office.local.json (global personal) > ~/.claude/office.json (global shared), read and merged by load-preferences.sh. Custom banned words/phrases, dead metaphors, pattern caps, sensitivity, tone, skip categories.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.