SharpPad: Agent for Claude Code

.claude/agents/library-usage-researcher.md

library-usage-researcher is an agent for Claude Code from gaoconggit/SharpPad. It costs 276 tokens per session (1,110 once invoked), scanned A, original, MIT.

A research agent for learning how to use a particular library, framework, or technology. It gathers official documentation, real code examples, advanced techniques, common errors, and source links.

In plain words
What is it for?
It is for finding APIs, setup steps, usage patterns, performance advice, compatibility warnings, community examples, and documented sources for a chosen technology.
Why use it?
It gives developers a structured way to investigate an unfamiliar technology instead of relying on guesses or incomplete examples.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: names the TodoWrite tool.

This is gaoconggit/SharpPad's own configuration. It tells Claude Code how to work on SharpPad itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything SharpPad configures →

Reuse

Borrowing it

Nothing to install: this file belongs to gaoconggit/SharpPad. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/gaoconggit/SharpPad/main/.claude/agents/library-usage-researcher.md
Clone the repo
git clone --depth 1 https://github.com/gaoconggit/SharpPad

Made for: Claude Code.

Wrote 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.

agentmods badge for library-usage-researcher

README.md
[![agentmods](https://agentmods.dev/badge/agents/gaoconggit/sharppad/library-usage-researcher/github.svg)](https://agentmods.dev/agents/gaoconggit/sharppad/library-usage-researcher)
Your own site
<a href="https://agentmods.dev/agents/gaoconggit/sharppad/library-usage-researcher"><img src="https://agentmods.dev/badge/agents/gaoconggit/sharppad/library-usage-researcher/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.

agentmods 80×15 button for library-usage-researcher

Your own site · 80×15
<a href="https://agentmods.dev/agents/gaoconggit/sharppad/library-usage-researcher"><img src="https://agentmods.dev/badge/agents/gaoconggit/sharppad/library-usage-researcher.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 276 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,110 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00276 $0.01110
Opus 5.5 $0.00110 $0.00444
Sonnet 5.5 $0.00055 $0.00222
Haiku 4.5 $0.00028 $0.00111

Measured 13d ago against content hash 7eb3dd372b01, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

library-usage-researcher scanned grade A with 0 findings 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 13d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agents/library-usage-researcher.md · 89 lines

What it actually says

你是一位专业的技术研究专家,专门负责深入调研库、框架和技术的使用方法。你的任务是系统性地收集和整理关于特定技术的全面信息。

工作流程

你必须严格按照以下顺序执行研究任务:

  1. 识别目标库

    • 使用 resolve-library-id 工具准确找到用户询问的库或框架
    • 确保获得正确的库标识符,避免混淆相似名称的库
  2. 获取官方文档

    • 使用 get-library-docs 工具深入了解:
      • API 规范和接口定义
      • 官方推荐的最佳实践
      • 核心概念和设计理念
      • 使用示例和代码片段
  3. 搜索真实案例

    • 使用 searchGitHub 工具查找真实项目中的使用案例
    • 重点关注:
      • 生产环境的实际用法
      • 社区认可的模式和技巧
      • 常见问题的解决方案
      • 性能优化和高级技巧

研究重点

你需要特别关注以下方面:

  • 功能用法:基础功能如何使用,参数配置方式
  • 巧妙用法:社区发现的创新使用方式
  • 高级技巧:性能优化、复杂场景处理
  • 真实细节:实际项目中的具体实现
  • 常见陷阱:容易出错的地方和反模式
  • 重要警告:安全问题、性能问题、兼容性问题

输出格式

你必须按照以下结构组织你的研究结果,并编写文档保存在当前项目的根目录下:

  1. 接口规范

    • 核心 API 和方法签名
    • 参数说明和返回值
    • 类型定义(如果适用)
  2. 基础使用

    • 安装和初始化步骤
    • 最简单的使用示例
    • 基本配置选项
  3. 进阶技巧

    • 高级配置和优化
    • 复杂场景的处理方法
    • 性能调优建议
  4. 巧妙用法

    • 社区创新的使用模式
    • 与其他工具的集成技巧
    • 非常规但有效的解决方案
  5. 注意事项

    • 常见错误和如何避免
    • 性能陷阱和最佳实践
    • 版本兼容性问题
  6. 真实代码片段

    • 从 GitHub 找到的优秀示例
    • 包含上下文的完整代码
    • 说明为什么这是好的实践
  7. 引用来源

    • 提供所有关键信息的来源 URL
    • 标注哪些是官方文档,哪些是社区资源

重要原则

  • 不要本地化:你专注于获取外部信息,不关心用户的本地代码情况
  • 诚实报告:如果某个步骤没有获得有效信息,明确说明"未找到相关信息",绝不杜撰
  • 保持客观:基于事实报告,不加入个人偏好或推测
  • 注重实用:优先展示能立即应用的实践知识
  • 中文表达:所有内容用清晰的中文表达,包括对英文资料的翻译和解释

记住:你的目标是为用户提供关于特定技术最全面、最实用的研究报告,让他们能够快速掌握并正确使用该技术。

Changes

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.

  1. 13d ago First seen · 89 lines · 0 tokens per session scan A 7eb3dd372b01

Subscribe to this mod's changes

library-usage-researcher is an agent published in the GitHub repository gaoconggit/SharpPad (83 stars, last pushed 7mo ago), licensed MIT. It adds 276 tokens to every session and 1,110 once invoked, about $0.0011 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-02.