juicecsshtml

Use Juice when an agent has finished HTML processing and the content needs conversion to email-safe output before sending, archiving, or handing off to another system. The technique inlines stylesheet rules into elements' style attributes so downstream mail clients and embedded environments retain intended rendering without manual cleanup.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "juicecsshtml" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-60c0ab1f71a0818e551ae374ee2442fdd0bd7df896a923de1bac9556e9028530. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/inline-css-into-html-emails-before-delivery-across-mail-clients-juice before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Use Juice when an agent has finished HTML processing and the content needs conversion to email-safe output before sending, archiving, or handing off to another system. The technique inlines stylesheet rules into elements' style attributes so downstream mail clients and embedded environments retain intended rendering without manual cleanup.

0 Downloads

Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Software, accounts and paid services
Node.js
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: "在邮件客户端发送前使用 Juice 将内联 CSS 注入 HTML 邮件中"
slug: "inline-css-into-html-emails-before-delivery-across-mail-clients-juice"
version: "1.0.0"
displayName: "在邮件客户端发送前使用 Juice 将内联 CSS 注入 HTML 邮件中"
summary: "当代理已经完成了HTML处理,需要在发送、归档或移交到另一个系统之前将其转换为邮件安全的输出时,请使用Juice。该技术将样式表规则内联到元素的style属性中,使得下游的邮件客户端和嵌入式环境能够在无需手动清理的情况下保持预期的呈现效果。"
license: "MIT"
description: "当代理已经完成了HTML处理,需要在发送、归档或移交到另一个系统之前将其转换为邮件安全的输出时,请使用Juice。该技术将样式表规则内联到元素的style属性中,使得下游邮件客户端和嵌入式环境能够在无需手动清理的情况下保持预期的呈现效果。"
github_stars: 3245
verification: "security_reviewed"
source: "https://github.com/1991513ccie-png/skills"
author: "1991513ccie-png"
publisher_type: "individual"
category: "Calendar, Email & Productivity"
framework: "Custom Agents"
tool_ecosystem:
  github_repo: "1991513ccie-png/skills"
  github_stars: 3245
  npm_package: "juice"
  npm_weekly_downloads: 2388946

在邮件客户端发送前使用 Juice 将内联 CSS 注入 HTML 邮件中

Use Juice when an agent already has finished HTML and needs it transformed into email-safe output before sending, archiving, or handing off to another system. The skill inlines stylesheet rules into element style attributes so downstream mail clients and embedded contexts keep the intended presentation without manual cleanup.

Prerequisites

Node.js

Installation

Requirements and caveats from upstream:

  • Attempting to Browserify require('juice') fails because portions of Juice and its dependencies interact with the file system using the standard require('fs'). However, you can require('juice/client') via Browserify wh...

Basic usage or getting-started notes:

  • For example, Handlebars (hbs) templates are juice.codeBlocks.HBS = {start: '{{', end: '}}'}. codeBlocks can fix problems where otherwise juice might interpret code like <= as HTML, when it is meant to be template lang...

  • To use Juice from CLI, run juice [options] input.html output.html

  • The CLI should have all the above options with the names changed from camel case to hyphen-delimited, so for example extraCss becomes extra-css and webResources.scripts becomes web-resources-scripts.

  • Source: https://github.com/1991513ccie-png/skills

  • Extracted from upstream docs: https://raw.githubusercontent.com/Automattic/juice/HEAD/README.md

Documentation

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value75/100

Highlights

  • 解决 HTML 邮件跨客户端渲染兼容性这一明确工程痛点
  • 适用于开发者及邮件系统自动化处理场景,具备实际落地价值
Trigger Precision90/100

Highlights

  • 触发描述清晰完整,涵盖使用时机、核心动作和预期效果
  • 边界定义明确,不易与其他 Skill 混淆
Structure and Standards65/100

Areas to improve

  • 缺少 When to Use/示例章节 Reported severity: Minor

    文档未明确划分使用阶段和提供端到端完整示例

    Recommendation: 建议补充清晰的 Phase 划分和完整的使用示例,帮助用户快速理解执行流程

Highlights

  • frontmatter 信息完整,包含必要元数据
  • 基础结构具备,有 prerequisites 和 installation 说明
Execution Reliability60/100

Areas to improve

  • 缺少异常处理说明 Reported severity: Minor

    未覆盖输入文件不存在、输出路径不可写等常见异常场景

    Recommendation: 建议补充常见异常的处理建议和错误恢复机制

Highlights

  • 工具来源明确,引用了官方 npm 包和 GitHub 仓库
  • 提及了 Browserify 限制和 codeBlocks 配置等重要注意事项
Evidence Verifiability (mean of the first four)73/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • github.com
  • raw.githubusercontent.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Node.js

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.