markstream-angular – skill Khác cho agent AI
Tích hợp renderer markstream-angular (alpha) vào ứng dụng Angular 20+ với standalone component, signals, mặc định HTML an toàn và các peer feature tùy chọn.
Cài skill markstream-angular bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/markstream-angular-267e3.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /markstream-angular – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/markstream-angular-267e3.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $markstream-angular – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/markstream-angular-267e3.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /markstream-angular – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/markstream-angular-267e3.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /markstream-angular – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
Markstream Angular
Overview
Add Markstream to Angular 20+ while preserving standalone-component patterns, signal-friendly bindings, safe rendering defaults, and explicit optional dependencies. Use markstream-install for framework selection; use this skill once Angular is confirmed.
When to Use
Use for Angular-specific standalone imports, CSS, signals, custom tags or components, streaming state, and optional peers. Do not use below Angular 20 or when the application cannot accept an alpha renderer API.
Workflow
Inspect the existing package manager, installed package version and project conventions. A requested scoped integration already authorizes routine source/dependency edits; seek approval only for a material scope expansion or unresolved beta/alpha adoption decision.
1. Confirm Angular 20+ and record that markstream-angular is alpha.
2. Install the package plus only requested peers. Import markstream-angular/index.css; add KaTeX CSS only for math.
3. Import MarkstreamAngularComponent into the standalone component's imports.
4. Start with [content] and [smoothStreaming]="'auto'". Use nodes plus final only when another layer owns the AST.
5. For live chat use [fade]="false" and opt into [typewriter]="true". On completion set [final]="true", disable pacing/cursor, and enable fade only if desired.
6. Use [customHtmlTags] and [customComponents] only for trusted tag workflows.
7. Keep [htmlPolicy]="'safe'" and Mermaid strict mode unless a narrowly scoped trusted legacy surface requires otherwise.
8. Validate with the smallest Angular build, typecheck, or dev command.
Example
import { Component, signal } from '@angular/core'
import { MarkstreamAngularComponent } from 'markstream-angular'
import 'markstream-angular/index.css'
@Component({
selector: 'app-answer',
standalone: true,
imports: [MarkstreamAngularComponent],
template: `
<markstream-angular
[content]="markdown()"
[final]="done()"
[fade]="done()"
[typewriter]="!done()"
[smoothStreaming]="done() ? false : 'auto'"
[htmlPolicy]="'safe'"
/>
`,
})
export class AnswerComponent {
markdown = signal('# Streaming answer')
done = signal(false)
}Limitations
- Requires Angular 20+ and an alpha package.
- Browser-heavy peers may need bundler or client-boundary work.
- This skill does not design the host chat architecture or visual system.
Security & Safety Notes
Review dependency changes before installation. Never broaden HTML or Mermaid trust settings for untrusted model output.
Verify props, export paths and peer ranges against the installed package, not a mutable upstream main. Test partial and completed streams, malformed/untrusted Markdown, links and image URLs, cancellation and reduced motion. Safe HTML and strict diagrams reduce exposure but do not alone enforce URL/network privacy or application component permissions.
Skill liên quan
- mathguard – Leo thang dùng toán nặng cho n >= 10^6 — Bloom, HyperLogLog, Count-Min, MinHash/LSH…
- mdm-device-management – Quản lý và bảo mật thiết bị của công ty bằng giải pháp MDM
- meeting-distiller-pro – Chuyển ghi chú cuộc họp lộn xộn và bản ghi âm thành đầu việc, quyết định và việc cần…
- mental-health-analyzer – 分析心理健康数据、识别心理模式、评估心理健康状况、提供个性化心理健康建议。支持与睡眠、运动、营养等其他健康数据的关联分析。
- mentorship-program – Sổ đăng ký cố vấn: cặp mentor và mentee, phòng ban, lĩnh vực trọng tâm, mục tiêu của…
- meta-tag-comparison-tool – Công cụ so sánh Meta Tag. Dùng khi làm việc với HTML hoặc metadata đã trích xuất từ hai…
- moatmri – Phân tích áp lực do AI gây ra đối với doanh nghiệp, lập bản đồ mức độ cạnh tranh và xây…
- mobile-games – Nguyên tắc phát triển game di động. Nhập liệu cảm ứng, pin, hiệu năng, app store.