Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

streaming-output-mcp

БесплатноБез исполняемых скриптовНе проверен

Stream structured content to persistent SQLite storage with automatic session break recovery. Core principle: The content IS the state. Every stream_write is…

ddunnockот ddunnock★ 15 звёзд на GitHub6 установок в других каталогах

Об этом скилле

Streaming Output MCP Skill

Agent instructions for using the streaming-output MCP to produce persistent, recoverable output.

Overview

This skill enables you to stream structured content to persistent SQLite storage with automatic session break recovery. Use it when producing reports, analysis results, task lists, or any structured output that needs to survive session interruptions.

Core Principle: The content IS the state. Every stream_write is automatically persistent.

Version 2.0 Features:

  • 7 pre-built document templates (security-audit, code-review, sprint-retrospective, etc.)
  • 6 export formats (Markdown, HTML, JSON, YAML, CSV, Plain Text)
  • Document finalization with completion verification
  • File export with path expansion

First Action Protocol

CRITICAL: Always follow this protocol at the start of any streaming task.

IF you have a document_id (from previous session or user):
    1. Call stream_status(document_id) FIRST
    2. Check for resume_from field
    3. If preserved_context exists, READ IT and CONTINUE from that point
    4. Do NOT restart blocks from scratch

IF you don't have a document_id:
    1. Call stream_start() to create new document
    2. Optionally use a template for structure
    3. Begin writing blocks in sequence

Why This Matters

Session breaks happen. When they do:

  • The MCP knows which blocks are incomplete
  • Partial content may be preserved in preserved_context
  • You should CONTINUE from the interruption point, not restart

Document Templates

Use templates for common document types with pre-defined structure:

Template Use Case Pre-declared Blocks
security-audit Security assessments executive_summary, scope, findings, recommendations
code-review PR/code reviews summary, critical_issues, suggestions, approval_status
sprint-retrospective Sprint retros what_went_well, improvements, action_items
technical-spec Technical specs overview, requirements, architecture, implementation_plan
adr Architecture decisions context, decision, consequences, alternatives
research-report Research docs abstract, methodology, findings, conclusions
task-list Task tracking No pre-declared blocks (dynamic)

To use a template:

{
  "title": "Q4 Security Audit",
  "template": "security-audit"
}

List available templates:

stream_templates({})

Tool Reference

stream_start

Initialize a new document.

// Minimal
{"title": "Code Review Report"}

// With template
{
  "title": "Security Assessment",
  "template": "security-audit"
}

// Custom structure
{
  "title": "Custom Report",
  "schema_type": "report",
  "blocks": [
    {"key": "summary", "type": "section"},
    {"key": "findings", "type": "finding"}
  ]
}

stream_write

Write content to a block. Each write is atomic and SHA-256 verified.

{
  "document_id": "doc_...",
  "block_key": "summary",
  "content": {
    "title": "Executive Summary",
    "body": "This audit identified 3 critical vulnerabilities..."
  },
  "block_type": "section"
}

Block Types:

Type When to Use Required Fields
section Narrative content title, body
task Actionable items id, title, status
finding Analysis results id, severity, description
decision ADR-style decisions id, title, decision, rationale
raw Arbitrary JSON content

Content Schemas:

// section
{"title": "...", "body": "..."}

// task
{"id": "T-001", "title": "...", "status": "pending|in_progress|complete", "assignee": "...", "notes": "..."}

// finding
{"id": "F-001", "severity": "critical|high|medium|low|info", "description": "...", "evidence": "...", "recommendation": "..."}

// decision
{"id": "ADR-001", "title": "...", "context": "...", "decision": "...", "rationale": "...", "alternatives": [...]}

stream_status

Check document state. Always call after session breaks.

// List recent documents
{}

// Check specific document with verification
{"document_id": "doc_...", "verify": true}

Response Fields:

{
  "resume_from": "findings",           // ← Start here
  "preserved_context": {
    "block_key": "findings",
    "partial_content": "Found 3 SQL injection..."
  },
  "summary": {
    "total": 5,
    "complete": 2,
    "pending": 3
  }
}

stream_read

Read document content in various formats.

// As JSON
{"document_id": "doc_...", "format": "json"}

// As Markdown
{"document_id": "doc_...", "format": "markdown"}

// Specific blocks
{"document_id": "doc_...", "format": "markdown", "blocks": ["summary", "recommendations"]}

stream_export (NEW)

Export document to a file.

{
  "document_id": "doc_...",
  "format": "html",
  "output_path": "~/Documents/report.html"
}

Supported Formats:

  • markdown
Полный SKILL.md на GitHub

Установить streaming-output-mcp в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

.claude-plugin/plugin.jsoncommands/stream-export.mdcommands/stream-init.mdcommands/stream-read.mdcommands/stream-status.mdcommands/stream-write.md

FAQ

Что делает скилл streaming-output-mcp?

Stream structured content to persistent SQLite storage with automatic session break recovery. Core principle: The content IS the state. Every stream_write is automatically persistent. Supports multi-format export (Markdown, HTML, JSON, YAML, CSV, Text) and 7 document templates. Commands: /stream-init, /stream-status, /stream-read, /stream-write, /stream-export. ALWAYS call stream_status after session breaks to check for resume_from and preserved_context.

Как установить скилл streaming-output-mcp?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл streaming-output-mcp запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить streaming-output-mcp с