R011: testsuite重复

Official

Detect and fix duplicate XTS describe() names

Authoropenharmonyinsight
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill finds duplicate XTS testsuite identifiers caused by repeated top-level describe() names within the same independent XTS project, which can break test clarity and tooling expectations.

Core Features & Use Cases

  • Independent XTS project boundary detection: Automatically treats an independent XTS project as the non-group BUILD.gn directory that contains BUILD.gn and test files, then avoids cross-project false positives.
  • Duplicate describe() detection per project: Scans all direct test files in the project root and extracts the first describe() string argument to detect duplicates.
  • Actionable fix suggestions with deterministic naming: Reports the first occurrence location and suggests renaming later duplicates by appending Adapt + a zero-padded 3-digit number (e.g., Adapt001, Adapt002).
  • Targeted output strategy: Emits one issue per duplicated name group, referencing the first occurrence and listing other duplicate locations.

Quick Start

Ask the AI to run the R011 testsuite-duplication scan for your XTS project directory and return a list of duplicate describe() names with exact file:line locations and rename suggestions.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: R011: testsuite重复
Download link: https://github.com/openharmonyinsight/openharmony-skills/archive/main.zip#r011-testsuite

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.