music-connect
できること
このスキルは、Claude Code と自分の Cognitum Music アカウントの接続を設定します。AIツールにそのアカウントで音楽を作ってほしい人向けです。
使う場面
- ✓音楽を生成したいが、音楽ツールがまだ使えないとき。
- ✓音楽の接続が見つからない、または切断されていると表示されているとき。
- ✓期限切れまたは取り消されたアクセストークンを置き換える必要があるとき。
スキルのリンク
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-music/skills/music-connect/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“私の Cognitum Music アカウントを接続して、私のために曲を作れるようにしてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
スキルは、まず接続がすでに機能しているかを確認します。機能していない場合は、あなた自身のブラウザーで個人用のアクセストークンを作成する手順を案内します。そのうえで、トークンがチャットに入らないよう、あなた自身で登録してもらいます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Music Connect
Wires this session up to the user's own Cognitum Music account (music.cognitum.one) via the cogmusic MCP bridge. This is a one-time, per-machine/per-project setup — run it before any other music-* skill if mcp__cogmusic__* tools aren't already loaded.
When to use
- The user asks to generate/produce music and no
mcp__cogmusic__*tools are visible yet. claude mcp get cogmusicreports the server missing, disconnected, or unhealthy.- The user is rotating or replacing an expired/revoked token.
Steps
Check for an existing, working registration first:
claude mcp get cogmusicIf it reports
✔ Connected, you're already set up — stop here.If no token was provided, tell the user exactly how to mint one (this step requires their own browser login — you cannot do it for them):
- Sign in at
https://music.cognitum.one/mcp - Click "Generate connection token" (label it something recognizable, e.g. "Claude Code")
- Copy the raw token — it starts with
cogmcp_and is shown exactly once
- Sign in at
Register the MCP server once you have the token. Do not paste the token into the chat or have the model type it into a command: ask the user to run the registration themselves (in Claude Code,
!claude mcp add ...runs it in this session) so the token never enters the conversation transcript. Never echo it back. Treat it as a secret; it's fine as a one-time argument toclaude mcp add, which stores it in local config, not in conversation history):claude mcp add cogmusic --env COGMUSIC_TOKEN=cogmcp_... -- npx -y cogmusic@0.1.1Pin an exact version (0.1.1 is the current release) instead of
@latest, so a later publish cannot change what runs with your token. Versions before0.1.1have no fetch timeout and failcreate_productioncalls that run past Node's ~5-minute default (see ADR-0001).Verify:
claude mcp get cogmusicExpect
✔ Connected. If it showsCONNECTION_CLOSEDor a 404, thecogmusicnpm package version pinned in the command may be stale or unpublished — checknpm view cogmusic versionand retry with an explicit version.If registration already exists but is unhealthy, remove and re-add rather than editing config by hand:
claude mcp remove cogmusic -s local claude mcp add cogmusic --env COGMUSIC_TOKEN=cogmcp_... -- npx -y cogmusic@0.1.1Once connected, the
mcp__cogmusic__*tools (list_productions,get_production,create_production,separate_stems,extract_midi,master) become available — proceed tomusic-generateormusic-list.
Notes
- The token is a personal access token (PAT) scoped to one Cognitum account, minted and revoked by the user themselves at
music.cognitum.one/mcp— this plugin has no way to mint or revoke one programmatically, and should never attempt to guess, cache elsewhere, or transmit it anywhere other than the localclaude mcp addregistration. - A newly-registered MCP server's tools may not appear until the next Claude Code session — if
mcp__cogmusic__*tools still aren't listed after a successfulclaude mcp get cogmusic, tell the user to start a fresh session.
よくある質問
アシスタントはトークンを見ますか?
いいえ。登録の手順はあなたが行うため、トークンが会話に入ることはありません。
先にアカウントが必要ですか?
はい。この設定は、あなた自身の Cognitum Music アカウントを使います。
すでに動いている場合はどうなりますか?
接続がすでに設定されているため、スキルは早めに終了します。
詳細
作者による元の説明
One-time setup — mint a Cognitum Music personal access token and register the cogmusic MCP server with Claude Code
repo: ruvnet/ruflo
人気
- GitHubのスター
- 81k
- ランキング
- #1660
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
agent-adaptive-coordinator
81k作業量の変化に合わせて、エージェントのグループを分割し、再配分する手助けをします。作業に合った配置を選びます。
agent-agent
81k大きな目標を順番に並んだ行動計画にし、状況が変わったときに計画を立て直す方法をエージェントに教えます。
agent-agentic-payments
81kAIの買い物のために、支出の上限、期間、販売店のルール、署名付きの承認を含む支出の委任を管理する手助けをします。
agent-analyze-code-quality
81kコードの品質を確認し、コードの臭い、技術的負債、リファクタリングの案を見つける手助けをします。ファイルは変更しません。