markstream-angular
Skill này làm gì
Công cụ này giúp thêm thành phần Markstream vào dự án xây dựng bằng Angular (một công nghệ phát triển web). Nội dung có thể xuất hiện dần, giống như trong một cuộc trò chuyện, và nội dung hiển thị được đảm bảo an toàn.
Khi nào nên dùng
- ✓Khi bạn muốn văn bản xuất hiện từng chữ hoặc từng từ trên một website Angular.
- ✓Khi bạn muốn hiển thị nội dung an toàn trong các ứng dụng Angular hiện đại.
- ✓Khi bạn cần tích hợp một hệ thống hiển thị văn bản có thể cập nhật theo thời gian thực.
Liên kết skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/markstream-angular/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Làm sao để văn bản xuất hiện dần dần trên website Angular của tôi?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Công cụ chèn một thành phần đặc biệt vào mã Angular của bạn. Thành phần này được cấu hình để nhận văn bản và hiển thị theo cách có kiểm soát, với các tùy chọn về hoạt ảnh và bảo mật.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết 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.
- Confirm Angular 20+ and record that
markstream-angularis alpha. - Install the package plus only requested peers. Import
markstream-angular/index.css; add KaTeX CSS only for math. - Import
MarkstreamAngularComponentinto the standalone component'simports. - Start with
[content]and[smoothStreaming]="'auto'". Usenodesplusfinalonly when another layer owns the AST. - 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. - Use
[customHtmlTags]and[customComponents]only for trusted tag workflows. - Keep
[htmlPolicy]="'safe'"and Mermaid strict mode unless a narrowly scoped trusted legacy surface requires otherwise. - 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.
Câu hỏi thường gặp
“Alpha” nghĩa là gì?
Alpha nghĩa là công cụ vẫn đang trong giai đoạn thử nghiệm và có thể thay đổi. Chỉ nên dùng nếu bạn hiểu rõ mình đang làm gì và nhận thức được rủi ro.
“Standalone component” là gì?
Đây là cách tổ chức mã trong Angular hiện đại hơn, trong đó mỗi phần độc lập hơn. Công cụ này được làm để hoạt động tốt với kiểu tổ chức này.
“Safe HTML defaults” nghĩa là gì?
Nghĩa là công cụ mặc định ngăn mã nguy hiểm được hiển thị trên website của bạn, giúp bảo vệ người dùng.
Chi tiết
Mô tả gốc của tác giả
Integrate the alpha markstream-angular renderer into Angular 20+ applications with standalone components, signals, safe HTML defaults, and optional peer features.
Độ phổ biến
- Sao GitHub
- 48k
- Vị trí xếp hạng
- #5167
- Giấy phép
- MIT
- Cập nhật
- 15/10/2026
Bình luận
- …
Thêm skill từ kho mã này
00-andruia-consultant
48kGiúp agent của bạn bắt đầu hoặc cải thiện các dự án AI. Phân tích mã, gợi ý công cụ và lập kế hoạch hành động bằng tiếng Tây Ban Nha.
007
48kCho phép agent của bạn thực hiện kiểm toán bảo mật và mô hình hóa mối đe dọa. Hữu ích để bảo vệ dự án khỏi các cuộc tấn công và lỗ hổng.
10-andruia-skill-smith
48kGiúp agent của bạn tạo hoặc cải thiện các công cụ AI. Xác định cách công cụ hoạt động, viết tài liệu và kiểm tra cấu trúc.
20-andruia-niche-intelligence
48kGiúp agent của bạn tạo bản tóm tắt về một ngành cụ thể. Hữu ích để hiểu bối cảnh, quy tắc, cách người dùng tương tác và rủi ro của dự án.
Skill tương tự
angular-developer
280kGiúp agent của bạn viết code Angular và tư vấn cấu trúc dự án, hữu ích khi bắt đầu dự án mới hoặc cải thiện hiệu suất.
frontend-a11y
280kGiúp agent của bạn làm cho giao diện web dễ tiếp cận với mọi người. Đảm bảo website và ứng dụng hoạt động tốt với trình đọc màn hình và điều hướng bằng bàn phím.
frontend-patterns
280kGiúp agent của bạn áp dụng các mẫu hiện đại trong phát triển frontend. Tối ưu hiệu năng, quản lý trạng thái và tuân theo thực hành tốt nhất với React và Next.js.