add-language-rules
Workflow command scaffold for add-language-rules in everything-claude-code.
Create comprehensive feature implementation plan with codebase analysis and pattern extraction
> /plugin marketplace add affaan-m/everything-claude-code > /plugin install ecc@ecc
How it fires
How this command gets triggered: by you, by Claude, or both.
/prp-planContext preview
What this command does when you run it.
Create comprehensive feature implementation plan with codebase analysis and pattern extraction
description: Create comprehensive feature implementation plan with codebase analysis and pattern extraction argument-hint: <feature description | path/to/prd.md>
> Adapted from PRPs-agentic-eng by Wirasm. Part of the PRP workflow series.
Create a detailed, self-contained implementation plan that captures all codebase patterns, conventions, and context needed to implement a feature in a single pass.
**Core Philosophy**: A great plan contains everything needed to implement without asking further questions. Every pattern, every convention, every gotcha — captured once, referenced throughout.
**Golden Rule**: If you would need to search the codebase during implementation, capture that knowledge NOW in the plan.
---
Determine input type from `$ARGUMENTS`:
| Input Pattern | Detection | Action | |---|---|---| | Path ending in `.prd.md` | File path to PRD | Parse PRD, find next pending phase | | Path to `.md` with "Implementation Phases" | PRD-like document | Parse phases, find next pending | | Path to any other file | Reference file | Read file for context, treat as free-form | | Free-form text | Feature description | Proceed directly to Phase 1 | | Empty / blank | No input | Ask user what feature to plan |
1. Read the PRD file with `cat "$PRD_PATH"` 2. Parse the **Implementation Phases** section 3. Find phases by status:
4. Extract from the selected phase:
5. Use the phase description as the feature to plan
If no pending phases remain, report that all phases are complete.
---
Extract and clarify the feature requirements.
From the input (PRD phase or free-form description), identify:
Format as:
As a [type of user], I want [capability], So that [benefit].
| Level | Indicators | Typical Scope | |---|---|---| | **Small** | Single file, isolated change, no new dependencies | 1-3 files, <100 lines | | **Medium** | Multiple files, follows existing patterns, minor new concepts | 3-10 files, 100-500 lines | | **Large** | Cross-cutting concerns, new patterns, external integrations | 10+ files, 500+ lines | | **XL** | Architectural changes, new subsystems, migration needed | 20+ files, consider splitting |
If any of these are unclear, **STOP and ask the user** before proceeding:
Do NOT guess. Ask. A plan built on assumptions fails during implementation.
---
Gather deep codebase intelligence. Search the codebase directly for each category below.
For each category, search using grep, find, and file reading:
1. **Similar Implementations** — Find existing features that resemble the planned one. Look for analogous patterns, endpoints, components, or modules.
2. **Naming Conventions** — Identify how files, functions, variables, classes, and exports are named in the relevant area of the codebase.
3. **Error Handling** — Find how errors are caught, propagated, logged, and returned to users in similar code paths.
4. **Logging Patterns** — Identify what gets logged, at what level, and in what format.
5. **Type Definitions** — Find relevant types, interfaces, schemas, and how they're organized.
6. **Test Patterns** — Find how similar features are tested. Note test file locations, naming, setup/teardown patterns, and assertion styles.
7. **Configuration** — Find relevant config files, environment variables, and feature flags.
8. **Dependencies** — Identify packages, imports, and internal modules used by similar features.
Read relevant files to trace:
1. **Entry Points** — How does a request/action enter the system and reach the area you're modifying? 2. **Data Flow** — How does data move through the relevant code paths? 3. **State Changes** — What state is modified and where? 4. **Contracts** — What interfaces, APIs, or protocols must be honored? 5. **Patterns** — What architectural patterns are used (repository, service, controller, etc.)?
Compile findings into a single reference:
| Category | File:Lines | Pattern | Key Snippet | |---|---|---|---| | Naming | `src/services/userService.ts:1-5` | camelCase services, PascalCase types | `export class UserService` | | Error | `src/middleware/errorHandler.ts:10-25` | Custom AppError class | `throw new AppError(...)` | | ... | ... | ... | ... |
---
If the feature involves external libraries, APIs, or unfamiliar technology:
1. Search the web for official documentation 2. Find usage examples and best practices 3. Identify version-specific gotchas
Format each finding as:
KEY_INSIGHT: [what you learned] APPLIES_TO: [which part of the plan this affects] GOTCHA: [any warnings or version-specific issues]
If the feature uses only well-understood internal patterns, skip this phase and note: "No external research needed — feature uses established internal patterns."
---
Document the before/after user experience:
**Before:**
┌─────────────────────────────┐ │ [Current user experience] │ │ Show the current flow, │ │ what the user sees/does │ └─────────────────────────────┘
**After:**
┌─────────────────────────────┐ │ [New
Your agent can write code, but ECC gives it a coordinated engineering system and toolbox: it plans before it builds, verifies changes with tests, reviews its own work from a fresh context, remembers what matters, and turns repeated wins into reusable skills
Repo: affaan-m/everything-claude-code
Workflow command scaffold for add-language-rules in everything-claude-code.
Workflow command scaffold for database-migration in everything-claude-code.
Workflow command scaffold for feature-development in everything-claude-code.
Answer a quick side question without interrupting or losing context from the current task. Resume work automatically after answering.
Pull the latest ECC repo changes and reinstall the current managed targets.