cosense

Read, query, and edit Cosense (formerly Scrapbox) pages. Use this when a user asks to check, view, or append to a page on Cosense/Scrapbox, using the cosense CLI to fetch pages and citing sources when responding.

Last repository push
GitHub Stars
170
Forks
7
Issues / PRs
9

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "cosense" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-21940ba96523b5fe064984d6dc798e34ca6d05a9154d5a2b78d671b905592d35. Verify the upstream source and version against https://github.com/helpfeel/cosense-cli before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Read, query, and edit Cosense (formerly Scrapbox) pages. Use this when a user asks to check, view, or append to a page on Cosense/Scrapbox, using the cosense CLI to fetch pages and citing sources when responding.

0 Downloads

Introduction source: third_party · helpfeel · 0.0.1 Reference

SkillPi interpretation

Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: cosense
description: >-
  Cosense(旧Scrapbox)のページを読み・調べ・編集するスキル。
  ユーザーが「Cosenseで〇〇調べて」「このCosenseページ読んで」「Scrapboxで〇〇」「scrapbox.ioのページを見て」「このページにコメントを追記して」等と言った時に使用する。
  cosense CLIを使ってページを取得し、ユーザーの問いに情報源を示しながら答える。

Cosense Skill 手順書

cosense CLIを使い、Cosenseのページを読み・調べてユーザーに回答する。 書き込み・削除 (ページ編集・コメント追記・ページやファイルの削除等) はユーザーが明示的に指示した時のみ行う。

Cosenseとはどういう物か

Cosenseは複数のページ同士をリンクさせ、複雑な情報をナレッジグラフとして表現するweb状のWiKiである。 ページ間リンクは [ページタイトル] というブラケット記法で表現する。

Cosenseを読み解く際のTips

  • キーワード検索だけに頼らず、関連ページリストを眺めて、辿るべきだ。単独のページでは見えなかった文脈が浮かびあがる
  • ナレッジグラフ上での被リンク数やページランク値が大きいページは、実質的にフォルダやカテゴリのような階層構造の親としても機能している
  • 一見、観念的なページタイトルだけがあり、本文で何も説明されていなくても、他のページの文脈の中で説明されている事がある

こういう時はこうする

調査したい時、あるいは特定のページを読みたい時

ページの読み方: read-page.md

  • プロジェクト名だけ指定された時は、https://scrapbox.io/<project> を projectUrl としてCLIに渡す
  • プロジェクト名+ページタイトルが指定された時は、https://scrapbox.io/<project>/<title> を pageUrl としてCLIに渡す
  • プロンプト中にURLが書かれている時、URLは https:// から最初の空白文字までが丸ごと一つ。Cosenseのタイトルは長い日本語の文章になりうる(タイトル中の空白はURL上では _)ので、日本語・記号・_・で/をに見える助詞も、空白が来るまで全部URLの一部。ASCII→日本語の境目で切ると、ユーザーが意図したのと別のページを読みに行ってしまう
  • 記号を含むURLは shell でクォート('...')で囲んで渡す

読んでいたページが見つからなくなった時、共同編集者の変更を追いたい時

変更の追い方: read-page.md の「変更を追う」を参照

  • 読んでいたページが急に 404 や「未作成の空ページ」になったら、共同編集者がタイトルを変更した可能性がある
  • 読んだ時に控えた pageId と commitId を使い、browsePageChanges で何が変わったか(リネーム含む)を確認してから読み直す

ページを編集したい時、コメントを書き込みたい時

ページ編集手順: edit-page.md

  • ユーザーが明示的に「書き込んで」「編集して」「コメント追記して」等を指示した時のみ
  • 調査・閲覧・要約タスクでは参照しない

ファイルをアップロードしてページに埋め込みたい時

ファイルアップロード手順: upload-file.md

  • ユーザーが明示的に「この画像をアップロードして」「ファイルを貼って」「レポートに画像を埋め込んで」等を指示した時のみ
  • アップロードだけで終わらせず、埋め込みまでがこの手順の範囲

ログインしたい時、あるいは認証エラーが返ってきた時

ログイン手順: login.md

  • ユーザーから「Cosenseにログインして」と明示的に指示された時
  • 認証が必要なプロジェクトに browsePage 等でアクセスし、HTTP 401 または 403 が返ってきた時

CLIの挙動が想定と違う時

バージョン互換性チェック: version-mismatch.md

  • unknown command / unknown option エラー
  • 戻り値JSONの構造が手順書と違う
  • --help の出力に手順書で参照しているコマンドが無い

CLIコマンド一覧

CLI実行コマンド形式

  • cosense <command> <args...> を実行する
  • 事前に npm install -g @helpfeel/cosense-cli でインストールしておく
  • Node 24+ 前提

コマンド一覧

command 用途
login Personal Access Token または Service Account を設定ファイルに保存する
whoami 現在の認証ユーザーの情報を取得する
listProjects 自分が参加しているprojectの一覧を取得する
browsePage 単一ページを読む。メタデータ+アイコン記法+テロメア+Infobox+本文をAIが読みやすい形式で出力する。行permalink (#<lineId>) 付きなら該当行をマークする
browseRelatedPages 1-hop+2-hopの関連ページタイトル一覧をAIが読みやすい形式で出力する。infobox定義ページでは文芸的データベース(TSV表)を出力する
browsePageChanges ページの編集履歴(commit)をpageId起点で取得し、誰が何をどう変えたかを自然言語で説明する。タイトル変更(リネーム)も検出する
readPage 単一ページを読む
readPageSnapshot snapshotのIDを指定してPage History上の過去の本文を読む
readFileInfo ファイルのメタデータと抽出済みテキストを取得する
downloadFile ファイル本体をダウンロードしてローカルに保存する
uploadFile ファイルをprojectにアップロードして埋め込みURLを取得する
deleteFile ファイルをprojectから削除する
readProjectMembers プロジェクトのメンバー一覧を取得する
listPages プロジェクトのページ一覧を取得する
listPageSnapshots ページのsnapshot一覧(Page History)をpageId起点で取得する
list1hopLinks 1-hop近傍を取得する
list2hopLinks 2-hop近傍を取得する
searchVector ベクトル検索でページを探す(タイトル+本文中リンク記法のみ対象)
searchFullText 本文全文を対象に検索する
search1hopLinks 1-hop近傍を全文検索でフィルタする
search2hopLinks 2-hop近傍を全文検索でフィルタする
previewEdit ページ編集opsをdry-runしてpreviewIdを取得する
previewDelete ページ削除をdry-runしてpreviewIdを取得する
submitEdit previewEdit/previewDeleteで取得したpreviewIdを使ってページ編集・削除を確定する
replaceLinks 旧タイトルへのリンク記法を新しいタイトルに一括置換する

コマンドの詳細を知りたい時

  • 全コマンド一覧と概要: cosense --help
  • 個別コマンドの引数・戻り値スキーマ・HTTPエラー: cosense <command> --help
  • 戻り値のJSON構造に確信が持てない時は、必ずヘルプを読んでから使う

回答の形式

  • 情報源(ページURL)を示しながらユーザーの問いに直接答える
  • ページURLはCLIが出力した物をそのまま使い、ページタイトルをリンクテキストにしたMarkdownリンクで示す。日本語を生で書いたURLは、%2F 等のエスケープと混ざると、ターミナルでクリックした時に別のページへ飛ぶ事がある
  • 固定テンプレートは規定しない

Current listing version

0.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 提供 Cosense(Scrapbox)页面的读取、查询、编辑完整能力
  • 适用于知识管理、团队协作等广泛场景,实用价值高
Trigger Precision90/100

Highlights

  • 触发词覆盖多种用户表达变体(如“Cosenseで〇〇調べて”、“Scrapboxで〇〇”等)
  • 边界清晰,不易误触或漏触
Structure and Standards85/100

Areas to improve

  • 文档过长 Reported severity: Minor

    主文件 SKILL.md 超过500行(约600+行)

    Recommendation: 建议将部分内容拆分到子文件中,或精简冗余描述

Highlights

  • 结构清晰,分阶段(Phase)说明不同场景下的操作流程
  • 引用多个子文件(read-page.md、edit-page.md等)提供详细指引
  • CLI命令列表完整,用途说明清晰
Execution Reliability90/100

Highlights

  • 工具来源明确(@helpfeel/cosense-cli),参数说明准确
  • 覆盖主要异常场景(404、认证错误、版本不匹配)
  • 不可逆操作(编辑、删除)需用户明示指令,具备安全确认机制
Evidence Verifiability (mean of the first four)88/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Install or fetch external dependencies

    Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.

    Mentioned in main document · lines 77
  • Accounts, secrets or authorization

    Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.

    Mentioned in main document · lines 84
Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • scrapbox.io

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.