smithery.ai

process-blog-issue

GitHub issueからブログ記事を作成しPRを作成します

First seen Mar 25, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Skill metadata

Parsed from SKILL.md frontmatter.

Declared agents claude-code

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 4,611 B
  • docs SUMMARY.md 91 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Process Blog Issue

GitHub issueに記載されたブログ記事リクエストを処理し、記事を作成してPRを作成します。

実行手順

1. blog-request issueを取得

以下のコマンドで blog-request ラベルが付いたオープンなissueを全て取得します:

gh issue list --label blog-request --state open --json number,title,body

取得したissueが0件の場合は「処理対象のissueがありません」と報告して終了します。

オプション: ユーザーが特定のissue番号を指定した場合は、そのissueのみを処理します。

2. 各issueを処理

取得した各issueに対して、以下の処理を順番に実行します:

2.1 issueの内容をパース

issueから以下の情報を抽出します:

  • ブログ記事のタイトル: issueのタイトル(titleフィールド)をそのまま使用
  • slug: ### slug セクションの内容
  • タグ: ### タグ セクションの内容(カンマ区切り)
  • 資料のタイトル: ### 資料のタイトル セクションの内容(任意)
  • 資料のURL: ### 資料のURL セクションの内容
  • 感想・学び: ### 感想・学び セクションの内容

2.2 ブランチを作成

重要: 各issueのブランチは必ずmainブランチから派生させます。複数のissueを処理する場合も、毎回mainブランチに戻ってから新しいブランチを作成してください。

git checkout main
git pull origin main
git checkout -b blog/issue-<issue番号>

2.3 ブログ記事を作成

以下の形式でファイルを作成します:

  • ファイルパス: blog/YYYY/MM-DD-<slug>/index.md

- YYYY は現在の年 - MM-DD は現在の月日 - slug はissueから取得した値

ファイル内容:

---
slug: /<slug>
title: <ブログ記事のタイトル>
authors: yumechi
tags: [<タグをカンマ区切りで>]
---

<資料の簡単な紹介文を1-2文で生成>

<!-- truncate -->

## 資料リンク

- [<資料のタイトル>](<資料のURL>)
  ※資料のタイトルが空の場合はURLをそのままリンクテキストとして使用

## 感想・学び

<感想・学びの内容>

2.4 コミット & プッシュ

git add blog/
git commit -m "feat: <ブログ記事のタイトル>の記事を追加

Closes #<issue番号>"
git push -u origin blog/issue-<issue番号>

2.5 PRを作成

PRタイトルはissueの title フィールドをそのまま使用します(資料タイトルではなく、issueタイトル)。

gh pr create --title "feat: <issueのtitleフィールド>" --body "## Summary

- issueに基づいてブログ記事を作成しました

## Related Issue

Closes #<issue番号>

---
Generated with Claude Code"

3. mainブランチに戻る

全てのissueの処理が完了したら、必ずmainブランチに戻ります:

git checkout main

4. 完了報告

ユーザーに以下を報告します:

  • 処理したissueの数
  • 各issueに対して作成したPRのURL一覧
  • エラーがあった場合はその内容

注意事項

  • slug は英数字とアンダースコアのみを使用する
  • slug の自動補正: issue から取得した slug にハイフン(-)が含まれていた場合は、アンダースコア()に置換してから使用する(例: react-hooks → reacthooks)。frontmatter の slug と記事ディレクトリ名の <slug> 部分の両方に補正後の値を使うこと
  • タグが空の場合は空配列 [] を設定
  • 感想が長い場合は適切に段落分けする
  • issueの内容が不足している場合はスキップしてユーザーに報告する
  • 複数のissueを処理する場合、各issueごとに別々のブランチとPRを作成する
  • チルダ(~)のエスケープ: タイトルや本文にASCIIチルダ ~ が含まれる場合、markdownの打消し線として解釈されるのを防ぐため以下の対応を行う:

- frontmatterの title: ダブルクォートで囲む(例: title: "タイトル~サブタイトル~") - markdown本文(導入文、リンクテキスト、感想など): ~ を \~ にエスケープする - 全角チルダ 〜(U+301C)は対象外(markdownで打消し線にならない)