R017: syscap.json配置多个能力
OfficialEnsure only one syscap capability per XTS project
System Documentation
What problem does it solve?
R017 detects misconfigured XTS projects where syscap.json declares multiple syscap capabilities, which violates the rule that an XTS engineering unit should map to only one capability for the tested API.
Core Features & Use Cases
- Validates syscap.json capability count: Scans only syscap.json and flags any case where devices.custom[].xts contains more than one syscap entry.
- Pinpoints the offending file and line: Produces issue reports with the file path and an estimated line number by locating the first xts capability occurrence.
- Guides safe remediation: Recommends removing all but the syscap capability corresponding to the API under test.
Use case example: An XTS project whose syscap.json lists both AbilityRuntime.Core and AbilityRuntime.FAModel is likely to produce incorrect coverage and analysis; R017 will identify this and instruct you to keep only the capability for the targeted API.
Quick Start
Ask an AI assistant to run R017 against the XTS project directory and report any syscap.json files where devices.custom[].xts contains multiple capabilities.
Dependency Matrix
Required Modules
None requiredComponents
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: R017: syscap.json配置多个能力 Download link: https://github.com/openharmonyinsight/openharmony-skills/archive/main.zip#r017-syscap-json Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.