
plan-module
by ntholi
SKILL.md
name: plan-module description: Creates a comprehensive multi-step implementation plan for a new module. Asks discovery questions first, then generates numbered markdown files in docs/ with detailed requirements. Use when asked to "plan a module", "create implementation plan", or "plan a feature".
Plan Module Skill
Creates comprehensive, step-by-step implementation plans for new modules through structured discovery questions and detailed documentation.
Trigger Phrases
Use this skill when the user says:
- "Plan a module for [name]"
- "Create an implementation plan for [name]"
- "Design a new [name] module"
- "I want to develop a [name] module, ask me questions first"
- "Help me plan the [name] feature comprehensively"
Process Overview
Phase 1: Discovery Questions
Ask comprehensive questions organized by category to understand requirements fully.
Question Categories:
-
Core Entities
- What main entities/tables does this module need?
- What are the relationships between entities?
-
Entity Attributes
- For each entity, what fields/columns are required?
- What are the data types and constraints?
-
Business Rules
- What are the business rules and validations?
- What calculations or automations are needed?
-
User Workflows
- Who are the users (roles)?
- What actions can each role perform?
-
Integrations
- Does this integrate with existing modules?
- Are there external APIs involved?
-
UI/UX Requirements
- What pages/views are needed?
- What should appear on dashboards?
-
Reports
- What reports are required?
- Should reports be exportable?
-
Student Portal
- Does this need student-facing views?
- What can students see/do?
Question Format: Use terminal echo commands for questions:
pnpm exec echo "CATEGORY NAME
1. Question one?
2. Question two?
...
Answer: "
Wait for user to edit the command with answers before continuing.
Phase 2: Follow-up Questions
Based on initial answers, ask clarifying follow-up questions to fill gaps.
Phase 3: Plan Overview
Before writing files, present a high-level overview of the planned steps:
- List each step number and title
- Brief description of what each step covers
- Ask for approval before proceeding
Phase 4: Generate Plan Documents
Create numbered markdown files in docs/[module-name]/:
docs/[module-name]/
├── 000_index.md # Overview and summary
├── 001_[first-step].md # First implementation step
├── 002_[second-step].md # Second implementation step
└── ...
Document Structure
Index File (000_index.md)
# [Module Name] - Implementation Plan
## Overview
Brief description of the module purpose.
## Features Summary
Table of features with Admin vs User capabilities.
## Implementation Steps
Table linking to each step with description.
## Database Entities
ASCII diagram of entity relationships.
## Directory Structure (Final)
Expected file structure after completion.
## Business Rules
Key business rules table.
## Access Control
Role-based access table.
## Execution Order
Dependencies and recommended order.
## Validation Command
Standard validation commands.
Step Files (001_xxx.md, 002_xxx.md, etc.)
# Step NNN: [Step Title]
## Introduction
- Context about this step
- What previous steps completed
- What this step accomplishes
## Context
Background information needed to understand this step.
## Requirements
### 1. [Subsection]
Detailed requirements with tables for:
- Schema definitions (columns, types, constraints)
- API/Actions signatures
- UI component specifications
### 2. [Subsection]
Continue with organized requirements.
## Expected Files
Table of files to create with purposes.
## Validation Criteria
Numbered list of what should work after this step.
## Notes
Additional implementation guidance.
Step Organization Guidelines
Recommended Step Categories
-
Database Schema Steps (usually first)
- Group related tables together
- Include enums, relations, indexes
-
Core Feature CRUD Steps
- Repository, Service, Actions
- Forms and pages
- One step per major entity group
-
Advanced Feature Steps
- Complex business logic
- Integrations with other modules
-
Reports Step
- All reporting functionality
- Export capabilities
-
Portal Integration Step (usually last)
- Student/user-facing views
- Read-only interfaces
Step Size Guidelines
- Each step should be completable in one coding session
- Group related functionality (e.g., Books + Authors + Categories together)
- Database schema can be split if complex (3+ steps for large schemas)
- Keep context manageable for Claude Opus 4.5 token limits
Content Guidelines
Do Include
- Detailed table schemas with all columns
- Action signatures with parameters
- UI component field specifications
- Business logic pseudocode
- Integration points with existing code
- Validation criteria checklist
Do NOT Include
- Actual code implementations
- Copy-paste ready code blocks
- Line-by-line instructions
- Specific import statements
Formatting Standards
- Use tables for structured data (schemas, actions, files)
- Use bullet points for lists
- Use code blocks only for file paths and directory structures
- Include ASCII diagrams for entity relationships
Final Steps
After generating all files:
- List all created files
- Explain how to use the plan
- Run completion command:
pnpm exec echo 'Done'
Example Invocation
User: "Plan a module for inventory management, ask me questions first"
Response:
- Ask discovery questions via terminal
- Wait for answers
- Ask follow-up questions
- Present high-level plan overview
- Get approval
- Generate numbered .md files in docs/inventory/
- Create index file
- Signal completion
スコア
総合スコア
リポジトリの品質指標に基づく評価
SKILL.mdファイルが含まれている
ライセンスが設定されている
100文字以上の説明がある
GitHub Stars 100以上
3ヶ月以内に更新がある
10回以上フォークされている
オープンIssueが50未満
プログラミング言語が設定されている
1つ以上のタグが設定されている
レビュー
レビュー機能は近日公開予定です