validate-skill
Skill1 starsChanged 2 months agoMITView on GitHub
Validate the structure and completeness of an AI agent skill in this OHOS-Skills repository. Use when the user wants to check if a skill follows authoring conventions, verify frontmatter fields, confirm INDEX.md exists, or check boundary tables. Triggers include "validate skill", "check skill structure", "review skill", "is this skill correct", "skill checklist", or any task involving skill quality assurance in this repo.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- unional/skillstheir own version, first seen Nov 6, 2026
- Bioconductor/ai-agent-skillstheir own version, first seen Aug 18, 2026
- MSiccDev/ai-context-kittheir own version, first seen Jul 7, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- MSiccDev/ai-context-kit★ 12same name
- Bioconductor/ai-agent-skills★ 10same name
- unional/skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository16 other files it gives its agents.
- AGENTS.mdAGENTS.md
- arkts-buildSkill
- arkts-crash-diagnosisSkill
- arkts-debugSkill
- arkts-helperSkill
- arkts-ndk-devSkill
- arkui-x-devSkill
- atomic-service-devSkill
- create-app-iconSkill
- create-hmos-projectSkill
- harmony-designSkill
- harmony-fetchSkill
- hmos-flowSkill
- lite-simulator-debugSkill
- skill-authorSkill
- understand-hmosSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 5 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 19
Do not force this skill onto skill creation tasks — use skill-author for creating new skills.
- Distinctive: line 43
Verify the skill directory contains:
- Distinctive: line 53
Check the YAML frontmatter contains:
- Distinctive: line 68
Check the body contains these sections in order:
- Distinctive: line 105
Reverse: every other skill whose scope overlaps this one references it back.
- Distinctive: line 109
Run these as a script when available — they catch the most common defects mechanically:
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
validate-skill
Validate the structure and completeness of an AI agent skill following this repository's authoring conventions.
When to Use
- User wants to check if a skill directory has all required files
- User wants to verify SKILL.md frontmatter is correct
- User wants to confirm references/INDEX.md exists and is valid
- User wants to check boundary tables reference all other skills
- User asks "is this skill complete?" or "does this skill follow conventions?"
Do not force this skill onto skill creation tasks — use skill-author for creating new skills. Do not use this skill for HarmonyOS development content validation — use the domain skills instead.
Boundary with Other Skills
This skill covers structural validation, not content authoring or development tasks:
| Issue Type | Cross-reference Skill | Boundary |
| Creating or editing a skill | skill-author | This skill validates; skill-author creates |
| Writing/reviewing ArkTS code | arkts-helper | This skill does not validate ArkTS code content |
| Fixing ArkTS compilation errors | arkts-debug | This skill does not validate error fixes |
| Diagnosing runtime crashes | arkts-crash-diagnosis | This skill does not validate crash diagnosis |
| Building/deploying HarmonyOS apps | arkts-build | This skill does not validate build commands |
| NDK/C++ interop development | arkts-ndk-dev | This skill does not validate NDK code |
| Design-language guidance | harmony-design | This skill does not judge design content |
| App icon design/config | create-app-icon | This skill does not validate icon assets |
| Project comprehension | understand-hmos | This skill does not explain HarmonyOS projects |
| Project scaffolding | create-hmos-project | This skill does not create projects |
| Fetching online documentation | harmony-fetch | This skill does not fetch docs |
Workflow (Follow Strictly)
1. Check Directory Structure
Verify the skill directory contains:
SKILL.md(required)references/directory (required for offline-doc skills; exempt for online-type skills likeharmony-fetchand meta skills likeskill-author/validate-skillitself)references/INDEX.md(required wheneverreferences/exists)assets/directory (optional, but if code examples are referenced in SKILL.md, it must exist)scripts/directory (optional, only if SKILL.md references utility scripts)
2. Validate SKILL.md Frontmatter
Check the YAML frontmatter contains:
name: matches the directory name exactlydescription: comprehensive trigger condition with keywords, error codes, API names, and scenarios- Optional fields (
version,license,metadata) are correctly formatted if present
Description quality check: The description should be detailed enough that the agent activates this skill for all relevant scenarios. Check for:
- Specific error codes or messages (if applicable)
- API names, decorators, classes (if applicable)
- Scenario keywords and synonyms
- Related concepts
3. Validate SKILL.md Body Sections
Check the body contains these sections in order:
# Skill Name— title with one-line purpose statement## When to Use— bullet list of activation scenarios## Boundary with Other Skills— table with three columns: Issue Type | Cross-reference Skill | Boundary## Workflow (Follow Strictly)— numbered steps
Boundary table check: The table must reference the repo skills where boundaries exist. The current domain-skill inventory is listed in the repo root README.md (Skills table) — keep that table as the single source of truth instead of hardcoding names here. Every skill referenced in a boundary table must exist as a directory in this repo (a reference to a skill that is only installed user-side, e.g. an old standalone name, is a defect). If a boundary doesn't apply, it should be omitted (not forced).
4. Validate references/INDEX.md
Check INDEX.md contains:
> **Must read first**note at the top## Document Rolestable listing every doc file and its role## Reading Paths by Scenariotable mapping scenarios to required reading- Each file listed in Document Roles actually exists in
references/
5. Validate Reference Documents
For each doc in references/ (excluding INDEX.md), the source header must use one of the AGENTS.md-sanctioned forms:
- Standard:
> **上游 URL**: ...and> **抓取时间**: YYYY-MM-DD - Enhanced:
> 来源:官方《标题》(URL)(版本号),核实于 YYYY-MM-DD(adds verified doc version) - Aggregated form (catalog-level URL, e.g.
聚合自 ... catalog) is acceptable for skills that merge many leaf docs - Original-authored content (no upstream, e.g. curated error catalogs) and online-type skills (no offline
references/) are exempt — see AGENTS.md
6. Validate Code Examples (if assets/ exists)
- Each
.etsfile has BAD vs GOOD pattern with clear labels - Each file is minimal and focused on one error/fix
7. Check Boundary Consistency
For each other skill in the repo, check that its ## Boundary with Other Skills table references this skill where appropriate. If this skill is new, the other skills' boundary tables may need updating. Two directions must hold:
- Forward: this skill's boundary table only references skills that exist in the repo.
- Reverse: every other skill whose scope overlaps this one references it back.
8. Scriptable Checks (preferred before manual review)
Run these as a script when available — they catch the most common defects mechanically:
- Frontmatter
nameequals the directory name - Every skill name referenced in SKILL.md/INDEX.md body has a matching repo directory
- Every relative file link in SKILL.md / INDEX.md resolves to an existing file
- INDEX.md "Document Roles" lists only files that exist under
references/ - Every
references/*.mdhas a source header (standard or enhanced form, see AGENTS.md) - Every
assets/*.etscontains BAD and GOOD markers
9. Report Findings
Summarize the validation results as a checklist:
## Validation Report: <skill-name>
### Structure
- [x] SKILL.md exists
- [x] references/ directory exists
- [x] references/INDEX.md exists
- [ ] assets/ directory exists (referenced in SKILL.md but missing)
### Frontmatter
- [x] name matches directory
- [x] description is comprehensive
- [ ] version field is missing
### Body Sections
- [x] When to Use section present
- [x] Boundary table present and references other skills
- [ ] Workflow section is missing
### INDEX.md
- [x] Must read first note present
- [x] Document Roles table complete
- [x] All listed files exist
### Reference Documents
- [x] All docs have source URL and timestamp
- [ ] 03-topic.md is missing fetch timestamp
### Boundary Consistency
- [ ] arkts-helper boundary table does not reference this skillList any issues found and suggest fixes.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

