tool-design
81設計可靠的代理工具
當工具名稱、輸入、輸出或錯誤含糊不清時,代理就會失敗。此技能提供工具描述、結構描述、回應格式與測試的實用模式。
建置 Next.js 前端元件
Next.js 團隊經常錯誤地混用 Server Components 和 Client Components。此技能提供可重複使用的模式,用於建立具可存取性、型別化、符合 App Router 的元件。
將此請求複製給你的智慧代理,其中包含權威 Skill 頁面和清單。
Review the Skillstore skill "frontend-component" from https://skillstore.io/skills/asmayaseen-frontend-component.md and its manifest at https://skillstore.io/api/skills/asmayaseen-frontend-component/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智慧代理仍應顯示其計畫,並依安全政策請求必要確認。
當 AI Agent、爬蟲或腳本需要乾淨脈絡、而不是讀取完整頁面時,請使用這些連結。
正在使用「frontend-component」。 規劃 Next.js App Router 專案中的受保護儀表板路由。
預期結果:
回應會指出它是 Client Component,因為它使用 hooks 和 navigation。它包含 loading、redirect 和 authorization states。
正在使用「frontend-component」。 改善註冊用的表單元件。
預期結果:
回應會分離 form data、validation errors、API errors 和 loading state。它也會建議具可存取性的 labels 和清楚的 submit feedback。
正在使用「frontend-component」。 為任務清單新增離線支援。
預期結果:
回應會提出 IndexedDB storage、sync status tracking、online recovery 和 error handling。它會指出 logging context 需要進行隱私審查。
Reviewed 107 static findings in SKILL.md. The dynamic imports, backticks, key matches, reconnaissance matches, and same-origin fetch are documentation examples, not executable malicious behavior. No prompt injection or data-exfiltration intent was found.
分享版本化評估報告、中性徽章、嵌入卡片與引用。Skillstore 只報告證據,不判斷該 Skill 是否安全。
https://skillstore.io/skills/asmayaseen-frontend-component/audits/8?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_report[](https://skillstore.io/skills/asmayaseen-frontend-component?utm_source=security_passport_badge)<a href="https://skillstore.io/skills/asmayaseen-frontend-component?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/asmayaseen-frontend-component/security.svg" alt="Skillstore security assessment" loading="lazy"></a><iframe src="https://skillstore.io/embed/skills/asmayaseen-frontend-component.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>Asmayaseen. (2026). frontend-component security audit report (audit version 8) [Author version unspecified]. Skillstore. https://skillstore.io/skills/asmayaseen-frontend-component/audits/8@techreport{asmayaseen-asmayaseen-frontend-component-2026,
author = {Asmayaseen},
title = {frontend-component security audit report (audit version 8)},
institution = {Skillstore},
year = {2026},
number = {8},
url = {https://skillstore.io/skills/asmayaseen-frontend-component/audits/8},
note = {Author version unspecified}
}cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "frontend-component security audit report (audit version 8)"
version: "unspecified"
type: report
authors:
- name: "Asmayaseen"
date-released: "2026-07-05"
url: "https://skillstore.io/skills/asmayaseen-frontend-component/audits/8"
identifiers:
- type: other
value: "skillstore:asmayaseen-frontend-component:audit:8"
description: "Skillstore immutable audit report identifier"
產生遵循 Server 和 Client Component 邊界的型別化元件規劃。
以一致的結構建立表單、受保護路由、toasts、行內編輯和載入狀態。
根據可存取性、TypeScript、Tailwind 和 Next.js App Router 預期檢查元件提案。
使用 frontend-component skill 判斷我的新 Next.js 元件應該是 Server Component 還是 Client Component。請解釋這個選擇。
使用 frontend-component skill 為可重複使用的儀表板小工具概述 TypeScript 元件結構,包含 props、loading state 和 Tailwind classes。
使用 frontend-component skill 審查這個互動式元件規劃是否存在 WCAG 2.1 AA 可存取性缺口,並建議具體改善方式。
使用 frontend-component skill 規劃進階任務清單元件,包含 drag and drop、offline sync、caching、error boundaries 和具隱私意識的 logging。
作者
Asmayaseen授權
MIT
Skillstore 修訂
r1
版本提示
作者未聲明版本。
引用
6eec4a59f63ff83440a84c18d1aef79743bc714e
維護新鮮度
2026/7/18
使用量
6 次下載 · 331 次瀏覽
檔案結構
📄 SKILL.md
設計可靠的代理工具
當工具名稱、輸入、輸出或錯誤含糊不清時,代理就會失敗。此技能提供工具描述、結構描述、回應格式與測試的實用模式。
有系統地偵錯軟體問題
缺乏結構的錯誤修復會浪費時間,並可能掩蓋真正的失敗原因。此技能會引導 Claude、Codex 和 Claude Code 進行以證據為基礎的根本原因分析。
提升生產服務可靠性
生產團隊需要明確的可靠性目標與可重複執行的事故處理實務。此技能提供適用於 SLO、錯誤預算、告警與事後檢討的 SRE 範本。
在 Next.js 中建置 shadcn/ui 介面
React 團隊需要能與現代 Next.js 搭配運作的一致 UI 模式。此技能提供 shadcn/ui 設定指南、元件範例、表單驗證、資料表、側邊欄,以及深色模式模式。
建置串流式 AI 聊天介面
當使用者無法看到進度、回應狀態或 UI 變更時,即時 AI 聊天體驗會顯得不完整。此技能為 Claude、Codex 和 Claude Code 提供串流生命週期、進度事件、用戶端效果與用戶端工具的模式。
診斷上下文退化
長時間 AI 工作階段在上下文變長、出現衝突或包含干擾材料時,準確性可能下降。此技能可協助 Claude、Codex 和 Claude Code 識別退化模式,並選擇實用的緩解步驟。
建置可用於正式環境的前端功能
由 davila7
前端團隊需要在各專案之間保持一致的 React 和 Next.js 指引。此技能提供前端分析的參考工作流程、品質實務和輔助腳本。
以資深指導建置全端應用程式
由 alirezarezvani
全端專案通常需要一致的設定、架構選擇與品質檢查。此技能提供用於 React、Next.js、Node.js、GraphQL 與 PostgreSQL 工作的指令碼與參考資料。
實作 React View Transitions
由 vercel-labs
React view transitions 很容易放錯位置,導致動畫靜默無效或過於吵雜。這項技能會引導你針對路由、Suspense、清單與共享元素的動畫做出選擇。
建構型別安全的 React 元件
由 softaworks
React TypeScript 工作經常需要精確的事件、hook 與路由型別。此 skill 提供型別化元件、React 19 APIs 與路由的聚焦模式。
最佳化 Next.js 效能
由 Atman36
Next.js 應用程式可能因大型 bundle、薄弱的快取,以及未最佳化的媒體而變慢。此技能會引導 Claude、Codex 和 Claude Code,針對正式環境應用程式進行聚焦的效能改善。
最佳化 React 與 Next.js 效能
由 vercel-labs
React 和 Next.js 應用程式常因瀑布式請求、大型 bundle,以及可避免的重新渲染而降低速度。此技能為代理提供具體規則,以進行更安全、以效能為重點的變更。