Chuyển đến nội dung
Skillpedia
Prompt và LLM7.2k · #13344

web-technique-to-skill

Skill này làm gì

Skill này lấy một hiệu ứng web đang hoạt động và đóng gói cơ chế cốt lõi của nó thành một skill tái sử dụng, kèm demo chứng minh nó hoạt động. Nó dành cho nhà thiết kế và lập trình viên web muốn tái sử dụng một kỹ thuật đã làm.

Khi nào nên dùng

  • ✓Khi bạn đã làm một hiệu ứng web chạy được và muốn tái sử dụng.
  • ✓Khi một kỹ thuật web bị kẹt trong một file và cần được chia sẻ.
  • ✓Khi bạn muốn một demo chứng minh kỹ thuật vẫn đúng về hình ảnh.

Liên kết skill

https://github.com/MengTo/Skills/blob/main/agent-skills/codex/web-technique-to-skill/SKILL.md

Sao 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

Hãy dùng skill này để giúp tôi: https://github.com/MengTo/Skills/blob/main/agent-skills/codex/web-technique-to-skill/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Biến hiệu ứng lá rơi tôi đã làm thành một skill tái sử dụng có demo.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent đặt tên cho cơ chế đơn lẻ làm hiệu ứng hoạt động, tách nó khỏi phần trang trí xung quanh, rồi viết một skill kèm demo. Nó ghi lại môi trường chạy đã kiểm chứng và kiểm tra kết quả hình ảnh.

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.

Web Technique to Skill

Start from working code, not from prose. Reach for article-prompts-to-skills when the source is an article or a prompt pack that describes behavior. Reach for this when you built the thing, it works, and the knowledge is currently trapped in one file.

Extract one mechanism per skill. A page that turned out well usually holds several; package them separately or each one gets diluted.

Treat this as the living quality contract for every web-technique skill. On every creation or revision, audit this skill too. If the work exposes a missing fidelity rule, failure mode, packaging constraint, or verification step, update this contract in the same scoped change instead of solving it only inside one child skill.

Name the mechanism in one sentence

Write the sentence before you write anything else: the one thing that, if removed, makes the effect stop working. If you cannot write it, you have a look, not a mechanism, and there is no skill here yet.

The sentence decides everything downstream. For a leaf fall it is "the tumble crosses edge-on, and that instant of near-disappearance is what the eye reads as a leaf" — so the sprite artwork, the palette, and the night scene are all staging, and the tumble is the skill.

Test it: change the subject, the palette, and the layout in your head. If the sentence still holds, it is the mechanism. If it stops making sense, you named the staging.

Name the demo and disclose the stack

Use the concrete technique name for the visible h1 and browser <title>: Wisps, Cursor Ripples, Liquid Metal Border, or Scroll-scrubbed Word Reveal. Do not hide the subject behind an abstract mechanism claim. “Draw at any speed” describes behaviour, but it does not tell anyone what the demo is.

Put the verified implementation path directly above or below that title. Name, in order:

  1. The runtime or framework: Vanilla JavaScript, React, Vue
  2. The renderer or browser API: Canvas 2D, WebGL, DOM/CSS, SVG
  3. The technique layer when present: GLSL shaders, Three.js, GSAP, ScrollTrigger

Write Vanilla JavaScript · Canvas 2D or Three.js · WebGL · GLSL, not “interactive experiment” or “motion study.” Never guess from the look. Verify imports, renderer construction, and context creation in the source. getContext('2d') is Canvas 2D, not a shader; WebGLRenderer plus ShaderMaterial is Three.js, WebGL, and GLSL. When the visual could be mistaken for a more complex stack, state the absence plainly: No WebGL, shaders, or Three.js.

Separate the effect stack from the interface stack when they differ. Write Vanilla JavaScript + Canvas 2D effect; CSS interface instead of listing CSS beside Canvas 2D as if both render the particles. Readers should know which technology creates the technique and which technology only lays out its controls.

If an approved reference headline must remain for layout fidelity, keep it and put the technique name plus stack in the browser title and the reference's existing kicker, control panel, or secondary label. The implementation must still be obvious on the first screen.

Split mechanism from staging

Sort every part of the source into three piles and keep only the first:

pile goes where examples
mechanism the skill the maths, the state model, the ordering constraint, the budget
staging the demo only palette, copy, imagery, page layout, brand
incidental nowhere selector names, a font choice, a one-off asset path

Strip project selectors and incidental asset paths from the reusable mechanism in the skill body. Keep the approved reference staging in the demo: the same owned brand, palette, type treatment, composition, asset placement, atmosphere, and motion hierarchy. Isolate the technique by narrowing what the demo teaches and controls, not by inventing a different visual world.

Anchor every rule to the failure it prevents

State the wrong result, not the right adjective. A rule with a named failure is testable; a rule without one is decoration.

  • Weak: "vary the particle rotation for a natural feel."
  • Strong: "drive rotation from the tumble angle, ninety degrees out of phase. An independent sine reads as a wobble or as an easing bug."

If you cannot name what goes wrong, you probably never tested the alternative, and the rule may not be real. Cut it or go and find out.

Carry numbers, not adjectives

Ship the constants you actually landed on. "Subtle"

Câu hỏi thường gặp

Cơ chế là gì?

Đó là phần duy nhất mà nếu bỏ đi thì hiệu ứng ngừng hoạt động. Phần còn lại được coi là phong cách.

Một trang có thể tạo ra nhiều skill không?

Có. Skill nói nên đóng gói từng cơ chế riêng để không cơ chế nào bị loãng.

Có bắt buộc có demo không?

Có. Skill nói nên đóng gói kỹ thuật cùng một demo chứng minh cả cơ chế lẫn diện mạo của nó.

Chi tiết

Mô tả gốc của tác giả

Turn a visual or interaction technique you already built into a reusable web-design skill, by isolating the one mechanism that makes it work while reproducing its approved reference exactly around that focus, and packaging it with a demo that proves both the mechanism and the visual fidelity. Covers finding the mechanism, naming the technique plainly, disclosing the verified runtime and renderer, auditing reference layers, carrying real numbers instead of adjectives, preserving owned staging, keeping expensive gotchas, declaring the boundary against neighbouring skills, and browser-verifying b

repo: MengTo/Skills

Độ phổ biến

Sao GitHub
7.2k
Vị trí xếp hạng
#13344
Giấy phép
MIT
Cập nhật
1/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự