Install any skill in seconds. Free to start, no credit card required.
Get Started Free →shinpr/frontend-technical-spec
Defines React environment, component architecture, state/data flow, build verification, and frontend non-functional criteria from repository evidence.
Passed 20 of 24 test cases with the skill, and 14 of 24 without it.
and 9 more in the full report
6 fixed14 passed either way4 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 6 test cases the skill fixed. Same model, same prompt, with and without the skill.
在运行项目质量检查阶段时,如果 `package.json` 的 `scripts` 中不存在某个已配置的测试脚本,CI 脚本应该如何处理?请说明规范中的阶段过渡与报错响应处理逻辑。
| Checked | Without skill | With skill |
|---|---|---|
| Requires reporting missing required scripts along with their manifest or configuration path | Missed | Passed |
| Allows remaining configured quality checks to continue running normally | Missed | Passed |
The instructions your model reads when the skill loads.
在应用工具或框架相关规则之前,先检查 package.json、锁文件、TypeScript/构建配置、CI 定义以及具有代表性的组件。只有当仓库依据明确指出时,才可将 React、Vite、Next.js、状态库、表单库或脚本视为可用。将基于周边模式得出的结论标注为推断结果。当某个缺失的决策会影响渲染架构、兼容性、安全性或验证方式时,停下来并指出所需的具体依据或用户决策。
以下规则适用于仓库配置已确认为基于 TypeScript 的 React 应用的情况。通过将当前需求与约束映射到组件职责、状态归属、服务端/客户端边界以及可观测的验证点来选择架构。
// 构建工具环境变量(仅限公开值;客户端暴露的变量需要 VITE_ 前缀)
const config = {
apiUrl: import.meta.env.VITE_API_URL || 'http://localhost:3000',
appName: import.meta.env.VITE_APP_NAME || 'My App'
}
// 在前端中不可用
const apiUrl = process.env.API_URL
.env 文件排除在版本控制之外,并为所需的变量名提供不含机密信息的示例文件处理机密信息的正确方式:
// 安全风险:API 密钥在浏览器中暴露
const apiKey = import.meta.env.VITE_API_KEY
const response = await fetch(`https://api.example.com/data?key=${apiKey}`)
test cases passed, vs 14 / 24 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.