agentleFS
ag-ui-protocolag-ui-protocol/ag-ui/.github/skills/agui-dojo/SKILL.md

agui-dojo

Skill16k starsChanged 9 months agoMITView on GitHub

Run the AG-UI Dojo demo viewer locally and wire the AG-UI .NET SDK in as a dojo integration. USE FOR: starting the dojo app (apps/dojo), running the .NET dojo backend (AGUIDojoServer), registering or modifying the ag-ui-dotnet integration (agents.ts/menu.ts/env.ts/files.json), running the dojo Playwright e2e suite for the .NET integration (agUiDotnetTests), or understanding how dojo-e2e.yml runs it in CI. DO NOT USE FOR: generic Playwright validation of arbitrary pages (use agui-playwright-validate), or the docs site (use agui-dotnet-sdk-docs).

  • Reads credentials
  • Installs packages

Trending

More talk lately.about the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 1 mentionMar 2026: 2 mentionsApr 2026: 2 mentionsMay 2026: 0 mentionsJun 2026: 1 mentionJul 2026: 3 mentionsAug 2026: 4 mentionsSep 2026: 6 mentionsOct 2026: 18 mentionsNov 2026: 5 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the ag-ui-protocol/ag-ui repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about ag-ui-protocol/ag-ui

The biggest 5 of 56 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 56

Talked about on GitHub, Bluesky and Hacker News (56 times).

On GitHub · 50

45 more on GitHub

On Bluesky · 5

On Hacker News · 1

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Start just the .NET backend by hand (e.g.

    line 54

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

AG-UI Dojo (.NET integration)

The Dojo is a Next.js "demo viewer" (apps/dojo) that showcases AG-UI protocol features (agentic chat, generative UI, human-in-the-loop, shared state, etc.) against many framework integrations. The AG-UI .NET SDK is one integration, id ag-ui-dotnet.

Where the pieces live

PiecePathRole
Dojo app (frontend)apps/dojoNext.js viewer, runs on port 9999
.NET backendsdks/dotnet/samples/AGUIClientServer/AGUIDojoServer/ASP.NET host exposing AG-UI endpoints, port 8023
Agent registryapps/dojo/src/agents.tsag-ui-dotnet → HttpAgent per feature
Menu / feature listapps/dojo/src/menu.tsintegration id, name, enabled features
Env configapps/dojo/src/env.tsaguiDotnetUrl ← AGUI_DOTNET_URL (default http://localhost:8023)
Generated source viewer dataapps/dojo/src/files.jsongenerated, committed
Content generatorapps/dojo/scripts/generate-content-json.tsbuilds files.json from menu.ts
Prep / run orchestratorsapps/dojo/scripts/{prep,run}-dojo-everything.jsinstall/build + start services
.NET e2e suiteapps/dojo/e2e/tests/agUiDotnetTests/*.spec.tsPlaywright tests
CI.github/workflows/dojo-e2e.ymlsuite ag-ui-dotnet (triggers on sdks/dotnet/**)

Run the dojo + .NET backend locally

From the repo root (the scripts shell out to git rev-parse):

pnpm install --no-frozen-lockfile

# 1) Prep: builds the .NET backend AND the dojo (use the stable ids)
node apps/dojo/scripts/prep-dojo-everything.js --only dojo,ag-ui-dotnet

# 2) Run: starts the dojo (9999) + AGUIDojoServer (8023) together, with LLMock env injected
node apps/dojo/scripts/run-dojo-everything.js --only dojo,ag-ui-dotnet
  • Browse http://localhost:9999/ag-ui-dotnet/feature/agentic_chat.
  • prep for ag-ui-dotnet runs dotnet restore && dotnet build on AGUIDojoServer/AGUIDojoServer.csproj in sdks/dotnet/samples/AGUIClientServer.
  • run for ag-ui-dotnet runs dotnet run --project AGUIDojoServer/AGUIDojoServer.csproj --urls "http://localhost:8023" --no-build — prep first or there's no build to run.

Start just the .NET backend by hand (e.g. to debug):

cd sdks/dotnet/samples/AGUIClientServer
dotnet run --project AGUIDojoServer/AGUIDojoServer.csproj --urls "http://localhost:8023"

The backend resolves its ChatClient from configuration (ChatClientAgentFactory.Initialize): OPENAI_BASE_URL (any OpenAI-compatible endpoint / LLMock), else AZURE_OPENAI_ENDPOINT (Entra ID), else public OpenAI with OPENAI_API_KEY. run-dojo-everything.js injects OPENAI_BASE_URL=http://localhost:5555/v1 and OPENAI_API_KEY=sk-mock so it hits the LLMock.

How the .NET SDK is registered as an integration

Each scenario is an AG-UI endpoint on the .NET host wired to a frontend feature. To add or change a .NET dojo scenario, touch these in lockstep:

  1. Backend endpoint — AGUIDojoServer/Program.cs: add app.MapDojoEndpoint("/<feature>", ChatClientAgentFactory.Create…()). Agent logic lives in ChatClientAgentFactory.cs.
  2. Agent mapping — apps/dojo/src/agents.ts ("ag-ui-dotnet" block): add <feature>: "<feature>" inside mapAgents; each maps to new HttpAgent({ url: \${envVars.aguiDotnetUrl}/<feature>` })`.
  3. Menu — apps/dojo/src/menu.ts (id: "ag-ui-dotnet"): add the feature to features.
  4. Source viewer — apps/dojo/scripts/generate-content-json.ts already maps ag-ui-dotnet to Program.cs + ChatClientAgentFactory.cs; then regenerate files.json (below).
  5. env.ts — only edit if changing the URL/port; aguiDotnetUrl/AGUI_DOTNET_URL already exist.

Regenerate the committed source-viewer data after any menu.ts change:

cd apps/dojo && pnpm generate-content-json   # writes src/files.json

⚠️ CI job check-generated-files fails if src/files.json is stale. Always regenerate and commit it after editing menu.ts (or feature/README files).

Run the .NET e2e suite locally

cd apps/dojo/e2e
pnpm install --ignore-scripts
pnpm exec playwright install --with-deps chromium   # first time only
# dojo (9999) + AGUIDojoServer (8023) must already be running (see above)
BASE_URL=http://localhost:9999 PLAYWRIGHT_SUITE=ag-ui-dotnet pnpm test -- tests/agUiDotnetTests

Tests navigate to /ag-ui-dotnet/feature/<feature> and drive the chat UI via page objects in apps/dojo/e2e/featurePages/.

How CI runs it (dojo-e2e.yml)

  • Matrix suite ag-ui-dotnet: test_path: tests/agUiDotnetTests, services: ["dojo", "ag-ui-dotnet"], wait_on: http://localhost:9999,tcp:localhost:8023.
  • Triggers on pull_request/push paths including sdks/dotnet/**.
  • Installs .NET 9.0.x + 10.0.x, runs prep-dojo-everything.js --only then run-dojo-everything.js --only, waits on the ports, then pnpm test -- tests/agUiDotnetTests.

Gotchas

  • Ports are fixed: dojo 9999, AGUIDojoServer 8023. The dojo's AGUI_DOTNET_URL must point to http://localhost:8023 (default in run-dojo-everything.js and env.ts).
  • --no-build in run means you must run the prep step first; otherwise the dotnet run fails.
  • LLMock, not a real LLM: OPENAI_BASE_URL=http://localhost:5555/v1 + OPENAI_API_KEY=sk-mock are injected. Backend tool-rendering scenarios also honor AG_UI_MOCK_WEATHER=1 for determinism.
  • BASE_URL is required — playwright.config.ts calls process.exit(1) if it's unset.
  • Stale files.json is the most common CI failure after touching menu.ts — run pnpm generate-content-json and commit the result.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.