jira-spaces
??ロジェクトのドキュメント作成に役立つConfluenceスペースを、テンプレートを使って作成、一覧表示、削除するためのSkill。
📜 元の英語説明(参考)
Manage Confluence spaces for project documentation. Create, list, and delete spaces with templates. Use when setting up project documentation structure or managing Confluence content areas.
🇯🇵 日本人クリエイター向け解説
??ロジェクトのドキュメント作成に役立つConfluenceスペースを、テンプレートを使って作成、一覧表示、削除するためのSkill。
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o jira-spaces.zip https://jpskill.com/download/5818.zip && unzip -o jira-spaces.zip && rm jira-spaces.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/5818.zip -OutFile "$d\jira-spaces.zip"; Expand-Archive "$d\jira-spaces.zip" -DestinationPath $d -Force; ri "$d\jira-spaces.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
jira-spaces.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
jira-spacesフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-17
- 取得日時
- 2026-05-17
- 同梱ファイル
- 1
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
Jira Spaces Skill
Confluence Cloud REST API を通じて Confluence スペースを管理します。スペースは、プロジェクトのドキュメント、Wiki、ナレッジベースを整理するための最上位コンテナです。
使用する場面
- 新しいプロジェクトのドキュメント構造を設定する場合
- 異なるチームやイニシアチブのためにスペースを作成する場合
- ドキュメントを見つけるために利用可能なスペースを一覧表示する場合
- 古くなったスペースをアーカイブまたは削除する場合
前提条件
- Confluence Cloud インスタンス (Jira と同じ Atlassian アカウント)
- Confluence アクセス権を持つ API トークン
.envに設定された環境変数
API リファレンス
ベース URL
Confluence Cloud は Jira Cloud と同じベース URL を使用しますが、API パスが異なります。
https://your-domain.atlassian.net/wiki/rest/api
認証
Jira と同じく、メールアドレスとトークンによる Basic 認証です。
主要なエンドポイント
| エンドポイント | メソッド | 説明 |
|---|---|---|
/space |
GET | すべてのスペースを一覧表示 |
/space |
POST | 新しいスペースを作成 |
/space/{spaceKey} |
GET | スペースの詳細を取得 |
/space/{spaceKey} |
DELETE | スペースを削除 |
/space/{spaceKey}/content |
GET | スペースのコンテンツを一覧表示 |
スペースの種類
| タイプ | 説明 | ユースケース |
|---|---|---|
global |
サイト全体のスペース | 会社の Wiki、共有ドキュメント |
personal |
ユーザーの個人スペース | 個人のメモ、下書き |
スペースの作成
リクエスト
const response = await fetch(`${CONFLUENCE_URL}/wiki/rest/api/space`, {
method: 'POST',
headers: {
'Authorization': `Basic ${auth}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
key: 'PROJ', // Unique space key (uppercase)
name: 'Project Docs', // Display name
type: 'global', // 'global' or 'personal'
description: {
plain: {
value: 'Documentation for the project',
representation: 'plain'
}
}
})
});
レスポンス
{
"id": 12345,
"key": "PROJ",
"name": "Project Docs",
"type": "global",
"status": "current",
"_links": {
"webui": "/spaces/PROJ",
"self": "https://your-domain.atlassian.net/wiki/rest/api/space/PROJ"
}
}
スペースの一覧表示
リクエスト
const response = await fetch(`${CONFLUENCE_URL}/wiki/rest/api/space?limit=25&type=global`, {
headers: {
'Authorization': `Basic ${auth}`,
'Accept': 'application/json'
}
});
レスポンス
{
"results": [
{
"id": 12345,
"key": "PROJ",
"name": "Project Docs",
"type": "global",
"status": "current"
}
],
"start": 0,
"limit": 25,
"size": 1,
"_links": {}
}
スペースの削除
警告: スペースを削除すると、すべてのページとコンテンツが完全に削除されます!
リクエスト
const response = await fetch(`${CONFLUENCE_URL}/wiki/rest/api/space/PROJ`, {
method: 'DELETE',
headers: {
'Authorization': `Basic ${auth}`
}
});
202 Accepted (削除は非同期) または 204 No Content を返します。
スペースキー
スペースキーは以下の条件を満たす必要があります。
- Confluence インスタンス全体で一意であること
- 大文字の英字と数字のみを使用すること
- 1~255文字であること
- 数字で始まらないこと
命名規則:
PROJ- プロジェクト固有TEAM- チーム固有DOC- ドキュメントKB- ナレッジベース
一般的なパターン
プロジェクトドキュメントスペースの作成
// Create space with home page
await createSpace({
key: 'TUSTLE',
name: 'Tustle Project Documentation',
description: 'Technical documentation and guides for Tustle MVP'
});
// Add standard pages
await createPage('TUSTLE', 'Getting Started', 'Overview and setup instructions...');
await createPage('TUSTLE', 'Architecture', 'System architecture documentation...');
await createPage('TUSTLE', 'API Reference', 'API endpoint documentation...');
チームスペースの一覧表示
const spaces = await listSpaces({ type: 'global', limit: 50 });
const teamSpaces = spaces.filter(s => s.name.includes('Team'));
エラー処理
| ステータス | 意味 | 解決策 |
|---|---|---|
| 400 | 無効なスペースキー | キーの形式 (大文字、特殊文字なし) を確認してください |
| 401 | 認証されていない | API トークンとメールアドレスを確認してください |
| 403 | 禁止されている | ユーザーにスペース管理者権限がありません |
| 404 | スペースが見つからない | スペースキーが存在することを確認してください |
| 409 | 競合 | スペースキーがすでに存在します |
スクリプト
| スクリプト | 説明 |
|---|---|
create-space |
新しい Confluence スペースを作成します |
delete-space |
スペースを削除します (確認付き) |
list-spaces |
アクセス可能なすべてのスペースを一覧表示します |
使用例
# List all spaces
node run.js list-spaces
# Create a new space
node run.js create-space DOCS "Documentation Space"
# Delete a space (interactive confirmation)
node run.js delete-space DOCS
# Force delete without confirmation
node run.js delete-space DOCS --confirm
関連スキル
jira-projects- Jira プロジェクト管理jira-issues- ドキュメントタスクの課題作成
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
Jira Spaces Skill
Manage Confluence spaces through the Confluence Cloud REST API. Spaces are the top-level containers for organizing project documentation, wikis, and knowledge bases.
When to Use
- Setting up documentation structure for a new project
- Creating spaces for different teams or initiatives
- Listing available spaces to find documentation
- Archiving or deleting obsolete spaces
Prerequisites
- Confluence Cloud instance (same Atlassian account as Jira)
- API token with Confluence access
- Environment variables configured in
.env
API Reference
Base URL
Confluence Cloud uses the same base URL as Jira Cloud but different API path:
https://your-domain.atlassian.net/wiki/rest/api
Authentication
Same as Jira - Basic Auth with email:token.
Key Endpoints
| Endpoint | Method | Description |
|---|---|---|
/space |
GET | List all spaces |
/space |
POST | Create a new space |
/space/{spaceKey} |
GET | Get space details |
/space/{spaceKey} |
DELETE | Delete a space |
/space/{spaceKey}/content |
GET | List space content |
Space Types
| Type | Description | Use Case |
|---|---|---|
global |
Site-wide space | Company wikis, shared docs |
personal |
User's personal space | Individual notes, drafts |
Creating a Space
Request
const response = await fetch(`${CONFLUENCE_URL}/wiki/rest/api/space`, {
method: 'POST',
headers: {
'Authorization': `Basic ${auth}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
key: 'PROJ', // Unique space key (uppercase)
name: 'Project Docs', // Display name
type: 'global', // 'global' or 'personal'
description: {
plain: {
value: 'Documentation for the project',
representation: 'plain'
}
}
})
});
Response
{
"id": 12345,
"key": "PROJ",
"name": "Project Docs",
"type": "global",
"status": "current",
"_links": {
"webui": "/spaces/PROJ",
"self": "https://your-domain.atlassian.net/wiki/rest/api/space/PROJ"
}
}
Listing Spaces
Request
const response = await fetch(`${CONFLUENCE_URL}/wiki/rest/api/space?limit=25&type=global`, {
headers: {
'Authorization': `Basic ${auth}`,
'Accept': 'application/json'
}
});
Response
{
"results": [
{
"id": 12345,
"key": "PROJ",
"name": "Project Docs",
"type": "global",
"status": "current"
}
],
"start": 0,
"limit": 25,
"size": 1,
"_links": {}
}
Deleting a Space
WARNING: Deleting a space removes all pages and content permanently!
Request
const response = await fetch(`${CONFLUENCE_URL}/wiki/rest/api/space/PROJ`, {
method: 'DELETE',
headers: {
'Authorization': `Basic ${auth}`
}
});
Returns 202 Accepted (deletion is async) or 204 No Content.
Space Keys
Space keys must:
- Be unique across the Confluence instance
- Use only uppercase letters and numbers
- Be 1-255 characters
- Not start with a number
Conventions:
PROJ- Project-specificTEAM- Team-specificDOC- DocumentationKB- Knowledge base
Common Patterns
Create Project Documentation Space
// Create space with home page
await createSpace({
key: 'TUSTLE',
name: 'Tustle Project Documentation',
description: 'Technical documentation and guides for Tustle MVP'
});
// Add standard pages
await createPage('TUSTLE', 'Getting Started', 'Overview and setup instructions...');
await createPage('TUSTLE', 'Architecture', 'System architecture documentation...');
await createPage('TUSTLE', 'API Reference', 'API endpoint documentation...');
List Team Spaces
const spaces = await listSpaces({ type: 'global', limit: 50 });
const teamSpaces = spaces.filter(s => s.name.includes('Team'));
Error Handling
| Status | Meaning | Resolution |
|---|---|---|
| 400 | Invalid space key | Check key format (uppercase, no special chars) |
| 401 | Unauthorized | Check API token and email |
| 403 | Forbidden | User lacks space admin permissions |
| 404 | Space not found | Verify space key exists |
| 409 | Conflict | Space key already exists |
Scripts
| Script | Description |
|---|---|
create-space |
Create a new Confluence space |
delete-space |
Delete a space (with confirmation) |
list-spaces |
List all accessible spaces |
Usage Examples
# List all spaces
node run.js list-spaces
# Create a new space
node run.js create-space DOCS "Documentation Space"
# Delete a space (interactive confirmation)
node run.js delete-space DOCS
# Force delete without confirmation
node run.js delete-space DOCS --confirm
Related Skills
jira-projects- Jira project managementjira-issues- Issue creation for documentation tasks