laguagu/claude-code-nextjs-skills / skills/ai-elements
ai-elements
VerifiedMaintains AI chat UI built from elements.ai-sdk.dev AI Elements components already copied into the project. Use when changing or debugging those components (conversations, messages, prompt inputs, attachments, reasoning, tool output, sources). New chat UI uses the shadcn/ui AI Elements patterns (`shadcn` skill).
scripts/test-results.tsx
View on GitHub"use client";
import {
Test,
TestError,
TestErrorMessage,
TestErrorStack,
TestResults,
TestResultsContent,
TestResultsDuration,
TestResultsHeader,
TestResultsProgress,
TestResultsSummary,
TestSuite,
TestSuiteContent,
TestSuiteName,
} from "@/components/ai-elements/test-results";
const Example = () => (
<TestResults
summary={{
duration: 3245,
failed: 2,
passed: 12,
skipped: 1,
total: 15,
}}
>
<TestResultsHeader>
<TestResultsSummary />
<TestResultsDuration />
</TestResultsHeader>
<div className="border-b px-4 py-3">
<TestResultsProgress />
</div>
<TestResultsContent>
<TestSuite defaultOpen={true} name="Authentication" status="passed">
<TestSuiteName />
<TestSuiteContent>
<Test
duration={45}
name="should login with valid credentials"
status="passed"
/>
<Test
duration={32}
name="should reject invalid password"
status="passed"
/>
<Test
duration={28}
name="should handle expired tokens"
status="passed"
/>
</TestSuiteContent>
</TestSuite>
<TestSuite defaultOpen={true} name="User API" status="failed">
<TestSuiteName />
<TestSuiteContent>
<Test duration={120} name="should create new user" status="passed" />
<Test duration={85} name="should update user profile" status="failed">
<TestError>
<TestErrorMessage>
Expected status 200 but received 500
</TestErrorMessage>
<TestErrorStack>
{` at Object.<anonymous> (src/user.test.ts:45:12)
at Promise.then.completed (node_modules/jest-circus/build/utils.js:391:28)`}
</TestErrorStack>
</TestError>
</Test>
<Test name="should delete user" status="skipped" />
</TestSuiteContent>
</TestSuite>
<TestSuite name="Database" status="failed">
<TestSuiteName />
<TestSuiteContent>
<Test
duration={200}
name="should connect to database"
status="passed"
/>
<Test
duration={5000}
name="should handle connection timeout"
status="failed"
>
<TestError>
<TestErrorMessage>
Connection timed out after 5000ms
</TestErrorMessage>
</TestError>
</Test>
</TestSuiteContent>
</TestSuite>
</TestResultsContent>
</TestResults>
);
export default Example;
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |