project-restructure

Refactor and consolidate Cloudflare Workers projects with AGENTS.md architecture planning.

2|7|Updated Jun 19, 2026
One-click install
npx skills add https://github.com/humanerd-drew/opencode-drewgent --skill project-restructure
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: project-restructure
Source: https://github.com/humanerd-drew/opencode-drewgent/tree/main/skills/project-restructure
Command: npx skills add https://github.com/humanerd-drew/opencode-drewgent --skill project-restructure

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill addresses the challenges of refactoring and integrating complex Cloudflare Workers projects, providing a systematic approach to large-scale codebase restructuring and consolidation.

Core Features & Use Cases

  • Large-Scale Refactoring: Automates the identification and removal of duplicated code across multiple files within a Cloudflare Workers project.
  • Codebase Integration: Facilitates the merging of separate codebases and consolidating duplicated logic.
  • Architecture Planning: Guides the user through the creation of a comprehensive AGENTS.md file for project organization.
  • Frontend Integration: Offers detailed steps for integrating new frontend codebases into existing projects, including SPA to MPA migration.
  • Use Case: Ideal for developers managing complex Cloudflare Workers applications that require regular refactoring and integration tasks.

Quick Start

Use the project-restructure skill to begin restructuring your Cloudflare Workers project by first creating an AGENTS.md file at the project root.

Frequently Asked Questions about project-restructure

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I refactor a large Cloudflare Workers codebase to consolidate duplicated code?

Refactoring a large Cloudflare Workers codebase involves identifying duplicated logic across multiple files and systematically merging it. This process requires a structured approach to project organization and adherence to best practices for code consolidation.

What is the best way to integrate a separate frontend codebase into an existing Cloudflare Workers project?

Integrating a frontend codebase into Cloudflare Workers requires detailed steps for merging separate codebases, including SPA to MPA migration. It focuses on consolidating duplicated logic and ensuring frontend integration aligns with the existing project architecture.

How do I create an AGENTS.md file for Cloudflare Workers architecture planning?

Creating an AGENTS.md file for Cloudflare Workers architecture planning involves placing it at the project root to guide project organization. This file establishes a structured approach to project restructuring and sets best practices for refactoring and merging.

Can I use project restructuring for merging multiple Cloudflare Workers applications into one?

Yes, project restructuring supports merging multiple Cloudflare Workers applications by facilitating the consolidation of separate codebases. It automates the identification and removal of duplicated code across files to streamline the integration process.

When do I need to restructure my Cloudflare Workers project architecture?

You need to restructure your Cloudflare Workers project architecture when managing complex applications that require regular refactoring and integration tasks. It is ideal when consolidating duplicated logic or integrating new frontend codebases into existing projects.

Does Cloudflare Workers refactoring require a specific project organization structure?

Cloudflare Workers refactoring requires a structured approach to project organization, typically starting with an AGENTS.md file at the project root. This structure ensures adherence to best practices during large-scale codebase restructuring and integration.