# Solid Refactor Assistant

> Plan and execute SolidJS refactors with explicit invariants, rollback-safe sequencing, and citation-backed verification. Use when changing boundaries, state shape, rendering flow, or public props interfaces.

- **Type:** Skill
- **Install:** `agentstack add skill-lvcoi-solidjskills-solid-refactor-assistant`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [lvcoi](https://agentstack.voostack.com/s/lvcoi)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [lvcoi](https://github.com/lvcoi)
- **Source:** https://github.com/lvcoi/solidJSkills/tree/main/skills/solid-refactor-assistant

## Install

```sh
agentstack add skill-lvcoi-solidjskills-solid-refactor-assistant
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# solid-refactor-assistant

## Trigger

Use this skill when existing SolidJS code needs structural or behavioral changes with low regression tolerance.

## Required Inputs

- Current behavior and invariants to preserve.
- Refactor objective and non-goals.
- Public interfaces that cannot break (props/events/routes/contracts).
- Validation surface: tests, manual scenarios, and performance constraints.

## Workflow

1. Capture baseline invariants as pass/fail statements.
2. Break refactor into rollback-safe increments; each step must be independently verifiable.
3. Preserve reactivity semantics: avoid effect-driven derivations and accidental dependency widening.
4. Flag API changes and provide compatibility branch (adapter/deprecation note) when needed.
5. Include targeted SSR/hydration and async-state checks where rendering paths changed.
6. Output regression checklist and command sequence aligned to touched scope.

## Failure Modes

- Invariants undefined: fail early and request explicit invariant list.
- Multi-axis refactor in one step: split into smaller ordered steps.
- Missing rollback path: output is invalid until rollback instructions exist.
- Refactor touches async/render logic without state matrix: add matrix before finalizing.

## Output Contract

Return output matching `RefactorPlanOutput` schema at `../../skills/contracts/refactor-plan-output.schema.json` with:

- `summary`, `invariants`, `stepwise_plan`, `risk_controls`, and `rollback_strategy`.
- `verification_checklist`, `validation_commands`.
- `citations`: each claim must cite normalized `doc_id` entries.

## Validation

- `node tools/scripts/validate-skills.mjs --skill solid-refactor-assistant`
- `node tools/scripts/validate-output-contracts.mjs`

## References

- `../../references/solidjs-normalized/manifest.jsonl`
- `../../references/solidjs-normalized/taxonomy.json`
- `../../references/solidjs/reactivity-core.md`
- `../../references/solidjs/performance-ssr.md`
- `../../references/solidjs/async-data.md`

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [lvcoi](https://github.com/lvcoi)
- **Source:** [lvcoi/solidJSkills](https://github.com/lvcoi/solidJSkills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-lvcoi-solidjskills-solid-refactor-assistant
- Seller: https://agentstack.voostack.com/s/lvcoi
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
