explore-plan-code
Structured workflow for non-trivial tasks. Read files first, create detailed plan, get approval, then implement. Prevents premature coding.
What this skill does
# Explore-Plan-Code Skill ## Trigger Use when starting any non-trivial implementation task. This workflow prevents premature coding and significantly improves outcomes for complex problems. ## The Insight From Anthropic's Claude Code best practices: "Research and planning before implementation dramatically outperforms jumping to code." ## The Anti-Pattern Jumping straight to writing code without understanding: - What files are involved - How existing code works - What patterns are already established - What the full scope of changes will be ## The Workflow ### Phase 1: Explore Read relevant files first **without writing any code**. ``` Read the authentication module and understand how sessions are currently handled. Don't write any code yet. ``` Key activities: - Read existing implementations of similar features - Understand the data flow - Identify all files that will need changes - Note existing patterns and conventions ### Phase 2: Plan Request a detailed plan. Use "think" to trigger extended reasoning. ``` Think through how we should implement the new caching layer. Consider: - What components need to change - What order to make changes - What could go wrong - How to test each part Write out a detailed plan before any implementation. ``` The plan should include: - [ ] Files to modify (in order) - [ ] New files to create - [ ] Key implementation decisions - [ ] Testing strategy - [ ] Rollback approach if something breaks ### Phase 3: Approve Review the plan. Ask questions. Identify risks. **Don't proceed until you're confident the plan is sound.** Questions to ask: - Does this cover all edge cases? - Is this the simplest approach? - What could go wrong? - How will we verify it works? ### Phase 4: Code Now implement, following the approved plan. ``` Implement the plan we discussed. Start with [first file] and work through the list. ``` Benefits of coding after planning: - Fewer false starts - Less context wasted on wrong approaches - Clear stopping points - Easier to course-correct ### Phase 5: Commit Review changes, write clear commit message, verify tests pass. ## Template Prompt ```markdown ## Task: [Description] ### Phase 1: Explore Please read and understand these files before doing anything else: - [file1] - [file2] - [relevant directory] Summarize how [relevant system] currently works. ### Phase 2: Plan Think through the implementation approach. Write a detailed plan including: - Files to modify - Order of changes - Testing approach - Potential risks ### Phase 3: Wait for Approval Stop after the plan. I'll review before you implement. ``` ## When to Use Each Phase | Task Complexity | Explore | Plan | Approve | Code | |-----------------|---------|------|---------|------| | Trivial fix | Skip | Skip | Skip | Do | | Simple feature | Brief | Brief | Quick | Do | | Complex feature | Thorough | Detailed | Careful | Do | | Architecture change | Deep | Comprehensive | Multiple reviews | Do | ## Why This Works - Exploration builds accurate mental model - Planning catches issues before they're coded - Approval creates checkpoint for course correction - Coding becomes execution of known-good plan
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.