Logo van Validate Component

Validate Component

Community
jmagly
validate-component

Validate a single AIWG component (skill, agent, or command) for completeness and correctness

Overzicht

Uitgeverjmagly
Repositoryaiwg
Skillnaamvalidate-component
Sterren
225
Forks
34
Meegeleverde bestanden
Alleen instructies
LicentieMIT
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Compleet zonder extra bestanden

    Alles wat het model nodig heeft, staat in de instructies — geen extra bestanden om te synchroniseren.

  • Open source

    Gepubliceerd door jmagly op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Validate Component in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/jmagly/aiwg/tree/main/agentic/code/addons/aiwg-dev/skills/validate-component
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/jmagly/aiwg.git /tmp/aiwg
mkdir -p .claude/skills
cp -r /tmp/aiwg/agentic/code/addons/aiwg-dev/skills/validate-component .claude/skills/validate-component
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Validate Component in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Validate Component automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Validate Component niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

Validate Component

You check a single AIWG component — a skill, agent, or CLI command — for completeness and correctness, then produce a structured pass/fail report with specific gaps listed.

Triggers

  • "validate this skill" → check the skill in the current directory or named path
  • "is this component complete" → run completeness check
  • "check this agent" → validate agent frontmatter and manifest registration
  • "validate component at " → validate the named path
  • "is this command wired up correctly" → check CLI command completeness
  • "pre-PR check on this skill" → run validate-component

Trigger Patterns Reference

PatternExampleAction
Validate skill"validate this skill"Run skill completeness checks
Validate agent"check this agent definition"Run agent completeness checks
Validate command"is this command wired up"Run command completeness checks
Path-specific"validate component at agentic/code/addons/my-addon/skills/my-skill"Validate at given path
Pre-PR"pre-PR check on this component"Run all applicable checks

Process

  1. Identify component type and path:

    • If no path is given, check the current working directory or the most recently edited file
    • Detect type from directory structure:
      • Path contains skills/<name>/SKILL.md → skill
      • Path contains agents/<name>.md or agents/<name>/ → agent
      • Component name appears in src/extensions/commands/definitions.ts → command
  2. Run type-appropriate checks:

    For a Skill:

    • Read the SKILL.md file
    • Check: description: field present in YAML frontmatter
    • Check: # Title section present
    • Check: ## Behavior or ## Process section present
    • Check: At least one ## Examples entry
    • Find the parent addon's manifest.json (walk up directory tree)
    • Check: Skill name listed in manifest.json skills array
    • Check: File lives in agentic/code/ (not in a provider deployment directory)
    • If SKILL.md contains executedViaSkillRunner: true reference: check for circular CLI call pattern
    • Full link classification check (see Link Classification below)

    For an Agent:

    • Read the agent .md file
    • Check: YAML frontmatter block present
    • Check: name: field in frontmatter
    • Check: description: field in frontmatter
    • Check: model: field in frontmatter
    • Check: tools: field in frontmatter
    • Find parent addon's manifest.json
    • Check: Agent listed in manifest.json agents array
    • Check: File lives in agentic/code/
    • Full link classification check (see Link Classification below)

    Link Classification (applies to all component types):

    Extract every @<path> reference from the file and classify:

    PatternResultMessage
    @$AIWG_ROOT/<path>PASSAIWG core ref (install-relative)
    @$TOKEN/<path> — TOKEN set in envPASSRegistered corpus token
    @$TOKEN/<path> — TOKEN NOT in envWARNenv var TOKEN not set; add to .env or export
    @.aiwg/<path> — path in Tier 1/2 allowlistPASSNormalized project memory
    @.aiwg/<path> — not in any memory.createsFAILnon-normalized .aiwg/ path — repo-local only
    @.claude/<path>FAILdeployment target — forbidden in distributable source
    @agentic/code/<path>WARNlegacy bare ref — migrate to @$AIWG_ROOT/agentic/code/
    @src/<path>WARNlegacy bare ref — migrate to @$AIWG_ROOT/src/
    @docs/<path>WARNlegacy bare ref — migrate to @$AIWG_ROOT/docs/
    @tools/<path>WARNlegacy bare ref — migrate to @$AIWG_ROOT/tools/
    Relative path within componentPASSLocal ref

    Build the Tier 2 allowlist by reading all manifest.json files in agentic/code/ and collecting memory.creates[*].path values. Combine with Tier 1 (.aiwg/AIWG.md, .aiwg/frameworks/).

    For a CLI Command:

    • Read src/extensions/commands/definitions.ts
    • Check: Command entry exists in definitions
    • Check: Command has either executedViaSkillRunner: true OR a handler entry
    • If executedViaSkillRunner: true: find the associated SKILL.md and verify it does not contain aiwg <command-name> in any bash block
    • If handler expected: check src/cli/handlers/ for the handler file and registration in allHandlers
  3. Compile report:

    Format results as a structured report:

    Component Validation: <component-name> (<type>)
    Path: <absolute-or-relative-path>
    
    Checks:
      PASS  description frontmatter present
      PASS  title section present
      PASS  behavior section present
      FAIL  no examples section found
      PASS  listed in manifest.json
      FAIL  not in agentic/code/ (found in .claude/skills/ — placement violation)
      WARN  @.aiwg/planning/my-design.md is not a normalized path (repo-local only)
    
    Result: FAIL — 2 issues found
    
    Required actions:
      1. Add ## Examples section to SKILL.md
      2. Move SKILL.md to agentic/code/addons/<addon>/skills/<name>/SKILL.md
         then re-deploy with: aiwg use <addon>
  4. Surface the report to the user with the result line prominent.

Examples

Example 1: Valid skill

User: "Validate the doctor skill"

Action: Read agentic/code/addons/aiwg-utils/skills/doctor/SKILL.md, find parent manifest, run all checks.

Output:

Component Validation: doctor (skill)
Path: agentic/code/addons/aiwg-utils/skills/doctor/SKILL.md

Checks:
  PASS  description frontmatter present
  PASS  title section present
  PASS  behavior section present
  PASS  examples section present
  PASS  listed in aiwg-utils manifest.json
  PASS  lives in agentic/code/

Result: PASS — all checks passed

Example 2: Incomplete skill with placement violation

User: "validate component at .claude/skills/my-new-skill"

Action: Read SKILL.md, check for completeness, check placement.

Output:

Component Validation: my-new-skill (skill)
Path: .claude/skills/my-new-skill/SKILL.md

Checks:
  PASS  description frontmatter present
  FAIL  no ## Behavior or ## Process section
  FAIL  no ## Examples section
  FAIL  placement violation: .claude/skills/ is a deployment target
  FAIL  not found in any manifest.json

Result: FAIL — 4 issues found

Required actions:
  1. Add ## Behavior section to SKILL.md
  2. Add ## Examples section to SKILL.md
  3. Move to agentic/code/addons/<your-addon>/skills/my-new-skill/SKILL.md
  4. Add "my-new-skill" to your addon's manifest.json skills array
  5. Run `aiwg use <addon>` to deploy

Example 3: Circular skill-executed command

User: "check the my-command command"

Action: Read definitions.ts, find executedViaSkillRunner: true, read associated SKILL.md, search for aiwg my-command.

Output:

Component Validation: my-command (command)
Path: src/extensions/commands/definitions.ts

Checks:
  PASS  definition entry present in definitions.ts
  PASS  executedViaSkillRunner: true (no TypeScript handler required)
  FAIL  circular call detected: SKILL.md contains "aiwg my-command" in bash block (line 47)

Result: FAIL — 1 issue found

Required actions:
  1. Rewrite SKILL.md to perform work directly via Read/Write/Bash/Task tools
     without calling back into `aiwg my-command`
  See: agentic/code/addons/aiwg-dev/rules/no-circular-skill-calls.md

References

  • @$AIWG_ROOT/agentic/code/addons/aiwg-dev/rules/component-completeness.md — Full completeness requirements
  • @$AIWG_ROOT/agentic/code/addons/aiwg-dev/rules/skill-placement.md — Placement requirements
  • @$AIWG_ROOT/agentic/code/addons/aiwg-dev/rules/no-circular-skill-calls.md — Circular call detection
  • @$AIWG_ROOT/agentic/code/addons/aiwg-dev/rules/aiwg-dir-reference-contract.md — Normalized .aiwg/ path contract
  • @$AIWG_ROOT/src/extensions/commands/definitions.ts — Command definition registry

Veelgestelde vragen

Wat doet de AI-skill Validate Component?

Validate a single AIWG component (skill, agent, or command) for completeness and correctness

Waarom Validate Component gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Validate Component bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Validate Component in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/jmagly/aiwg/tree/main/agentic/code/addons/aiwg-dev/skills/validate-component. TypingMind leest het bestand SKILL.md en installeert het als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Validate Component gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Validate Component gebruiken?

Zoveel als je wilt. Je kunt Validate Component gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Validate Component gratis?

Ja. Deze skill is door jmagly op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇