Agent skill
commands-arustydev-ai-4
Validate a convert-X-Y skill against meta-convert-dev (structure) and meta-convert-guide (content), create issues for gaps, update reference tables
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/commands-arustydev-ai-4
SKILL.md
Validate Language Conversion Skill
Validate a convert-X-Y skill against meta-convert-dev (structure) and meta-convert-guide (content quality) standards, automatically create GitHub issues for deviations/gaps, and update reference tables in the meta-skills.
Arguments
$1- Skill name (e.g.,convert-python-rust,convert-typescript-golang)
Quick Reference
| Step | Action | Output |
|---|---|---|
| 1 | Validate skill exists | Error if not found |
| 2 | Check structure compliance | Deviations list |
| 3 | Validate 8 Pillars coverage | Coverage score |
| 4 | Check content quality | Quality report |
| 5 | Create issues for gaps | Issue links |
| 6 | Update meta-convert-dev tables | Diff of changes |
| 7 | Report summary | Validation report |
Workflow
Step 1: Locate and Read Skill
- Construct skill path:
components/skills/$1/SKILL.md - Verify file exists
- Read the skill file completely
- Extract source and target languages from skill name
SKILL_PATH="components/skills/$1/SKILL.md"
# Extract languages: convert-python-rust → python, rust
SOURCE=$(echo "$1" | sed 's/convert-//' | cut -d'-' -f1)
TARGET=$(echo "$1" | sed 's/convert-//' | cut -d'-' -f2-)
If skill not found, report error and exit:
## Error: Skill Not Found
Skill `$1` not found at `components/skills/$1/SKILL.md`
**Available conversion skills:**
[List from components/skills/convert-*/]
Step 2: Read Meta-Skills for Comparison
Read both meta-skills to understand validation criteria:
-
components/skills/meta-convert-dev/SKILL.md- Skill structure:- Required sections
- Naming conventions
- Reference tables to update
-
components/skills/meta-convert-guide/SKILL.md- Content quality:- APTV workflow coverage
- 8 Pillars content expectations (see
reference/directory) - Example quality standards (see
examples/directory)
Step 3: Validate Structure Compliance
Check for required sections (each must exist as ## Section Name):
| Section | Required | Check |
|---|---|---|
| Frontmatter (name, description) | Yes | Valid YAML |
| This Skill Extends | Yes | References meta-convert-dev |
| This Skill Adds | Yes | Lists additions |
| This Skill Does NOT Cover | Yes | Scope boundaries |
| Quick Reference | Yes | Type mapping table |
| Type System Mapping | Yes | Primitives, Collections, Composites |
| Idiom Translation | Yes | At least 3 patterns |
| Error Handling | Yes | Error model translation |
| Concurrency Patterns | Yes | Async model translation |
| Memory & Ownership | Conditional | If GC↔ownership conversion |
| Paradigm Translation | Conditional | If paradigm shift |
| Common Pitfalls | Yes | At least 5 pitfalls |
| Examples | Yes | Simple, Medium, Complex |
| See Also | Yes | Related skills |
Record deviations:
### Structure Deviations
| Section | Status | Issue |
|---------|--------|-------|
| <section> | Missing/Incomplete | <description> |
Step 4: Validate 8 Pillars Coverage
For each pillar, check if the skill addresses the translation. Reference meta-convert-guide for detailed pillar expectations:
| Pillar | Search Terms | Weight | Reference Guide |
|---|---|---|---|
| Module | import, export, module, visibility | 1 | reference/type-system-mapping.md |
| Error | Result, Exception, error handling | 1 | reference/error-handling.md |
| Concurrency | async, await, thread, channel | 1 | reference/concurrency.md |
| Metaprogramming | decorator, macro, annotation | 1 | reference/metaprogramming.md |
| Zero/Default | null, None, Option, default | 1 | reference/type-system-mapping.md |
| Serialization | JSON, serde, marshal | 1 | reference/serialization.md |
| Build | Cargo, npm, package.json | 1 | reference/dependency-management.md |
| Testing | test, describe, assert | 1 | FORMS.md |
Score calculation:
- ✓ Full section with examples: 1.0
- ~ Mentioned but limited: 0.5
- ✗ Not covered: 0.0
Record coverage:
### 8 Pillars Coverage
| Pillar | Status | Score | Notes |
|--------|--------|-------|-------|
| Module | ✓/~/✗ | X.X | <notes> |
...
| **Total** | | **X.X/8** | |
Step 5: Validate Content Quality
Check quality indicators against meta-convert-guide examples as reference:
| Quality Check | Criteria | Pass/Fail |
|---|---|---|
| Type mappings | At least 15 primitive/composite mappings | |
| Idiom examples | Each has source, target, and "why" | |
| Code correctness | Examples use valid syntax | |
| Pitfalls | Specific to language pair, not generic | |
| Example progression | Simple (5-15 lines), Medium (20-40), Complex (50-100) |
Step 6: Create Issues for Gaps
For each deviation or gap found, create a GitHub issue:
Issue title format:
feedback($1): <gap-description>
Issue body template:
## Gap Identified
**Skill:** `$1`
**Category:** [Structure/Pillar/Quality]
**Severity:** [Critical/Major/Minor]
### Description
<detailed description of the gap>
### Expected
<what the skill should have>
### Current
<what the skill currently has>
### Suggested Fix
<how to address the gap>
---
Generated by: `/validate-lang-conversion-skill $1`
Create issues using:
gh issue create --repo aRustyDev/ai \
--title "feedback($1): <gap>" \
--body "<body>"
Collect all created issue URLs for the report.
Step 7: Update Meta-Convert-Dev Tables
Update the following tables in components/skills/meta-convert-dev/SKILL.md:
7.1 Existing Conversion Skills Table
Locate the table under "Existing Conversion Skills" and ensure this skill is listed:
| Skill | Description |
|-------|-------------|
| `$1` | <Source> → <Target> (<key challenges>) |
7.2 Skill Categories Table
Determine the category and add if not present:
| Category | Criteria |
|---|---|
| Static → Static | Both statically typed |
| Dynamic → Static | Source dynamic, target static |
| Static → Dynamic | Source static, target dynamic |
| Dynamic → Dynamic | Both dynamic |
| GC → Ownership | Source GC, target ownership |
| OOP → Functional | Paradigm shift |
| Platform Migration | Different runtime platforms |
7.3 Difficulty Assessment (if Step 3.5 exists in create-lang-conversion-skill)
Calculate difficulty score using the matrix:
| Factor | Source→Target Analysis | Score |
|---|---|---|
| Type System | same/mixed/opposite | +0/+1/+2 |
| Paradigm | same/related/opposite | +0/+1/+2 |
| Memory Model | same/different/opposite | +0/+1/+2 |
| Concurrency | same/related/different | +0/+1/+2 |
| Ecosystem | same/related/different | +0/+1/+2 |
Add to difficulty examples table if not present.
Step 8: Report Summary
Generate final validation report:
## Validation Report: $1
### Overview
| Metric | Value |
|--------|-------|
| Skill | `$1` |
| Source → Target | <Source> → <Target> |
| Validation Date | <date> |
| Overall Status | ✓ Pass / ⚠ Needs Work / ✗ Fail |
### Structure Compliance
| Required Sections | Present | Missing |
|-------------------|---------|---------|
| Count | X/Y | [list] |
### 8 Pillars Score
**Score: X.X/8**
| Pillar | Status |
|--------|--------|
| ... | ✓/~/✗ |
### Quality Metrics
| Metric | Value | Target |
|--------|-------|--------|
| Type mappings | X | ≥15 |
| Idiom patterns | X | ≥4 |
| Pitfalls | X | ≥5 |
| Examples | X | 3 |
### Issues Created
| Issue | Title | Severity |
|-------|-------|----------|
| #XXX | <title> | <severity> |
### Tables Updated
- [ ] Existing Conversion Skills table
- [ ] Skill Categories table
- [ ] Difficulty Assessment table
### Recommendations
1. <recommendation 1>
2. <recommendation 2>
Examples
/validate-lang-conversion-skill convert-python-rust
/validate-lang-conversion-skill convert-typescript-golang
/validate-lang-conversion-skill convert-clojure-elixir
Notes
- This command may modify
meta-convert-dev/SKILL.mdtables - changes should be committed - Validates structure against
meta-convert-devand content quality againstmeta-convert-guide - Issues are created with the
feedback($1):prefix for easy filtering - Run after creating a new conversion skill or after major updates
- Use with
/create-lang-conversion-skillfor a complete workflow
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?