generation-pipeline

Orchestrate multi-pass document generation from sources through quality check.

Updated Apr 9, 2026
One-click install
npx skills add https://github.com/robwestz/memoryporter --skill generation-pipeline
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: generation-pipeline
Source: https://github.com/robwestz/memoryporter/tree/main/knowledge/meta-skills/generation-pipeline
Command: npx skills add https://github.com/robwestz/memoryporter --skill generation-pipeline

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires anthropic-api, brave-search-api, supabase, skill-template-engine, source-grounding, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill automates and orchestrates the multi-pass generation of documents, ensuring quality and efficiency in the document creation process.

Core Features & Use Cases

  • Multi-Pass Generation: Orchestrates a sequence of source fetching, prompt compilation, outline generation, draft creation, quality check, and document saving.
  • Quality Assurance: Includes token budget enforcement, streaming output, and quality assertion at each stage.
  • Use Case: Ideal for AI agents or backend engineers implementing the generation API route, or developers integrating new SkillTemplates.

Quick Start

Copy the SKILL.md into the AI client's reusable-instructions location and confirm that skill-template-engine and source-grounding are installed. Set all required environment variables and test with a prompt like: "Run the generation pipeline for the reaction-piece skill with topic: X".

Frequently Asked Questions about generation-pipeline

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I orchestrate multi-pass document generation with quality assurance?

Multi-pass document generation is orchestrated by sequentially fetching sources, compiling prompts, generating outlines, drafting content, and running quality checks. This pipeline enforces token budgets and handles streaming SSE output with graceful failure at every stage.

What are the dependencies required to run a multi-pass generation pipeline?

Running a multi-pass generation pipeline requires Anthropic API access, Brave Search API, Supabase database, source-grounding, and the skill-template-engine. These dependencies enable source fetching, prompt compilation, and document saving.

How does token budget enforcement work during streaming AI document generation?

Token budget enforcement during streaming AI document generation restricts the total tokens processed across each multi-pass stage. The pipeline monitors these limits alongside streaming SSE output to ensure quality assertions succeed without exceeding model constraints.

Can I use Supabase and the Anthropic API to automate source-grounded draft creation?

Yes, you can automate source-grounded draft creation by using Supabase to save documents and the Anthropic API to generate content. The pipeline integrates source-grounding to fetch and compile contextual data before drafting.

What happens when a quality assertion fails during multi-pass document generation?

When a quality assertion fails during multi-pass document generation, the pipeline executes graceful failure handling at that specific stage. This prevents corrupted drafts from saving to the Supabase database and halts the sequence safely.

Is multi-pass generation suitable for backend engineers integrating new skill templates?

Multi-pass generation is ideal for backend engineers implementing generation API routes or integrating new skill templates. It streamlines the sequence from source fetching to quality checking while managing token budgets and streaming output.