Logo Frontend Rails

Frontend Rails

Cộng đồng
sorrycc
frontend-rails

Build frontend pages (landing pages, app screens and dashboards, HTML reports) that look right and feel right in use, or audit and polish an existing one. Pick a ready-made theme, build with its tokens and components, then let a browser script use the page (hover, press, Tab, every view state, long content) and tell you what to fix. Use when asked to make, redesign, review or polish a web page, UI, dashboard, or HTML artifact.

Tổng quan

Nhà phát hànhsorrycc
Kho mãskills
Tên kỹ năngfrontend-rails
Sao
35
Bản fork
1
Tệp đi kèm
39
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 39 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được sorrycc công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Frontend Rails trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/sorrycc/skills/tree/master/skills/frontend-rails
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/sorrycc/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/frontend-rails .claude/skills/frontend-rails
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Frontend Rails trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Frontend Rails ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Frontend Rails với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

frontend-rails

You don't have to invent a look, and you don't have to guess whether the page feels right. Pick a theme, use its values, build, then let the gate use the page and tell you what to fix.

Order of importance, always: the page solves the problem, then it is easy to use, then it looks good. Polish never covers a broken interaction.

SKILL_DIR below means the folder this file is in.

Which job is this?

  • Build a new page: follow steps 1 to 10.
  • Audit or polish a page that already exists, in any stack: read polish.md instead. It uses the same gate with --audit.

1. Read the project memory

If the project has a DESIGN.md, read it first. It names the theme, the main task, the words the product uses, and what the user has rejected. Don't bring back anything listed as rejected.

2. Pick the page type

  • landing: marketing page, home page, product page
  • app: dashboard, admin, settings, any screen with data or forms
  • report: HTML report, doc, write-up, comparison, artifact

Read archetypes/<type>.md. Write down the one main task a first-time user comes to do. Step 8 tests it.

3. Pick a theme

Read themes/INDEX.md and pick the theme that fits the product. If DESIGN.md already names one, use that. Then read themes/<name>/theme.md.

Copy into the project:

  • themes/<name>/tokens.css → tokens.css
  • components/primitives.css → primitives.css

You can change token values to fit the brand (for example, set --accent to the brand color). You can add a token if you need one. Keep the names and put all values in tokens.css. In a Tailwind project, see the mapping in polish.md.

4. Build

  • In <head>: the font <link> from the top of tokens.css, then tokens.css, then primitives.css, then your own CSS.
  • Use var(--…) for every color, font, font size, spacing, radius, and duration.
  • Use the classes in components/usage.md before writing new CSS. Menus, dialogs, drawers, toasts, tooltips and switches are in there, already timed and keyboard-ready. Don't hand-roll them.
  • App screens declare their view states in the markup (archetypes/app.md). The gate flips through them.
  • Read copy.md before writing any text. Write real copy. No lorem ipsum.

5. Motion (only if the page needs it)

Read motion/motion.md. It starts with whether a thing should move at all, which depends on how often people see it. Add motion after the page works without it.

6. Run the gate

First time only: cd SKILL_DIR/gate && npm install

node SKILL_DIR/gate/run.mjs page.html --type landing|app|report [--dark]

The gate looks at the page and then uses it. Each line it prints says what's wrong and where.

RulesWhat the gate does
ROpens the page at 1440, 768 and 390 px and checks tokens, contrast, tap targets, overflow, type sizes, shadows
MChecks motion: durations, easing, what animates, how often it is seen, and a second load with reduced motion
SFlips through every declared view state, screenshots each, and checks nothing around them moves
KBreak pass. Doubles the labels, makes the data long, and checks the layout holds
BHovers and presses every control, clicks what opens, presses Escape, Tabs through the page, scrolls
CReads the copy: one verb per action, plurals, stale dates, nameless icon buttons, unlabelled inputs

Screenshots land in .gate/ next to the page: one per width, one per state, break-*.png, 1440-nocopy.png (secondary text hidden) and motion-*.png (six frames of each open and close).

  • Fix every error. Fix warnings when it's easy.
  • Run it again. Stop after 3 rounds.
  • If the same error is still there after 2 fixes, go to step 9 instead of trying a third time.
  • If a rule is wrong for this project, add ignore: R07 (optionally with a selector, like ignore: R07 .pricing) to the gate block in DESIGN.md and write down why.

--no-interact and --no-break skip those passes when you only changed colors or type.

7. Look at the screenshots

Start a subagent with fresh context. Give it only the brief and the screenshot paths from .gate/, not the code. Ask it the questions in gate/vision-questions.md for this page type. Fix every answer that points to a problem, then run the gate once more.

8. Walk the main task as a first-time user

Start another fresh subagent and follow gate/walkthrough.md. It gets the main task from step 2 and a browser it drives through gate/walk.mjs. It never sees the code. Fix every place it hesitated or got stuck. Skip this step for reports.

9. When it still isn't right, show three

If two fixes didn't settle something, or the user says it feels off and can't say why, stop iterating on one version. Build three variants that differ in one clear way each, then:

node SKILL_DIR/gate/compare.mjs a.html b.html c.html --type app

It writes .gate/compare/compare.html with the three side by side at desktop and phone width, with gate results. Show that to the user and let them pick.

10. Update DESIGN.md

Create it from templates/DESIGN.md if it doesn't exist. Write down the theme, the tokens you changed, the main task, and the verbs the product uses.

Every time the user rejects something, record it twice. Once in words under Rejected, and once as a line in the gate block so the gate fails the next page that does it:

  • a CSS effect → ban: backdrop-filter or ban: text-transform: uppercase
  • a wording → ban-text: Get started
  • a second word for an action → verb: delete
  • motion on something used all day → freq: constant .command-palette

In your final message, list what you changed as a table with columns Before, After, Why.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

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

Kỹ năng AI Frontend Rails làm được gì?

Build frontend pages (landing pages, app screens and dashboards, HTML reports) that look right and feel right in use, or audit and polish an existing one. Pick a ready-made theme, build with its tokens and components, then let a browser script use the page (hover, press, Tab, every view state, long content) and tell you what to fix. Use when asked to make, redesign, review or polish a web page, UI, dashboard, or HTML artifact.

Vì sao nên dùng Frontend Rails trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Frontend Rails là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Frontend Rails trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/sorrycc/skills/tree/master/skills/frontend-rails. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Frontend Rails?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Frontend Rails với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Frontend Rails với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Frontend Rails có miễn phí không?

Có. Kỹ năng này được sorrycc phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇