check-code-quality

check-code-quality is a command for Claude Code from TheBeardedBearSAS/claude-craft. It costs 4 tokens per session (1,448 once invoked), scanned A, original, MIT.

A code-review checker for Angular projects that looks for maintainability, correctness, and performance problems. Angular is a framework for building web applications.

In plain words
What is it for?
Use it to analyze an Angular codebase and produce a quality score, severity-grouped issues, and recommendations for improving components and related code.
Why use it?
It gathers common issues in one review, including TypeScript mistakes, lint errors, complex or repeated code, unsafe RxJS usage, memory leaks, and inefficient patterns.

Command for Claude Code

Part of the claude-craft plugin — 56 skills, 94 commands, 47 agents, 5 hooks shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/thebeardedbearsas/claude-craft/check-code-quality
Clone the repo
git clone --depth 1 https://github.com/TheBeardedBearSAS/claude-craft

Made for: Claude Code.

Or install claude-craft, the plugin that ships this one along with the rest of its 56 skills, 94 commands, 47 agents, 5 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for check-code-quality

README.md
[![agentmods](https://agentmods.dev/badge/commands/thebeardedbearsas/claude-craft/check-code-quality.svg)](https://agentmods.dev/commands/thebeardedbearsas/claude-craft/check-code-quality)
Your own site
<a href="https://agentmods.dev/commands/thebeardedbearsas/claude-craft/check-code-quality"><img src="https://agentmods.dev/badge/commands/thebeardedbearsas/claude-craft/check-code-quality.svg" alt="Measured on agentmods" height="20"></a>
Per session 4 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,448 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00004 $0.01448
Opus 5 $0.00002 $0.00724
Sonnet 5 $0.00001 $0.00290
Haiku 4.5 $0.00000 $0.00145

Measured 5d ago against content hash 17f88c9b902f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

check-code-quality scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/angular/check-code-quality.md · 241 lines

How it starts

The opening of the file, as written. The whole thing — 241 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Angular Code Quality Analysis

Analyze code quality and identify areas for improvement in the Angular project.

What This Command Does

  1. Code Quality Metrics

    • TypeScript strict compliance
    • ESLint violations
    • Code complexity
    • Duplicated code
  2. Angular-Specific Quality

    • Component best practices
    • RxJS patterns
    • Memory leak prevention
    • Performance patterns
  3. Generated Report

    • Quality score
    • Issues by severity
    • Actionable recommendations

Quality Criteria

1. TypeScript Quality

// ✅ Good - Explicit types, null safety
interface User {
  id: string;
  name: string;
  email: string | null;
}

function getUser(id: string): User | undefined {
  return users.find(u => u.id === id);
}

const userName = getUser('1')?.name ?? 'Unknown';

// ❌ Bad - Implicit any, no null handling
function getUser(id) {
  return users.find(u => u.id === id);
}

const userName = getUser('1').name; // Potential null error

2. Component Quality

// ✅ Good - Small, focused component
@Component({
  selector: 'app-user-avatar',
  standalone: true,
  changeDetection: ChangeDetectionStrategy.OnPush,
  template: `
    <img [src]="avatarUrl()" [alt]="user().name" class="avatar" />
  `
})
export class UserAvatarComponent {
  user = input.required<User>();
  avatarUrl = computed(() => this.user().avatar ?? '/default-avatar.png');
}

// ❌ Bad - Large component doing too much
@Component({
  selector: 'app-user-page',
  template: `<!-- 500 lines of HTML -->`
})
export class UserPageComponent {
  // 50+ methods, multiple responsibilities
}

3. RxJS Best Practices

// ✅ Good - Proper subscription management
export class UserListComponent implements OnInit {
  private destroyRef = inject(DestroyRef);

  ngOnInit(): void {
    this.userService.users$
      .pipe(takeUntilDestroyed(this.destroyRef))
      .subscribe(users => this.handleUsers(users));
  }
}

// ❌ Bad - Memory leak (no unsubscribe)
export class UserListComponent implements OnInit {
  ngOnInit(): void {
    this.userService.users$.subscribe(users => {
      this.users = users; // Never unsubscribed!
    });
  }
}

Read the full file on GitHub · 241 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 241 lines · 4 tokens per session scan A 17f88c9b902f

Subscribe to this mod's changes

check-code-quality is a command published in the GitHub repository TheBeardedBearSAS/claude-craft (105 stars, last pushed 2d ago), licensed MIT. It adds 4 tokens to every session and 1,448 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.