Use Case Taxonomy

A systematic classification of generative AI patterns for software development and content creation.

Overview

Basic Generative Use Cases

0 โ†’ 1: Content Creation (Foundational)

Generate new content from scratch based on descriptions or prompts.

Description โ†’ LLM โ†’ Generated File
"Create a REST API for user management" โ†’ LLM โ†’ UserController.kt

Examples:

1 โ†’ 1: Content Transformation (Transform)

Transform existing content while preserving its essential meaning or structure.

Input โ†’ Transform โ†’ Output

Examples:

(A + B + โ€ฆ) โ†’ C: Synthesis (Combine)

Combine multiple inputs to create unified, coherent output.

[A, B, C] โ†’ Synthesize โ†’ Result

Examples:

(A โˆ’ B + C) โ†’ D: Analogical Generation (Advanced)

Create new content by combining and modifying existing pieces through analogy.

A โˆ’ B + C โ†’ D

Concept: Transfer features from one class/file to another โ€” a sort of "transgenic" content generation.

UserService (A) - BasicCRUD (B) + CachingLayer (C) โ†’ CachedUserService (D)

Advanced Generative Use Cases

A โ†’ A + ฮด: Incremental Generation (Extend)

Generate additions to existing content, continuing from where it left off.

Existing (A) โ†’ Continue โ†’ Extended (A + ฮด)

Key Insight: Essentially telling the model to "continue" from where it left off, useful for long-form content generation.

Hierarchical Generation (Scale)

Generate complex content through multiple stages of refinement and transformation.

Spec
โ”œโ”€โ”€ Module A
โ”‚    โ”œโ”€โ”€ File 1
โ”‚    โ””โ”€โ”€ File 2
โ”œโ”€โ”€ Module B
โ”‚    โ”œโ”€โ”€ File 3
โ”‚    โ””โ”€โ”€ File 4
โ””โ”€โ”€ Module C
โ”œโ”€โ”€ File 5
โ””โ”€โ”€ File 6

Key Insight: Allows for exponential growth in content volume. LLM output is generally constrained by input size, but hierarchical generation bypasses this limitation.

Applications:

Iterative Editing (Refine)

Repeatedly refine content through multiple editing passes.

Aโ‚€ โ†’ Edit โ†’ Aโ‚ โ†’ Edit โ†’ Aโ‚‚ โ†’ ... โ†’ Aโ‚™

Considerations:

Error Correction (Fix)

Identify and correct errors using a feedback loop with external validation.

Code โ†’ Validator (Tests / Linter)
โŒ Fail โ†’ Fix โ†’ (loop back to Validator)
โœ… Pass โ†’ Done

Considerations:

Combined Workflows

Real-world workflows often combine multiple patterns to achieve complex goals.

Example: Spec-Driven Development Pipeline

Spec โ†’ (Modules)            [Hierarchical]
โ†“
Each Module โ†’ Code          [0โ†’1 Creation]
โ†“
Code โ†’ Tests                [1โ†’1 Transformation]
โ†“
while(tests fail) โ†’ Fix     [Error Correction]

Quick Reference

Pattern Notation Use Case Cognotik Task
Content Creation 0 โ†’ 1 Generate new files from descriptions FileTask
Transformation 1 โ†’ 1 Edit, refactor, translate EditTask
Synthesis (A+B+...) โ†’ C Combine multiple inputs InquiryTask
Analogical (Aโˆ’B+C) โ†’ D Feature transfer EditTask
Incremental A โ†’ A+ฮด Continue/extend content FileTask
Hierarchical A โ†’ (B,C); ... Multi-stage generation TaskPlanningTask
Iterative for(1..n) A โ†’ A Repeated refinement EditTask
Error Correction while(fail) fix Validation-driven fixes RunShellCommandTask