Skip to content

Docs: refresh user entry points (versioned --help link, AI agent guide, README downloads, AGENTS.md pointer) #119

Description

@SkowronskiAndrew

A few related documentation/entry-point fixes, grouped because they are all small and touch how users (and AI agents) first find their way into the tool. From a review of how well AI agents can use the tool: the docs themselves proved good once found (an agent answered a "what's wasteful in this bundle" question writing every query straight from analyzer.md), but the entry points have gaps.

1. Version-pin the documentation URL in --help

Program.cs hardcodes blob/main/Documentation/unitydatatool.md. Someone running an old binary gets docs describing a newer tool. Derive the tag from the assembly version for release builds (e.g. blob/v2.1.0/...), falling back to main for dev builds.

2. Add a "using UnityDataTool with an AI agent" guide, replacing the dated section in analyze-examples.md

The "Using AI tools to help write queries" section of analyze-examples.md predates AI agents (it describes pasting the schema into a chat). Replace it with a compact guide page covering the canonical loop and the facts that experiments showed agents trip on:

  • the loop: analyze -> open the .db with any SQLite client (sqlite3 CLI, or Python stdlib sqlite3 as the no-install fallback) -> start from object_view / view_breakdown_by_type -> drill down with dump / serialized-file / archive -> trace with find-refs
  • id (database row) vs object_id (what dump -i takes)
  • one build per database (the duplicate-archive-name rule)
  • TypeTrees required; what "Files without TypeTrees" means for Player builds
  • the refs table columns (object, referenced_object) — an agent guessed these wrong and burned queries
  • one canonical worked example: "diagnose a bundle" combining object_view ORDER BY size DESC, texture_view, mesh_view R/W flags, and view_potential_duplicates (today that recipe spans analyzer.md and analyze-examples.md)

Deliberately agent-agnostic — this is just a good usage playbook, and if a skill file for a specific agent ecosystem ever proves worthwhile, this page is its content.

3. Fix the README "Downloads" section

It still directs people to the Actions tab. Proper GitHub Releases with attached zips have existed since v1.3.x. Point to Releases (keep Actions as the bleeding-edge option), and mention what's in the zip plus the add-to-PATH step.

4. Route tool users out of AGENTS.md

AGENTS.md is (correctly) contributor-oriented, but an agent landing in a clone to use the tool starts there. Add a short pointer at the top: "Using the tool rather than working on it? See <the guide from item 2>."

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions