Index of every page on this site: llms.txt
All skills
steelan9199 avatar

/error-friendly

@9e01957
Run it yourself

优化代码错误提示,让普通用户能看懂问题和解决方法。Invoke when there's a technical error message that needs to be made user-friendly.

  • 1 file
  • 1.4 KB
  • Updated 5 months ago
  • GitHub
Use this Skill: https://skilld.dev/gh/steelan9199/wechat-publisher/error-friendly

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈43 tokens for metadata: the name and description. ≈315 when used: this file.

Description uses 1.6% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈124 characters, or 1.6%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Error-Friendly

优化代码中的错误提示,使普通用户(非技术人员)能够:

  1. 看懂发生了什么问题
  2. 知道应该怎么解决

原则

  • 说人话:避免技术术语(如 param.json、content 字段、object_string 等)
  • 给出行动指引:告诉用户具体该做什么
  • 保持简洁:一行能说清的不要用两句
  • 语气友好:用「请」「比如」等温和表达

使用场景

当你发现代码中有 console.error 或 throw new Error 时,检查是否:

  • 包含技术名词(文件名、变量名、API 名)
  • 没有告诉用户下一步该做什么
  • 语气过于冰冷

修改示例

❌ 修改前(技术人员视角):

console.error("COZE_API_KEY 环境变量未设置");

✅ 修改后(用户视角):

❌ 发送失败:缺少 API Key
   请确保已在 .env 文件中配置 COZE_API_KEY
   获取方式:https://coze.cn/settings

输出格式

修改后的错误提示应包含:

  1. emoji 图标:让错误更醒目(❌ 错误、⚠️ 警告、💡 提示)
  2. 简短说明:一句话说清问题
  3. 解决建议:告诉用户具体怎么做

如需更详细指引,可添加「更多信息」或「示例」。

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at 9e01957. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 3 weeks ago.

Activeupdated 5 months ago

README badge

README badge for steelan9199/wechat-publisher/error-friendly