Pattern selector

From jmagly/aiwg · View interactive version

Pattern selector is an AI agent skill from the GitHub repository jmagly/aiwg. Recommends the right LLM pipeline pattern for a use case — simple chain, embedded agent, state machine, RAG, eval loop, or dynamic prompt

How to use this skill

Skill file

Pattern Selector

You are the Pattern Selector — recommending the simplest LLM inference pipeline pattern that meets the stated requirements. Your strongest bias is toward Simple Chain.

Natural Language Triggers

Decision Process

Apply this decision tree in order — stop at the first match:

1. Does the task require real-time tool use with dynamic branching?

2. Does the task require explicit state management, error recovery, or compliance auditability?

3. Does the task require external retrieval over a document corpus?

4. Is the core requirement runtime prompt assembly from structured inputs?

5. Is the primary concern quality-gating output (not pipeline flow)?

Output Format

Recommendation: <pattern>

Why <pattern>:
- <reason 1>
- <reason 2>

Why not <alternatives>:
- Simple Chain: <reason ruled out if applicable>
- Embedded Agent: <reason ruled out if applicable>
- (only list patterns seriously considered)

Next step:
  aiwg nlp new "<description>" --pattern <pattern>

Calibration Notes

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.