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

/wechat-skill-toggle-yashu

@9e01957
Run it yourself

开启或关闭公众号相关技能。当用户说『打开公众号技能』或『关闭公众号技能』时调用。

  • 1 file
  • 3.2 KB
  • Updated 4 months ago
  • GitHub
Use this Skill: https://skilld.dev/gh/steelan9199/wechat-publisher/wechat-skill-toggle-yashu

Nothing lands on disk. Nothing to clean up.

Fork this Skill

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

SKILL.md

≈37 tokens for metadata: the name and description. ≈766 when used: this file.

How this Skill uses context

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

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

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.

公众号技能开关

本技能用于控制公众号相关技能的启用与禁用,通过修改 Trae 配置文件 C:\Users\Administrator\.trae-cn\skill-config.json 中的 disabledSkills 字段来实现。

受控的技能列表

以下 4 个技能属于"公众号技能"组:

  • wechat-title-optimizer-yashu
  • wechat-content-optimizer-yashu
  • wechat-publisher-yashu
  • generate-cover-prompt-yashu

触发条件

  • 当用户说 "打开公众号技能"(或类似表达如"启用公众号技能"、"开启公众号技能")时,执行开启操作。
  • 当用户说 "关闭公众号技能"(或类似表达如"禁用公众号技能"、"停用公众号技能")时,执行关闭操作。

配置文件路径

C:\Users\Administrator\.trae-cn\skill-config.json

该文件结构如下:

{
  "disabledSkills": [
    "skill-name-1",
    "skill-name-2"
  ],
  "builtinSkillStatus": {},
  "managedSkills": {},
  "deletedSkills": []
}

开启操作(打开公众号技能)

从 disabledSkills 数组中移除以下 4 个技能名称:

  • wechat-title-optimizer-yashu
  • wechat-content-optimizer-yashu
  • wechat-publisher-yashu
  • generate-cover-prompt-yashu

操作步骤:

  1. 使用 Read 工具读取 C:\Users\Administrator\.trae-cn\skill-config.json。
  2. 解析 JSON,从 disabledSkills 数组中移除上述 4 个技能名称(如果存在的话)。
  3. 保持数组中其他技能名称不变,保持文件中其他字段不变。
  4. 使用 Write 工具将修改后的 JSON 写回原文件(保持 2 空格缩进格式)。
  5. 向用户报告操作结果,列出当前 disabledSkills 的最终状态。

关闭操作(关闭公众号技能)

向 disabledSkills 数组中添加以下 4 个技能名称(如果尚未存在的话):

  • wechat-title-optimizer-yashu
  • wechat-content-optimizer-yashu
  • wechat-publisher-yashu
  • generate-cover-prompt-yashu

操作步骤:

  1. 使用 Read 工具读取 C:\Users\Administrator\.trae-cn\skill-config.json。
  2. 解析 JSON,检查上述 4 个技能名称是否已在 disabledSkills 数组中。
  3. 将不存在的技能名称添加到 disabledSkills 数组末尾。
  4. 保持数组中其他技能名称不变,保持文件中其他字段不变。
  5. 使用 Write 工具将修改后的 JSON 写回原文件(保持 2 空格缩进格式)。
  6. 向用户报告操作结果,列出当前 disabledSkills 的最终状态。

注意事项

  • 仅修改 disabledSkills 字段,不要修改 builtinSkillStatus、managedSkills、deletedSkills 等其他字段。
  • 添加时做去重检查,避免数组中出现重复的技能名称。
  • 移除时只移除指定的 4 个技能名称,不影响其他技能。
  • 写回文件时保持 JSON 格式:2 空格缩进,UTF-8 编码,末尾保留换行符。
  • 操作完成后,简要告知用户当前公众号技能是"已开启"还是"已关闭"状态。

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 4 months ago

README badge

README badge for steelan9199/wechat-publisher/wechat-skill-toggle-yashu