kvk20263347
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "kvk20263347" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-b81c6deeb1f6ed661240539bb1e836e040084231b9fc261903d85f20fa54a520. Verify the upstream source and version against https://skillhub.cn/skills/user_f1b049da/kvk20263347 before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Demonstration of address code/name lookup and alignment using sample administrative divisions per statistical bureau standards. Intended to show how to perform address code and division-name matching according to statistical bureau or AreaCity definitions; the samples are demonstrative and not a complete database.
Introduction source: third_party · user_f1b049da · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- Not specified in the source documentation.
- Inputs and outputs
- Not specified in the source documentation.
- Software, accounts and paid services
- Not specified in the source documentation.
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: kvk20263347
slug: kvk20263347
displayName: 统计局区划对齐
version: 1.0.0
summary: 按统计局口径样本对齐地址码与名称,便于客户地址规范化演示。
license: MIT
description: 用统计局口径区划样本做地址码/名称查找与对齐演示。当用户要统计局区划、地址码对齐、AreaCity 口径时使用。样本非完整库。统计局区划对齐
灵感:能力工具箱 area-statsgov(AreaCity-JsSpider 口径场景)。
小四原创:用精简样本树演示 code↔名称路径对齐;完整数据需自行替换权威源。与「省市区级联」互补:级联偏表单 UI,本包偏码表对齐逻辑。
何时使用
- 客户地址只有名称或只有 code,要对齐成标准路径
- 演示「统计局/民政口径」六位码查找
- 导入清洗前做区划规范化 POC
硬约束
- Skill 内样本仅演示;禁止声称已内置全国完整最新库。
- 对齐结果返回:
codes[]+names[]+ 是否唯一匹配。 - 重名区县:标
ambiguous,要求用户选省/市上下文。 - 实现要点注释标 小四原创。
- 不爬取统计局网站;数据由用户提供合法数据包。
推荐实现
export type AreaNode = { code: string; name: string; children?: AreaNode[] }
// 小四原创:演示样本(可替换)
export const SAMPLE_TREE: AreaNode[] = [
{
code: '440000',
name: '广东省',
children: [
{
code: '440300',
name: '深圳市',
children: [
{ code: '440305', name: '南山区' },
{ code: '440304', name: '福田区' },
],
},
],
},
]
// 小四原创:按 code 取路径
export function pathByCode(code: string, tree = SAMPLE_TREE): AreaNode[] {
const path: AreaNode[] = []
const walk = (nodes: AreaNode[], stack: AreaNode[]): boolean => {
for (const n of nodes) {
const next = [...stack, n]
if (n.code === code) {
path.push(...next)
return true
}
if (n.children && walk(n.children, next)) return true
}
return false
}
walk(tree, [])
return path
}
// 小四原创:按名称模糊对齐(同名则 ambiguous)
export function alignByName(name: string, tree = SAMPLE_TREE) {
const hits: AreaNode[][] = []
const walk = (nodes: AreaNode[], stack: AreaNode[]) => {
for (const n of nodes) {
const next = [...stack, n]
if (n.name === name || n.name.includes(name)) hits.push(next)
if (n.children) walk(n.children, next)
}
}
walk(tree, [])
if (!hits.length) return { ok: false as const, reason: '未匹配' }
if (hits.length > 1) return { ok: false as const, reason: 'ambiguous', hits }
const path = hits[0]
return {
ok: true as const,
codes: path.map((x) => x.code),
names: path.map((x) => x.name),
text: path.map((x) => x.name).join('/'),
}
}
Agent 步骤
- 放入样本树或用户完整 JSON。
- 提供「按 code 查路径」「按名称对齐」。
- 歧义时列出候选路径让用户选。
- 自测:440305 → 广东/深圳/南山;「南山区」在多样本下可能 ambiguous。
不要做
- 把演示样本当生产主数据长期不更新。
- 教违规爬取官方站点。
附加
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决客户地址规范化痛点,具有明确的使用场景
- 适用于地址清洗、区划对齐等通用需求
Highlights
- 触发词精准完整,覆盖多种变体
- 边界清晰,不易误触
Highlights
- Phase/步骤清晰,有出口条件
- 包含端到端示例,frontmatter完整
Highlights
- 工具来源明确,参数正确
- 覆盖主要异常,不可逆操作有确认机制
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Not specified in the source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.