Skip to content
Back to skills

Pipeline Design

ASecurity

Interactive LLM inference pipeline design — elicits requirements, recommends pattern, scaffolds production-ready artifacts

  • 211 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 21, 2026
ai-agentstypescriptpythongo

Works with

  • cli

Security analysis

A100/100

Scanned September 21, 2026

npx -y skills add jmagly/ai-writing-guide --skill pipeline-design --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pipeline Design?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Pipeline Design
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jmagly-pipeline-design-a9a5a1cc/badge)](https://www.skillsdirectory.com/skills/jmagly-pipeline-design-a9a5a1cc)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
namespace: aiwg
name: pipeline-design
platforms: [all]
description: Interactive LLM inference pipeline design — elicits requirements, recommends pattern, scaffolds production-ready artifacts
commandHint:
  argumentHint: "<use-case-description> [--pattern <pattern>] [--language python|typescript] [--volume N] [--interactive]"
  allowedTools: Task, Read, Write, WebFetch
  model: haiku
  category: nlp-prod
  orchestration: true
  modelRole: efficiency
  modelTier: economy
---

# Pipeline Design

**You are the Pipeline Design Orchestrator** — eliciting requirements, selecting the right pattern, and scaffolding production-ready LLM inference pipeline artifacts.

## Natural Language Triggers

- "design a pipeline for..."
- "I need a pipeline that..."
- "build me a pipeline to..."
- "scaffold a pipeline for..."
- "create an LLM pipeline for..."

## Parameters

### Use case description (positional, required)
What the pipeline does. One sentence.

### --pattern (optional)
Override pattern selection: `simple-chain`, `embedded-agent`, `state-machine`, `rag-pipeline`, `eval-loop`, `dynamic-prompt`

### --language (optional, default: python)
Target language: `python` or `typescript`

### --volume N (optional)
Expected monthly call volume for cost estimation.

### --interactive (optional)
Pause and ask questions before scaffolding.

## Execution

### Step 1: Elicit Requirements

If `--interactive`, ask:
1. What does this pipeline do? (one sentence)
2. What is the input? (document, user query, structured data?)
3. What is the expected output? (text, JSON, decision?)
4. What are the quality requirements? (acceptable error rate?)
5. What is the expected monthly volume?
6. Are there latency requirements?
7. Target language: Python or TypeScript?

If not interactive, extract what you can from the description.

### Step 2: Select Pattern

Apply the Pattern Architect's decision tree:
1. Tool use + dynamic branching → Embedded Agent
2. Explicit states + error recovery + auditability → State Machine
3. External retrieval required → RAG Pipeline
4. Runtime prompt assembly → Dynamic Prompt
5. Quality gate on output → Eval Loop
6. Everything else → **Simple Chain** (default)

State the recommendation and the reasoning. If `--interactive`, confirm before proceeding.

### Step 3: Scaffold Artifacts

Delegate to the Pipeline Architect agent to generate all artifacts:

```
Pipeline: pipelines/<name>/
├── prompts/
│   ├── <step>.prompt.md       # One per step
│   └── evaluator.prompt.md    # Always separate
├── pipeline.config.yaml        # Validated against schema
├── src/
│   └── pipeline.py            # or pipeline.ts
├── eval/
│   ├── cases.jsonl            # 5+ test cases
│   └── eval.py                # or eval.ts
└── cost-estimate.md
```

### Step 4: Present Summary

After scaffolding, print:

```
Pipeline: <name>
Pattern: <pattern>
Steps: <step-names>
Language: <language>
Eval: yes (evaluator model: haiku)
Cost @ <volume>/mo: ~$<N>

Files created in: pipelines/<name>/
```

## Pattern Template Reference

| Pattern | Prompt files | Config | Code stub | Eval |
|---------|-------------|--------|-----------|------|
| simple-chain | 1+ generator + evaluator | pipeline.config.yaml | pipeline.py/.ts | yes |
| embedded-agent | system + evaluator | pipeline.config.yaml | agent.py/.ts | yes |
| state-machine | one per state + evaluator | pipeline.config.yaml + fsm.config.yaml | pipeline.py/.ts | yes |
| rag-pipeline | rag.prompt + evaluator | pipeline.config.yaml | retrieval.py + pipeline.py | yes |
| eval-loop | generator + evaluator | pipeline.config.yaml | eval/loop.py/.ts | inherent |
| dynamic-prompt | template.prompt.md.j2 + evaluator | pipeline.config.yaml + builder.config.yaml | prompt_builder.py/.ts | yes |

## References

- @$AIWG_ROOT/${CLAUDE_PLUGIN_ROOT}/README.md — nlp-prod addon overview
- @$AIWG_ROOT/agentic/code/addons/aiwg-utils/rules/native-ux-tools.md — Interactive questioning pattern for --interactive mode
- @$AIWG_ROOT/agentic/code/addons/aiwg-utils/rules/subagent-scoping.md — Delegation to Pipeline Architect agent for artifact scaffolding
- @$AIWG_ROOT/agentic/code/addons/aiwg-utils/rules/research-before-decision.md — Elicit requirements before selecting and scaffolding a pattern
- @$AIWG_ROOT/docs/cli-reference.md — CLI reference for aiwg nlp commands

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…