ak20265114
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 "ak20265114" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-bc87240d39f947221b7ec89a712c892df369ef71cf7b555e62d6d14a0e51190a. Verify the upstream source and version against https://skillhub.cn/skills/user_f1b049da/ak20265114 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
Map consolidated job assessment statuses and L1–L6 level codes to Chinese labels and label colors for use in assessment interpretation, retention/promotion status displays, and level tags. Implemented as a pure front-end mapping with no back-end assumptions.
Introduction source: third_party · user_f1b049da · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: ak20265114
slug: ak20265114
displayName: 岗位考核解读
version: 1.0.0
summary: 把考核汇总状态码与 L1–L6 层级码转成可读标签与标签色,便于看板展示。
license: MIT
description: 将岗位考核汇总状态与 L1–L6 层级码解读为中文标签与标签色。当用户要岗位考核解读、保级晋升状态展示、层级标签时使用。纯前端映射,无后端假设。岗位考核解读
灵感:能力工具箱 promotion-status(考核汇总状态、L1–L6 层级标签)。
小四原创:
status/level/stage→ 中文标签 + Tag 色。
不实现考核计分引擎与晋升审批流;岗位 ID 映射留给业务侧。
何时使用
- 考核看板表格展示「保级中 / 已达晋升条件」
- 人员卡片旁挂 L1–L6 色标
- Demo/工具箱样例行解读
硬约束
- 状态码枚举固定:
promote_readyretain_okretain_in_progresspromote_in_progressdemote_suggestednot_applicable。 - 层级仅
L1–L6;未知码原样回退,勿静默改成「全部」。 - 标签色只用通用语义:
success|warning|danger|info,不绑具体 UI 库主题色值。 - 阶段
sales|management|partner|other可配本地文案,勿写死私有岗位数字 ID。 - 实现要点注释标 小四原创。
- 文案保持中性(达标/保级/建议复核),避免胁迫式离职话术。
推荐实现
export type TagTone = 'success' | 'warning' | 'danger' | 'info'
const STATUS_LABEL: Record<string, string> = {
promote_ready: '已达晋升条件',
retain_ok: '保级达标',
retain_in_progress: '保级考核中',
promote_in_progress: '晋升考核中',
demote_suggested: '考核到期待复核',
not_applicable: '不适用/暂无',
}
const LEVEL_LABEL: Record<string, string> = {
L1: 'L1 专员',
L2: 'L2 主管',
L3: 'L3 经理',
L4: 'L4 高级经理',
L5: 'L5 总监',
L6: 'L6 合伙人',
}
const STAGE_LABEL: Record<string, string> = {
sales: '业务岗',
management: '管理岗',
partner: '合伙人岗',
other: '不在考核范围',
}
// 小四原创:考核状态标签
export function statusLabel(status?: string): string {
if (!status) return '—'
return STATUS_LABEL[status] ?? status
}
export function statusTone(status?: string): TagTone {
switch (status) {
case 'demote_suggested':
return 'danger'
case 'promote_ready':
case 'retain_ok':
return 'success'
case 'retain_in_progress':
return 'warning'
default:
return 'info'
}
}
export function levelLabel(level?: string): string {
if (!level) return '—'
return LEVEL_LABEL[level] ?? level
}
export function levelTone(level?: string): TagTone {
if (level === 'L5' || level === 'L6') return 'success'
if (level === 'L3' || level === 'L4') return 'warning'
return 'info'
}
export function stageLabel(stage?: string): string {
if (!stage) return '—'
return STAGE_LABEL[stage] ?? stage
}
export function explainPromotionRow(row: {
status?: string
level?: string
stage?: string
}) {
return {
statusText: statusLabel(row.status),
statusTone: statusTone(row.status),
levelText: levelLabel(row.level),
levelTone: levelTone(row.level),
stageText: stageLabel(row.stage),
}
}
Agent 步骤
- 确认接口字段名(status/level/stage)与上表对齐或做一层映射。
- 表格列用
statusLabel+statusTone;层级列用levelLabel。 - 未知码黄字提示,不阻断渲染。
- 自测:
promote_ready/retain_in_progress/demote_suggested与 L1–L6。
不要做
- 在本 Skill 内写死业务岗位数字 ID 或私有审批接口。
- 把「待复核」渲染成强迫离职/威胁文案。
附加
Current listing version
1.0.0
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供岗位考核状态与层级的中文标签映射,解决 HR 看板展示的实际痛点
- 覆盖保级、晋升、考核中等多种状态,适用场景明确
Highlights
- 触发描述清晰,明确指出适用于岗位考核解读、保级晋升状态展示等场景
- 边界定义合理,避免与其他 Skill 重叠
Areas to improve
-
缺少端到端完整示例 Reported severity: Minor
文档提供了代码片段,但缺少一个完整的输入输出示例来展示整个流程
Recommendation: 建议补充一个完整的示例,展示从原始数据到最终标签的完整转换过程
Highlights
- 文档结构完整,包含何时使用、硬约束、推荐实现、Agent 步骤等必要章节
- frontmatter 信息完整,版本、摘要、许可证等齐全
Highlights
- 代码实现逻辑清晰,有完整的类型定义和映射表
- 覆盖主要异常情况,未知码原样回退,避免静默错误
- 标签色使用通用语义,不依赖具体 UI 库
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.
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.