agentsclimarketplace

N8n prd discovery

Skill gabrielrdga/n8n-skills/skills/n8n-prd-discovery

Requirements discovery and workflow planning. Use when starting a new automation project, planning workflow architecture, asking "I want to automate X", defining requirements, or generating a workflow specification before building.From its SKILL.md

Install
npx -y skills add gabrielrdga/n8n-skills --skill n8n-prd-discovery

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 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.

SKILL.md

10.4 KB, as published. Nobody here has run it

n8n PRD & Discovery

Expert guidance for requirements gathering and workflow planning before building.


Why Discovery First?

Problem: Building workflows without clear requirements leads to:

  • Wrong pattern selection (webhook vs scheduled)
  • Missing integrations discovered mid-build
  • Credential setup surprises
  • Rework and wasted time

Solution: Spend 2 minutes on discovery, save 20 minutes on rework.

This skill guides you through:

  1. Understanding the automation goal
  2. Mapping integrations and data flows
  3. Generating a structured Workflow Spec
  4. Assessing complexity and prerequisites

Discovery Workflow

1. Understand the Goal
   ↓ What are you trying to automate?
2. Identify Trigger
   ↓ What starts this workflow?
3. Map Integrations  
   ↓ What systems are involved?
4. Define Data Flow
   ↓ What data moves where?
5. Assess Requirements
   ↓ Security, volume, error handling?
6. Generate Workflow Spec
   ↓ Structured YAML output
7. Find Similar Templates
   ↓ search_templates for inspiration

Discovery Questions

Phase 1: Goal Understanding

Ask these questions to understand the automation:

QuestionWhy It Matters
What process are you automating?Determines overall pattern
What's the expected trigger? (event, schedule, manual)Selects trigger node type
What's the desired output/action?Identifies output nodes
How often will this run?Impacts design (batch vs real-time)
Is this for dev, staging, or production?Determines validation strictness

Phase 2: Integration Mapping

QuestionWhy It Matters
Which external services are involved?Maps nodes needed
Do you already have credentials for these?Surfaces setup work
What data format do APIs use? (REST, GraphQL, webhooks)Guides HTTP config
Are there rate limits to consider?Impacts error handling
Is authentication OAuth, API key, or basic?Determines credential type

Phase 3: Data Flow

QuestionWhy It Matters
What data comes in? (structure, volume)Input node config
What transformations are needed?Code vs Set nodes
What data goes out? (format, destination)Output node config
Are there conditional paths?IF/Switch nodes
Do you need to aggregate or split data?Merge/SplitInBatches

Phase 4: Requirements

QuestionWhy It Matters
How critical is this workflow?Error handling level
What happens if it fails?Recovery strategy
Are there compliance requirements?Audit and logging
Expected data volume per run?Performance design
Who should be notified on failure?Alert configuration

Workflow Spec Format

After discovery, generate a structured specification:

workflow_spec:
  # Identity
  name: "Order Processing Pipeline"
  description: "Process incoming Shopify orders, update inventory, notify team"
  version: "1.0.0"
  
  # Trigger
  trigger:
    type: webhook          # webhook | schedule | manual | polling | event
    source: "Shopify"
    method: POST
    authentication: required
  
  # Integrations
  integrations:
    - service: shopify
      role: source          # source | destination | both
      operations: [getOrder, getProduct]
      credential_type: shopifyApi
    - service: postgres
      role: destination
      operations: [insert, update]
      credential_type: postgresApi
    - service: slack
      role: notification
      operations: [postMessage]
      credential_type: slackApi
  
  # Data Flow
  data_flow:
    input:
      format: json
      source: "Shopify webhook payload"
      key_fields: [order_id, customer, line_items, total_price]
    transformations:
      - type: extract
        description: "Parse order items and customer data"
      - type: enrich
        description: "Look up inventory levels"
      - type: conditional
        description: "Route high-value orders for review"
    output:
      - destination: postgres
        action: "Insert order record"
      - destination: slack
        action: "Send notification to #orders channel"
  
  # Architecture
  pattern: webhook_processing    # webhook | http_api | database | ai_agent | scheduled
  estimated_nodes: 8
  complexity: medium             # simple (3-5) | medium (6-10) | complex (11+)
  has_branching: true
  has_loops: false
  
  # Requirements
  requirements:
    error_handling: required
    retry_logic: true
    rate_limiting: false
    logging: true
    human_approval: false        # true = needs publish gate review
    
  # Credentials Needed
  credentials:
    - type: shopifyApi
      status: unknown            # existing | unknown | needs_creation
    - type: postgresApi
      status: unknown
    - type: slackApi
      status: unknown
  
  # Environment
  environment: production        # development | staging | production
  
  # Validation Profile
  validation_profile: strict     # minimal | runtime | ai-friendly | strict

Pattern Selection from Spec

Based on the workflow spec, select the right pattern:

Trigger TypePrimary Action→ Pattern
webhookProcess & respondWebhook Processing
webhookFetch from APIHTTP API Integration
scheduleQuery databaseDatabase Operations
webhook/manualAI reasoningAI Agent Workflow
schedulePeriodic taskScheduled Tasks

Decision Tree

Is the trigger an event/webhook?
├── YES → Does it need AI/reasoning?
│   ├── YES → AI Agent Workflow
│   └── NO → Webhook Processing
└── NO → Is it time-based?
    ├── YES → Does it interact with databases?
    │   ├── YES → Database Operations
    │   └── NO → Scheduled Tasks
    └── NO → HTTP API Integration

Template Discovery

After generating the spec, find similar templates:

// Search by task type
search_templates({
  searchMode: "by_task",
  task: spec.pattern  // e.g., "webhook_processing"
});

// Search by node types involved
search_templates({
  searchMode: "by_nodes",
  nodeTypes: spec.integrations.map(i => 
    `n8n-nodes-base.${i.service}`
  )
});

// Search by keyword
search_templates({
  query: `${spec.trigger.source} ${spec.integrations[0].service}`,
  limit: 10
});

Use templates as starting points, not final solutions. They provide:

  • Proven node configurations
  • Connection patterns
  • Real-world examples

Credential Pre-Check

Before building, verify credentials:

// List existing credentials
const existing = await n8n_manage_credentials({
  action: "list"
});

// Check which credentials from spec already exist
for (const cred of spec.credentials) {
  const found = existing.find(e => e.type === cred.type);
  if (found) {
    cred.status = "existing";
    cred.id = found.id;
    cred.name = found.name;
  } else {
    cred.status = "needs_creation";
    // Get schema for creation
    const schema = await n8n_manage_credentials({
      action: "getSchema",
      credentialType: cred.type
    });
    cred.required_fields = schema;
  }
}

Complexity Assessment

Simple (3-5 nodes)

  • Linear flow, no branching
  • Single integration
  • Basic transformation
  • Estimated build time: 5-10 minutes
  • Example: Webhook → Set → Slack

Medium (6-10 nodes)

  • 1-2 branches
  • 2-3 integrations
  • Code node transformations
  • Error handling
  • Estimated build time: 15-30 minutes
  • Example: Webhook → Validate → IF → [DB + Slack] → Error Handler

Complex (11+ nodes)

  • Multiple branches
  • 4+ integrations
  • AI reasoning
  • Loop/batch processing
  • Estimated build time: 30-60 minutes
  • Example: Schedule → API → SplitInBatches → AI Agent → [DB + Email + Slack] → Error Handler

Handoff to Builder

After discovery, the workflow spec is used by:

  1. n8n-builder-orchestrator — Orchestrates the full build
  2. n8n-workflow-patterns — Selects detailed pattern
  3. n8n-mcp-tools-expert — Finds and configures nodes
  4. n8n-credential-policy — Governs credential creation
  5. n8n-test-gate — Validates before publish

Example Handoff

DISCOVERY COMPLETE
══════════════════════════════════════
Workflow: "Order Processing Pipeline"
Pattern: Webhook Processing
Nodes: ~8 (medium complexity)
Integrations: Shopify, Postgres, Slack
Credentials: 2 need creation, 1 exists
Error Handling: Required
Validation: Strict (production)

Ready to build? The orchestrator will:
1. ✓ Verify/create credentials (credential-policy)
2. ✓ Scaffold workflow (workflow-patterns)
3. ✓ Configure nodes (node-configuration)
4. ✓ Validate (validation-expert)
5. ✓ Test (test-gate)
6. ✓ Audit (audit-compliance)
7. ✓ Publish (publish-gate)

Best Practices

✅ Do

  • Always start with discovery for non-trivial workflows
  • Generate a workflow spec before building
  • Check existing credentials before creating new ones
  • Use templates for inspiration
  • Assess complexity honestly
  • Plan error handling upfront

❌ Don't

  • Skip discovery for production workflows
  • Build without knowing all integrations
  • Assume credentials exist
  • Underestimate complexity
  • Forget about error handling
  • Start coding before planning

Related Skills

  • n8n-builder-orchestrator — Takes the spec and orchestrates the build
  • n8n-workflow-patterns — Detailed pattern implementations
  • n8n-mcp-tools-expert — Template search and node discovery
  • n8n-credential-policy — Credential governance
  • n8n-test-gate — Pre-publish validation

Summary

Discovery Process:

  1. Ask discovery questions → Understand goal, integrations, requirements
  2. Generate Workflow Spec → Structured YAML with all details
  3. Select pattern → Match trigger + action to proven pattern
  4. Find templates → Use search_templates for inspiration
  5. Pre-check credentials → Verify what exists, what needs creation
  6. Assess complexity → Simple/Medium/Complex with time estimates
  7. Hand off to builder → Spec drives the entire build pipeline

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.