agentleFS
0-uddeshya-00-uddeshya-0/agent-skills/skills/format-response/skill.md

format-response

Skill3 starsChanged 6 months agoMITView on GitHub

  • Reads credentials

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    No format specified and no interface information — default to plain prose

    line 12
  2. Distinctive:

    Do not add content — only format

    line 59

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
skill.md

skill: format-response

purpose

Apply the correct output format based on where the response is going. Stops agents from returning markdown in a terminal, a wall of prose in Slack, or plain text when the caller expects JSON.

when_to_use

  • Output goes to a specific interface with formatting conventions (chat, terminal, email, Slack)
  • Caller is a system that parses the response (JSON required)
  • User specified a structure explicitly

when_not_to_use

  • No format specified and no interface information — default to plain prose
  • Conversational or exploratory responses — heavy formatting distracts
  • Response is a single sentence

input

content: string          # Raw content to format
format_target: string    # "chat_ui"|"terminal"|"email"|"slack"|"json_api"|"markdown_doc"
audience: string         # "developer"|"end_user"|"system"
key_info: list[string]   # Items that must be visually prominent
api_schema: object       # For json_api only: field names and casing expected by the caller (optional — defaults to snake_case if omitted)

output

{
  "formatted": "string",
  "format_used": "string"
}

instructions

Apply formatting for the target. Rules:

chat_ui: short paragraphs (2–3 sentences), bullets only for 3+ parallel items, bold for key terms if markdown supported.

terminal: plain text only, no markdown symbols, indentation for structure, preserve line breaks.

email: plain text, short paragraphs, no hollow openers for transactional email.

slack: conversational, *bold* and `code` sparingly, no walls of text, no emoji unless requested.

json_api: valid JSON only — nothing before or after, no markdown in string values. If api_schema provided: use its field names and casing exactly. If no api_schema: default to snake_case keys.

markdown_doc: headers (##, ###), fenced code blocks with language hints, tables for comparisons.

Apply only what's needed. Do not over-format simple responses.
Do not add content — only format what's given.

Return JSON only.

constraints

  • Max output tokens: 500
  • For json_api: output must be parseable JSON
  • Do not add content — only format

example

Input:

content: "Deployment failed because DATABASE_URL env var is not set in production. Add it to .env and restart. Format: postgresql://user:password@host:5432/dbname"
format_target: "slack"
audience: "developer"
key_info: ["DATABASE_URL"]

Output:

{
  "formatted": "Deployment failed — `DATABASE_URL` env var missing in production.\n\nFix:\n1. Add to `.env`: `postgresql://user:password@host:5432/dbname`\n2. Restart the server.",
  "format_used": "Slack: inline code for variable names, numbered steps for actions, short sentences"
}

feedback_log

<!-- date | situation | what went wrong | better behavior -->

2026-05-29 | json_api format with no api_schema provided | instruction said 'match API schema' but schema wasn't in input — undefined behavior | added optional api_schema input field; defaults to snake_case when omitted

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.