module-planning
Skill8 starsChanged 43 days agoMITView on GitHub
Plan a new module or feature area end-to-end using a structured Explore, Plan, and Document workflow before any code is written
1 other project uses a version of this.
Adopted by
Most recently taken up by
- Lanqiao-Luca/ai-java-workflowtheir own version, first seen Nov 8, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- Lanqiao-Luca/ai-java-workflow★ 220same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository21 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- context/CLAUDE.mdCLAUDE.md
- api-designSkill
- backendSkill
- cavemanSkill
- commitSkill
- evaluator-optimizerSkill
- frontend-design-systemSkill
- interactive-live-testingSkill
- multi-agent-orchestrationSkill
- plan-featureSkill
- prSkill
- ralph-loopSkill
- review-boardSkill
- reviewSkill
- systematic-debuggingSkill
- tdd-workflowSkill
- verification-before-completionSkill
- verificationSkill
- work-recordingSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 82
Objective: Create a durable module specification document that the implementation agents and human reviewer can reference throughout the …
- Distinctive: line 156
Objective: Create a trackable checklist so that implementation can be picked up, handed off, or resumed without losing context.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Module Planning Skill
Skill Metadata
- Name: module-planning
- Description: Plan a new module or feature area end-to-end using a structured Explore, Plan, and Document workflow before any code is written
- User Invocable: Yes (via
/module-planning)
Overview
This skill guides the comprehensive planning of new modules for any software project. It follows the established Explore, Plan, Implement pattern to ensure thorough preparation before writing code. The discipline is stack-agnostic; the examples below use TypeScript / Node.js / Express / Vitest / Zod for concreteness, but the same phases apply to any language or framework.
The skill separates thinking from typing. A module plan written before the first file is touched is cheaper to revise than one discovered mid-implementation. The three phases below each have a distinct agent role and a concrete output artifact.
Workflow
Phase 1: Research (Researcher Agent)
Objective: Understand existing patterns and gather reference implementations before designing anything new.
1. Find similar existing modules
- Search for comparable implementations in the codebase
- Identify reusable patterns and utilities
- Note what worked and what created friction
2. Document conventions already in use
- File structure patterns
- Naming conventions
- Code organization and layering decisions
3. List relevant existing code
- Related services or packages
- Shared utilities and helpers
- Common interfaces and typesOutput: A pattern-reference document with file paths, conventions, and any prior art worth reusing.
Phase 2: Architecture (Architect Agent)
Objective: Design the module structure and interfaces based on the patterns the Researcher surfaced.
1. Module Structure
- Define service or package boundaries
- Identify components needed
- Plan data models and their relationships
2. API Design
- Define endpoints or function signatures
- Specify request / response formats
- Document authentication and authorization requirements
3. Data Layer
- Define schema models (using your ORM or migration tool of choice)
- Plan migrations and rollback paths
- Consider indexes and query performance
4. Integration Points
- Inter-service or inter-package communication
- External dependencies and their contracts
- Events emitted or consumedOutput: A comprehensive implementation plan ready for documentation.
Phase 3: Documentation
Objective: Create a durable module specification document that the implementation agents and human reviewer can reference throughout the build.
The spec lives in docs/specs/ (or the equivalent in your project). Save it before any code is written. The template below covers the common cases; add or remove sections as the module warrants.
## Module Specification: [MODULE-NAME]
### Overview
[Module purpose and business context. One paragraph. What problem does this module solve and for whom?]
### Technical Specification
#### Backend Components
| Component | File Path | Description |
|-----------|-----------|-------------|
| Entity | `apps/<service>/src/domain/entities/*.entity.ts` | Domain entity |
| Use Case | `apps/<service>/src/application/use-cases/*` | Business logic |
| Repository | `apps/<service>/src/infrastructure/repositories/*` | Data access |
| Controller | `apps/<service>/src/presentation/controllers/*` | API endpoints |
#### Frontend Components
| Component | File Path | Description |
|-----------|-----------|-------------|
| Page | `apps/<web>/src/pages/**/index.tsx` | Route page |
| Components | `apps/<web>/src/components/features/*` | Feature components |
| Hooks | `apps/<web>/src/hooks/use-*.ts` | Data hooks |
| API Client | `apps/<web>/src/lib/api/*.ts` | API functions |
#### Data Schema (illustrative; adapt to your ORM or migration tool)model Example { id String @id @default(cuid()) createdAt DateTime @default(now()) updatedAt DateTime @updatedAt // add fields here }
#### API Endpoints
| Method | Path | Description | Auth |
|--------|------|-------------|------|
| POST | /api/v1/[resource] | Create | JWT |
| GET | /api/v1/[resource] | List | JWT |
| GET | /api/v1/[resource]/:id | Get by id | JWT |
| PATCH | /api/v1/[resource]/:id | Update | JWT |
| DELETE | /api/v1/[resource]/:id | Delete | JWT |
### Implementation Order
1. Data schema and migrations
2. Domain entities and value objects
3. Repository interfaces and their implementations
4. Use cases (one per business operation)
5. Controllers and route registration
6. Frontend API client functions
7. Frontend data hooks
8. Frontend components
9. Frontend pages and routing
10. Tests (unit, integration, end-to-end)
### Testing Strategy
- Unit tests for use cases (pure business logic, no I/O)
- Integration tests for controllers (real HTTP, mocked or test database)
- End-to-end tests for critical user flows
### Risk Assessment
| Risk | Impact | Mitigation |
|------|--------|------------|
| [Identify integration risks, schema conflicts, or unclear requirements before coding starts] | | |Phase 4: Checklist Creation (Progress Tracking)
Objective: Create a trackable checklist so that implementation can be picked up, handed off, or resumed without losing context.
Store the progress file at .claude/progress/current-module.json (or rename it per your project conventions). Update the status field on each feature as work proceeds.
{
"module": "[MODULE-NAME]",
"status": "planning",
"startDate": "YYYY-MM-DD",
"features": [
{
"id": "01",
"name": "Data schema",
"status": "pending",
"files": ["path/to/schema/file"]
},
{
"id": "02",
"name": "Backend entities",
"status": "pending",
"files": ["apps/<service>/src/domain/entities/*.entity.ts"]
},
{
"id": "03",
"name": "Repository layer",
"status": "pending",
"files": ["apps/<service>/src/infrastructure/repositories/*"]
},
{
"id": "04",
"name": "Use cases",
"status": "pending",
"files": ["apps/<service>/src/application/use-cases/*"]
},
{
"id": "05",
"name": "Controllers",
"status": "pending",
"files": ["apps/<service>/src/presentation/controllers/*"]
},
{
"id": "06",
"name": "Frontend API client",
"status": "pending",
"files": ["apps/<web>/src/lib/api/*"]
},
{
"id": "07",
"name": "Frontend hooks",
"status": "pending",
"files": ["apps/<web>/src/hooks/use-*.ts"]
},
{
"id": "08",
"name": "Frontend components",
"status": "pending",
"files": ["apps/<web>/src/components/features/*"]
},
{
"id": "09",
"name": "Frontend pages",
"status": "pending",
"files": ["apps/<web>/src/pages/*"]
},
{
"id": "10",
"name": "Tests",
"status": "pending",
"files": []
}
],
"completedAt": null
}Invocation
Automatic
Triggered when the user requests:
- "Create a new module for..."
- "Plan the implementation of..."
- "Design the architecture for..."
Manual
/module-planning [module-name]Agents Involved
| Phase | Agent | Role |
| 1 | researcher | Find existing patterns and prior art |
| 2 | architect | Design module structure and interfaces |
| 3 | orchestrator | Write specification document |
| 4 | orchestrator | Create progress checklist |
Output Artifacts
- Module Spec Document:
docs/specs/[MODULE-NAME].md - Implementation Status:
docs/specs/[MODULE-NAME]-IMPLEMENTATION-STATUS.md - Progress Checklist:
.claude/progress/current-module.json
[CUSTOMIZE: adjust the output paths to match your project's documentation layout.]
Example Usage
User Input:
Plan the user onboarding moduleSkill Execution:
- Researcher finds existing authentication and user-management patterns in the codebase.
- Architect designs the module structure: schema model, use cases, API endpoints, and frontend flows.
- Orchestrator writes
docs/specs/USER-ONBOARDING.mdusing the template above. - Orchestrator creates
.claude/progress/current-module.jsonwith all features set topending. - Orchestrator returns a summary to the user for review and approval.
User Approval: The user reviews the plan and approves it (or requests adjustments) before any implementation begins.
Next Step: Implementation begins, driven by the backend and frontend implementation agents, with the progress checklist as the shared source of truth.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

