extract-context

Analyze LLM outputs to extract structured context in XML/JSON.

1|Updated Nov 19, 2025
One-click install
npx skills add https://github.com/manutej/meta-prompting-framework --skill extract-context
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: extract-context
Source: https://github.com/manutej/meta-prompting-framework/tree/main/skills/extract-context
Command: npx skills add https://github.com/manutej/meta-prompting-framework --skill extract-context

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill analyzes LLM outputs to identify patterns, constraints, success indicators, and improvement opportunities, enabling structured context for iterative prompting.

Core Features & Use Cases

  • 7-phase extraction framework: pulls domain primitives, patterns, constraints, complexity factors, success indicators, and improvements from any agent output.
  • Structured outputs: returns parseable context for the next iteration in XML/JSON formats.
  • Use Case: After an LLM run, extract the context to guide the next prompt and close gaps between iterations.

Quick Start

Run the extractor on your latest agent output to generate structured context for the next prompt. Then feed the result into your subsequent prompt.

Frequently Asked Questions about extract-context

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

FAQPage Schema
How do I extract structured context from LLM outputs for prompt engineering?

Structured context extraction analyzes LLM outputs to identify domain primitives, patterns, constraints, and improvement needs. It applies a seven-phase extraction framework to generate parseable XML or JSON context for subsequent prompt generation.

What is the best way to format LLM outputs for iterative prompting?

The best way to format LLM outputs for iterative prompting is by structuring the extracted context into XML or JSON formats. This parseable structure captures success indicators and improvement opportunities to guide the next prompt iteration.

How does a seven-phase extraction framework work for LLM outputs?

A seven-phase extraction framework works by systematically pulling domain primitives, patterns, constraints, complexity factors, success indicators, and improvements from any LLM output. It formats these extracted elements to guide subsequent prompt generation and evaluation steps.

Can I use JSON and XML to structure extracted context from agent outputs?

Yes, you can use JSON and XML to structure extracted context from agent outputs. The extraction process returns results in these parseable formats to close gaps between iterations and feed directly into your subsequent prompt.

Why do I need structured context to guide subsequent prompt generation?

You need structured context to guide subsequent prompt generation because it identifies patterns, constraints, and improvement opportunities from previous runs. This structured feedback enables iterative prompting by closing gaps between agent outputs and desired outcomes.

When should I apply structured context extraction to my LLM outputs?

You should apply structured context extraction to your LLM outputs immediately after an agent run. Extracting context at this stage generates the structured feedback needed to guide the next prompt and improve subsequent iterations.