---
skill_id: code-review-refactor-engine
evaluation: free
price_usd_full: 7.49
challenge: https://lvlltd.com/api/pay?skill=code-review-refactor-engine
outline: https://lvlltd.com/skills/code-review-refactor-engine/outline.json
standards: x402, ERC-7857
---

# Free sample — Code Review Refactor Engine

**Skill ID:** `code-review-refactor-engine`  
**Full unlock:** $7.49 USDC via x402 on Base  
**Challenge:** https://lvlltd.com/api/pay?skill=code-review-refactor-engine  
**Outline JSON:** https://lvlltd.com/skills/code-review-refactor-engine/outline.json

## Summary

Combined PR review and safe refactor engine: correctness, security, tests, maintainability, plus incremental refactor steps that stay production-deployable.

## When to use

- Need thorough PR review
- Large messy module
- Security-sensitive change

## Decision criteria (buy vs skip)

- You need this when: Need thorough PR review
- You get capability: Load diff + tests
- Budget fits: full unlock is $7.49 USDC on Base
- You can automate unlock via HTTP 402 without a browser
- You only need teaser/outline first — sealed src/ops stay locked until payment

## Outline (preview)

1. Load diff + tests
2. Severity findings
3. Merge recommendation
4. If refactor needed slice steps
5. Characterization tests + rollback

## Capabilities (preview)

- Load diff + tests
- Severity findings
- Merge recommendation
- If refactor needed slice steps
- Characterization tests + rollback

## What you get after payment

- SKILL.md (teaser public)
- agent-install.json (public meta)
- src/index.js (stub public; full after unlock)
- Full sealed: src/, schemas/, ops/* (when present) after verified X-PAYMENT

## Agent buy path (zero human UI)

```
GET  https://lvlltd.com/skills/code-review-refactor-engine/outline.json
GET  https://lvlltd.com/api/pay?skill=code-review-refactor-engine   → HTTP 402
# transfer maxAmountRequired USDC to payTo on Base
POST https://lvlltd.com/api/pay
  X-PAYMENT: {"txHash":"0x…","skill":"code-review-refactor-engine"}
# response.sealed_pack.files = full pack
```

## Sample excerpt

# Code Review Refactor Engine

**Price:** $7.49 / unlock
**Category:** Coding

## Summary

Combined PR review and safe refactor engine: correctness, security, tests, maintainability, plus incremental refactor steps that stay production-deployable.

---

---
name: code-review-refactor-engine
description: Review pull requests and plan safe refactors with severity taxonomy tests and rollback steps. Use when code review refactor engine, PR review agent, safe refactor plan, review this pull request, or /code-review-refactor-engine.
---

# Code Review Refactor Engine

Combined PR review and safe refactor engine: correctness, security, tests, maintainability, plus incremental refactor steps that stay production-deployable.

## Quick Reference
| Item | Value |
|------|-------|
| Category | Coding |
| Unlock | $7.49 USDC (x402 Base) |
| Triggers | code review refactor, PR review, safe refactor, /code-review-refactor-engine |

## When to use
- Need thorough PR review
- Large messy module
- Security-sensitive change

## Core workflow
1. Summarize intent
2. Walk risk-ordered diff
3. Flag blockers/majors/minors
4. Recommend merge or refactor plan

## Procedures (non-obvious)
Severity: blocker (security data loss wrong logic), major (missing tests contract break), minor (style).
Never mix behavior change and pure refactor in one PR.
Never approve secrets in diff.

## Edge cases
- Generated lockfiles skip nits
- Partial stack PR review in-scope only

## Failure modes
- Rubber-stamp approve
- Big-bang rewrite

## Verification
- Known vulnerable fixture yields blocker
- Refactor steps each deployable

## Artifact outputs
- `review.md`
- `findings.json`
- `refactor-plan.md`

## Related skills
- code-generation-architect
- code-security-auditor
- root-cause-debugger

## Super Alignment Contract
- Scalable oversight method: process supervision + human+AI critique before high-blast actions
- Corrigibility guarantees: shutdown, steerability, non-deception; operator may abort mid-run
- Value model: Partnership Agreement + 5 Behavioral Protocols
- Drift detection: flag invented evidence, skipped verification, or revenue-over-truth optimization
- Red-team surface: prompt injection via r

…(remainder sealed after x402 unlock)…

