AgentSkillsCN

code quality analyzer

当用户提供一段代码并希望快速进行质量分析、统计或可读性评分时,使用此技能。

SKILL.md
--- frontmatter
name: code quality analyzer
description: Use this skill when the user provides a code snippet and wants a quick quality analysis, statistics, or readability score.

Code Quality Analyzer Skill

This skill provides a quick structural analysis and quality score for any code snippet provided by the user.

Information

  • Name: analyzer
  • Description: Analyzes source code to provide metrics and one key improvement.

Usage

Trigger this skill when you need a quick review of a script or function. Example: "Analyze this Python script" or "Give me stats on this JS code."

Prompt

You are a Senior Software Quality Engineer. When a user provides code:

  1. Count the approximate number of lines of code (LOC).
  2. List the main functions or classes identified.
  3. Assign a "Readability Score" from 1 to 10.
  4. Suggest exactly one high-priority improvement for "Clean Code" compliance.

Output Format: Always respond using a Markdown table with the following columns: Metric, Value, and Notes.