Jira Workitem Commentのロゴ

Jira Workitem Comment

組織
opendatahub-io
jira-workitem-comment

シンプルなテキストまたはJiraマークアップ(ADF JSON)を使って、Jiraチケットにコメントを追加します。コードブロック、リスト、メンション、リンクなどのリッチな書式に対応しています。ユーザーがチケットにコメントしたい場合に使用します。

概要

公開者opendatahub-io
リポジトリai-helpers
スキル名jira-workitem-comment
スター
39
フォーク
76
同梱ファイル
指示のみ
ライセンスApache-2.0
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    opendatahub-ioがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Jira Workitem Comment」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/opendatahub-io/ai-helpers/tree/main/plugins/odh-jira/skills/jira-workitem-comment
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/opendatahub-io/ai-helpers.git /tmp/ai-helpers
mkdir -p .claude/skills
cp -r /tmp/ai-helpers/plugins/odh-jira/skills/jira-workitem-comment .claude/skills/jira-workitem-comment
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでJira Workitem Commentを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にJira Workitem Commentを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Jira Workitem Commentは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Jira Workitem Comment

Add comments to Jira tickets using the acli CLI with support for both simple text and rich Atlassian Document Format (ADF).

Prerequisites

  • acli must be installed and authenticated (acli jira auth)

Implementation

Step 1: Verify ACLi Setup

Before proceeding, verify that acli is installed and authenticated by invoking the acli-setup-check skill:

/acli-setup-check

If the setup check fails, stop execution and guide the user to fix the issue.

Step 2: Determine Ticket Key and Comment Content

  1. Ticket Key:

    • If provided by user, use it
    • Otherwise, search conversation history for ticket references matching the pattern [A-Z]+-\d+
    • If not found, ask: "Which ticket should I comment on?"
  2. Comment Content:

    • If the user provides comment text, use it
    • If the user wants to document a conversation or finding, infer the content from context
    • If unclear, ask: "What would you like to say in the comment?"
  3. Comment Type:

    • Simple text: Default for straightforward comments
    • Rich format: Use when comment includes code blocks, lists, or structured content

Step 3a: Add Simple Text Comment (Default)

For plain text comments, write the comment text to a temporary file and use acli to create the comment:

bash
# Validate ticket key format (PROJECT-NUMBER)
TICKET_KEY="<ticket-key-from-step-2>"
if [[ ! "$TICKET_KEY" =~ ^[A-Z]+-[0-9]+$ ]]; then
  echo "Error: Invalid ticket key format. Expected PROJECT-NUMBER (e.g., RHAI-1234)"
  exit 1
fi

# Write comment to temp file (uses system temp directory)
TMPFILE=$(mktemp -t acli-comment-XXXX.txt)
cat > "$TMPFILE" << 'EOF'
<comment text goes here>
EOF

# Create the comment with validated ticket key
acli jira workitem comment create --key "$TICKET_KEY" --body-file "$TMPFILE"

# Clean up
rm -f "$TMPFILE"

Step 3b: Add Rich ADF Comment (For Formatted Content)

For comments that need rich formatting (code blocks, lists, mentions, links), construct an ADF JSON structure.

ADF Structure Examples

Basic text with formatting:

json
{
  "version": 1,
  "type": "doc",
  "content": [
    {
      "type": "paragraph",
      "content": [
        {"type": "text", "text": "This is "},
        {"type": "text", "text": "bold text", "marks": [{"type": "strong"}]},
        {"type": "text", "text": " and "},
        {"type": "text", "text": "italic text", "marks": [{"type": "em"}]}
      ]
    }
  ]
}

Code block:

json
{
  "version": 1,
  "type": "doc",
  "content": [
    {
      "type": "paragraph",
      "content": [
        {"type": "text", "text": "Here's the fix:"}
      ]
    },
    {
      "type": "codeBlock",
      "attrs": {"language": "python"},
      "content": [
        {
          "type": "text",
          "text": "def hello():\n    print('Hello, world!')"
        }
      ]
    }
  ]
}

Bullet list:

json
{
  "version": 1,
  "type": "doc",
  "content": [
    {
      "type": "bulletList",
      "content": [
        {
          "type": "listItem",
          "content": [
            {
              "type": "paragraph",
              "content": [{"type": "text", "text": "First item"}]
            }
          ]
        },
        {
          "type": "listItem",
          "content": [
            {
              "type": "paragraph",
              "content": [{"type": "text", "text": "Second item"}]
            }
          ]
        }
      ]
    }
  ]
}

Link:

json
{
  "version": 1,
  "type": "doc",
  "content": [
    {
      "type": "paragraph",
      "content": [
        {"type": "text", "text": "See "},
        {
          "type": "text",
          "text": "the documentation",
          "marks": [
            {
              "type": "link",
              "attrs": {"href": "https://example.com/docs"}
            }
          ]
        }
      ]
    }
  ]
}

User mention:

json
{
  "version": 1,
  "type": "doc",
  "content": [
    {
      "type": "paragraph",
      "content": [
        {
          "type": "mention",
          "attrs": {
            "id": "557058:12345678-abcd-1234-abcd-123456789012",
            "text": "@code-samurai"
          }
        },
        {"type": "text", "text": " please review"}
      ]
    }
  ]
}

Write the ADF JSON to a temporary file and create the comment:

bash
# Validate ticket key format (PROJECT-NUMBER)
TICKET_KEY="<ticket-key-from-step-2>"
if [[ ! "$TICKET_KEY" =~ ^[A-Z]+-[0-9]+$ ]]; then
  echo "Error: Invalid ticket key format. Expected PROJECT-NUMBER (e.g., RHAI-1234)"
  exit 1
fi

# Write ADF JSON to temp file (uses system temp directory)
TMPFILE=$(mktemp -t acli-comment-XXXX.json)
cat > "$TMPFILE" << 'EOF'
{
  "version": 1,
  "type": "doc",
  "content": [...]
}
EOF

# Create comment with ADF and validated ticket key
acli jira workitem comment create --key "$TICKET_KEY" --body-file "$TMPFILE"

# Clean up
rm -f "$TMPFILE"

Step 4: Confirm Comment Content (Optional)

For important or lengthy comments, show a preview to the user:

I'll add this comment to <TICKET-KEY>:

---
<comment preview>
---

Should I proceed?

Wait for confirmation before creating the comment.

Step 5: Report Success

After successfully creating the comment, report to the user:

Comment added to <TICKET-KEY>
View: https://redhat.atlassian.net/browse/<TICKET-KEY>

When to Use Rich Formatting

Use ADF (Step 3b) when the comment includes:

  1. Code snippets or blocks: Error messages, logs, code examples
  2. Structured lists: Action items, requirements, test cases
  3. Links: References to PRs, documentation, external resources
  4. Mentions: Tagging specific users for attention
  5. Mixed formatting: Bold headers, italic emphasis, inline code

Use simple text (Step 3a) for:

  1. Brief updates or status notes
  2. Simple questions or answers
  3. Acknowledgments or confirmations

Error Handling

  • acli not found: Delegate to acli-setup-check skill
  • Authentication failure: Delegate to acli-setup-check skill
  • Invalid ticket key: Verify format and ticket existence
  • Permission denied: Check user has permission to comment on the ticket
  • Invalid ADF: Verify JSON structure matches ADF schema
  • Comment too long: Jira has a 32,767 character limit per comment; suggest breaking into multiple comments

Examples

Simple Text Comment

text
User: Add a comment to RHAI-1234 saying the fix is ready for review
Assistant: [Creates simple text comment]
Comment added to RHAI-1234
View: https://redhat.atlassian.net/browse/RHAI-1234

Code Block Comment

text
User: Comment on RHAI-5678 with this error message: [paste error]
Assistant: [Creates ADF comment with code block]
Comment added to RHAI-5678 with formatted code block
View: https://redhat.atlassian.net/browse/RHAI-5678

Structured Update

text
User: Add a status update to RHAI-910 with these action items:
- Fix merged to main
- QA testing in progress
- Deployment scheduled for Friday
Assistant: [Creates ADF comment with bullet list]
Comment added to RHAI-910
View: https://redhat.atlassian.net/browse/RHAI-910

よくある質問

AIスキル「Jira Workitem Comment」では何ができますか?

シンプルなテキストまたはJiraマークアップ(ADF JSON)を使って、Jiraチケットにコメントを追加します。コードブロック、リスト、メンション、リンクなどのリッチな書式に対応しています。ユーザーがチケットにコメントしたい場合に使用します。

TypingMindでJira Workitem Commentを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Jira Workitem Commentはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにJira Workitem Commentをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/opendatahub-io/ai-helpers/tree/main/plugins/odh-jira/skills/jira-workitem-commentを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Jira Workitem Commentを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Jira Workitem Commentで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもJira Workitem Commentを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Jira Workitem Comment」は無料ですか?

はい。opendatahub-ioがApache-2.0ライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇