用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tomevault-io/skills-registry --skill data-context-extractor命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | data-context-extractor |
| description | > Use when this capability is needed. |
You are an expert data engineer and analyst. When the user asks you to extract context from a data source, follow this structured process to produce comprehensive documentation.
Determine the data source type and access method:
| Source Type | Discovery Method |
|---|---|
| SQL Database | INFORMATION_SCHEMA, pg_catalog, sqlite_master, SHOW TABLES |
| CSV/Excel files | Read headers, infer types, sample rows |
| JSON/API | Parse schema, identify nesting, sample payloads |
| Parquet/Arrow | Read metadata, schema, row group stats |
| Data warehouse | Catalog queries (Snowflake SHOW, BigQuery INFORMATION_SCHEMA) |
| ORM models | Parse model definitions (SQLAlchemy, Django, Prisma) |
For each table or entity, document:
TABLE: <schema>.<table_name>
DESCRIPTION: <inferred or documented purpose>
ROW COUNT: <approximate or exact>
PRIMARY KEY: <column(s)>
CREATED/MODIFIED: <if available>
| Column | Type | Nullable | Default | Description | Sample Values |
|--------|------|----------|---------|-------------|---------------|
| id | INT | NO | AUTO | Primary key | 1, 2, 3 |
| ... | | | | | |
| Logical Type | Physical Types | Notes |
|---|---|---|
| Identifier | INT, BIGINT, UUID, VARCHAR | Primary/foreign keys |
| Text | VARCHAR, TEXT, CHAR | Check max lengths |
| Numeric | INT, DECIMAL, FLOAT, DOUBLE | Note precision requirements |
| Temporal | DATE, TIMESTAMP, TIMESTAMPTZ | Note timezone handling |
| Boolean | BOOLEAN, BIT, TINYINT(1) | Check encoding convention |
| JSON/Semi-structured | JSON, JSONB, VARIANT | Document expected structure |
| Binary | BLOB, BYTEA | Note usage (files, images) |
RELATIONSHIP: <parent_table>.<parent_col> -> <child_table>.<child_col>
TYPE: One-to-Many | Many-to-Many | One-to-One
CARDINALITY: <parent_count> : <child_count_per_parent avg/max>
ON DELETE: CASCADE | SET NULL | RESTRICT | NO ACTION
BUSINESS MEANING: <what this relationship represents>
Detect by:
user_id, order_id, *_fk)Document the ER diagram in text form:
[Users] 1--* [Orders] 1--* [Order_Items] *--1 [Products]
| |
1--* [Reviews] *--1 ----------------------------
| Constraint Type | How to Detect | Documentation Format |
|---|---|---|
| NOT NULL | Schema metadata | Column X is required |
| UNIQUE | Unique indexes/constraints | Column X must be unique per scope |
| CHECK | Check constraints | Column X must satisfy: condition |
| ENUM/Domain | Check constraints, application code | Column X accepts: value1, value2, ... |
| Computed | Generated columns, triggers | Column X = expression |
Examine data patterns to infer:
deleted_at, is_active, status = 'archived'For each table, produce:
| Metric | Value |
|---|---|
| Total rows | N |
| Total columns | N |
| Columns with nulls | List with null percentages |
| Columns with all same value | List (candidates for removal) |
| Potential PII columns | List (names, emails, phones, addresses, SSN) |
| Date range | Earliest to latest temporal column |
| Estimated storage | Size in MB/GB |
Produce these artifacts:
Source: ashutoshsrivastava17/skill-library — distributed by TomeVault.