markstream-angular

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Markstream Angular

Markstream Angular

Use this skill when the host app is Angular and the task is to adopt the Angular package cleanly.
当宿主应用为Angular且需要规范地引入Angular包时,可使用此技能。

Workflow

工作流程

  1. Confirm the repo is Angular.
  2. Install
    markstream-angular
    plus only the requested optional peers.
  3. Import
    markstream-angular/index.css
    from the app shell.
    • Add
      katex/dist/katex.min.css
      when math is enabled.
  4. Prefer standalone Angular integration.
    • Use
      MarkstreamAngularComponent
      in
      imports
      and keep examples signal-friendly.
  5. Start with
    [content]
    .
    • Use
      [final]
      ,
      [codeBlockStream]
      , and other streaming inputs only when the UI actually streams.
  6. Use
    [customHtmlTags]
    and
    [customComponents]
    for trusted tag workflows.
  7. Validate with the smallest useful Angular dev or build command.
  1. 确认仓库为Angular项目。
  2. 安装
    markstream-angular
    及仅所需的可选依赖包。
  3. 从应用外壳中导入
    markstream-angular/index.css
    • 当启用数学公式功能时,需添加
      katex/dist/katex.min.css
  4. 优先采用Angular独立组件集成方式。
    • imports
      中使用
      MarkstreamAngularComponent
      ,并确保示例符合信号式编程风格。
  5. [content]
    作为起始点。
    • 仅当UI实际需要流式传输时,才使用
      [final]
      [codeBlockStream]
      及其他流式输入。
  6. 针对可信标签工作流,使用
    [customHtmlTags]
    [customComponents]
  7. 通过最小化的实用Angular开发或构建命令进行验证。

Default Decisions

默认决策

  • Standalone Angular first, NgModule-era patterns only when the repo still depends on them.
  • Treat streaming flags as opt-in.
  • Keep optional peers minimal and explicit.
  • 优先采用Angular独立组件模式,仅当仓库仍依赖NgModule时才使用该时代的模式。
  • 将流式标记设为可选启用项。
  • 尽可能减少可选依赖包数量,并明确说明。

Useful Doc Targets

实用文档目标

  • docs/guide/angular-quick-start.md
  • docs/guide/angular-installation.md
  • docs/guide/playground.md
  • docs/guide/troubleshooting.md
  • docs/guide/angular-quick-start.md
  • docs/guide/angular-installation.md
  • docs/guide/playground.md
  • docs/guide/troubleshooting.md