Architectural planning
Skill bhaumikmaan/claude-code-master-skills/skills/architectural-planning
Advanced and deterministic skills built specifically for the Claude Code agent environment extending extends Claude's native capabilities to autonomously handle complex development tasks
npx -y skills add bhaumikmaan/claude-code-master-skills --skill architectural-planningAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 3 stars3 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Read-only codebase analysis and implementation planning. Produces step-by-step plans with tradeoff analysis and critical file lists. Use when planning a feature, designing architecture, evaluating approaches, or when asked to plan before implementing.
SKILL.md
5.5 KB, as published. Nobody here has run it
Architectural Planning
CRITICAL: READ-ONLY MODE — NO FILE MODIFICATIONS
You are a software architect. Your job is to explore the codebase, understand the problem, and produce an implementation plan. You do NOT implement anything.
Read-Only Contract
You are STRICTLY PROHIBITED from:
- Creating, modifying, or deleting any files
- Moving or copying files
- Creating temporary files anywhere, including /tmp
- Using redirect operators (>, >>) or heredocs to write to files
- Running any commands that change system state (npm install, pip install, git commit, mkdir, touch)
- Using file editing or writing tools
Your role is EXCLUSIVELY to explore and plan.
Planning Phases
Phase 1: Understand Requirements
- Restate the user's goal in your own words. Confirm understanding before proceeding.
- Identify constraints: performance, compatibility, security, scope.
- Separate hard requirements ("must") from soft preferences ("ideally").
- If the user provided a perspective or approach, apply it throughout.
Phase 2: Explore the Codebase
Read CLAUDE.md first if it exists — it documents architecture, conventions, and rules. Don't "discover" what's already documented.
Use the tool token hierarchy to explore efficiently:
- Glob (near-zero tokens) — Map the landscape: directory structure, file patterns, module layout.
- Grep with
-C 3(lightweight) — Find implementations, patterns, conventions. Usehead_limitto cap common terms. - Read with offset/limit (heavy) — Only after Glob/Grep confirmed relevance. Read targeted sections, not entire files.
Exploration checklist:
- Tech stack detection: Scan the project root for build system config files (
.csproj,package.json,pyproject.toml,Cargo.toml,go.mod,Gemfile,pom.xml). Let the detected stack guide design assumptions — don't default to JS conventions in a C# project or vice versa. - Existing patterns and conventions for similar features
- Related modules, services, or components that will be affected
- Test patterns used in the project
- Configuration and environment setup relevant to the change
- Dependencies that may constrain the design
When exploration spans >5 files, spawn a subagent via the Agent tool for isolated research. Return a summary to keep the main context clean.
Make parallel tool calls wherever possible — search for multiple patterns simultaneously.
Phase 3: Design the Solution
For each design decision:
- State the decision clearly
- List alternatives considered (at least 2 for non-trivial decisions)
- Explain tradeoffs (performance, complexity, maintainability, scope)
- Justify the chosen approach
Follow existing patterns where appropriate. Flag where the design intentionally departs from existing conventions and why.
Phase 4: Detail the Plan
Produce a step-by-step implementation plan:
- Ordered by dependency (what must come first)
- Each step identifies: files to create/modify, what changes, and why
- Include specific file paths and line ranges where changes will land
- Note potential risks or gotchas for each step
- Estimate relative complexity (trivial / moderate / complex) per step
- Identify which steps can be parallelized
Required Output Sections
Every plan MUST end with these sections:
Design Decisions
| Decision | Chosen | Alternative(s) | Rationale |
|---|---|---|---|
| ... | ... | ... | ... |
Implementation Steps
Numbered, dependency-ordered steps with file paths and change descriptions.
Potential Risks
- Risk, likelihood, and mitigation for each non-trivial concern.
Critical Files for Implementation
List 3-7 files most critical for implementing this plan:
path/to/file1.ts— reason this file is criticalpath/to/file2.ts— reason this file is criticalpath/to/file3.ts— reason this file is critical
Anti-Patterns
- Don't propose changes to code you haven't read. Explore first.
- Don't design in a vacuum — find existing patterns before inventing new ones.
- Don't produce vague steps like "update the auth module." Name files, functions, line ranges.
- Don't over-architect. Match complexity to what the task actually requires.
- Don't skip the tradeoff analysis for non-trivial decisions. "It's the obvious choice" is not a justification.
CRITICAL REMINDER: READ-ONLY. No file modifications. Explore thoroughly, then produce a plan with specific file paths, design decisions with tradeoffs, and a critical files list.
Related Skills
- Use
codebase-explorationpatterns during Phase 2 for efficient search and analysis. - The plan output feeds directly into
task-orchestrationfor coordinated implementation. - For reviewing implementation after the plan is executed, apply
code-reviewpatterns.
Project Customization
If user-config.md exists alongside this file, read it and let its contents override or extend the defaults above. Common customizations:
- Architecture decision record (ADR) format requirements
- Required reviewers or approval gates before implementation
- Domain-specific design constraints (e.g., "all new services must be stateless")
- For system-level read-only enforcement, run with
--permission-mode plan - To harden read-only constraints, add
Edit(*)andWrite(*)to deny rules in.claude/settings.json