Claude Code Plugins

Community-maintained marketplace

Feedback

code-validator

@nera0875/agi
0
0

Valide agents/skills/commands - tailles et structure

Install Skill

1Download skill
2Enable skills in Claude

Open claude.ai/settings/capabilities and find the "Skills" section

3Upload to Claude

Click "Upload skill" and select the downloaded ZIP file

Note: Please verify skill by going through its instructions before using it.

SKILL.md

name code-validator
description Valide agents/skills/commands - tailles et structure
type implementation

Concept

Code quality validator - ensures agents/skills/commands meet size limits.

Validation Rules

Agents (BASE ≤30 lignes, AJOUT ≤30 lignes justifiés):

for agent in agents/*.md:
  lines=$(wc -l < "$agent")

  # Si ≤30 lignes → OK direct
  [ $lines -le 30 ] && continue

  # Si >30 lignes → vérifier marqueurs AJOUT
  ajouts=$(grep -c "<!-- AJOUT" "$agent")
  [ $ajouts -eq 0 ] && error "Agent >30 lignes sans marqueur AJOUT"

  # Vérifier chaque AJOUT justifié (date + raison + count)
  grep "<!-- AJOUT [0-9-]*:.*([0-9]* lignes)" "$agent" || error "AJOUT format invalide"

  grep -q "^---$" "$agent" || error "Missing frontmatter"

Skills (≤50 if implementation, unlimited if documentation):

for skill in skills/*/SKILL.md:
  type=$(grep "^type:" "$skill" | grep "implementation" && echo "impl" || echo "doc")
  [ "$type" = "doc" ] && continue
  [ $(wc -l < "$skill") -le 50 ] || error "Skill exceeds 50"

Naming (kebab-case):

find . -name "*.md" | grep -E '[A-Z_]|[^a-z0-9-]' && error "Invalid naming"

No Parasites:

find . -type f \( -name "*.backup" -o -name "*.old" -o -name "*.tmp" \)

Return Format

{
  "status": "valid",
  "agents": 5,
  "skills": 14,
  "commands": 0,
  "errors": []
}