Xpersona
G

Generate Alias

CLAWHUB · Unverified

根据企业名称智能提取核心品牌词和常用简称,生成多种别名并用|分隔,方便数据匹配和导入。 Skill: Generate Alias Owner: hyqdq888 Summary: 根据企业名称智能提取核心品牌词和常用简称,生成多种别名并用|分隔,方便数据匹配和导入。 Tags: latest:2.1.1 Version history: v2.1.1 | 2026-03-25T06:34:48.163Z | auto Version 2.1.1 - Added new file: stock_names.py for stock/brand name mapping. - Enhanced alias generation to utilize mapped stock or brand names for many famous enterprises. - Improved maintainability and accuracy by updating core logic in generate_alia

62
Rank
84
Safety
1.0k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s175qw5k3wgzsyh7vxhnyprbz583hybv:generate-alias
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-hyqdq888-generate-alias/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

17,608 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

SKILL.md

# 企业别名智能生成技能 v3.0.0

## 重大更新

### v3.0.0 (2026-03-25) 🎉 全面重构
- 🚫 **严格过滤通用词**:不再使用"汽车"、"银行"、"证券"等通用行业词作为关键字
- 🎯 **关键字独特性**:关键字必须能"独特标识"企业,避免在多数企业中出现
- 📊 **频率验证**:通过全局词频分析,确保关键字出现率 < 3%
- 🌐 **维基百科集成**:可配置从维基百科获取企业官方简称
- ⚙️ **灵活配置**:支持离线模式(快速)和在线模式(准确)

## 核心规则

### 关键字来源优先级
1. **维基百科官方简称**(开启时)
2. **品牌映射** - 100+ 知名企业品牌/股票名
3. **核心词提取** - 智能提取企业独特标识

### 过滤规则(严格)
- ❌ **企业类型词**:集团、控股、股份、有限、责任、公司
- ❌ **地区前缀**:中国、北京、上海、浙江、广东等
- ❌ **行业通用词**:汽车、银行、证券、能源、钢铁、机械等
- ❌ **出现率 > 3%** 的词

### 关键字标准
- ✅ 至少 3 个字符
- ✅ 能独特标识该企业
- ✅ 不在其他大多数企业中出现

## 触发方式

当用户说:
- "生成别名"
- "智能别名"
- "企业别名"
- "给这个公司起个别名"
- "提取关键字"
- 或提供企业名称并要求生成别名

## 功能

### 1. 品牌映射(内置 100+ 企业)
```
比亚迪 → 比亚迪|BYD
伊利 → 伊利
贵州茅台 → 茅台
云南白药 → 白药
```

### 2. 核心词提取
- 移除企业类型后缀(集团、股份、有限等)
- 移除地区前缀(北京、上海、浙江等)
- 提取剩余核心词

### 3. 维基百科查询(可选)
- 从中文维基百科获取企业官方简称
- 需配置 `USE_WIKI = True`

### 4. 过滤机制
- 通用行业词过滤
- 词频统计分析
- 独特性验证

## 使用示例

### 离线模式(默认,快速稳定)
```python
from generate_alias import generate_rule_based_aliases

aliases = generate_rule_based_aliases("比亚迪股份有限公司")
# 输出: ['比亚迪', 'BYD']
```

### 在线模式(需要网络)
```python
# 修改脚本顶部 USE_WIKI = True
# python generate_alias.py "比亚迪股份有限公司" --wiki
```

### 命令行
```bash
# 基本用法
python generate_alias.py "比亚迪股份有限公司"

# 禁用维基百科
python generate_alias.py "比亚迪股份有限公司" --no-wiki
```

## 示例输出

| 企业名称 | 关键字 |
|---------|--------|
| 比亚迪股份有限公司 | 比亚迪\|BYD |
| 内蒙古伊利实业集团股份有限公司 | 伊利 |
| 云南白药集团股份有限公司 | 白药 |
| 北京东方雨虹防水技术股份有限公司 | 东方雨\|雨虹\|京东\|JD |
| 长城汽车股份有限公司 | 长城\|哈弗 |
| 佛山市海天调味食品股份有限公司 | 海天 |
| 中国工商银行股份有限公司 | 工行\|工商银行 |

## 过滤示例

以下词**不会**作为关键字输出:
- ❌ 汽车(所有车企都有,不独特)
- ❌ 银行(所有银行都有,不独特)
- ❌ 证券、能源、钢铁、机械
- ❌ 中国、北京、上海、浙江等地区名
- ❌ 集团、控股、股份、有限等企业类型词

## 实现文件

- `generate_alias.py` - 主程序(规则引擎)
- `search_aliases.py` - 网络搜索模块
- `corporate_relations.py` - 真实股权关系数据
- `data_sources.py` - 数据源配置
- `stock_names.py` - 上市公司股票名称映射

## 配置选项

```python
# generate_alias.py 顶部配置
USE_WIKI = False  # 是否使用维基百科(默认关闭,快速稳定)
WIKI_TIMEOUT = 5  # 维基百科请求超时(秒)
```

## 更新日志

### v3.0.0 (2026-03-25)
- 🚫 新增严格过滤通用行业词规则
- 🚫 新增词频统计分析
- 🚫 新增关键字独特性验证
- 🌐 集成维基百科查询
- 📊 优化关键字提取算法

### v2.1.0 (2026-03-20)
- 📚 整合公开数据源
- 🔄 动态数据补充

### v2.0.0 (2026-03-20)
- 🎯 重构关联企业数据
- 📦 数据模块化

_meta.json

{
  "ownerId": "kn76nq41ma07c1bcewnm98ryf982mnkg",
  "slug": "generate-alias",
  "version": "2.1.1",
  "publishedAt": 1774420488163
}

CHANGELOG.md

# Changelog

All notable changes to this project will be documented in this file.

## [2.0.1] - 2026-03-20

### 🐛 Bug 修复
- **修复地区名问题**:别名不再包含单独的地区名(如"浙江"、"广东"、"北京"等)
- **智能提取核心词**:如果企业名称以地区名开头,自动从地区名后提取核心词

### 🎯 优化
- 浙江极氪智能科技 → 吉利 | 极氪 | 极氪智(过滤"浙江")✅
- 广东美的集团 → 美的 | 美的集团(过滤"广东")✅
- 北京小米科技 → 小米 | 小米科技(过滤"北京")✅

## [2.0.0] - 2026-03-20

### 🎯 重大重构
- **只保留真实股权关系**:移除所有非股权关系的关联企业
- **数据模块化**:将关联企业数据独立到 `corporate_relations.py` 文件
- **提升准确性**:确保所有关联关系都是真实的母子公司或品牌关系

### ✨ 新增功能
- 真实股权关系数据(500+ 条)
- 覆盖行业:互联网/科技、金融/保险、汽车/制造、消费/零售、医药/健康、能源/化工、物流/快递、游戏/娱乐、硬件/半导体
- 双向关联自动映射
- 母子品牌关系识别

### 🐛 Bug 修复
- 修复关联企业包含同名企业的问题
- 修复关联关系不准确的问题
- 修复数据冗余导致性能下降的问题

### 📦 文件结构优化
```
generate-alias/
├── generate_alias.py          # 主程序(简化版)
├── corporate_relations.py     # 真实股权关系数据(新增)
├── search_aliases.py          # 网络搜索模块
├── SKILL.md                   # 技能文档
├── _meta.json                 # 元数据
└── CHANGELOG.md               # 更新日志(新增)
```

### 📊 数据质量提升
- **v1.0.0**: 包含大量非股权关系,数据冗余
- **v2.0.0**: 只保留真实股权关系,精准可靠

### 🎯 测试用例
- 中信证券 → 华夏基金、金石投资、中信期货 ✅
- 滴滴公司 → 小桔科技、滴滴出行 ✅
- 阿里巴巴 → 蚂蚁集团、淘宝、天猫 ✅
- 比亚迪 → 仰望、腾势、方程豹 ✅

## [1.0.0] - 2026-03-20

### 🎉 初始发布
- 企业别名智能生成
- 支持网络搜索
- 规则引擎 + 关联企业映射

skill-card.md

## Description:

Generates concise Chinese enterprise aliases and brand keywords from company names for matching and import workflows.

This skill is ready for commercial/non-commercial use.

## Publisher:

[hyqdq888](https://clawhub.ai/user/hyqdq888)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and data operations teams use this skill to normalize Chinese enterprise names into concise aliases or brand keywords for entity matching, imports, and deduplication workflows.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Optional public lookup modes may disclose private or internal company names to third-party web services.

Mitigation: Keep the default offline mode for confidential names, and enable public lookup modules only for queries that are safe to share externally.

Risk: Alias generation based on static mappings and rules may produce incomplete or outdated aliases for some enterprises.

Mitigation: Review generated aliases before using them in high-impact matching, import, or deduplication pipelines.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/hyqdq888/skills/generate-alias)

## Skill Output:

**Output Type(s):** [text, code, shell commands, configuration, guidance]

**Output Format:** [Plain text alias lists separated with |, with optional Markdown examples and command snippets.]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Offline rule-based generation is the default; optional public web and Wikipedia lookups can send queried company names to third-party services when enabled.]

## Skill Version(s):

2.1.1 (source: server release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Generate Alias and adjacent AI workflows.