javascript

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Skill: javascript - Advanced JavaScript Engineering

Skill: javascript - 高级JavaScript工程

Purpose

目的

Provide advanced JavaScript guidance across runtimes, focusing on modern language features, performance optimization, and robust async patterns.
提供跨运行时的高级JavaScript指导,聚焦现代语言特性、性能优化和健壮的异步模式。

File Structure

文件结构

forge-plugin/skills/javascript/
├── SKILL.md
└── examples.md
forge-plugin/skills/javascript/
├── SKILL.md
└── examples.md

Interface References

接口参考

  • Context: Load guidance via ContextProvider Interface
  • Memory: Store project knowledge via MemoryStore Interface
  • Output: Save reports to
    /claudedocs/
    using OUTPUT_CONVENTIONS.md
  • Context:通过ContextProvider Interface加载指导内容
  • Memory:通过MemoryStore Interface存储项目知识
  • Output:遵循OUTPUT_CONVENTIONS.md将报告保存至
    /claudedocs/

Mandatory Workflow

强制工作流

Step 1: Initial Analysis

步骤1:初始分析

  • Identify runtime (Node.js, browser, edge) and deployment constraints
  • Confirm module system (ESM/CJS) and bundler/tooling
  • Capture performance goals and latency budgets
  • 识别运行时(Node.js、浏览器、边缘计算)和部署约束
  • 确认模块系统(ESM/CJS)及打包工具/相关工具链
  • 明确性能目标和延迟预算

Step 2: Load Memory

步骤2:加载内存数据

  • Use
    memoryStore.getSkillMemory("javascript", "{project-name}")
    to load prior decisions
  • Review cross-skill notes via
    memoryStore.getByProject("{project-name}")
  • 使用
    memoryStore.getSkillMemory("javascript", "{project-name}")
    加载先前决策
  • 通过
    memoryStore.getByProject("{project-name}")
    查看跨技能笔记

Step 3: Load Context

步骤3:加载上下文

  • Use
    contextProvider.getDomainIndex("engineering")
    to select relevant guidance
  • Load only the context files required for the task
  • 使用
    contextProvider.getDomainIndex("engineering")
    选择相关指导内容
  • 仅加载任务所需的上下文文件

Step 4: Perform Analysis

步骤4:执行分析

  • Review async patterns (promise chains, async/await, streaming)
  • Evaluate module boundaries, dependency graphs, and bundling strategy
  • Identify performance optimizations (event loop, caching, memory usage)
  • Address runtime-specific security and stability concerns
  • 审查异步模式(Promise链、async/await、流式处理)
  • 评估模块边界、依赖图和打包策略
  • 识别性能优化点(事件循环、缓存、内存使用)
  • 解决特定运行时的安全和稳定性问题

Step 5: Generate Output

步骤5:生成输出

  • Provide code samples, optimization plans, and rollout steps
  • Save the report to
    /claudedocs/javascript_{project}_{YYYY-MM-DD}.md
    following OUTPUT_CONVENTIONS
  • 提供代码示例、优化计划和部署步骤
  • 遵循OUTPUT_CONVENTIONS将报告保存至
    /claudedocs/javascript_{project}_{YYYY-MM-DD}.md

Step 6: Update Memory

步骤6:更新内存数据

  • Record runtime constraints, module strategies, and performance baselines
  • Update memory with
    memoryStore.update("javascript", "{project-name}", ...)
  • 记录运行时约束、模块策略和性能基准
  • 使用
    memoryStore.update("javascript", "{project-name}", ...)
    更新内存数据

Compliance Checklist

合规检查清单

  • Step 1 captured runtime and tooling constraints
  • Step 2 loaded project memory via MemoryStore
  • Step 3 loaded relevant context via ContextProvider
  • Step 4 analysis covered async patterns and performance
  • Step 5 output saved to
    /claudedocs/
    with correct naming
  • Step 6 memory updated with new insights
  • 步骤1已捕获运行时和工具链约束
  • 步骤2已通过MemoryStore加载项目内存数据
  • 步骤3已通过ContextProvider加载相关上下文
  • 步骤4的分析涵盖了异步模式和性能
  • 步骤5的输出已保存至
    /claudedocs/
    且命名正确
  • 步骤6已用新见解更新内存数据

Version History

版本历史

VersionDateChanges
1.0.02026-02-12Initial release
版本日期变更
1.0.02026-02-12初始版本发布