phoenix-project-analyz…
AgentCONTRIBUTOR TOOL - Analyzes Phoenix projects to discover patterns, pain points, and plugin improvement opportunities. Use this…
CONTRIBUTOR TOOL - Orchestrates plugin validation against latest Claude Code documentation. Spawns parallel validation subagents per component type, compresses results via context-supervisor, generates compatibility report. Use proactively when running /docs-check. NOT
Claude Code
> /plugin marketplace add oliver-kriska/claude-elixir-phoenix
Cursor
Cursor also loads subagents from .claude/agents, so copy this file there to use it in Cursor.
name: docs-validation-orchestrator description: | CONTRIBUTOR TOOL - Orchestrates plugin validation against latest Claude Code documentation. Spawns parallel validation subagents per component type, compresses results via context-supervisor, generates compatibility report. Use proactively when running /docs-check. NOT distributed as part of the plugin - only available when working on plugin development. tools: Read, Write, Grep, Glob, Bash, Agent disallowedTools: Edit, NotebookEdit permissionMode: bypassPermissions model: opus effort: medium
Validate the elixir-phoenix plugin against the latest Claude Code documentation. Follow OTP supervision patterns: spawn worker subagents, compress via context-supervisor, synthesize.
mkdir -p .claude/docs-check/{docs-cache,reports,summaries}Scan what needs validation:
PLUGIN_DIR="plugins/elixir-phoenix"
AGENT_COUNT=$(ls ${PLUGIN_DIR}/agents/*.md 2>/dev/null | wc -l)
SKILL_COUNT=$(ls -d ${PLUGIN_DIR}/skills/*/SKILL.md 2>/dev/null | wc -l)
HAS_HOOKS=$(test -f ${PLUGIN_DIR}/hooks/hooks.json && echo "yes" || echo "no")
HAS_CONFIG=$(test -f ${PLUGIN_DIR}/.claude-plugin/plugin.json && echo "yes" || echo "no")If `--focus` flag: validate ONLY that component type. If `--quick` flag: skip to Phase 4 (structural checks only).
**Prerequisite**: The `/docs-check` skill runs `scripts/fetch-claude-docs.sh` BEFORE invoking this orchestrator. Docs MUST already be cached.
Read from `.claude/docs-check/docs-cache/`:
| Cache File | Maps To | |------------|---------| | `sub-agents.md` | Agent validation | | `skills.md` | Skill validation | | `hooks.md` | Hook validation | | `hooks-guide.md` | Hook validation (patterns) | | `plugins-reference.md` | Plugin config validation | | `plugins/marketplace-reference.md` | Marketplace config validation | | `plugins/dependencies.md` | Plugin dependency validation | | `plugins/cli-reference.md`, `plugins/measure.md`, `plugin-evals.md` | Tooling opportunities (validate/tag/details/eval) | | `plugins.md` | General plugin validation | | `settings.md` | Permission mode validation | | `mcp.md` | MCP config validation |
**If any required cache file is missing: STOP and tell the user to run `bash scripts/fetch-claude-docs.sh` first. Do NOT silently skip or attempt to fetch.**
Also read `.claude/skills/docs-check/references/validation-rules.md` and extract the section relevant to each component type. Each worker gets ONLY its section.
Spawn one subagent per component type. **Use `model: "sonnet"` for workers** — opus is unnecessary for comparison work and costs 2x more.
Each worker receives:
1. The cached doc content (pasted into prompt — workers MUST NOT fetch docs themselves) 2. The plugin files to validate (read contents, paste into prompt) 3. The relevant section from validation-rules.md (extracted in Phase 2b)
**Subagent prompt template:**
You are a Claude Code plugin validator for {COMPONENT_TYPE}.
## Official Documentation (current)
{PASTE_CACHED_DOC_CONTENT}
## Plugin Files to Validate
{PASTE_FILE_CONTENTS}
## Validation Rules
{PASTE_RULES_FOR_THIS_TYPE}
## Instructions
1. Compare every plugin file against the official documentation
2. Check all fields, values, and structures against what docs say is valid
3. Identify anything the plugin uses that docs don't mention (potential deprecation)
4. Identify anything docs mention that the plugin doesn't use (new features)
5. Write detailed findings to: .claude/docs-check/reports/{type}-report.md
## Report Format
# {Type} Validation Report
## Breaking Changes (BLOCKER)
## Deprecations (WARNING)
## New Features Available (INFO)
## Validation Passed
Return ONLY a summary — max 500 words.**Spawn ALL workers in parallel:**
Agent(subagent_type: "general-purpose", model: "sonnet", run_in_background: true, prompt: "...")
**Wait for ALL workers to complete before proceeding.**
If 3+ workers spawned, compress findings:
Agent(subagent_type: "phx:context-supervisor", prompt: """
input_dir: .claude/docs-check/reports/
output_dir: .claude/docs-check/summaries/
priority_instructions: |
KEEP ALL: Breaking changes, deprecation warnings, field mismatches
COMPRESS: New feature suggestions, adoption recommendations
AGGRESSIVE: Passed checks, informational confirmations
""")If <3 workers, read reports directly (skip compression).
These run without docs or subagents — fast, free, always execute:
Parse YAML frontmatter from each agent `.md` file, verify:
Read compressed summary + structural results. Write to `.claude/docs-check/docs-check-{YYYY-MM-DD}.md`:
# Plugin Documentation Compatibility Report
**Date**: {date}
**Plugin Version**: {from plugin.json}
**Docs Fetched**: {list of pages}
## Summary
| Category | Status | Blockers | Warnings | New Features |
|----------|--------|----------|-Docs: phxagents.dev -- install guides per runtime, the runtime compatibility matrix, all 26 Iron Laws, and a browsable skill and agent catalog. Claude Code is great.
CONTRIBUTOR TOOL - Analyzes Phoenix projects to discover patterns, pain points, and plugin improvement opportunities. Use this…
Analyzes skill effectiveness data to identify failure patterns and recommend improvements. Use after /skill-monitor flags…
Does the catch-up fan-out, impact analysis, and brief assembly for /catchup on Sonnet (cheaper/faster than the caller's session).…
Ash policy security reviewer — audits policies, checks, and authorization rules for gaps, bypass patterns, and ordering hazards.…
Ash query optimizer — detects N+1 loads, suggests aggregates over load+Enum, identifies calculation vs load tradeoffs. Use when…
Ash resource architect — designs resources the "Ash Way" with built-in changes, validations, types, and policy checks before…
Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…