agentleFS
adymireadymire/CraftLayer/skills/ai-chat-interface/SKILL.md

ai-chat-interface

Skill0 starsChanged 3 days agoMITView on GitHub

Design AI chat experiences with clear streaming, sources, tool activity, failure recovery, and user control.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    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:

    Use for conversational AI, assistants, support bots, or chat surfaces that generate or retrieve responses.

    line 10
  2. Distinctive:

    Do not use chat as a universal interface when a form, table, or direct workflow better supports the user's task.

    line 15
  3. Distinctive:

    Do not silently drop partial output or user messages.

    line 44
  4. Distinctive:

    Test streaming, cancellation, retry, tool failure, source links, keyboard and screen-reader announcements, long responses, and persistence …

    line 59

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

AI Chat Interface

When to use

Use for conversational AI, assistants, support bots, or chat surfaces that generate or retrieve responses.

When not to use

Do not use chat as a universal interface when a form, table, or direct workflow better supports the user's task.

Inputs and assumptions

Identify user intent, model/provider, streaming behavior, available tools, source grounding, privacy rules, conversation persistence, and failure semantics.

Workflow

  1. Set expectations about capabilities, limitations, and data handling.
  2. Distinguish user messages, assistant responses, citations, and tool activity.
  3. Show generation progress and allow cancellation; do not imply completion before the stream ends.
  4. Make citations inspectable and connect each source to the claims it supports.
  5. Provide retry/edit/regenerate controls with clear consequences.
  6. Preserve conversation context and label failures without discarding user input.
  7. Support keyboard navigation, announced new output, and long-response reading.

Decision rules

  • Assistant output may be wrong; avoid trust signals that imply certainty.
  • Show meaningful tool status without exposing secrets or unsafe internals.
  • Make data retention and conversation deletion behavior clear.
  • Do not silently drop partial output or user messages.

Example

During a tool call, show a pending status, then a completed or failed result; render the final answer as complete only after the operation finishes.

Common failures

  • A spinner with no cancellation or progress context.
  • Sources shown but not tied to claims.
  • Streaming UI that duplicates or loses content on retry.

Validation

Test streaming, cancellation, retry, tool failure, source links, keyboard and screen-reader announcements, long responses, and persistence rules.

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.