ln-721-frontend-restructure
Frontend structure worker: SCAFFOLD new React project or RESTRUCTURE existing monolith to component-based architecture
Skill by tensology
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/tensology-ln-721-frontend-restructure
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: frontend
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/ln-721-frontend-restructure
What's inside
- Skill name
ln-721-frontend-restructure- Description
- Frontend structure worker: SCAFFOLD new React project or RESTRUCTURE existing monolith to component-based architecture
- License
- MIT
- Instructions
- 223 lines in SKILL.md · view on GitHub
Files (5)
- SKILL.md
- component_patterns.md · references/
- import_strategy.md · references/
- react_folder_structure.md · references/
- transformation_rules.md · references/
SKILL.md (first lines)
<!-- GLOBAL_UI_UX_REFERENCE --> ## Global interface source Before using this skill for interface work, read the current global `ui-ux-principles` skill, especially `Design Principles`, `UX Principles`, `UI Principles`, and `Definition of Done - UI`. Those rules are authoritative and override conflicting guidance here. Aesthetic recipes are opt-in: use them only when the brief explicitly calls for them and they earn their place. This skill adds only its specialized guidance. > **Paths:** File paths (`shared/`, `references/`, `../ln-*`) are relative to skills repo root. If not found at CWD, locate this SKILL.md directory and go up one level for repo root. # ln-721-frontend-restructure **Type:** L3 Worker **Category:** 7XX Project Bootstrap **Parent:** ln-720-structure-migrator Frontend structure worker with two modes: SCAFFOLD (generate minimal React project from template) or RESTRUCTURE (migrate monolith to component-based architecture). --- ## Mode Selection | Mode | When | Input | Output | |------|------|-------|--------| | **SCAFFOLD** | CREATE pipeline — no existing frontend | Target stack config from ln-720 | Minimal React + Vite project (~7 files) | | **RESTRUCTURE** | TRANSFORM pipeline — existing frontend found | Monolithic React source | Component-based architecture | --- ## Purpose & Scope | Aspect | Description | |--------|-------------| | **Input** | Target stack config (SCAFFOLD) or monolithic React source (RESTRUCTURE) | | **Output** | Minimal project (SCAFFOLD) or component-based architecture (RESTRUCTURE) | | **Framework** | React + TypeScript + Vite | **Scope boundaries:** - SCAFFOLD: generates minimal starter files, no business logic - RESTRUCTURE: restructures existing code, does not add new functionality - Works with React + TypeScript projects - Applies transformation rules from reference files --- ## Workflow ### SCAFFOLD Mode (CREATE pipeline) | Phase | Name | Actions | Output | |-------|------|---------|--------| | S1 | Generate | Create minimal React + Vite + TypeScript project files | ~7 starter files | | S2 | Verify | Check file structure, validate configs | Valid project skeleton | ### RESTRUCTURE Mode (TRANSFORM pipeline) | Phase | Name | Actions | Output | |-------|------|---------|--------| | 1 | Analyze | Scan source, detect component types, measure complexity | File inventory, complexity metrics | | 2 | Plan | Apply split thresholds, calculate file moves, detect conflicts | Migration plan | | 3 | Execute | Create folders, extract content, update imports | Restructured files | | 4 | Verify | Run build, check imports, validate structure | Build success report | --- ## SCAFFOLD Mode Phases ### Phase S1: Generate Starter Files Create minimal React + Vite + TypeScript project. | File | Purpose | |------|---------| | `package.json` | Dependencies: react, react-dom, typescript, vite, @vitejs/plugin-react | | `vite.config.ts` | Vite config with React plugin, port, proxy settings | | `tsconfig.json` | Strict TypeScript config with path aliases | | `index.html` | Entry HTML with root div | | `src/main.tsx` | React entry point with StrictMode | | `src/App.tsx` | Root App component with router placeholder | | `src/index.css` | Base styles (reset, variables, layout) | ### Phase S2: Verify Scaffold | Check | Method | Expected | |-------|--------|----------| | All files created | File existence check | 7 files present | | package.json valid | JSON parse | No syntax errors | | tsconfig.json valid | JSON parse | No syntax errors | | No hardcoded values | Content scan | Project name from config, not hardcoded | --- ## RESTRUCTURE Mode Phases ### Phase 1: Analyze Scan current frontend structure and classify components. | Step | Action | Reference | |------|--------|-----------| | 1.1 | Scan all `.tsx` and `.ts` files in source | — | | 1.2 | Measure file complexity (lines, hooks, types) | `transformation_rules.md` | | 1.3 | Classify components by category | `component_patterns.md` | | 1.4 | Build import dependency graph | `import_strategy.md` | **Output:** Component inventory with classifications and metrics. --- ### Phase 2: Plan Generate migration plan based on analysis. | Step | Action | Reference | |------|--------|-----------| | 2.1 | Apply split thresholds to identify files to restructure | `transformation_rules.md` | | 2.2 | Calculate target paths for each file | `react_folder_structure.md` | | 2.3 | Identify import updates needed | `import_strategy.md` | | 2.4 | Detect potential conflicts (name collisions, circular deps) | — | **Output:** Migration plan with Before/After mapping.
From tensology/decisionsai, MIT.
More from tensology/decisionsai
- 0.646score
impeccable
tensology
Explicit-command design reviewer.
SkillAFreshness: A★ 17Claude Code +9 - 0.646score
domain-modeling
tensology
Use when a project needs shared terminology, glossary updates, ADRs, clearer domain language, or when user language conflicts with existing code, ticket…
SkillAFreshness: A★ 17Claude Code +9 - 0.646score
architecture-deepening-review
tensology
Use when reviewing a codebase for architectural friction, shallow modules, poor test seams, scattered behavior, duplicated orchestration, or opportunities to…
SkillAFreshness: A★ 17Claude Code +9 - 0.643score
visual-plan
tensology
Turn ordinary text plans into rich interactive visual plans with diagrams, file maps, annotated code, open questions, and UI/prototype review when useful.
SkillAFreshness: A★ 17Claude Code +9 - 0.641score
stay-within-limits
tensology
Use when long-running or parallel agent work must respect 5-hour and weekly usage limits by checking usage between waves, pausing near the cap, and resuming…
SkillAFreshness: A★ 17Claude Code +9 - 0.641score
plow-ahead
tensology
Use when the user explicitly wants autonomous progress without routine clarification stops: "plow ahead", "do not stop", "use your best judgment", "keep going…
SkillAFreshness: A★ 17Claude Code +9 - 0.641score
quick-recap
tensology
Use when adding or following the red/yellow/green final status block convention for agent responses, especially by installing managed AGENTS.md or CLAUDE.md…
SkillAFreshness: A★ 17Claude Code +9 - 0.641score
plan-arbiter
tensology
Use when asked to compare, cross-review, merge, judge, choose, or arbitrate competing plans from multiple agents such as Codex and Claude Code; when given two…
SkillAFreshness: A★ 17Claude Code +9 - 0.641score
read-the-damn-docs
tensology
Use when implementing, integrating, upgrading, debugging, or answering anything involving third-party APIs, libraries, frameworks, CLIs, cloud services…
SkillAFreshness: A★ 17Claude Code +9 - 0.641score
codebase-design
tensology
Use when designing or improving a module interface, choosing a seam, reducing shallow modules, making code easier to test, or reviewing architecture for…
SkillAFreshness: A★ 17Claude Code +9 - 0.638score
decisions-ui-ideation
tensology
Run before implementing UI — research real product patterns (Refero/Mobbin MCP), pick a design direction, and output tokens or a short DESIGN.md before…
SkillAFreshness: A★ 17Claude Code +9 - 0.638score
decisions-design-aesthetics
tensology
Pick a design aesthetic from awesome-design-skills — bundled minimal/professional/enterprise/shadcn/bento; full catalog in reference for on-demand load.
SkillAFreshness: A★ 17Claude Code +9
Signals
- Stars
- 17
- Forks
- 2
- Open issues
- 0
- Last commit (this folder)
- Oct 14, 2026 (14 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/tensology/decisionsai
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from tensology
- 0.646score
impeccable
tensology
Explicit-command design reviewer.
SkillAFreshness: A★ 17Claude Code +9 - 0.646score
domain-modeling
tensology
Use when a project needs shared terminology, glossary updates, ADRs, clearer domain language, or when user language conflicts with existing code, ticket…
SkillAFreshness: A★ 17Claude Code +9 - 0.646score
architecture-deepening-review
tensology
Use when reviewing a codebase for architectural friction, shallow modules, poor test seams, scattered behavior, duplicated orchestration, or opportunities to…
SkillAFreshness: A★ 17Claude Code +9 - 0.643score
visual-plan
tensology
Turn ordinary text plans into rich interactive visual plans with diagrams, file maps, annotated code, open questions, and UI/prototype review when useful.
SkillAFreshness: A★ 17Claude Code +9 - 0.641score
quick-recap
tensology
Use when adding or following the red/yellow/green final status block convention for agent responses, especially by installing managed AGENTS.md or CLAUDE.md…
SkillAFreshness: A★ 17Claude Code +9 - 0.641score
read-the-damn-docs
tensology
Use when implementing, integrating, upgrading, debugging, or answering anything involving third-party APIs, libraries, frameworks, CLIs, cloud services…
SkillAFreshness: A★ 17Claude Code +9
Cite this page
ln-721-frontend-restructure skill. Agent Mart. https://agentmart.dev/skills/tensology-ln-721-frontend-restructure (last updated 2026-10-24)