opsrobot: Skill for Cursor

.cursor/skills/anyrobot-shadcn-frontend-js/SKILL.md

anyrobot-shadcn-frontend-js is a skill for Cursor from opsrobot-ai/opsrobot. It costs 74 tokens per session (4,265 once invoked), scanned A, original, Apache-2.0.

A practical development guide for building JavaScript and React interfaces with Tailwind CSS and shadcn/ui, a collection of reusable interface components.

In plain words
What is it for?
It is for starting or improving React projects, designing project folders, using shadcn/ui components, styling with Tailwind CSS, and reviewing frontend code.
Why use it?
It gives developers shared guidance for organizing frontend code, building components, handling errors, and following consistent practices.

Skill for Cursor

Written for Cursor: installed under .cursor/.

This is opsrobot-ai/opsrobot's own configuration. It tells Cursor how to work on opsrobot itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything opsrobot configures →

Reuse

Borrowing it

Nothing to install: this file belongs to opsrobot-ai/opsrobot. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/opsrobot-ai/opsrobot/main/.cursor/skills/anyrobot-shadcn-frontend-js/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/opsrobot-ai/opsrobot

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for anyrobot-shadcn-frontend-js

README.md
[![agentmods](https://agentmods.dev/badge/skills/opsrobot-ai/opsrobot/anyrobot-shadcn-frontend-js/github.svg)](https://agentmods.dev/skills/opsrobot-ai/opsrobot/anyrobot-shadcn-frontend-js)
Your own site
<a href="https://agentmods.dev/skills/opsrobot-ai/opsrobot/anyrobot-shadcn-frontend-js"><img src="https://agentmods.dev/badge/skills/opsrobot-ai/opsrobot/anyrobot-shadcn-frontend-js/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for anyrobot-shadcn-frontend-js

Your own site · 80×15
<a href="https://agentmods.dev/skills/opsrobot-ai/opsrobot/anyrobot-shadcn-frontend-js"><img src="https://agentmods.dev/badge/skills/opsrobot-ai/opsrobot/anyrobot-shadcn-frontend-js.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,265 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00074 $0.04265
Opus 5 $0.00037 $0.02132
Sonnet 5 $0.00015 $0.00853
Haiku 4.5 $0.00007 $0.00426

Measured 10d ago against content hash 0c0c713783c4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

anyrobot-shadcn-frontend-js scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

const response = await fetch(url);
.cursor/skills/anyrobot-shadcn-frontend-js/SKILL.md · 665 lines

How it starts

The opening of the file, as written. The whole thing — 665 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AnyRobot 前端开发核心指南

本技能提供了一套现代化的前端开发核心规范和最佳实践,涵盖 JavaScript、React、Tailwind CSS 和 shadcn/ui 等技术栈。

适用场景:新项目初始化、现有项目优化、代码审查参考、团队开发规范制定。


✨ 核心价值

✅ 推荐的最佳实践:
- 使用 const/let 而非 var
- 遵循组件化开发原则,合理拆分组件
- 采用 Tailwind CSS 进行样式管理
- 集成 shadcn/ui 构建一致的 UI 组件库
- 注重性能优化和安全实践
- 保持代码风格一致,添加必要注释
- 建立清晰的项目文件结构
- 完善错误处理和边界情况

目录导航


项目结构与文件组织

推荐的项目结构

/src
  /components
    /ui               # shadcn/ui 组件
      button.jsx
      input.jsx
      card.jsx
    /layout           # 布局组件
      Header.jsx
      Sidebar.jsx
      Footer.jsx
    /feature          # 功能组件
      UserList.jsx
      UserForm.jsx
  /hooks             # 自定义 Hooks
    useAuth.js
    useApi.js
  /utils             # 工具函数
    formatters.js
    api.js
  /pages             # 页面组件
    /home            # 首页模块
      index.jsx
      components/     # 首页子组件
        Hero.jsx
        Features.jsx
    /auth            # 认证模块
      index.jsx
      components/     # 认证子组件
        LoginForm.jsx
    /dashboard       # 仪表盘模块
      index.jsx
      components/     # 仪表盘子组件
        StatsCard.jsx
  /context           # React 上下文
    AuthContext.jsx
  /locales           # 国际化资源
    /en-US           # 英语(美国)
      index.js
      common.js
      dashboard.js
    /zh-CN           # 中文(简体)
      index.js
      common.js
      dashboard.js
  /styles            # 全局样式
    globals.css
  App.jsx            # 应用根组件
  main.jsx           # 应用入口
  i18n.js            # 国际化配置

命名规范

  • 组件文件:使用 PascalCase,如 UserList.jsx
  • 工具函数:使用 camelCase,如 formatDate.js
  • 目录名:使用 kebab-case,如 feature-components
  • 变量和函数:使用 camelCase
  • 常量:使用 UPPER_SNAKE_CASE
  • 国际化文件
    • 语言目录:使用语言代码,如 en-USzh-CN
    • 资源文件:使用 camelCase,如 common.jsdashboard.js
    • 键名:使用点号分隔的命名空间,如 common.hellodashboard.title

Read the full file on GitHub · 665 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 665 lines · 74 tokens per session scan A 0c0c713783c4

Subscribe to this mod's changes

anyrobot-shadcn-frontend-js is a skill published in the GitHub repository opsrobot-ai/opsrobot (135 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 74 tokens to every session and 4,265 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

monitoring-observability

Monitoring and observability patterns for Prometheus metrics, Grafana dashboards, Langfuse v4 LLM tracing (astype, scorecurrentspan, shouldexportspan, LangfuseMedia), and drift detection. Use when adding logging, metrics, distributed tracing, LLM cost tracking, or quality drift monitoring.

yonatangross/orchestkit · 69 tokens

datadog

Full-stack observability with Datadog APM, logs, metrics, synthetics, and RUM. Use when implementing monitoring, tracing, alerting, or cost optimization for production systems.

bobmatnyc/claude-mpm-skills · 43 tokens

monitoring-expert

Expert-level monitoring and observability with Prometheus, Grafana, logging, and alerting. Use when the user mentions observability, Prometheus, Grafana, logging, metrics, or alerting, or when the task involves The Three Pillars of Observability, Monitoring Fundamentals, Prometheus Configuration, or Alert Rules.

personamanagmentlayer/pcl · 70 tokens

frontend-design

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI).…

exceptionless/Exceptionless · 77 tokens

observability-testing-patterns

Observability and monitoring validation patterns for dashboards, alerting, log aggregation, APM traces, and SLA/SLO verification. Use when testing monitoring infrastructure, dashboard accuracy, alert rules, or metric pipelines.

summarybotng/summarybot-ng · 47 tokens

Observability & Monitoring

Structured logging, metrics, distributed tracing, and alerting strategies.

ArieGoldkin/ai-agent-hub · 17 tokens