Output formatter

From eddiebelaval/squire · View interactive version

Output formatter is an AI agent skill from the GitHub repository eddiebelaval/squire. Format AI outputs for different contexts and audiences

How to use this skill

Skill file

Output Formatter

The Output Formatter skill transforms AI-generated content into the right format for your specific context. Whether you need markdown for documentation, JSON for APIs, tables for analysis, or prose for presentations, this skill ensures outputs are structured appropriately and consistently.

This skill understands format requirements across different platforms (GitHub, Notion, Slack, email), use cases (technical docs, user guides, reports, code comments), and audiences (developers, stakeholders, end users). It helps you avoid manual reformatting and ensures professional, consistent presentation.

Use this skill whenever AI output needs to be transformed for a specific platform, integrated into existing documentation, or presented to a particular audience.

Core Workflows

Workflow 1: Convert Between Formats

  1. Identify source format:
  1. Understand target format requirements:
  1. Map content structure:
  1. Transform content:
  1. Validate output:
  1. Provide formatted result

Workflow 2: Format for Specific Platform

  1. Identify target platform:
  1. Apply platform-specific conventions:
  1. Optimize for platform:
  1. Test rendering (if possible)
  2. Provide ready-to-paste output

Workflow 3: Structure Data for Presentation

  1. Analyze data content:
  1. Choose optimal structure:
  1. Format accordingly:
  1. Add context:
  1. Validate readability

Workflow 4: Adapt for Audience

  1. Identify target audience:
  1. Adjust content appropriately:
  1. Restructure for clarity:
  1. Format to match expectations:
  1. Review for appropriateness

Quick Reference

| Action | Command/Trigger |

|--------|-----------------|

| Convert to markdown | "Format as markdown" |

| Convert to JSON | "Format as JSON" |

| Convert to table | "Format as table" |

| Format for GitHub | "Format for GitHub" |

| Format for Notion | "Format for Notion" |

| Format for Slack | "Format for Slack" |

| Make it technical | "Format for developers" |

| Make it non-technical | "Format for stakeholders" |

| Create summary | "Format as executive summary" |

Best Practices

Format Templates

Markdown Documentation

# Main Title

## Overview
Brief introduction to the topic.

## Key Concepts
- **Concept 1**: Description
- **Concept 2**: Description

## Usage
\`\`\`language
code example
\`\`\`

## Reference
| Parameter | Type | Description |
|-----------|------|-------------|
| param1 | string | What it does |

JSON API Response

{
  "status": "success",
  "data": {
    "items": [],
    "pagination": {
      "page": 1,
      "totalPages": 10,
      "totalItems": 100
    }
  },
  "metadata": {
    "timestamp": "2026-01-06T00:00:00Z",
    "version": "1.0"
  }
}

Comparison Table

| Feature | Option A | Option B | Option C |
|---------|----------|----------|----------|
| Speed | Fast | Medium | Slow |
| Cost | High | Medium | Low |
| Ease | Easy | Medium | Complex |
| **Recommend** | ✓ | | |

Executive Summary

## Executive Summary

**Objective**: [One-line goal]

**Status**: [Current state]

**Key Results**:
- Result 1
- Result 2
- Result 3

**Next Steps**:
1. Action item 1
2. Action item 2

**Blockers**: [Issues requiring escalation]

Technical Specification

## [Component Name]

**Purpose**: [What it does]

**Dependencies**: [What it requires]

**Interface**:
\`\`\`typescript
interface ComponentProps {
  prop1: string;
  prop2?: number;
}
\`\`\`

**Behavior**:
1. Step-by-step description

**Error Handling**:
- Error type: Response

**Examples**:
\`\`\`typescript
// Usage example
\`\`\`

Slack Message

*Project Update* :rocket:

*Status*: On track
*Completed*:
• Feature A deployed
• Bug fixes merged

*Next*:
• Feature B review
• Performance testing

*Blockers*: None

<link|Full details>

Format Conversion Guide

From Prose to List

Before: "The system supports authentication through OAuth, API keys, and session tokens. It also provides role-based access control."

After:

## Authentication Methods
- OAuth 2.0
- API Keys
- Session Tokens

## Authorization
- Role-based Access Control (RBAC)

From List to Table

Before:

- JavaScript: 45%
- TypeScript: 30%
- CSS: 15%
- HTML: 10%

After:

| Language | Percentage |
|----------|------------|
| JavaScript | 45% |
| TypeScript | 30% |
| CSS | 15% |
| HTML | 10% |

From Code to Documentation

Before:

function processData(input: string[], options?: ProcessOptions): Result

After:

### processData

Processes input data according to specified options.

**Parameters**:
- `input` (string[]): Array of strings to process
- `options` (ProcessOptions, optional): Configuration object

**Returns**: `Result` - Processed data result

**Example**:
\`\`\`typescript
const result = processData(['a', 'b', 'c'], { sort: true });
\`\`\`

Platform-Specific Formatting

GitHub Markdown

Notion

Slack

Email

Audience Adaptation

For Executives

For Developers

For End Users

For Stakeholders

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.