Token导航 LogoToken导航

Agent Skill · 研究检索

grey-haven-ontological-documentation(灰色天堂本体论文档)

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写。它适合让 Agent 提炼结构、补齐章节、统一术语、检查链接或把零散材料整理成可读文档。使用时应保留项目已有事实、命令和路径,不要把未确认的信息写成确定结论;涉及对外文案时,还需要控制语气,避免过度营销或夸大能力。

grey-haven-ontological-documentation 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 73,543。

总安装 1周安装 12GitHub Stars 24下载 97核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

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

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于辅助文档、README 和 Markdown 内容的整理与改写。适合提炼结构、补齐章节、统一术语或检查链接有效性。使用时需保留项目已有事实和路径,避免写成确定结论。涉及对外文案时应控制语气,避免过度营销或夸大能力。可结合项目实际内容进行结构化重组和语言优化。

grey-haven-ontological-documentation 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/grey-haven-ontological-documentation

上手步骤

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-ontological-documentation 怎么安装?

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

grey-haven-ontological-documentation 支持哪些 AI 工具?

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

grey-haven-ontological-documentation 需要什么权限?

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

grey-haven-ontological-documentation 是免费的吗?

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

grey-haven-ontological-documentation 用的人多吗?

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

grey-haven-ontological-documentation 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

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

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

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

不太适合

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

研究检索类 Skill 对比

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

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
grey-haven-ontological-documentation

灰色天堂本体论文档 · 本页

124需要联网未明确通过

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

SKILL.md 原文

Grey Haven Ontological Documentation

Create comprehensive ontological documentation that captures fundamental concepts, relationships, and classification systems within Grey Haven codebases and systems.

When to Use This Skill

Use this skill when you need to:

  • Document the conceptual structure and domain model of Grey Haven applications
  • Extract and organize business concepts from TanStack Start or FastAPI codebases
  • Create visual representations of multi-tenant system architectures
  • Build semantic maps of entities, services, and their tenant-isolated interactions
  • Design or document domain models for new Grey Haven features
  • Analyze and communicate complex architectures to stakeholders
  • Create knowledge graphs for Grey Haven development teams
  • Onboard new developers to Grey Haven project structure

Core Capabilities

1. Concept Extraction from Grey Haven Codebases

TanStack Start (Frontend) Extraction:

  • Drizzle schema tables and relationships
  • React components and their hierarchies
  • TanStack Router route structure
  • Better-auth session and user models
  • Server functions and their dependencies
  • Multi-tenant data patterns (tenant_id isolation)

FastAPI (Backend) Extraction:

  • SQLModel entities and relationships
  • Repository pattern implementations
  • Service layer business logic
  • API endpoint hierarchies
  • Multi-tenant repository filters
  • Pydantic schemas and validation models

2. Grey Haven Architecture Patterns

Identify and Document:

  • Multi-Tenant Patterns: tenant_id isolation, RLS roles (admin/authenticated/anon)
  • Repository Pattern: BaseRepository with automatic tenant filtering
  • Service Layer: Business logic separation from endpoints
  • Database Conventions: snake_case fields, UUID primary keys, timestamps
  • Authentication: Better-auth integration with session management
  • Deployment: Cloudflare Workers architecture

3. Visual Documentation Formats

Mermaid Diagrams (for README files):

erDiagram
    USER ||--o{ ORGANIZATION : belongs_to
    USER {
        uuid id PK
        string email_address UK
        uuid tenant_id FK
        timestamp created_at
    }
    ORGANIZATION ||--o{ TEAM : contains
    ORGANIZATION {
        uuid id PK
        string name
        uuid tenant_id FK
        timestamp created_at
    }

System Architecture:

graph TB
    Client[TanStack Start Client]
    Server[Server Functions]
    Auth[Better-auth]
    DB[(PostgreSQL + RLS)]

    Client -->|Authenticated Requests| Server
    Client -->|Auth Flow| Auth
    Server -->|Query with tenant_id| DB
    Auth -->|Session Validation| DB

4. Domain Model Documentation Template

## Entity: User

### Definition
Represents an authenticated user in the Grey Haven system with multi-tenant isolation.

### Database Schema
- **Table**: users (snake_case)
- **Primary Key**: id (UUID)
- **Tenant Isolation**: tenant_id (UUID, indexed)
- **Unique Constraints**: email_address per tenant
- **Timestamps**: created_at, updated_at (automatic)

### Relationships
- **Belongs To**: Organization (via tenant_id)
- **Has Many**: Sessions (Better-auth)
- **Has Many**: TeamMemberships

### Business Rules
- Email must be unique within tenant
- Cannot access data from other tenants
- Session expires after 30 days of inactivity
- RLS enforces tenant_id filtering at database level

### TypeScript Type

interface User { id: string; emailAddress: string; tenantId: string; createdAt: Date; updatedAt: Date; }


### Python Model

class User(SQLModel, table=True): __tablename__ = "users" id: UUID = Field(default_factory=uuid4, primary_key=True) email_address: str = Field(unique=True, index=True) tenant_id: UUID = Field(foreign_key="organizations.id", index=True) created_at: datetime = Field(default_factory=datetime.utcnow) updated_at: datetime = Field(default_factory=datetime.utcnow)

Workflow

Step 1: Discovery and Extraction

For TanStack Start Projects:

  1. Analyze Drizzle schema files in src/lib/server/schema/
  2. Map React component structure in src/lib/components/
  3. Document TanStack Router routes in src/routes/
  4. Extract server functions from src/lib/server/functions/
  5. Identify tenant isolation patterns

For FastAPI Projects:

  1. Analyze SQLModel models in app/db/models/
  2. Map repository pattern in app/db/repositories/
  3. Document service layer in app/services/
  4. Extract API routes from app/routers/
  5. Identify BaseRepository tenant filtering

Step 2: Ontology Construction

Categorize by Grey Haven Patterns:

  1. Core Entities (tables with tenant_id)

- User, Organization, Team, etc. - Always include tenant_id - UUID primary keys - snake_case field names

  1. Service Boundaries

- Repository layer (data access) - Service layer (business logic) - Router layer (API endpoints) - Clear separation of concerns

  1. Relationships and Dependencies

- Foreign key relationships - Repository dependencies - Service composition - API endpoint groupings

  1. Multi-Tenant Patterns

- RLS role usage (admin/authenticated/anon) - tenant_id filtering in repositories - Session-based tenant resolution - Cross-tenant access prevention

Step 3: Documentation Creation

Use Grey Haven Documentation Standards:

  1. Entity Documentation

- Definition and purpose - Database schema with exact field names - Relationships to other entities - Business rules and constraints - TypeScript and Python representations

  1. Service Documentation

- Service responsibilities - Repository dependencies - Business logic patterns - Multi-tenant considerations

  1. API Documentation

- Endpoint hierarchies - Request/response schemas - Authentication requirements - Tenant isolation verification

Step 4: Visualization

Create Diagrams For:

  1. Database ERD - All tables with relationships and tenant_id fields
  2. Service Dependencies - Repository → Service → Router layers
  3. Authentication Flow - Better-auth integration with multi-tenant context
  4. Deployment Architecture - Cloudflare Workers, Neon PostgreSQL, Redis
  5. Data Flow - Client → Server Functions → Repository → Database (with RLS)

Common Use Cases

Use Case 1: New Developer Onboarding

*"I need to understand how Grey Haven's multi-tenant architecture works."*

Approach:

  1. Extract all entities with tenant_id fields
  2. Document BaseRepository tenant filtering pattern
  3. Create ERD showing tenant_id relationships
  4. Explain RLS roles and session-based tenant resolution
  5. Show data flow with tenant isolation

Use Case 2: Feature Design Documentation

*"Document the domain model for the new billing feature before implementation."*

Approach:

  1. Design entity schema following Grey Haven conventions
  2. Plan repository and service layer structure
  3. Document API endpoints with tenant isolation
  4. Create Mermaid diagrams for the feature
  5. Validate multi-tenant patterns

Use Case 3: Architecture Review

*"Analyze the current codebase to identify inconsistencies in multi-tenant patterns."*

Approach:

  1. Extract all repositories and check tenant_id filtering
  2. Review entities for proper tenant_id indexing
  3. Audit RLS role usage across the application
  4. Identify missing tenant isolation
  5. Generate compliance report

Use Case 4: Legacy Code Analysis

*"Understand the original domain model before refactoring the user management system."*

Approach:

  1. Extract current User entity and relationships
  2. Map all services depending on User
  3. Document authentication flow with Better-auth
  4. Identify refactoring boundaries
  5. Create before/after architecture diagrams

Grey Haven Specific Patterns

Multi-Tenant Entity Pattern

// Drizzle Schema (TanStack Start)
export const usersTable = pgTable("users", {
  id: uuid("id").primaryKey().defaultRandom(),
  emailAddress: text("email_address").unique().notNull(),
  tenantId: uuid("tenant_id").references(() => organizationsTable.id).notNull(),
  createdAt: timestamp("created_at").defaultNow().notNull(),
  updatedAt: timestamp("updated_at").defaultNow().notNull(),
});
# SQLModel (FastAPI)
class User(SQLModel, table=True):
    __tablename__ = "users"

    id: UUID = Field(default_factory=uuid4, primary_key=True)
    email_address: str = Field(unique=True, index=True)
    tenant_id: UUID = Field(foreign_key="organizations.id", index=True)
    created_at: datetime = Field(default_factory=datetime.utcnow)
    updated_at: datetime = Field(default_factory=datetime.utcnow)

Repository Pattern with Tenant Isolation

# BaseRepository with automatic tenant filtering
class BaseRepository(Generic[T]):
    def __init__(self, session: AsyncSession, model: type[T]):
        self.session = session
        self.model = model

    async def get_by_id(self, id: UUID, tenant_id: UUID) -> Optional[T]:
        """Automatic tenant isolation."""
        result = await self.session.execute(
            select(self.model)
            .where(self.model.id == id)
            .where(self.model.tenant_id == tenant_id)  # Always filter
        )
        return result.scalar_one_or_none()

RLS Role Pattern

// Database connections with RLS roles
const adminDb = drizzle(process.env.DATABASE_URL_ADMIN);      // Full access
const authenticatedDb = drizzle(process.env.DATABASE_URL_AUTHENTICATED); // Tenant-scoped
const anonDb = drizzle(process.env.DATABASE_URL_ANON);        // Public only

Documentation Output Structure

Directory Organization

documentation/
├── architecture/
│   ├── system-overview.md
│   ├── multi-tenant-architecture.md
│   └── deployment-architecture.md
├── domain-model/
│   ├── entities/
│   │   ├── user.md
│   │   ├── organization.md
│   │   └── team.md
│   ├── relationships.md
│   └── business-rules.md
├── diagrams/
│   ├── database-erd.mmd
│   ├── service-dependencies.mmd
│   ├── auth-flow.mmd
│   └── deployment.mmd
└── ontology.json

Ontology JSON Structure

{
  "version": "1.0.0",
  "system": "Grey Haven Application",
  "architecture": "Multi-tenant TanStack Start + FastAPI",
  "entities": [
    {
      "name": "User",
      "table": "users",
      "primaryKey": "id",
      "tenantKey": "tenant_id",
      "fields": [...],
      "relationships": [...],
      "businessRules": [...]
    }
  ],
  "services": [...],
  "patterns": {
    "multiTenant": true,
    "rls": true,
    "repositoryPattern": true
  }
}

When to Apply This Skill

Use ontological documentation when:

  • Onboarding new developers to Grey Haven projects
  • Designing new features with domain modeling
  • Documenting multi-tenant architecture
  • Analyzing legacy code before refactoring
  • Creating architecture presentations for stakeholders
  • Building knowledge bases for Grey Haven teams
  • Ensuring consistency across TanStack Start and FastAPI implementations
  • Auditing multi-tenant isolation patterns
  • Planning database migrations or schema changes

Integration with Other Grey Haven Skills

Works Best With:

  • grey-haven-database-conventions - Ensure proper schema design
  • grey-haven-project-structure - Understand codebase organization
  • grey-haven-authentication-patterns - Document Better-auth integration
  • grey-haven-data-modeling - Design Drizzle and SQLModel schemas
  • grey-haven-api-design-standards - Document API hierarchies

Critical Reminders

  1. Always document tenant_id - Every entity must show tenant isolation
  2. Follow naming conventions - snake_case for database, camelCase for TypeScript
  3. Include both TypeScript and Python - Grey Haven uses both stacks
  4. Show RLS roles - Document admin/authenticated/anon usage
  5. Repository pattern is required - All data access goes through repositories
  6. UUID primary keys - Never use auto-increment integers
  7. Timestamps are automatic - created_at and updated_at
  8. Multi-tenant first - Every design considers tenant isolation
  9. Visual diagrams required - Mermaid for all architecture documentation
  10. Cross-reference skills - Link to relevant Grey Haven skills

Template References

These patterns are from Grey Haven's actual templates:

  • Frontend: cvi-template (TanStack Start + React 19 + Drizzle)
  • Backend: cvi-backend-template (FastAPI + SQLModel + Repository Pattern)
  • Multi-tenant: Neon PostgreSQL with RLS

平台分布

Codex

33.79%
按下载量换算33

Claude

29.88%
按下载量换算29

Cursor

19.1%
按下载量换算19

Gemini CLI

9.33%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

继续浏览同类 Skills