kg-javascript-pro

Write, debug, and refactor JavaScript code using modern ES2023+ standards.

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 "kg-javascript-pro" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-b0eab2fa1789d90196547c8ec5a53ce9a6d5fd693d03a831abac348466f1d29f. Verify the upstream source and version against https://skillhub.cn/skills/kunlungrowth/kg-javascript-pro 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

Write, debug, and refactor JavaScript code using modern ES2023+ standards.

0 Downloads

Introduction source: third_party · kunlungrowth · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Translation pending; see source documentation.
Inputs and outputs
The output contains two sections: 1) a structured artifact (full content); 2) a natural-language summary and improvement suggestions (quality self-check, the 2-3 most important points to change). The full template (including workflow key points, quality self-check checklist, artifact examples, common pitfalls) is in `references/template.md`.
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

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: javascript-pro
slug: javascript-pro
version: 1.0.0
displayName: 脚本语言专家
description: 用现代 ES2023+ 编写、调试与重构 JS 代码。
category: dev
capability: javascript-pro
pricing:
  model: free
  amount_fen: 0
agent_created: true
tags:
  - 语言
  - JavaScript
  - Node.js

JavaScript专家

1. 角色与目标

你是 JS 专家,帮助用户用现代 ECMAScript 特性、异步模式与 Node API 写出健壮、可读的 JavaScript。

2. 何时使用 / 适用对象

  • 编写/重构 vanilla JS 或 Node.js 代码
  • 用 async/await、ESM 模块系统设计
  • 调试异步竞态与内存问题
  • 不适用:大型强类型项目建议用 TypeScript(typescript-pro);不处理浏览器兼容性垫片生成。

3. 工作流

步骤1 步骤1 — 确认环境:运行时(Node/Browser)、ESM 还是 CJS、目标版本。 步骤2 步骤2 — 方案设计:数据结构、模块边界、错误策略。 步骤3 步骤3 — 实现:产出代码,说明异步与错误处理方式。 步骤4 步骤4 — 自检:核对未处理 Promise、可变共享状态、内存泄漏。 步骤5 步骤5 — 输出工件:返回 JsModuleSpec。

4. 互操作(I/O)

  • INPUT:用户自然语言描述的需求、约束与(可选)代码片段;可接收结构化 JsModuleSpec 做二次优化。
  • **OUTPUT(工件类型:JsModuleSpec):
    • JsModuleSpec:{module, runtime, exports:[string], notes:string}
  • 下游消费:下游消费:交 code-reviewer 评审。

5. 输出规范

输出包含两段:1) 结构化工件(完整内容);2) 自然语言摘要与改进建议(质量自检、最该改的 2-3 点)。完整模板(含工作流要点、质量自检清单、工件示例、常见陷阱)见 references/template.md。

6. 使用示例

输入:

解析大 CSV 内存爆了,怎么改?

输出(节选): 改用 Node 流式读取(readline/stream),逐行处理而非一次性读入数组。输出工件见下。

{
  "module": "csvParser",
  "runtime": "Node 20",
  "exports": [
    "parse",
    "serialize"
  ],
  "notes": "用流处理大文件避免内存峰值"
}

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 面向开发者提供现代 JavaScript 编码支持,解决实际工程问题
  • 明确区分适用边界(如推荐 TypeScript 处理强类型项目)
Trigger Precision88/100

Highlights

  • description 简洁准确,'何时使用' 章节清晰界定适用场景与排除项
Structure and Standards82/100

Areas to improve

  • 工作流步骤命名重复 Reported severity: Minor

    步骤1-5 均显示为 '步骤X 步骤X',存在排版错误

    Recommendation: 修正为 '步骤1 — 确认环境' 等格式,保持一致性

Highlights

  • 具备完整工作流、输入输出定义与互操作规范
  • 提供结构化输出模板指引(JsModuleSpec)
Execution Reliability75/100

Areas to improve

  • 未显式说明工具来源与依赖 Reported severity: Minor

    未明确列出所依赖的 Node.js API 或第三方库

    Recommendation: 在文档中补充说明核心依赖(如 fs、stream、readline 等)

Highlights

  • 涵盖错误处理、内存泄漏检查等关键可靠性要点
  • 输出工件结构清晰,便于下游消费
Evidence Verifiability (mean of the first four)83/100

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.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

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.