Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add qurihara/scrapbox-cosense-mcp-editable --skill scrapboxgit clone --depth 1 https://github.com/qurihara/scrapbox-cosense-mcp-editableWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/qurihara/scrapbox-cosense-mcp-editable/scrapbox)<a href="https://agentmods.dev/skills/qurihara/scrapbox-cosense-mcp-editable/scrapbox"><img src="https://agentmods.dev/badge/skills/qurihara/scrapbox-cosense-mcp-editable/scrapbox/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/qurihara/scrapbox-cosense-mcp-editable/scrapbox"><img src="https://agentmods.dev/badge/skills/qurihara/scrapbox-cosense-mcp-editable/scrapbox.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00045 | $0.00596 |
| Opus 5.5 | $0.00018 | $0.00238 |
| Sonnet 5.5 | $0.00009 | $0.00119 |
| Haiku 4.5 | $0.00005 | $0.00060 |
Grade B, and why
cosense scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
全プロジェクト共通で使う場合は `~/.claude/settings.json` に設定することもできます。 What it actually says
Cosense (Scrapbox)
Cosense ページの取得・検索・作成・編集。CLI 経由で実行。
コマンド
scrapbox-cosense-mcp get <title>— ページ取得scrapbox-cosense-mcp search <query>— キーワード検索scrapbox-cosense-mcp list [--sort=X --limit=N]— ページ一覧scrapbox-cosense-mcp create <title> [--body=TEXT]— ページ作成(markdown自動変換)scrapbox-cosense-mcp insert <title> --after=TEXT --text=TEXT— 行挿入scrapbox-cosense-mcp url <title>— URL生成scrapbox-cosense-mcp context <title> [--hop=1|2]— 関連ページ一括取得(Smart Context)
詳細は scrapbox-cosense-mcp <command> --help で確認。
全コマンド共通: --compact でトークン効率の高い出力、--project=NAME でプロジェクト指定、--json でJSON出力。
環境変数の設定
必要な環境変数
| 変数名 | 説明 | 必須 |
|---|---|---|
COSENSE_PROJECT_NAME |
対象プロジェクト名(--project で上書き可) |
はい |
COSENSE_SID |
セッションID(プライベートプロジェクト、create/insert/context 操作に必要) | 条件付き |
永続化方法
.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の値をコピー
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 55 lines · 45 tokens per session scan B ebf6b3d1d069
cosense is a skill published in the GitHub repository qurihara/scrapbox-cosense-mcp-editable (0 stars, last pushed 5mo ago), licensed MIT. It adds 45 tokens to every session and 596 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
cosense compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| cosensequrihara/scrapbox-cosense-mcp-editable | Skill | 0 | 5mo ago | MIT | B | 45 | Claude Code |
| imagegenopenai/codex | Skill | 134k | today | Apache-2.0 | A | 113 | Codex |
| local-ai-agentsmicrosoft/ai-agents-for-beginners | Skill | 79k | yesterday | MIT | A | 200 | Claude Code, Codex |
| playwright-climicrosoft/playwright | Skill | 100k | yesterday | Apache-2.0 | A | 19 | Claude Code |
| browser-automationopenclaw/openclaw | Skill | 394k | today | MIT | A | 36 | Claude Code |
| systematic-debuggingobra/superpowers | Skill | 314k | 4d ago | MIT | A | 21 | Claude Code |
| next-cache-components-adoptionvercel/next.js | Skill | 143k | yesterday | MIT | A | 95 | Claude Code |