Token导航 LogoToken导航

Agent Skill · 前端设计

grey-haven-code-style(灰色天堂代码风格)

grey-haven-code-style 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

grey-haven-code-style 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描有未通过项,按安装量在前端设计类的 10,216 个 Skill 里排第 9,185。

总安装 233周安装 10GitHub Stars 24下载 82核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:grey-haven-code-style(灰色天堂代码风格)
来源仓库:https://github.com/greyhaven-ai/claude-code-config
仓库路径:skills/grey-haven-code-style
安装命令:
npx skills add https://github.com/greyhaven-ai/claude-code-config --skill grey-haven-code-style
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/greyhaven-ai/claude-code-config --skill grey-haven-code-style

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

用于处理 GitHub 仓库、Issue 和 Pull Request 信息,协助代码协作管理。它支持分析仓库状态、变更历史和协作事项,辅助开发流程。使用方式包括查询特定 Issue 或 PR 详情,需明确目标仓库和分支。

安装命令:npx skills add https://github.com/greyhaven-ai/claude-code-config --skill grey-haven-code-style。建议确认 API 权限和仓库访问范围,避免越权请求或频繁调用。

来源仓库内路径:skills/grey-haven-code-style

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/greyhaven-ai/claude-code-config --skill grey-h…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

grey-haven-code-style 怎么安装?

在终端执行 npx skills add https://github.com/greyhaven-ai/claude-code-config --skill grey-haven-code-…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

grey-haven-code-style 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

grey-haven-code-style 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

grey-haven-code-style 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

grey-haven-code-style 用的人多吗?

公开数据是累计安装 233 次,近一周安装 10 次,下载 82 次,GitHub 24 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

grey-haven-code-style 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
grey-haven-code-style

灰色天堂代码风格 · 本页

23324需要联网未明确未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Grey Haven Code Style Standards

Actual coding standards from Grey Haven Studio production templates.

Follow these exactly when working on Grey Haven codebases. This skill provides navigation to detailed examples, reference configs, and templates.

Supporting Documentation

Quick Reference

TypeScript/React (Frontend)

Based on cvi-template - TanStack Start + React 19

Key Settings:

  • Line width: 90 characters
  • Tab width: 2 spaces
  • Quotes: Double quotes
  • Semicolons: Required
  • Trailing commas: Always
  • ESLint: Pragmatic (allows any, unused vars)
  • Path alias: ~/ maps to ./src/*

Naming Conventions:

  • Variables/Functions: camelCase (getUserData, isAuthenticated)
  • Components: PascalCase (UserProfile, AuthProvider)
  • Constants: UPPER_SNAKE_CASE (API_BASE_URL, MAX_RETRIES)
  • Types/Interfaces: PascalCase (User, AuthConfig)
  • Database fields: snake_case (user_id, created_at, tenant_id) ⚠️ CRITICAL

Project Structure:

src/
├── routes/              # File-based routing (TanStack Router)
├── lib/
│   ├── components/      # UI components (grouped by feature)
│   ├── server/          # Server functions and DB schema
│   ├── config/          # Environment validation
│   ├── hooks/           # Custom React hooks (use-* naming)
│   ├── utils/           # Utility functions
│   └── types/           # TypeScript definitions
└── public/              # Static assets

Python/FastAPI (Backend)

Based on cvi-backend-template - FastAPI + SQLModel

Key Settings:

  • Line length: 130 characters
  • Indent: 4 spaces
  • Type hints: Required on all functions
  • Auto-fix: Ruff fixes issues automatically

Naming Conventions:

  • Functions/Variables: snake_case (get_user_data, is_authenticated)
  • Classes: PascalCase (UserRepository, AuthService)
  • Constants: UPPER_SNAKE_CASE (API_BASE_URL, MAX_RETRIES)
  • Database fields: snake_case (user_id, created_at, tenant_id) ⚠️ CRITICAL
  • Boolean fields: Prefix with is_ or has_ (is_active, has_access)

Project Structure:

app/
├── config/              # Application settings
├── db/
│   ├── models/          # SQLModel entities
│   └── repositories/    # Repository pattern (tenant isolation)
├── routers/             # FastAPI endpoints
├── services/            # Business logic
├── schemas/             # Pydantic models (API contracts)
└── utils/               # Utilities

Database Field Convention (CRITICAL)

ALWAYS use snake_case for database column names - this is non-negotiable in Grey Haven projects.

✅ Correct:

// TypeScript - Drizzle schema
export const users = pgTable("users", {
  id: uuid("id").primaryKey(),
  created_at: timestamp("created_at").defaultNow(),
  tenant_id: uuid("tenant_id").notNull(),
  email_address: text("email_address").notNull(),
  is_active: boolean("is_active").default(true),
});
# Python - SQLModel
class User(SQLModel, table=True):
    id: UUID = Field(default_factory=uuid4, primary_key=True)
    created_at: datetime = Field(default_factory=datetime.utcnow)
    tenant_id: UUID = Field(foreign_key="tenants.id", index=True)
    email_address: str = Field(unique=True, index=True)
    is_active: bool = Field(default=True)

❌ Wrong:

// DON'T use camelCase in database schemas
export const users = pgTable("users", {
  id: uuid("id"),
  createdAt: timestamp("createdAt"),      // WRONG!
  tenantId: uuid("tenantId"),             // WRONG!
  emailAddress: text("emailAddress"),     // WRONG!
});

See EXAMPLES.md for complete examples.

Multi-Tenant Architecture

Every database table must include tenant isolation:

  • Field name: tenant_id (snake_case in DB) or tenantId (camelCase in TypeScript code)
  • Type: UUID foreign key to tenants table
  • Index: Always indexed for query performance
  • RLS: Use Row Level Security policies for tenant isolation
  • Repository pattern: All queries filter by tenant_id

See EXAMPLES.md for implementation patterns.

Virtual Environment (Python Projects)

⚠️ ALWAYS activate virtual environment before running Python commands:

source .venv/bin/activate

Required for:

  • Running tests (pytest)
  • Running pre-commit hooks
  • Using task commands (task test, task format)
  • Any Python script execution

When to Apply This Skill

Use this skill when:

  • ✅ Writing new TypeScript/React or Python/FastAPI code
  • ✅ Reviewing code in pull requests
  • ✅ Fixing linting or formatting errors
  • ✅ Setting up new projects from templates
  • ✅ Configuring Prettier, ESLint, or Ruff
  • ✅ Creating database schemas
  • ✅ Implementing multi-tenant features
  • ✅ User mentions: "code standards", "linting rules", "Grey Haven style", "formatting"

Template References

These standards come from actual Grey Haven production templates:

  • Frontend: cvi-template (TanStack Start + React 19 + Drizzle)
  • Backend: cvi-backend-template (FastAPI + SQLModel + PostgreSQL)

When in doubt, reference these templates for patterns and configurations.

Critical Reminders

  1. Line lengths: TypeScript=90, Python=130 (NOT 80/88)
  2. Database fields: ALWAYS snake_case (both TypeScript and Python schemas)
  3. any type: ALLOWED in Grey Haven TypeScript (pragmatic approach)
  4. Double quotes: TypeScript uses double quotes (singleQuote: false)
  5. Type hints: REQUIRED in Python (disallow_untyped_defs: true)
  6. Virtual env: MUST activate before Python commands
  7. Multi-tenant: Every table has tenant_id/tenantId
  8. Path aliases: Use ~/ for TypeScript imports from src/
  9. Trailing commas: ALWAYS in TypeScript (trailingComma: "all")
  10. Pre-commit hooks: Run before every commit (both projects)

Next Steps

平台分布

Codex

36.27%
按下载量换算30

Claude

28.44%
按下载量换算23

Cursor

19.18%
按下载量换算16

Gemini CLI

8.98%
按下载量换算7

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills