garretts/web-xp/web-xp-review
Claude Code and agent skill by garretts/web-xp
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Activate when explicitly invoked by name. Auto-activate only if a Web XP project contract (`AGENTS.md`, `CLAUDE.md`, or `CODEX.md`) exists in the project.
Install
npx vskill@latest install garretts/web-xp/web-xp-reviewSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as garretts/web-xp/web-xp-review.
Web XP Review — Evaluate Code and Apply Approved Fixes
<!-- DO NOT EDIT — built from /adapters/shared-base/skills/web-xp-review.md + Claude bindings. -->
Claude bindings
- Read
${CLAUDE_SKILL_DIR}/../code-guidelines.md. - Read
${CLAUDE_SKILL_DIR}/../code-philosophy.md. - Make edits using Claude's normal editing tools after explicit approval.
- Run
bin/pre-commit-check.shif it exists in the project; otherwise runbash ${CLAUDE_SKILL_DIR}/../pre-commit-check.shafter approved edits. - Use Claude slash-command names when referencing related capabilities.
Shared capability
Purpose
Review code the user provides against the Web XP standards. Unlike web-xp-check, this works on any code from any source. Review is the default posture. If the human explicitly asks for changes or approves proposed edits, this capability can also apply fixes.
Activation
Activate when explicitly invoked by name. Auto-activate only if a Web XP project contract (AGENTS.md, CLAUDE.md, or CODEX.md) exists in the project.
Procedure
1. Load the standards
Read code-guidelines.md. For explanatory context, read code-philosophy.md.
2. Receive code to review
Accept code as:
- pasted text
- a file path
- a directory
- a URL if the adapter can inspect it
- a description of a pattern to evaluate
If nothing reviewable was provided and no obvious project target is present, ask what to review.
If framework code is provided, evaluate both the original and what the Web XP-aligned vanilla equivalent would look like.
3. Analyze against Web XP patterns
Assess the code against the same pattern list as web-xp-check:
- Event Delegation
- Active Object
- Shared Key
- Ancestor Class
- Dispatch Table
- Fail-Safe
- CSS over JS
hiddenattribute- Extract Shared Logic
- Template and cloneNode
Also assess against language rules such as naming conventions, module cohesion, identifier accuracy, guard clauses, DOM content, and string concatenation.
4. Report findings
For each finding, report:
- pattern name
- whether it is a violation or an opportunity
- the Web XP-aligned alternative
For framework code, show the vanilla equivalent side by side.
5. Prompt to apply fixes
Do not auto-apply fixes. After presenting findings, ask the user: "Want me to apply these fixes?"
If the user agrees, apply fixes using this flow:
- present one coherent change at a time by default
- group changes only when they are the same kind of edit in the same file or tightly related scope
- for each proposed change set, present:
- file and line number(s)
- pattern name and whether it is a violation or opportunity
- current code
- proposed replacement
- one-sentence Web XP rationale
- ask for approval before each change set unless the human already gave clear blanket approval to proceed
- after approval:
- make the edit
- verify it was applied correctly
After all approved edits:
- report how many findings were applied, skipped, and declined
- remove selectors, IDs, classes, and variables made unreferenced by the refactor
- run the adapter's Web XP pre-commit check command
- review changed JS for correctness: no broken references, missing arguments, or changed behavior
6. Offer next steps
Suggest specific follow-up actions based on the actual findings. If the review found nothing, say so and skip this step.
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 repositoryCheckingadapters/claude/web-xp-review/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
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/garretts/web-xp/web-xp-review)