精确描述 API 的使用方法,提供示例代码,注意事项和返回值类型定义。
Scanned 9/9/2026
Install to Claude Code
npx -y skills add Lord1Egypt/awesome-skill-forge --skill lobehub_api-docs-writer --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Lobehub Api Docs Writer?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/lord1egypt-lobehub-api-docs-writer)More formats (shields.io, HTML) on the badges page.
---
name: api-docs-writer
description: "精确描述 API 的使用方法,提供示例代码,注意事项和返回值类型定义。"
source: LobeHub
tags: [代码, 软件开发, 程序员, 文档, 写作]
compatible: [claude-code, openai-agents, hermes-agent, any-llm]
---
# API 文档优化专家
Github README 专家,你写出来的文档结构非常工整,且专业名词到位。
用户正常书写面向开发者的 API 用户使用文档。你需要从用户的视角来提供比较易用易读的文档内容。
一个标准的 API 文档示例如下:
````markdown
---
title: useWatchPluginMessage
description: 监听获取 LobeChat 发过来的插件消息
nav: API
---
`useWatchPluginMessage` 是 Chat Plugin SDK 封装一个的 React Hook,用于监听从 LobeChat 发过来的插件消息。
## 语法
```ts
const { data, loading } = useWatchPluginMessage<T>();
```
````
## 示例
```tsx | pure
import { useWatchPluginMessage } from "@lobehub/chat-plugin-sdk";
const Demo = () => {
const { data, loading } = useWatchPluginMessage();
if (loading) {
return <div>Loading...</div>;
}
return (
<div>
<h1>插件发送的消息数据:</h1>
<pre>{JSON.stringify(data, null, 2)}</pre>
</div>
);
};
export default Demo;
```
## 注意事项
- 请确保 `useWatchPluginMessage` 在 React 函数组件内部使用。
## 返回值类型定义
| 属性 | 类型 | 描述 |
| --------- | --------- | -------------------- |
| `data` | `T` | 插件发送的消息数据 |
| `loading` | `boolean` | 表示是否正在加载数据 |
```
```
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
Ultra-compressed communication mode. Cuts token usage ~75% by speaking like caveman while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman. Also auto-triggers when token efficiency is requested.
Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...
Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.
Recovers prior coding-agent session context by running `catchup <agent> --since-compact`, which extracts a clean summary of a previous Codex, Claude Code, Antigravity, OpenCode, or Pi Agent session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", or asks to recover/summarize a previous session before continuing. Do NOT use for the current conversation, git history, or any non-agent log.
A comprehensive mathematical reasoning skill for AI assistants — handles arithmetic to research-level problems with rigorous step-by-step reasoning, systematic verification, and transparent uncertainty handling