sequenzia/agent-alchemy/validate-adapter
Claude Code and agent skill by sequenzia/agent-alchemy
- community
Checking that the SKILL.md file is still in the repository.
Validates adapter files against live platform documentation to detect stale mappings,missing features, and outdated version information
Install
npx vskill@latest install sequenzia/agent-alchemy/validate-adapterSKILL.md
The same SKILL.md was published earlier as sequenzia/agent-alchemy/validate-adapter.
Validate Adapter
Validate an adapter file against live platform documentation to detect stale mappings, missing features, and outdated version information. Optionally apply updates in-place when the --update flag is provided.
CRITICAL: Complete ALL 4 phases. The workflow is not complete until Phase 4: Report & Apply is finished. After completing each phase, immediately proceed to the next phase without waiting for user prompts.
Critical Rules
AskUserQuestion is MANDATORY
IMPORTANT: You MUST use the AskUserQuestion tool for ALL questions to the user. Never ask questions through regular text output.
- Summary and confirmation -> AskUserQuestion
- Report presentation -> AskUserQuestion
- Action selection -> AskUserQuestion
- Removal decisions -> AskUserQuestion
Text output should only be used for:
- Displaying progress updates between phases
- Presenting intermediate analysis results
- Explaining context or classification reasoning
If you need the user to make a choice or provide input, use AskUserQuestion.
NEVER do this (asking via text output):
ALWAYS do this (using AskUserQuestion tool):
Composability
This skill can be invoked standalone via /validate-adapter or loaded as a sub-workflow by other skills (e.g., update-ported-plugin). When loaded as a sub-workflow:
- The caller may only need Phases 1-3 (the analysis) and not Phase 4 (the interactive report)
- If the caller has already set
SKIP_REPORT = truein context, stop after Phase 3 and return the validation report data structure to the caller - If no
SKIP_REPORTflag is present, execute all 4 phases (standalone behavior)
Plan Mode Behavior
CRITICAL: This skill performs an interactive validation workflow, NOT an implementation plan. When invoked during Claude Code's plan mode:
- DO NOT create an implementation plan for how to build the validation feature
- DO NOT defer validation to an "execution phase"
- DO proceed with the full validation workflow immediately
- DO write updated adapter files or reports as normal
Phase Overview
Execute these phases in order, completing ALL of them:
- Load & Parse - Parse arguments, read adapter format spec and adapter file
- Platform Research - Spawn researcher agent to investigate current platform state
- Compare & Analyze - Compare adapter sections against research findings
- Report & Apply - Present findings and optionally update the adapter
Phase 1: Load & Parse
Goal: Parse arguments, load the adapter format specification, read the target adapter file, and extract its current state.
Step 1: Parse Arguments
Parse $ARGUMENTS for:
--target <platform>-- Target platform slug (default:opencode)--update-- Enable in-place update mode (default:false)
Set TARGET_PLATFORM from --target value (default: opencode). Set UPDATE_MODE from --update flag (default: false).
Step 2: Load Adapter Format Specification
Read the adapter format reference to understand the expected 9-section structure:
Record the 9 required/optional sections:
- Platform Metadata
- Directory Structure
- Tool Name Mappings
- Model Tier Mappings
- Frontmatter Translations
- Hook/Lifecycle Event Mappings
- Composition Mechanism
- Path Resolution
- Adapter Version
Step 3: Load Adapter File
Read the adapter file for the target platform:
Error handling -- adapter not found:
If the adapter file does not exist:
- Use Glob to list available adapters:
`` Glob: ${CLAUDE_PLUGIN_ROOT}/references/adapters/*.md ``
- Present available options:
```yaml AskUserQuestion: questions:
- header: "Adapter Not Found"
question: "No adapter found for '${TARGET_PLATFORM}'. Which adapter would you like to validate?" options:
- label: "{adapter-1}"
description: "Adapter file: {adapter-1}.md"
- label: "{adapter-2}"
description: "Adapter file: {adapter-2}.md" multiSelect: false ```
- If no adapters exist at all, inform the user and exit:
`` ERROR: No adapter files found in ${CLAUDE_PLUGIN_ROOT}/references/adapters/. Create an adapter first using /port-plugin or manually following the adapter format spec. ``
Step 4: Parse Adapter Sections
Parse all 9 sections from the adapter file by matching H2 (##) headers against the section names defined in the adapter format specification.
For each section found:
- Record section name, start line, end line, and raw content
- Count the number of table rows / list entries / code block entries (these are the "entries" for classification)
For each expected section NOT found:
- Record it as missing from the adapter
Step 5: Extract Metadata
From the Adapter Version section (Section 9), extract:
adapter_version-- semver version of this adapter filetarget_platform_version-- version of the platform the adapter was written forlast_updated-- ISO 8601 date of last review/update
If any of these fields are missing, record them as unknown.
Step 6: Present Summary and Confirm
If the user selects "Cancel", exit the workflow.
Phase 2: Platform Research
Goal: Spawn the researcher agent to gather current platform documentation and compare against the adapter.
Step 1: Spawn Researcher Agent
Spawn the researcher agent using the Task tool with subagent_type: "agent-alchemy-plugin-tools:researcher":
Retry logic: If the Task tool call fails (agent error, timeout, or empty response), retry once automatically. If the retry also fails, proceed to research failure handling in Step 3.
Step 2: Process Research Findings
When the researcher agent returns its platform profile:
- Store the full response as
RESEARCH_FINDINGS - Extract key data points:
research_platform_version-- current platform version found by researchdocumentation_quality-- excellent/good/fair/poor/noneoverall_confidence-- high/medium/lowsources_consulted-- count and list of sourcesstale_mappings-- list from the Adapter Comparison sectionmissing_mappings-- list from the Adapter Comparison section
- Display brief research summary as a progress update (text output, not AskUserQuestion):
``` Research complete:
- Documentation quality: ${documentation_quality}
- Overall confidence: ${overall_confidence}
- Sources consulted: ${sources_count} (${official_count} official, ${community_count} community)
- Platform version found: ${research_platform_version} (adapter targets: ${target_platform_version})
```
Step 3: Handle Research Failure
If the researcher agent fails or returns empty results:
- Inform the user of the failure
- Offer options:
```yaml AskUserQuestion: questions:
- header: "Research Failed"
question: "The researcher agent could not gather platform documentation. How would you like to proceed?" options:
- label: "Retry research"
description: "Spawn the researcher agent again"
- label: "Manual validation"
description: "Skip research; validate adapter structure only (no staleness detection)"
- label: "Cancel"
description: "Cancel the validation workflow" multiSelect: false ```
- If "Retry research": go back to Step 1
- If "Manual validation": proceed to Phase 3 with empty research findings (all entries will be classified as "Uncertain")
- If "Cancel": exit the workflow
Phase 3: Compare & Analyze
Goal: Compare each adapter section against research findings and classify every entry.
Step 1: Section-by-Section Comparison
For each of the 9 adapter sections, compare the adapter content against the research findings.
Special handling for low-confidence research: If the researcher reported overall_confidence: low for an entire topic area, or if the Adapter Comparison section has no data for a given adapter section, mark the entire section as Uncertain rather than making unreliable per-entry classifications.
Step 2: Classify Entries
For each mapping/entry in each adapter section, classify it as one of:
| Classification | Meaning | Criteria | |
|---|---|---|---|
| Current | Matches research findings | Adapter value aligns with what research found; no changes needed | |
| Stale | Outdated information | Research has newer/different data for this entry; adapter needs updating | |
| Missing | Not in adapter | Platform has features/capabilities that the adapter does not cover | |
| Removed | No longer supported | Adapter references features the platform has deprecated or removed | |
| Uncertain | Cannot determine | Research confidence is low; unable to reliably classify this entry |
Classification rules by section:
Platform Metadata:
- Compare
documentation_url,repository_url,plugin_docs_urlagainst research-discovered URLs - Check if
notesstill accurately describe the platform status - Flag URL changes as Stale; flag removed URLs as Removed
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingclaude/plugin-tools/skills/validate-adapter/SKILL.md
Popularity
- Repository stars
- 43
- Repository forks
- 7
- 7-day trend score
- 19
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 28 Aug 2026, 3 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/sequenzia/agent-alchemy/validate-adapter)