Token导航 LogoToken导航TokenDH.com
前端设计执行命令github未标认证来源可访问许可证需确认审计提醒

code-quality-report代码质量报告

Agent Skill

code-quality-report 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

275

周安装

11

GitHub Stars

公开资料未说明

下载量

89
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:code-quality-report(代码质量报告)
来源仓库:https://github.com/khanhuitse05/my-ai-skill
仓库路径:skills/code-quality-report
安装命令:
npx skills add https://github.com/khanhuitse05/my-ai-skill --skill code-quality-report
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/khanhuitse05/my-ai-skill --skill code-quality-report

简介

code-quality-report 生成平台专属的质量评估报告,区分 Frontend(移动端/Web)与 Backend 指标体系。

  • 适用于项目健康度盘点、迁移成本估算或跨团队质量对标分析。
  • 输出含总体评分、问题分布、改进建议与模板引用的结构化 Markdown 报告。
  • 用户需明确指定平台类型(FE/BE/Mobile),否则默认合并多端数据综合评估。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Code Quality Report

Produce a Code Quality Assessment Report. Reports are platform-specific: Frontend (Mobile & Web) or Backend. Use the matching template and criteria below.

When to Use

  • User asks for "code quality report", "quality assessment", or "codebase review report".
  • User asks by platform: "frontend report", "backend report", "mobile report", "web report", "FE vs BE", or "mobile & web & backend".
  • User mentions migrating or updating code quality rules/skills.
  • User requests to "export report" or "save report as markdown file".

Step 1: Determine Platform

  • Frontend (Mobile & Web): Client-side apps — Mobile (Flutter, React Native, etc.) and/or Web (React, Vue, Next, Angular, etc.). Use report_template_frontend.md and Frontend criteria below. In the report header set Scope to: *Mobile* | *Web* | *Mobile & Web*.
  • Backend (BE): APIs, services, databases, auth, jobs, workers. Use report_template_backend.md and Backend criteria below.
  • Both (Frontend + Backend): Produce two reports (one Frontend, one Backend). Optionally add a short "Cross-cutting" section if they share repos or contracts.
  • Three-way (Mobile + Web + Backend): For maximum detail, produce three reports: one Frontend-Mobile, one Frontend-Web, one Backend. Use the same Frontend template twice with Scope *Mobile* and *Web* respectively, and the Backend template once.

Step 2: Analyze the Codebase

Before writing the report, gather data from the codebase:

  1. Project structure: Read directory tree to identify layers, modules, and organization patterns.
  2. Dependency files: Read package.json, pubspec.yaml, go.mod, requirements.txt, pom.xml, or equivalent to identify framework, language version, and dependencies.
  3. Outdated & vulnerabilities: Run npm outdated / dart pub outdated / go list -u -m all and npm audit / govulncheck or equivalent when possible. If commands cannot be run, note the limitation and use "Unknown" in the report.
  4. Test files & coverage: Look for test directories, test config (jest.config, vitest.config, pytest.ini, etc.), and coverage reports.
  5. CI/CD config: Check for .github/workflows/, Jenkinsfile, .gitlab-ci.yml, bitbucket-pipelines.yml, etc.
  6. Linting & formatting: Check for .eslintrc, biome.json, .prettierrc, analysis_options.yaml, etc.
  7. Security: Scan for .env files committed to repo, hardcoded secrets/tokens, and auth configuration.
  8. README & docs: Read README and any documentation files.
  9. Models & schemas: Look for model/entity files, database migrations, and schema definitions.
  10. Git & branching: Check branch protection rules, PR templates, and git workflow (if accessible).
If any data source is unavailable (e.g. cannot run shell commands), use "Unknown" in the report rather than guessing.

Standards Applied

  • IEEE 730 (Software Quality Assurance)
  • IEEE 1016 (Software Design Description)
  • IEEE 829 (Software Test Documentation)
  • Clean Code (readable, small functions, naming, DRY)
  • OWASP (injection, auth, sensitive data, logging)

Scoring Guide (1–10)

Use for every criterion so scores are consistent:

ScoreMeaningExample
1–3Needs improvementNo tests, no structure, many security issues
4–6FairSome tests, acceptable structure, partial best practices
7–8GoodGood structure, tests present, minor gaps
9–10Very goodConsistent, well-tested, documented, production-ready

Total score: Average of 7 criteria. Round to 1 decimal. Map to: <4 Needs improvement, 4–6.9 Fair, 7–8.4 Good, ≥8.5 Very good.


Common Criteria (All Platforms)

These 7 criteria apply; what you look at differs by Frontend vs Backend.

CriterionBackend focusFrontend focus (Mobile & Web)
Code OrganizationLayers (API/service/repo), modules, namingFeatures/pages, components, state layer, naming
Type SafetyTyped APIs, DTOs, DB typesNull safety / TypeScript, types, lint, no dynamic
Error HandlingGlobal handler, status codes, loggingError boundaries, user messages, logging
DocumentationREADME, API docs, runbooksREADME, doc comments, setup
TestingUnit, integration, e2e, coverageUnit, component/widget, e2e, coverage
MaintainabilityDI, no giant files, duplicationDI/state, component size, reuse
SecurityAuth, secrets, validation, OWASPStorage, CSP, tokens, input, OWASP

Optional criterion (include when relevant):

  • Performance: Backend — response time, N+1, caching, connection pooling. Frontend — bundle size, Core Web Vitals, lazy load, image optimization.

Frontend-only consideration:

  • Accessibility (a11y): WCAG, screen readers, contrast, focus — include under Strengths / Areas for improvement or as a short subsection when assessable.

Cross-cutting (mention in report when assessable):

  • CI/CD: Build, test in pipeline, deploy, env management — can be under Testing or Documentation.
  • Observability: Logging, metrics, tracing, alerting — can be under Error Handling or Documentation.

Dependencies, Libraries & Framework Review (Required Section)

Every report must include the Dependencies, Libraries & Framework Review section. It covers:

What to include

  1. Framework(s) and current version

- Primary framework/runtime (e.g. Flutter 3.24, Node 20, React 18, Go 1.21) and version in use. - SDK/language version if relevant (e.g. Dart 3.x, ECMAScript target).

  1. Libraries and dependencies

- Total direct dependency count (from package.json, pubspec.yaml, go.mod, etc.). - Key libraries: name, current version, latest version (or “up to date”). - Optional: table of top 10–20 dependencies with Current | Latest | Status (Up to date / Minor behind / Major behind / Outdated).

  1. Outdated status

- How many packages are outdated (use npm outdated, dart pub outdated, go list -u -m all, etc.). - Which are minor/patch behind vs major behind. - Note if the project pins versions (e.g. exact vs range) and impact on upgrades.

  1. Upgrade suggestions

- Safe to upgrade: Patch/minor updates, low risk — list or summarize. - Suggest upgrade: Minor/major updates recommended; note breaking-change risk. - Major upgrade recommended: Framework or critical lib (e.g. React 17→18, Node 18→20); note effort and migration path.

  1. Technical risks

- Deprecated APIs or packages in use. - End-of-life (EOL) or end-of-support soon for framework/runtime or key libs. - Incompatibilities or known issues between current versions. - Lockfile or dependency resolution issues (e.g. peer dependency warnings).

  1. Security and vulnerabilities

- Known vulnerabilities: count and severity (critical/high/medium/low) from npm audit, dart pub audit (if available), go list -m -u -json, Snyk, Dependabot, etc. - List critical/high CVEs or advisories with package name and recommended fix (e.g. “upgrade to X.Y.Z”). - License risks if relevant (e.g. GPL in a commercial product).

How to gather data (examples)

  • npm/yarn/pnpm: npm outdated, npm audit, package-lock.json / yarn.lock.
  • Flutter/Dart: flutter pub outdated, dart pub get; check pub.dev for current versions.
  • Go: go list -u -m all, govulncheck or similar.
  • Other: Use lockfiles, pip list --outdated, etc., and cross-check with official advisories or Snyk/OSV.

Where it goes in the report

  • After Codebase statistics (section 2).
  • Section title: 3. Dependencies, Libraries & Framework Review.
  • Subsequent sections renumber: 4 Strengths, 5 Areas for improvement, 6 Recommendations, 7 Conclusion, 8 Action items, 9 Architecture & Database Diagrams, 10 Project Governance & PR Standards.

Architecture & Database Diagrams (Optional Section)

When generating reports, automatically create Architecture and Database diagrams using Mermaid syntax. These diagrams help visualize the system structure and are valuable for documentation.

When to Include Diagrams

  • Always attempt to generate diagrams based on codebase analysis.
  • If the codebase structure is unclear or too complex, generate a simplified high-level diagram.
  • For Backend: Generate both Architecture diagram and DB Diagram.
  • For Frontend: Generate Architecture diagram (component/feature structure); DB Diagram only if the frontend directly interacts with a database (rare).

Architecture Diagram

Generate a Mermaid diagram showing:

For Backend:

  • Service/API layers (controllers → services → repositories)
  • External dependencies (databases, message queues, third-party APIs)
  • Key modules and their relationships
  • Data flow direction

For Frontend:

  • Component hierarchy or feature structure
  • State management flow
  • Key modules/pages and their relationships
  • API/service integration points

Mermaid syntax examples:

graph TB
    Client[Client App] --> API[API Gateway]
    API --> Auth[Auth Service]
    API --> User[User Service]
    API --> Order[Order Service]
    User --> DB[(User DB)]
    Order --> DB
    Order --> Payment[Payment API]

Database Diagram

Generate a Mermaid ER diagram showing:

  • Main entities/tables identified from models, entities, or schema files
  • Key relationships between entities
  • Primary keys and important fields (if identifiable from code)

Mermaid ER syntax example:

erDiagram
    USER ||--o{ ORDER : places
    ORDER ||--|{ ORDER_ITEM : contains
    PRODUCT ||--o{ ORDER_ITEM : "ordered in"
    USER {
        int id PK
        string email
        string name
    }
    ORDER {
        int id PK
        int user_id FK
        date created_at
    }

How to Generate Diagrams

  1. Analyze the codebase structure:

- Scan directory structure (from Codebase Statistics section) - Identify main modules, services, components - Look for model/entity files, database schemas, migrations - Identify API endpoints and their relationships

  1. Create Architecture Diagram:

- Start with entry points (API routes, main components) - Map to business logic layers (services, use cases) - Connect to data access layers (repositories, DAOs) - Add external dependencies (databases, APIs, queues)

  1. Create Database Diagram (Backend only, or Frontend with DB):

- Extract entities from models/entities/schema files - Identify relationships (foreign keys, associations) - Include key fields (id, name, timestamps, etc.) - Keep it high-level; don't include every field

  1. Insert diagrams in report:

- Place after Action Items (section 8), at the very end of the report - Section title: 9. Architecture & Database Diagrams - Include both diagrams in Mermaid code blocks - Add brief descriptions explaining what each diagram shows

Diagram Quality Guidelines

  • Keep it readable: Don't include every single component/table; focus on main structure
  • Show relationships: Use arrows and connectors to show data flow and dependencies
  • Use clear labels: Name nodes/components clearly based on actual codebase structure
  • If uncertain: Generate a simplified high-level diagram rather than guessing details
  • Note limitations: If diagram is simplified or partial, add a note explaining what's included

Where it goes in the report

  • After Action Items (section 8), at the very end of the report.
  • Section title: 9. Architecture & Database Diagrams.
  • Include both Architecture and Database diagrams (when applicable).
  • This is the final section of the report.

Backend-Specific Detail

Use for Codebase statistics (typical folders):

Directory / conceptDescription
api/ controllers/ routes/HTTP handlers, routing
services/ usecases/Business logic
repositories/ dao/Data access
models/ entities/ dto/Data structures
config/ env/Configuration, env vars
middleware/Auth, logging, rate limit
utils/ helpers/Shared utilities
migrations/DB schema changes
tests/Unit, integration tests

Backend checklist (evidence for scores):

  • Organization: Layered or modular; no business logic in controllers/handlers.
  • Type Safety: Request/response types; no raw any/interface{} where avoidable.
  • Error Handling: Consistent error type; HTTP status mapping; structured logging (no print-only).
  • Documentation: How to run, env vars, main endpoints or link to API docs.
  • Testing: Unit for services; integration for API or DB; coverage %.
  • Maintainability: DI or factory; single responsibility; no 500+ line files without reason.
  • Security: No secrets in code; auth on protected routes; input validation; rate limiting considered.

Frontend-Specific Detail (Mobile & Web)

Use for Codebase statistics:

  • Mobile (Flutter, React Native, etc.): features/, widgets|components/, package|lib/, utils/, config/, localization/, common/ — see report_template_frontend.md “Mobile” table.
  • Web (React, Vue, Next, etc.): components/, pages|views/, hooks|store/, services|api/, config/, utils/, styles|assets/ — see “Web” table in same template.

Frontend checklist (evidence for scores):

  • Organization: Feature/page-based; state separated from UI; clear naming.
  • Type Safety: Null safety / TypeScript; return types; lint rules; no unnecessary dynamic.
  • Error Handling: User-visible messages; error boundaries where applicable; no debug print in prod.
  • Documentation: README, run instructions, env; key flows documented.
  • Testing: Unit for state/logic; component/widget tests for critical UI; e2e for main flows.
  • Maintainability: DI or state management; small components; shared components; no huge files.
  • Security: No secrets in repo; secure storage for tokens (mobile); CSP/safe headers (web); input validation.

Report Structure (Same for Frontend and Backend)

  1. Header: Project / Repo name, Tech stack (language, framework, main version), Assessment date, Report version, Assessed by, Standards, Platform (Frontend / Backend), and for Frontend Scope (Mobile / Web / Mobile & Web).
  2. 1. Executive summary: Table 7 criteria (+ optional Performance), score X/10, rating; total score and overall rating.
  3. 1b. Risks / Critical findings (optional): 3–5 bullets summarizing critical risks or issues (security, data loss, compliance) — include when applicable.
  4. 2. Codebase statistics: Table(s) directory + file count + description.
  5. 3. Dependencies, Libraries & Framework Review (required): Framework version; key libraries and versions; outdated count/table; upgrade suggestions (safe / suggest / major); technical risks (deprecated, EOL, incompatibilities); security and vulnerabilities (audit results, CVEs, fix recommendations).
  6. 4. Strengths: Bullet list, evidence-based; optional (Criterion: content). Frontend: include Accessibility (a11y) when assessable; both: Performance and CI/CD when applicable.
  7. 5. Areas for improvement: Bullet list, specific issues.
  8. 6. Recommendations: 🔴 High / 🟡 Medium / 🟢 Low with concrete actions.
  9. 7. Conclusion: Summarize score, main strengths, improvement priorities.
  10. 8. Action items (optional): Immediate, Short-term, Long-term.
  11. 9. Architecture & Database Diagrams (optional but recommended): Mermaid diagrams showing system architecture and database schema (when applicable). Automatically generated based on codebase analysis.
  12. 10. Project Governance & PR Standards (required): Single governance table summarizing PR standards, git workflow, security, and process health.

Output Format

  • Use report_template_backend.md or report_template_frontend.md for exact headings and tables.
  • Section titles and content in English.
  • Replace all placeholders with real data; cite paths, files, and metrics.
  • Automatically generate Architecture and Database diagrams using Mermaid syntax (see Architecture & Database Diagrams section above).
  • For "Frontend vs Backend" or "mobile & web & backend": deliver two or three reports as above; optionally add a short comparison.
  • Always append the Project governance & PR standards table (defined below) after the main report body.

Export to Markdown File

When the user requests to export the report as a file, follow these steps:

  1. Generate the report following the standard template.
  2. Save as .md file: Write the full report to a markdown file (e.g. code-quality-report.md or {project-name}-quality-report.md) in the project root or a designated output directory.
  3. Mermaid diagrams: Keep diagrams in Mermaid code blocks — they render natively in GitHub, GitLab, and most markdown viewers.
  4. Ensure formatting:

- Headings use # hierarchy (# for title, ## for sections, ### for subsections) - Tables are properly formatted markdown tables - Code blocks use triple backticks with language tags - Priority indicators use emoji: 🔴 High, 🟡 Medium, 🟢 Low

  1. Filename convention: {project-name}-quality-report-{YYYY-MM-DD}.md (e.g. my-app-quality-report-2026-02-09.md)

Project Governance & PR Standards Table

For every report, include a single-row governance table summarizing PR standards, git workflow, security, and process health.

Table Template

Use a 2-column table (Field / Value) with exactly these rows and labels:

| Field | Value |
| --- | --- |
| Code quality PR creation standards, gitflow | [Short description of PR standards & gitflow] |
| Protect git branch and prevent master/main push/push force | [e.g. "protected", "partially protected", "not protected", "unknown"] |
| README | [e.g. "Up-to-date", "Out-of-date", "Missing", "Minimal"] |
| Architecture diagram? | [e.g. "Up-to-date", "Missing", "Partial"] |
| DB Diagram? | [e.g. "Up-to-date", "Missing", "Not applicable"] |
| Unit Test Coverage (%) | [e.g. "~60%", "Unknown", "Low (<30%)", "High (>80%)"] |
| API Key - Security (Ensure sensitive API keys and tokens are not exposed or stored directly in the source code.) | [e.g. "No vulnerabilities, secure error handling, no sensitive data leaks." or specific issues] |
| Linting & Formatting tool name | [e.g. "ESLint", "Biome", "Prettier", or "None detected"] |
| Error Tracking | [e.g. "Sentry", "Datadog", "None detected"] |
| CI/CD | [e.g. "CI/CD in place", "Manual only", "Unknown"] |
| Need more meetings with the team to improve? | [TRUE/FALSE based on whether more team process syncs seem needed] |
| Notes - Need any improvement (detail)? | [Short, concrete improvement notes] |
| Rating | [Star rating, e.g. "★★★★☆"] |

Example Filled Table

Use this as a reference example when interpreting the fields:

| Field | Value |
| --- | --- |
| Code quality PR creation standards, gitflow | The PR follows a clear and consistent structure |
| Protect git branch and prevent master/main push/push force | protected |
| README | Up-to-date but needs further improvement |
| Architecture diagram? | Up-to-date |
| DB Diagram? | Up-to-date |
| Unit Test Coverage (%) | ~60% |
| API Key - Security (Ensure sensitive API keys and tokens are not exposed or stored directly in the source code.) | No vulnerabilities, secure error handling, no sensitive data leaks. |
| Linting & Formatting tool name | ESLint |
| Error Tracking | Sentry |
| CI/CD | CI/CD |
| Need more meetings with the team to improve? | FALSE |
| Notes - Need any improvement (detail)? | - apply full biome linter<br>- There are still issues due to tech debt - the customer team is gradually resolving them. |
| Rating | ★★★★☆ |

When rendering Notes, it is acceptable to use <br> for line breaks.


Rating Guidelines for Governance Table

The Rating column uses a 1–5 star scale (including half-steps), for example:

  • ★★★★★ – Exceptional: industry-leading practices, strong automation, high coverage, low tech debt.
  • ★★★★☆ – Strong: generally high quality with some improvement areas; safe and maintainable.
  • ★★★☆☆ – Acceptable: working but with noticeable inconsistencies, automation/testing gaps, or architectural smells.
  • ★★☆☆☆ – Weak: significant issues in structure, security, or quality gates; focused investment required.
  • ★☆☆☆☆ – Critical: unsafe or unsustainable; requires immediate remediation.

When applicable, interpret the rating along four axes in your narrative:

  • Clarity: Code is easy to read, well-structured, with clear and meaningful names.
  • Process Compliance: Thoroughly reviewed, passes CI/CD, meets project requirements.
  • Efficiency: Acceptable performance relative to scope, with room for optimization as needed.
  • Consistency: Adherence to agreed style, patterns, and standards across the codebase.

Summarize why you chose the rating in 1–2 short sentences in the report body (e.g. in conclusion or recommendations).


Checklist Before Delivering

  • Platform chosen (Frontend vs Backend; if Frontend: Mobile / Web / Both) and correct template used
  • Header includes project/repo name and tech stack
  • All 7 criteria scored with Scoring Guide; total and overall rating computed; add Performance and/or Risks section if relevant
  • Codebase stats completed; Dependencies, Libraries & Framework Review section filled (framework version, key libs, outdated, upgrade suggestions, technical risks, security/vulnerabilities)
  • Architecture & Database Diagrams section included with Mermaid diagrams (Architecture diagram always; DB diagram for Backend or Frontend with DB)
  • Frontend: Accessibility considered when assessable; Backend/Frontend: Performance, CI/CD, observability mentioned when assessable
  • Strengths and improvements are evidence-based (file/code references)
  • Recommendations are prioritized and actionable
  • Conclusion matches scores and states next steps
  • Project governance & PR standards table is included and filled with the best available evidence (use Unknown rather than guessing when data is not visible)
  • If markdown export requested: report saved as .md file with proper formatting (headings, tables, code blocks, Mermaid diagrams)

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.98%
按下载量换算34

Claude

28.79%
按下载量换算26

Cursor

19.34%
按下载量换算17

Gemini CLI

10.41%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/khanhuitse05/my-ai-skill --skill code-quality-report 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills