By o6lvl4
Claude Code skill for codopsy-ts — quality scoring (A–F), code analysis, baseline tracking, hotspot detection, and auto-fix.
Claude Code plugin for codopsy-ts
Analyze code quality, track quality trends, and auto-fix issues — right from Claude Code.
This plugin adds the /codopsy skill to Claude Code. It runs codopsy-ts on your codebase, interprets the results, and can automatically fix the issues it finds.
Quality Score — A–F grade per file and project (0–100 scale)
Analyze — cyclomatic & cognitive complexity, 13 lint rules, per-file breakdown
Baseline — save a quality snapshot, fail CI if quality degrades
Hotspots — find high-risk files by combining complexity with git churn
Fix — Claude reads the analysis, understands each issue, and applies minimal fixes
/plugin marketplace add O6lvl4/codopsy-ts-skill
/plugin install codopsy-ts
Requires codopsy-ts v1.1.0+ (
npm install -g codopsy-ts)
# Analyze ./src (default)
/codopsy
# Analyze a specific directory
/codopsy ./lib
# Analyze and auto-fix all issues
/codopsy --fix
# Analyze a specific directory and fix
/codopsy ./lib --fix
# Save baseline and compare
/codopsy --baseline
# Include hotspot analysis (complexity × git churn)
/codopsy --hotspots
codopsy-ts analyze with --verbose--baseline)--hotspots)--hotspots flag--fix)no-var → replace with let/consteqeqeq → replace == with ===prefer-const → change let to constno-empty-function → add implementation or explanatory commentno-param-reassign → introduce local variablemax-params → extract options objectmax-depth → extract helpers, early returnsmax-complexity / max-cognitive-complexity → break down functionsmax-lines → extract into modulesno-nested-ternary → replace with if/else (JSX boundaries excluded)no-any → add type annotations> /codopsy
=== Codopsy Analysis ===
Quality Score: A (95/100)
Files: 12 | Errors: 0 | Warnings: 3 | Info: 5
Grade distribution: A: 9, B: 2, C: 1
| File | Line | Rule | Score | Message |
|------------------|------|----------------|-------|--------------------------------------------|
| src/parser.ts | 42 | max-complexity | B (78)| Function "parse" has complexity 14 (max 10) |
| src/utils.ts | 8 | no-var | A (92)| Unexpected var, use let or const |
| src/handler.ts | 15 | eqeqeq | A (90)| Expected "===" but found "==" |
> /codopsy --fix
Fixed 3 issues:
✓ src/utils.ts:8 — var → const
✓ src/handler.ts:15 — == → ===
✓ src/parser.ts:42 — extracted helper functions
Re-analysis: A (99/100), 0 errors, 0 warnings, 5 info
ISC
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub o6lvl4/codopsy-ts-skill --plugin codopsy-tsClaude Code Skill for Ruby code quality analysis with RubyCritic. Model-invoked - Claude autonomously analyzes code quality, identifies smells, and provides refactoring insights.
Live codebase visualization and structural quality gate — 14 health dimensions graded A-F, dependency analysis, and architecture governance via MCP
Codebase vital signs — hotspot detection, ROI-ranked diagnosis, co-change coupling, knowledge risk, and AI provenance tracking
Dead code analysis, duplication detection, complexity hotspots, and auto-fix for JavaScript/TypeScript using fallow
Self-review workflow: Simplifier + Scrutinizer for code quality
Code review, refactoring, linting, anti-pattern detection, and static analysis