Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问clear审计通过

weave-integration编织整合

Agent Skill

weave-integration 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

192

周安装

8

GitHub Stars

1

下载量

64
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:weave-integration(编织整合)
来源仓库:https://github.com/altryne/weavify-skill
仓库路径:skills/weave-integration
安装命令:
npx skills add https://github.com/altryne/weavify-skill --skill weave-integration
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/altryne/weavify-skill --skill weave-integration

简介

编织整合用于查找、检索和筛选相关信息,支持关键词和任务场景的快速定位。

  • 适用于 Codex、Claude、Cursor、Gemini CLI 等环境中的信息搜索和候选结果筛选。
  • 通过 npx skills add 命令从指定仓库安装,便于技能扩展。
  • 安装前需确认网络权限和 API 访问权限,避免连接问题。
  • 主要功能包括信息检索和筛选,不涉及直接代码生成或修改。

SKILL.md

Weave Integration

Add W&B Weave observability to any LLM project. Weave traces all LLM calls, captures tokens/latency/costs, and provides a UI for debugging and evaluation.

Quick Start

1. Install

# TypeScript/Node.js
npm install weave

# Python
pip install weave

2. Get API Key

Set WANDB_API_KEY environment variable. Get key from wandb.ai/settings.

export WANDB_API_KEY="your-key-here"

3. Initialize

// TypeScript
import * as weave from 'weave';
await weave.init('your-team/project-name');
# Python
import weave
weave.init('your-team/project-name')

4. Trace LLM Calls

Auto-patching (supported providers traced automatically):

// TypeScript - CommonJS: works out of the box
import OpenAI from 'openai';
import * as weave from 'weave';

await weave.init('my-project');
const client = new OpenAI();
// All calls now traced automatically

Manual wrapping (for custom functions or unsupported libs):

// TypeScript
const myFunction = weave.op(async (input: string) => {
  // your code here
  return result;
});
# Python
@weave.op()
def my_function(input: str):
    return result

TypeScript Setup Details

See references/typescript.md for:

  • ESM configuration (--import=weave/instrument)
  • Bundler compatibility (Next.js, Vite)
  • Manual patching fallback

Supported Providers (Auto-traced)

OpenAI, Anthropic, Cohere, Mistral, Google, Groq, Together AI, LiteLLM, Azure, Bedrock, Cerebras, HuggingFace, OpenRouter, NVIDIA NIM, and more.

Full list: https://docs.wandb.ai/weave/guides/integrations

Integration Workflow

When adding Weave to a project:

  1. Find LLM call sites — search for OpenAI/Anthropic client usage
  2. Add weave.init() — early in app startup, before any LLM calls
  3. Verify auto-patching — check traces appear in W&B UI
  4. Wrap custom functions — use weave.op() for additional visibility
  5. Add cost tracking — Weave tracks tokens automatically for supported providers

Viewing Traces

After running your app:

  • Open wandb.ai → Your project → Weave tab
  • See all traces with inputs, outputs, latency, token usage, costs
  • Filter, search, and export call data

Environment Variables

VariablePurpose
WANDB_API_KEYAuthentication (required)
WEAVE_IMPLICITLY_PATCH_INTEGRATIONSSet false to disable auto-patching

Common Patterns

Wrap Existing Client

import { wrapOpenAI } from 'weave';
import OpenAI from 'openai';

const client = wrapOpenAI(new OpenAI());

Trace Class Methods

class MyAgent {
  @weave.op
  async predict(prompt: string) {
    return "response";
  }
}

Add Display Names

const myOp = weave.op(myFunction, {
  callDisplayName: (input) => `Custom Name: ${input}`
});

Clawdbot-Specific Integration

For Clawdbot/similar Node.js agents:

  1. Locate the LLM client initialization (usually Anthropic/OpenAI SDK)
  2. Add weave.init() in the main entry point
  3. For ESM, add --import=weave/instrument to node invocation
  4. All provider calls will be traced to W&B

Troubleshooting

  • No traces appearing: Check WANDB_API_KEY is set
  • ESM not patching: Use --import=weave/instrument flag
  • Bundler issues: Mark LLM libs as external in config
  • Manual fallback: Use wrapOpenAI() or explicit weave.op() wrappers

适合场景

01

调用多模型

02

代码和文本生成

03

Agent 推理流程

04

OpenRouter 模型接入

能力概览

能力 1

统一调用多种 LLM

能力 2

支持 Claude、Gemini、Kimi 等模型

能力 3

适合聊天、代码和推理任务

能力 4

可作为 Agent 模型调用入口

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

28.81%
按下载量换算18

Cursor

24.16%
按下载量换算15

github-copilot

15.4%
按下载量换算10

windsurf

10.57%
按下载量换算7

Gemini CLI

7.5%
按下载量换算5

OpenCode

3.07%
按下载量换算2

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills