Lancrey

Code Restructure — Security skill for Claude Code

Security community

Claude skill (/restructure): architecture audit and safe structural refactoring of an existing Git repo, behaviour unchanged.

How to install Code Restructure

This entry records only its repository, not the path inside it, so there is no exact command to give. Open Lancrey/code-restructure and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Code Restructure does

Claude skill (/restructure): architecture audit and safe structural refactoring of an existing Git repo, behaviour unchanged. Audit, plan and full modes, dedicated branch, before/after verification, reports in English or French.

Alternatives in Security

  • Security Scan Report — Generated: 2026-04-10 20:48 UTC Skills scanned: 134 Total findings: 836 Critical: 32 High: 50 Safe skills: 100 18.1k ★
  • Maestro Odyssey — Long-running iterative cycle — one entry, seven modes (debug improve planex review security defensive ui) 530 ★
  • Curate Security Results — Run Security Tests & Curate Results — Public-Safe Snapshots 295 ★

README

Code Restructure

A Claude skill (`/restructure`) for architecture audits and safe structural refactoring of an existing Git repository, with behaviour left unchanged.

Modes

  • audit: analyse the current structure (layout, dependencies, path-pinning files, findings).
  • plan: audit, then design a target layout with an exhaustive relocation table and a migration sequence.
  • full: audit, plan, then migrate on a dedicated branch (atomic commits) and verify before/after.

Outputs: an audit report, a migration plan and a validation report, written in English or French (the skill asks which). Nothing is pushed unless you ask.

Supported ecosystems

Python, JavaScript/TypeScript, Go, Rust, Java/Kotlin, PHP, Swift/Xcode. Other languages use the same four questions (import resolution, path-pinning files, idiomatic layout, safe-rename tooling).

Contents

  • code-restructure/SKILL.md: the skill
  • code-restructure/references/: one guide per ecosystem and the report templates
  • code-restructure/scripts/: inventory.py, baseline.py, check_moves.py, pbxproj_check.py (Python 3, no dependencies)

Installation

  • Claude.ai / Cowork: zip the code-restructure/ folder as code-restructure.skill and import it in Settings > Capabilities > Skills.
  • Claude Code: copy code-restructure/ into ~/.claude/skills/ (or .claude/skills/ in a project).

Usage

Type `/restructure` in a conversation with a repository attached or checked out, or ask for an architecture audit or a structural cleanup.

License

MIT, © 2026 Pluristack. See `LICENSE`.