Code Restructure — Security skill for Claude Code
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 skillcode-restructure/references/: one guide per ecosystem and the report templatescode-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 ascode-restructure.skilland 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`.
Related Skills
Improve.SKILL
Use to audit a codebase or branch and write self-contained, gated implementation plans that cheaper agents exe
Verify Flow
Validates existing agents, commands, skills, and hooks against project conventions. Detects structural issues,
Git Gud Security
Security scanner for repos, apps, and things built with Claude (skills, plugins, MCP servers). Runs as a Claud
GitHub Repo Lockdown
Lock down a public GitHub repo for safe community contributions — branch protection, CODEOWNERS, CI validation
Lint Obsidian
Full vault audit + auto-fix on a separate git branch
Claude Code Ship Gate
Pre-push quality gate for Claude Code that runs above git, so git push --no-verify can't skip it. Tests, code
Related Agents
ChatGPT PR Review
Coordinates ChatGPT PR review round-by-round in a dedicated session (manual / automated / parallel modes). Rea
Fe Git Operator
Dedicated git operations — splitting commits, safe staging that preserves the user's pre-existing index, writi
Doey Scaffy Pattern Discoverer
Runs scaffy discover and analyzes git history for repeated structural, injection, and refactoring patterns wor