workflow-generation
# Workflow Generation Skill
What this skill does
# Workflow Generation Skill **Purpose**: Provide deep knowledge about organizing software development commands into phased workflows for parallel execution and clear dependency management. --- ## Core Concepts ### The Phase-Based Execution Model **Philosophy**: Software development commands should be organized into **distinct phases** that can be: - Executed in **separate terminal sessions** (fresh context) - Run in **parallel** where dependencies allow - Used as **clear checkpoints** in the development process **Why Phases Matter**: 1. **Avoid context contamination** - Each terminal starts fresh 2. **Enable parallel work** - Multiple developers or instances 3. **Create natural checkpoints** - Complete one phase before next 4. **Facilitate rollback** - Easy to return to phase boundaries --- ## Phase Organization Patterns ### Standard Dev Lifecycle Phases **Phase 1: Foundation** (Always first, no dependencies) - Purpose: Set up project structure and environment - Typical commands: - Project initialization - Directory structure creation - Environment detection/validation - Repository initialization - Secret management setup - Tool installation verification **Phase 2: Planning** (Requires: Foundation complete) - Purpose: Define what to build before building it - Typical commands: - Requirements gathering - Spec creation - Architecture design - Decision documentation (ADRs) - Roadmap creation - Database schema design **Phase 3: Implementation** (Requires: Planning + Foundation) - Purpose: Build the actual features - Typical commands: - Task layering - Component creation - Feature development - Integration setup - Data model implementation - Sub-phases: - L0: Infrastructure (databases, APIs, auth) - L1: Core components (shared libraries) - L2: Features (business logic) - L3: Integration (wiring everything together) **Phase 4: Quality** (Can run parallel with late Implementation) - Purpose: Validate what was built - Typical commands: - Test suite generation - Security scanning - Code validation - Performance analysis - Accessibility testing **Phase 5: Deployment** (Requires: Quality passed) - Purpose: Ship to production - Typical commands: - Platform detection - Pre-flight checks - CI/CD setup - Deployment execution - Health validation - Monitoring setup **Phase 6: Iteration** (Ongoing, throughout process) - Purpose: Improve and refine - Typical commands: - Feature enhancement - Code refactoring - Spec synchronization - Feedback integration --- ## Command Classification Patterns ### How to Categorize Commands **Foundation Indicators**: - Keywords: `init`, `setup`, `detect`, `validate`, `env`, `structure` - Actions: Creates directories, validates tools, sets up environment - Examples: `/foundation:init-structure`, `/foundation:env-check` **Planning Indicators**: - Keywords: `wizard`, `spec`, `architecture`, `decide`, `roadmap`, `plan` - Actions: Creates documentation, designs systems, documents decisions - Examples: `/planning:wizard`, `/planning:architecture` **Implementation Indicators**: - Keywords: `add`, `create`, `integrate`, `build`, `generate` - Actions: Creates code, components, features - Examples: `/nextjs-frontend:add-component`, `/fastapi-backend:add-endpoint` **Quality Indicators**: - Keywords: `test`, `validate`, `security`, `performance`, `quality` - Actions: Runs tests, scans for issues, validates code - Examples: `/testing:test`, `/quality:validate-code` **Deployment Indicators**: - Keywords: `deploy`, `prepare`, `cicd`, `validate`, `monitor` - Actions: Deploys to platforms, sets up pipelines, validates deployment - Examples: `/deployment:deploy`, `/deployment:prepare` **Iteration Indicators**: - Keywords: `enhance`, `refactor`, `adjust`, `sync`, `improve` - Actions: Improves existing code, syncs documentation - Examples: `/iterate:enhance`, `/iterate:refactor` --- ## Phase Dependency Rules ### Strict Dependencies (MUST follow order) ``` Foundation → Planning → Implementation → Quality → Deployment ``` - Foundation has **no dependencies** (always first) - Planning **requires Foundation** complete - Implementation **requires Planning + Foundation** - Quality **requires Implementation** (at least partially) - Deployment **requires Quality** passed - Iteration can happen **throughout** (but often after initial implementation) ### Parallel Execution Opportunities **Within Foundation**: - Environment checks can run parallel with structure validation - Secret management can run parallel with repository init **Within Implementation**: - Frontend and backend can be built in parallel - Different features can be built simultaneously (if independent) **Quality and Late Implementation**: - Tests can be written while final features are being implemented - Security scanning can run on completed components --- ## Project Context Reading Patterns ### What to Read (In Order) 1. **`.claude/project.json`** (MUST READ FIRST) - Tech stack information - Framework versions - Architecture pattern - Deployment targets 2. **`docs/architecture/`** (If exists) - System design - Component diagrams - Data flow - Integration points 3. **`docs/adr/`** (If exists) - Architecture decisions - Decision rationale - Trade-offs made - Migration plans 4. **`specs/`** (If exists) - Feature specifications - Requirements - Task breakdowns 5. **Current file state** (File existence checks) - What's already implemented - What's missing - Completion status ### How to Use Context **From project.json:** - Extract tech stack (determines which implementation commands to include) - Understand architecture pattern (monolithic vs microservices affects phasing) - Identify deployment targets (determines deployment commands) **From ADRs:** - Understand WHY decisions were made - Include relevant context in workflow - Respect architectural patterns chosen **From architecture docs:** - Understand system design - Include in workflow overview - Guide implementation phase organization **From specs:** - Know what features exist - Understand current state - Determine what still needs building **From file existence:** - Mark commands as ✅ (done) if files exist - Mark as □ (todo) if files missing - Show progress through workflow --- ## Workflow Document Structure ### Recommended Sections 1. **Project Overview** - Tech stack summary (from project.json) - Architecture pattern (from ADRs) - Current status (from file checks) 2. **Phased Commands** - One section per phase - Clear phase boundaries - Commands grouped logically - Dependencies noted 3. **Progress Indicators** - ✅ = Already done (auto-detected) - □ = Still to do - 🔄 = In progress (partial implementation) 4. **Project-Specific Context** - Relevant ADR summaries - Architecture highlights - Business metrics (if applicable) 5. **Next Steps** - What to run next - What's blocking progress - How to regenerate workflow --- ## Examples from Real Projects ### Example: AI Education Platform (Monolithic MVP) **Context from ADRs**: - ADR 0006: Start monolithic, migrate to microservices later - Trigger: >5,000 students or >30 sec AI response times **Phase Organization**: ``` Phase 1: Foundation - /foundation:init-structure - /foundation:github-init - /foundation:doppler-setup Phase 2: Planning - /planning:wizard - /planning:architecture - /planning:decide Phase 3: Implementation (Monolithic) - /fastapi-backend:init (single service) - /nextjs-frontend:init - /supabase:init - Implement study partner as embedded library (NOT microservice) Phase 4-6: Standard (Quality, Deployment, Iteration) ``` **Key Insight**: Architecture decision (monolithic) directly affects implementation phase. --- ## Integration with Dan's Composition Pattern ### How This Skill Fits ``` Slash Command (/foundation:generate-workflow) ↓ Loads THIS SK
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.