cosense
Skill54 starsChanged 18 months agoMITView on GitHub
Interact with Cosense (Scrapbox) pages - read, search, list, create, edit, delete, and rewrite pages. Use when the user mentions Cosense, Scrapbox, or wants to work with wiki pages.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- helpfeel/cosense-clitheir own version, first seen Jul 29, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- helpfeel/cosense-cli★ 156same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repositoryOne other file it gives its agents.
- CLAUDE.mdCLAUDE.md
The file
Files
Cosense (Scrapbox)
Cosense ページの取得・検索・作成・編集・削除・書き換え。CLI 経由で実行。
コマンド
npx -y scrapbox-cosense-mcp で実行する(グローバルインストール済みなら scrapbox-cosense-mcp 直接でもよい)。
npx -y scrapbox-cosense-mcp get <title>— ページ取得npx -y scrapbox-cosense-mcp search <query>— キーワード検索npx -y scrapbox-cosense-mcp list [--sort=X --limit=N]— ページ一覧npx -y scrapbox-cosense-mcp create <title> [--body=TEXT]— ページ作成(markdown自動変換)npx -y scrapbox-cosense-mcp insert <title> --after=TEXT --text=TEXT— 行挿入npx -y scrapbox-cosense-mcp edit <title> --target=TEXT --text=TEXT [--all]— 行置換(完全一致、複数行ブロック対応、既定は最初の1件のみ)npx -y scrapbox-cosense-mcp delete-lines <title> --target=TEXT [--all]— 行削除(完全一致、複数行ブロック対応)npx -y scrapbox-cosense-mcp delete <title> [--dry-run]— ページ削除(COSENSE_ENABLE_DELETE=trueが必要。取り消せないので、まず--dry-runで確認する)npx -y scrapbox-cosense-mcp rewrite <title> --body=TEXT [--dry-run]— ページ全体の書き換え(COSENSE_ENABLE_DELETE=trueが必要。取り消せないので、まず--dry-runで確認する)npx -y scrapbox-cosense-mcp url <title>— URL生成npx -y scrapbox-cosense-mcp context <title> [--hop=1|2]— 関連ページ一括取得(Smart Context)
詳細は npx -y scrapbox-cosense-mcp <command> --help で確認。
全コマンド共通: --compact でトークン効率の高い出力、--project=NAME でプロジェクト指定、--json でJSON出力。
環境変数の設定
必要な環境変数
| 変数名 | 説明 | 必須 |
COSENSE_PROJECT_NAME | 対象プロジェクト名(--project で上書き可) | はい |
COSENSE_SID | セッションID(プライベートプロジェクト、create/insert/edit/delete-lines/delete/rewrite/context 操作に必要) | 条件付き |
COSENSE_ENABLE_DELETE | true のときだけ delete / rewrite サブコマンドが使える | いいえ |
COSENSE_PROJECT_ALLOW_LIST | --project で指定できるプロジェクトをカンマ区切りで制限する。COSENSE_PROJECT_NAME は常に許可。未設定なら無制限 | いいえ |
永続化方法
.claude/settings.local.json(gitignore対象)の env キーに追加してください。
{
"env": {
"COSENSE_PROJECT_NAME": "your-project-name",
"COSENSE_SID": "s:your-session-id"
}
}全プロジェクト共通で使う場合は ~/.claude/settings.json に設定することもできます。
SID の取得方法
- ブラウザで Cosense にログイン
- 開発者ツール → Application → Cookies
connect.sidの値をコピー
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

