Xpersona
A

Analyzes code for improvements including code smells, design patterns, and best practices. Invoke when user asks for code analysis, code review, or suggestions to improve code quality.

CLAWHUB · Unverified

Analyzes code for improvements including code smells, design patterns, and best practices. Invoke when user asks for code analysis, code review, or suggestio...

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.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 s177z4s6dabs1y9tx72np0acxs83zsfm:code-smell-analyzer
  1. Install using `clawhub skill install s177z4s6dabs1y9tx72np0acxs83zsfm:code-smell-analyzer` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/ksky521/code-smell-analyzer before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-ksky521-code-smell-analyzer/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

10,048 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: 'code-smell-analyzer'
description: 'Analyzes code for improvements including code smells, design patterns, and best practices. Invoke when user asks for code analysis, code review, or suggestions to improve code quality.'
version: '1.0.0'
---

# Code Smell Analyzer

Analyzes code files for potential improvements including code smells, design patterns, and best practices. Provides suggestions for enhancing readability, maintainability, and performance while preserving functionality.

## When to Use

Invoke this skill when:

- User asks for code analysis or code review
- User wants suggestions to improve code quality
- User mentions "code smells", "refactoring", or "best practices"
- User wants to optimize code structure without changing functionality

## Analysis Framework

### 1. Code Smells

Identify any code smells such as:

- **Long Methods**: Methods exceeding 20-30 lines should be broken down
- **Large Classes**: Classes with too many responsibilities
- **Duplicate Code**: Repeated code blocks that should be extracted
- **Complex Conditionals**: Deeply nested if/else statements
- **Magic Numbers**: Hard-coded values without explanation
- **Dead Code**: Unused variables, methods, or imports
- **Long Parameter Lists**: Methods with more than 3-4 parameters
- **Feature Envy**: Methods that use another class more than their own

### 2. Design Patterns

Suggest appropriate design patterns that could improve the code structure:

- **Creational**: Factory, Builder, Singleton, Prototype
- **Structural**: Adapter, Decorator, Facade, Composite
- **Behavioral**: Strategy, Observer, Command, State, Template Method

### 3. Best Practices

Check adherence to language-specific best practices:

- **Naming Conventions**: Clear, descriptive names for variables, functions, classes
- **DRY Principle**: Don't Repeat Yourself
- **SOLID Principles**: Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, Dependency Inversion
- **Error Handling**: Proper exception handling and error messages
- **Documentation**: Adequate comments and documentation
- **Testing**: Testability of the code

### 4. Readability

Evaluate code clarity:

- **Naming**: Are names self-documenting?
- **Structure**: Is the code well-organized?
- **Comments**: Are complex sections explained?
- **Formatting**: Is indentation and spacing consistent?
- **Abstraction Level**: Is the code at the right level of abstraction?

### 5. Maintainability

Assess how easy the code would be to modify and extend:

- **Coupling**: Are components loosely coupled?
- **Cohesion**: Are related functionalities grouped together?
- **Modularity**: Can parts be changed independently?
- **Configuration**: Are hard-coded values externalized?
- **Logging**: Is there adequate logging for debugging?

### 6. Performance

Identify potential performance optimizations:

- **Algorithm Complexity**: O(n) vs O(n^2) considerations
- **Memory Usage**: Unnecessary object creation, memory leaks
- **I

_meta.json

{
  "ownerId": "kn7a1491edvmssa7bzqk1v3syx82zy3t",
  "slug": "code-smell-analyzer",
  "version": "1.0.0",
  "publishedAt": 1774918278413
}

skill-card.md

## Description:

Analyzes code for improvements including code smells, design patterns, and best practices.

This skill is ready for commercial/non-commercial use.

## Publisher:

[ksky521](https://clawhub.ai/user/ksky521)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and engineers use this skill to review code quality and receive prioritized suggestions for readability, maintainability, refactoring, design patterns, and performance while preserving functionality.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Code-quality suggestions may be incomplete or unsuitable for the project context.

Mitigation: Review suggestions against project conventions, tests, and expected behavior before applying changes.

Risk: Broad code-review routing may be mistaken for dedicated security or debugging review.

Mitigation: Use separate security or debugging review instructions when those assurances are required.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/ksky521/skills/code-smell-analyzer)

## Skill Output:

**Output Type(s):** [Text, Markdown, Code, Guidance]

**Output Format:** [Markdown analysis with code snippets and prioritized recommendations]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [May include current code, suggested improvement, rationale, and priority.]

## Skill Version(s):

1.0.0 (source: frontmatter and server release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Analyzes code for improvements including code smells, design patterns, and best practices. Invoke when user asks for code analysis, code review, or suggestions to improve code quality. and adjacent AI workflows.