/ui-component-expert:integrate --workspace <run-path> --contract <contract-path> --target <target-path> --generated <generated-path> [--apply] [--rollback <journal>]from ui-component-expert
Preview file diffs, run additions-only collision preflight, and safely integrate generated components into the target codebase with journaled deletion rollback.
Ships in ui-component-expert. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Replace <plugin-root> in CLI examples with the absolute directory two levels above this skill file (skills/integrate/SKILL.md); Claude Code may use ${CLAUDE_PLUGIN_ROOT} instead. Never execute the literal placeholder.
Integrates staged and reviewed generated components from the project-owned run workspace into the target application tree. The integration engine operates with non-destructive, additions-only defaults: dry-run preview is mandatory, collision preflight refuses any pre-existing destination files, and a transaction journal enables deletion rollback of unchanged created files.
node "<plugin-root>/scripts/cli.mjs" integrate-target --workspace "<run-path>" --contract "<contract-path>" --target "<target-path>" --generated "<generated-path>"
Analyzes proposed file additions and outputs a JSON object containing proposed files and unified diff strings (diff: "--- /dev/null\n+++ b/..."). Modifies zero target files.
node "<plugin-root>/scripts/cli.mjs" integrate-target --workspace "<run-path>" --contract "<contract-path>" --target "<target-path>" --generated "<generated-path>" --apply --allow-unverified
Writes newly generated component files into the target project.
--apply requires explicit user instruction. The presence of the flag in command examples or chat transcripts does NOT constitute authorization to write files.NOT_VERIFIED (since browser verification is performed separately by the host agent rather than inside the CLI script), --allow-unverified is currently required alongside --apply. The user must give explicit affirmative consent for this risk bypass.# Preview rollback actions
node "<plugin-root>/scripts/cli.mjs" integrate-target --rollback "<run-path>/integration-<uuid>.json"
# Execute rollback upon explicit user instruction
node "<plugin-root>/scripts/cli.mjs" integrate-target --rollback "<run-path>/integration-<uuid>.json" --apply
Rollback deletes only the hashguarded files that were created by the specific integration run, as cataloged in the transaction journal (integration-<uuid>.json). It requires prior user permission and explicit --apply. The engine verifies the run receipt, checks the journal hash against the integration proof (integration-<uuid>.proof.json), sets a replay lock marker (integration-<uuid>.rollback.lock), and unlinks only the unchanged files created by that run. If any created file was modified after integration, rollback strictly halts and refuses to delete it (HUMAN_EDIT). Note: this protects local operational integrity and prevents accidental deletion; it is not a cryptographic signature or guarantee against an actor rewriting all local records.
--apply:
integration-<uuid>.json) records the exact paths, creation timestamps, and SHA256 checksums of the newly created files.--apply uses this journal to cleanly remove only those unchanged files upon explicit user request, leaving all other target project files completely unaffected.git commit, git push, branch switches, or history modifications.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub andrewr303/ultimate-ai-plugins --plugin ui-component-expert11 skills in this plugin
/briefGenerate a portable Claude Design brief prompt specifying target description, 4 viewports, 3 token tiers, component anatomy, 8 states, and deliverables./buildGenerate bespoke, accessible TypeScript components and 8-state harnesses from an approved DesignContract./contractExtract and validate a strongly typed DesignContract from quarantined Claude Design artifacts, verifying tokens, 8 states, and WAI-ARIA semantics.