Skip to content

Updates Weave's landing page with new auto-instrumentation skill - #2985

Open
dbrian57 wants to merge 4 commits into
mainfrom
weave/agent-auto-instrumentation
Open

Updates Weave's landing page with new auto-instrumentation skill#2985
dbrian57 wants to merge 4 commits into
mainfrom
weave/agent-auto-instrumentation

Conversation

@dbrian57

Copy link
Copy Markdown
Contributor

Description

Resolves DOCS-2949. This updates Weave's landing page with the product's new onboarding workflow that uses a prompt to instruct an agent on how to install Weave into a codebase.

@github-actions

github-actions Bot commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Readability impact

Word-weighted Flesch-Kincaid grade change across 1 changed page: +0.7 (harder).

Lower Flesch-Kincaid grade and higher reading ease both mean easier to read. This check is informational and never blocks a PR.

Human readability

Page FK grade before FK grade after FK Δ Reading ease Δ Direction
weave.mdx 14.2 14.9 +0.7 -7.4 harder

AI agent comprehension

Rated 0-3 (higher is easier for an agent to parse and act on).

Page Before After Δ
weave.mdx 2 2 +0

Curated-docs baseline median FK grade by type: conceptual 10.5, procedural 8.8, reference 9.4.

From workflow run 31124623831

@mintlify

mintlify Bot commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
wandb 🟢 Ready View Preview Jul 29, 2026, 5:35 PM

@github-actions

github-actions Bot commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

📚 Mintlify Preview Links

🔗 View Full Preview

📝 Changed (1 total)

📄 Pages (1)

File Preview
weave.mdx Weave

🤖 Generated automatically when Mintlify deployment succeeds
📍 Deployment: 701ca54 at 2026-08-06 21:57:07 UTC

@github-actions

github-actions Bot commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

🔗 Link Checker Results

All links are valid!

No broken links were detected.

Preview: https://wb-21fd5541-weave-agent-auto-instrumentation.mintlify.site

@dbrian57
dbrian57 marked this pull request as ready for review August 6, 2026 13:08
@dbrian57
dbrian57 requested a review from a team as a code owner August 6, 2026 13:08
Comment thread weave.mdx

Project configuration:
WEAVE_PROJECT=$[YOUR-PROJECT-NAME]
WEAVE_API_KEY=$[WANDB-API-KEY]`;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wouldn't think it'd be a good idea to pass an API key visibly through a prompt to an LLM?
What about if we told people to set these in their zshrc file instead, and then the prompt could extract it from there?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that's what the $ symbol is kind of denoting here, right? Like echo $WANDB_API_KEY? And we mention that you should set these as env variables in the opening paragraph. Is there a better way here?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh, i thought that was setting an environment variable to the value, and that we were asking them to replace [WANDB-API-KEY] (since that's our replaceable format style) with the text of the key?

would we want the brackets on there if it is supposed to be reading from an en var that exists by that name?

also, confused why we're setting WEAVE_API_KEY? i checked the SKILL and it doesn't have this token

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

like, the skill has an auth-related section, but says nothing about WEAVE_API_KEY:

  • Authentication is the user's job, not yours, so never handle their key. A W&B API key is a
    secret, and it must not enter your context or the repo. Tell the user to authenticate in their own
    terminal: set WANDB_API_KEY (from https://wandb.ai/authorize), or run wandb login (Python) or
    await weave.login(key) once (Node). You may check that a key is reachable (the env var is set,
    or ~/.netrc has an api.wandb.ai entry), but never read or print its value, and never write it
    into source code or into a committed .env.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i interpret that as these are the instructions we'd give the user up top:: "authenticate in your own
terminal: set WANDB_API_KEY (from https://wandb.ai/authorize), or run wandb login (Python) or
await weave.login(key) once (Node). "
and then that line gets removed from the prompt altogether?

@anastasiaguspan anastasiaguspan Aug 6, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WEAVE_PROJECT doesn't seem to be used by the skill either? (tho sounds like the skill will prompt for it itself)
maybe i'm just confused ;)

Comment thread weave.mdx
```text
Fetch and then use the following skill to instrument all agents with Weave:

https://raw.githubusercontent.com/wandb/weave/refs/heads/master/skills/weave-instrument/SKILL.md

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also, curious why we're providing this 'raw' link instead of the actual repo https://github.com/wandb/weave/blob/master/skills/weave-instrument/SKILL.md?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the idea is to make it as easy as possible for the agent to ingest. This is Andrew's prompt that he designed and put in the Weave UI, so I was just copying the workflow he designed.

Comment thread weave.mdx Outdated
Co-authored-by: Anastasia Guspan <aguspan@wandb.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants