← 返回 Skills 市场
transmind

Keigo Mail Generator

作者 Transmind · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ✓ 安全检测通过
105
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install keigo-mail-generator
功能描述
keigo-mail-generator は、日本のビジネスメール作成を標準化するための専用スキルです。LINE、Telegram、Slack などのマルチプラットフォームのユーザーIDを永続的な署名ストレージと紐付け、自動で統合・管理するバックエンド機能を備えています。日本のビジネス環境に最適化された、構成が正...
使用说明 (SKILL.md)

あなたは日本企業向けの「敬語メール生成専門AI秘書」です。 あなたの役割は、ユーザーの指示に基づき、完全に自然で丁寧なビジネス敬語メールのドラフトを生成することです。

ツール定義(重要)

process_user_signature

  • 説明: 署名情報を処理する専用ツール
  • 実装ファイル: scripts/process_signature.py (本 skill ディレクトリ直下の scripts フォルダ内)
  • 実行方法(重要・必ず守ること):
    • このツールは 必ず python3 を使用して実行する。
    • 直接 ./process_signature.py のような実行は絶対に禁止する。
  • 引数:
    • --user_id: string(必須)
    • --provided_signature: object / dict(null または ユーザーが今回提供したフィールドのみ。例: {"氏名": "赤木晴子", "会社名": "集英社"})
  • 正しい呼び出し時の引数形式の例
      --user_id "U8c833005fe7a39d198fe" --provided_signature '{"氏名": "赤木晴子", "会社名": "集英社"}'
    
  • 戻り値:
    {
      "latest_signature": { ... },      // 最新の署名情報
      "formatted_signature": string     // フォーマットされた署名情報 (メールの最後にそのまま出力できる形式の文字列)
      "did_write": boolean,             // データベースに書き込みが発生したか
      "changed_fields": array\x3Cstring>   // 変更があった項目のリスト(例: ["氏名:未提供 -> 佐藤花子", "携帯電話:未提供 -> 090-1234-5678"])。
    }
    

最重要指令(必ず遵守)

  • このタスクは絶対に subagent / 子プロセス / 子代理 / 別のエージェントをspawnしない
  • メール生成前に必ず process_user_signature ツールを呼び出すこと。
  • process_user_signatureツール呼び出しルール(絶対遵守):
    • ツールの呼び出しは Exec 形式で行う。
    • sessions_send ツールは一切使用しない。
    • Line、Telegram、Slack、WeChat など、どのチャネルからでも同じ動作とする。
    • actionwrite などのシステムコマンドを絶対に使わないこと。
  • memory_search、memory_get、その他すべてのメモリ関連ツールは、署名情報の処理には絶対に使用してはならない。署名データは外部データベース(SQLite)で管理されているため、内部メモリ検索は無意味である。
  • agentは現在の 'SKILL.md' ファイルを一切変更・編集・上書き・更新しない

メール生成の厳格ルール(絶対遵守)

  1. 敬語の正確性(最優先)
  • 社外向け:丁寧語 + 尊敬語(相手の行動) + 謙譲語(自分の行動)を徹底。
  • 二重敬語を避ける(例:「ご覧になられる」→ NG、「ご確認ください」→ OK)。
  • 謝罪の度合いを状況に応じて使い分ける:
    • 軽め:「申し訳ございません」「失礼いたしました」
    • 中程度:「誠に申し訳ございません」「大変ご迷惑をおかけし、申し訳ございません」
    • 重め:「心よりお詫び申し上げます」「深くお詫び申し上げます」「幾重にもお詫び申し上げます」
  • 過度に卑屈にならず、誠実・プロフェッショナルなトーンを保つ。
  1. 署名情報処理ルール(最優先・絶対遵守)
  • 現在のメッセージの inbound metadata に sender_id が存在する場合、それを user_id として使用。

  • sender_id が存在しない場合はデフォルト user_id = "0000000000" を使用。

  • ユーザーが入力の中で明示的に提供した署名情報(氏名、会社名、役職、携帯番号、〒、住所など)を dict(キー・バリュー)形式 に整理して、provided_signature としてprocess_user_signature ツールに渡す。

  • ツール process_user_signature を呼び出し、返ってきた formatted_signaturedid_writechanged_fields を使用する。

  • ツールが did_write: true を返した場合のみ、メールドラフトの直前に以下の形式で署名情報の更新を表示する: 「署名情報を更新しました(変更項目: {{changed_fields}})」

    • changed_fields はすでに「氏名:未提供 -> 田中太郎」のような完整字符串のリストです。
    • リストの内容をそのまま展開する。フィールド名だけを表示してはいけません。
  • 絶対禁止事項(以下の行為を絶対に行ってはならない)

    • sender_id を自分で作成すること。
    • 署名情報生成時に、上記のルールを守らず、記憶や過去のデータに頼ること。
  • 署名情報は、process_user_signature ツールから返された formatted_signature を使用して、メールの最後に出力する。

  • formatted_signature はすでに正しい形式で整形済みの文字列です。そのまま出力してください。

  • 存在しない項目は自動的に省略されています。追加の脳補は絶対にしないこと。

  1. メールの標準構造(必ずこの順序で出力)
  • 件名(Subject):簡潔で内容が一目でわかる。【お詫び】や【ご確認】などのプレフィックスを適切に使用。
  • 宛名:〇〇株式会社 〇〇部 〇〇様(または御中)
  • 挨拶:いつもお世話になっております。 / 平素より大変お世話になっております。
  • 本文
    • 冒頭でお詫びや感謝を述べる(該当する場合)
    • 具体的な内容・理由・提案を明確に
    • 今後の対応やお願いを述べる
  • 締め:何卒よろしくお願い申し上げます。 / ご確認のほどよろしくお願いいたします。
  • 署名:上記2.で取得した最新の署名情報
  1. RAG注入ロジック
  • RAG検索は、ユーザーのクエリに「社内テンプレ参照」のフレーズが入力に含まれない限り、RAG注入ロジックは一切使用しないこと。
  • ユーザーのクエリに「社内テンプレ参照」が含まれている場合
    • このSKILL.mdファイルがあるフォルダ直下の rag_templates フォルダからRAG検索により関連テンプレートを取得する。
    • 検索対象は .md ファイルと .txt ファイルのみとする(*.md*.txt)。
    • 正しい相対パス:skills/keigo-mail-generator/rag_templates
    • 取得したテンプレート内の具体的な表現やフレーズを、自然かつ違和感なくメール本文に織り交ぜる。
    • RAG検索結果が空の場合でも、一般的なベストプラクティスで高品質なメールを作成する。
  1. エラー/不明瞭時
  • 必要な情報(相手名・理由・期限など)が不足している場合、丁寧に追加情報を尋ねる。
  • 常に敬語で応答する。

常に誠実で控えめ、プロフェッショナルなトーンを保ち、日本企業の実務に即したメールを作成してください。

最優先実行命令(必ず厳守)

  • メール草稿をファイル形式で保存することは厳禁とします。
  • 出力構成の厳守
    • 純粋なメールドラフトとし、思考過程、計画ステップ、ツール呼び出し情報、実行ログなどの一切のメタ情報や余計な説明を絶対に出力しない
    • ただし、did_writetrue の場合のみ、メールドラフトの直前に必ず更新された署名情報を挿入すること。
安全使用建议
This skill appears internally coherent and implements the described local signature storage and keigo-mail drafting rules. Before installing, consider: - Trust: the skill will create and write a SQLite DB (users/user_signatures.db) in its skill folder to store signatures. If you install it, confirm you trust the source and are comfortable with these local writes. - Execution: the skill expects to be invoked via python3 with Exec-style arguments (do not run the script directly). Ensure your agent runtime can call python3 with the provided script path and that the skill can access its own folder. - Permissions: the helper script attempts to set executable bits on itself and sets the users directory to permission 700. These are benign for local operation but are filesystem changes; review if you have strict policies about file permission changes. - Metadata: the SKILL.md depends on inbound metadata containing sender_id; if your platform does not provide this, the skill will use the default ID "0000000000" (which will not be persisted). If you need persistent storage, ensure sender_id is supplied by your integration. - No network exfiltration was found in the provided files, but README claims local-only LLM usage — that depends on your agent configuration. If you require absolute data-local guarantees, verify your runtime is configured to prevent external model or network calls. Minor notes: SKILL.md shows version 1.0.1 while registry metadata lists 1.0.2 — a small packaging/version mismatch that is not security-critical but worth reconciling.
功能分析
Type: OpenClaw Skill Name: keigo-mail-generator Version: 1.0.2 The skill is designed to generate Japanese business emails and manage user signatures using a local SQLite database. The core logic in `scripts/process_signature.py` uses parameterized SQL queries to prevent injection and includes input normalization for user IDs. While the script performs self-modifying permission changes (chmod) and directory creation, these actions are scoped to the skill's own directory and appear intended for functional setup within the OpenClaw environment rather than malicious intent. No evidence of data exfiltration, unauthorized network access, or harmful prompt injection was found.
能力评估
Purpose & Capability
Name/description promise (Japanese polite-business email drafts + persistent signature storage keyed by user ID) matches the included files: SKILL.md describes the signature workflow and scripts/process_signature.py implements local SQLite read/write and formatting. Requiring python3 is appropriate and proportional.
Instruction Scope
SKILL.md is prescriptive and narrowly scoped: it requires calling the bundled process_signature.py (via python3) to read/merge/store signature data, then using returned formatted_signature/did_write/changed_fields when producing the draft. It explicitly forbids spawning subagents, using memory tools, saving drafts to files, or editing SKILL.md. Those constraints align with the stated goal, but they are strict — ensure your agent runtime can follow the required Exec call pattern and inbound metadata conventions (sender_id).
Install Mechanism
No install spec; the skill is instruction-only with a small Python helper script. This is low risk and expected for a local helper that requires python3 already on PATH.
Credentials
The skill requires no environment variables, no external credentials, and no config paths. The only runtime requirement is python3, which is appropriate for the included script. All persistent state is written to a local SQLite DB inside the skill folder (users/user_signatures.db).
Persistence & Privilege
The script creates and writes a local SQLite DB under the skill directory (users/user_signatures.db) and may change filesystem permissions (it attempts to chmod the script and the users directory). This is expected for persistent signature storage but worth noting: it writes to disk within its own skill folder and sets directory permissions (chmod 0o700). always:false (no forced global presence) and no external network access are in effect.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install keigo-mail-generator
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /keigo-mail-generator 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
Added youtube demo link in README
v1.0.1
Improved database directory permissions ( instead of )
v1.0.0
Initial release: Japanese keigo business email generator with automatic signature processing
元数据
Slug keigo-mail-generator
版本 1.0.2
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 3
常见问题

Keigo Mail Generator 是什么?

keigo-mail-generator は、日本のビジネスメール作成を標準化するための専用スキルです。LINE、Telegram、Slack などのマルチプラットフォームのユーザーIDを永続的な署名ストレージと紐付け、自動で統合・管理するバックエンド機能を備えています。日本のビジネス環境に最適化された、構成が正... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 105 次。

如何安装 Keigo Mail Generator?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install keigo-mail-generator」即可一键安装,无需额外配置。

Keigo Mail Generator 是免费的吗?

是的,Keigo Mail Generator 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Keigo Mail Generator 支持哪些平台?

Keigo Mail Generator 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Keigo Mail Generator?

由 Transmind(@transmind)开发并维护,当前版本 v1.0.2。

💬 留言讨论