Prompts / Eval
PromptCard
Saved-prompt card with name, description, version, model, variable count, and tags.
Preview
Summarise pull request
v2.1Condense a PR diff and recent activity into a 3-bullet summary.
claude-sonnet-4-54 vars2h ago
code-reviewgithubsummarisationInstallation
pnpm add nyxis-ui
Usage
import { PromptCard, type Prompt } from 'nyxis-ui';
const prompt: Prompt = {
id: 'summarise-pr',
name: 'Summarise pull request',
description: 'Condense a PR diff into 3 bullets.',
body: 'Summarise PR #{{number}} in {{tone}} bullets…',
version: '2.1',
modelId: 'claude-sonnet-4-5',
tags: ['code-review', 'github'],
updatedAt: new Date().toISOString(),
};
<PromptCard prompt={prompt} onSelect={(id) => open(id)} />;
Anatomy
- File icon + name + version chip on the title row.
- One-line description (line-clamped).
- Meta row: model · variable count · last-modified relative time.
- Tags row (max 6 visible,
+Noverflow). - Selection: pass
onSelectand the card becomes a button (Enter/Space supported).