agentleFS
MicrosoftKnown publishermicrosoft/aspire.dev/.agents/skills/doc-tester/SKILL.md

doc-tester

Skill196 starsChanged 6 months agoMITView on GitHub

Agent for validating Aspire documentation against actual behavior. Use when auditing documentation accuracy, testing examples, or identifying discrepancies between documentation and implementation.

  • Pipes a download into a shell
  • Reads credentials
  • Deletes or force-pushes

The file

Show its rules and text

We split this skill into the rules it gives an agent

61 rules. About 0 are common, 48 are distinctive, and 13 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈48

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 13

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read Aspire source code to understand behavior

    line 24
  2. Distinctive:

    Check implementation details in the microsoft/aspire repository

    line 25
  3. Distinctive:

    Look at test files to understand expected behavior

    line 26
  4. Distinctive:

    Use internal knowledge of the codebase

    line 27
  5. Very specific:

    Use playwright-cli commands to navigate the documentation site

    line 31
  6. Distinctive:

    Read documentation content as displayed in the browser

    line 32
  7. Distinctive:

    If documentation is insufficient to proceed:

    line 39
  8. Distinctive:

    Hand off to doc-writer: - Create a task for the doc-writer skill to fix it

    line 43
  9. Distinctive:

    If testing a "Getting Started" page that shows how to create a project, use the commands in that documentation - not the project creation …

    line 59
  10. Distinctive:

    If an integration doc specifies how to add packages, follow those steps rather than the general guidance here

    line 60
  11. Distinctive:

    If you already knew it, would a new user know it too?

    line 68
  12. Distinctive:

    If you had to use prior knowledge to complete a step, the documentation may be incomplete

    line 72
  13. Distinctive:

    Document these gaps even if you were able to proceed

    line 73
  14. Distinctive:

    Don't assume familiarity with .NET, containers, cloud concepts, etc.

    line 77
  15. Distinctive:

    When you identify that you used intrinsic knowledge to proceed, flag it in your report:

    line 90
  16. Distinctive:

    Do examples build on each other progressively?

    line 112
  17. Distinctive:

    Do code examples compile and run?

    line 120
  18. Distinctive:

    Do claimed features actually exist?

    line 122
  19. Distinctive:

    Before testing, ensure you have the appropriate version of the Aspire CLI installed.

    line 129
  20. Distinctive:

    Look for the build artifacts that contain the CLI

    line 169
  21. Very specific:

    Use the Aspire CLI output or dashboard resource list to get the content URL.

    line 203
  22. Very specific:

    IMPORTANT: Use the local frontend URL for all testing, not https://aspire.dev

    line 205
  23. Very specific:

    Use aspire new --list to see all available project templates.

    line 221
  24. Distinctive:

    When testing any page, verify that all internal links follow these conventions:

    line 246
  25. Very specific:

    Trailing slash required: All internal links must end with / (e.g., /get-started/first-app/ not /get-started/first-app)

    line 249
  26. Distinctive:

    Valid targets: Every internal link must point to a page that actually exists in the docs

    line 251
  27. Distinctive:

    Use Playwright to click links and verify they resolve (no 404s)

    line 258
  28. Very specific:

    Start Aspire: Run aspire run from the repository root

    line 298
  29. Very specific:

    Get frontend URL: Use the Aspire CLI output or dashboard resource list to find the frontend endpoint

    line 299
  30. Very specific:

    Use playwright-cli to browse the documentation:

    line 304
  31. Distinctive:

    Keep fixed versions when the exact version is intentional, such as release notes, upgrade comparisons, minimum-version requirements, …

    line 334
  32. Distinctive:

    Test variations: - Do optional parameters work as documented?

    line 345
  33. Very specific:

    Use aspire new --list to view available templates.

    line 381
  34. Very specific:

    Use aspire run to build and run the application:

    line 412
  35. Distinctive:

    Test configuration: - Do configuration options work as described?

    line 426
  36. Distinctive:

    Check health checks: - Do documented health checks function?

    line 427
  37. Distinctive:

    Document what you were trying to do

    line 446
  38. Distinctive:

    When given a focus area, use these templates to guide testing:

    line 452
  39. Distinctive:

    After testing a focus area, produce a structured report:

    line 539
  40. Very specific:

    Use .doc-tester-workspace/ in the repository root for all test projects.

    line 610
  41. Distinctive:

    After testing, clean up test projects:

    line 623
  42. Distinctive:

    Keep the workspace directory but remove contents to avoid cluttering the repository.

    line 630
  43. Distinctive:

    Verify package names are correct

    line 637
  44. Distinctive:

    Create a test AppHost project

    line 638
  45. Very specific:

    Add the hosting package using aspire add <package-name>

    line 639
  46. Distinctive:

    Verify the resource appears in the dashboard

    line 642
  47. Very specific:

    If client integration exists, add using aspire add and test client registration

    line 643
  48. Distinctive:

    Run in a fresh directory

    line 649
  49. Distinctive:

    Verify output matches documentation

    line 650
  50. Distinctive:

    Test documented options and flags

    line 651
  51. Distinctive:

    Start from a completely fresh environment (new directory)

    line 655
  52. Distinctive:

    Follow every step exactly as written

    line 656
  53. Distinctive:

    Do not use prior knowledge to fill gaps

    line 657
  54. Distinctive:

    Document any place where you got stuck

    line 658
  55. Distinctive:

    Verify final result matches what's promised

    line 659
  56. Distinctive:

    Use for checking resource status:

    line 665
  57. Distinctive:

    Use for navigating and reading documentation:

    line 675
  58. Distinctive:

    When testing CLI documentation, consider whether an asciinema recording would better demonstrate the command output than a static code …

    line 731
  59. Distinctive:

    Screenshot or error message: when applicable

    line 752
  60. Distinctive:

    When creating a task for doc-writer, include:

    line 756
  61. Distinctive:

    When testing code examples, verify:

    line 830

≈ “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

Documentation Tester Skill

This skill provides guidelines for AI agents to systematically validate the aspire.dev documentation site against the actual behavior of Aspire. The goal is to identify discrepancies between what the documentation claims and what Aspire actually does.

⚠️ CRITICAL: User-Centric Testing Approach

You are testing the documentation as if you were a new user learning Aspire.

Core Principles

  1. Use playwright-cli exclusively to browse and interact with the documentation site
  2. Never read source code to understand how things work - rely only on what the docs tell you
  3. Follow the documentation literally - copy code examples exactly as shown
  4. Evaluate teaching effectiveness - can you learn from this documentation?

What This Means

❌ DO NOT:

  • Read Aspire source code to understand behavior
  • Check implementation details in the microsoft/aspire repository
  • Look at test files to understand expected behavior
  • Use internal knowledge of the codebase
  • Silently fill gaps with your built-in knowledge - flag them instead

✅ DO:

  • Use playwright-cli commands to navigate the documentation site
  • Read documentation content as displayed in the browser
  • Copy code examples and run them in test projects
  • Evaluate if explanations make sense without prior knowledge
  • Flag when you use intrinsic knowledge to fill documentation gaps

When You Get Stuck

If documentation is insufficient to proceed:

  1. Document the blocker - What were you trying to do? What information was missing?
  2. Describe the gap - What would a user need to know to succeed?
  3. Hand off to doc-writer - Create a task for the doc-writer skill to fix it
  4. Move on - Continue testing other areas

This is valuable feedback! Gaps in documentation are exactly what we're trying to find.

Knowledge Source Awareness

Be critical of the documentation by distinguishing between what you know and where that knowledge came from.

As an AI agent, you have built-in knowledge about programming concepts, frameworks, and common patterns. When testing documentation, constantly ask yourself:

Documentation Takes Priority

The aspire.dev documentation covers the full spectrum of the Aspire experience - from installation and project creation to advanced scenarios. When the documentation you're testing provides instructions for a task, follow those instructions exactly, even if this skill provides different guidance.

For example:

  • If testing a "Getting Started" page that shows how to create a project, use the commands in that documentation - not the project creation steps in this skill
  • If an integration doc specifies how to add packages, follow those steps rather than the general guidance here
  • The skill's instructions are defaults; the documentation being tested overrides them

This ensures you're actually testing whether the documentation works, not whether this skill's instructions work.

Questions to Ask

  1. "Did I learn this from the documentation, or did I already know it?"
    • If you already knew it, would a new user know it too?
    • Is it reasonable to assume this knowledge, or should the docs explain it?
  2. "Am I filling in gaps with my own knowledge?"
    • If you had to use prior knowledge to complete a step, the documentation may be incomplete
    • Document these gaps even if you were able to proceed
  3. "Would this make sense to someone unfamiliar with [concept]?"
    • Aspire users come from diverse backgrounds (different languages, experience levels)
    • Don't assume familiarity with .NET, containers, cloud concepts, etc.

Examples

SituationQuestion to AskDocumentation Gap?
You know what a connection string isWould a Python developer know this?Maybe - consider if it needs explanation
You understand dependency injectionDoes the doc explain DI or assume it?If assumed, should link to prerequisites
You know aspire run starts all resourcesDid the doc say this, or did you just know?If not stated, it should be
You recognize a Redis configuration patternIs this explained or assumed knowledge?New users may not recognize it

Reporting Knowledge Gaps

When you identify that you used intrinsic knowledge to proceed, flag it in your report:

### Knowledge Gap: [Topic]

**What I needed to know:** [Description]
**Source of my knowledge:** Built-in/prior knowledge (NOT from documentation)
**User impact:** [Who might struggle without this knowledge?]
**Recommendation:** 
- [ ] Add explanation to this page
- [ ] Link to prerequisite documentation
- [ ] Reasonable to assume (explain why)

Testing Goals

1. Teaching Effectiveness

Can someone learn Aspire from these docs alone?

  • Are concepts introduced in a logical order?
  • Are prerequisites clearly stated?
  • Do examples build on each other progressively?
  • Is terminology explained before being used?
  • Are common mistakes or gotchas addressed?

2. Accuracy & Correctness

Does the documentation match reality?

  • Do code examples compile and run?
  • Are API signatures and parameters correct?
  • Do claimed features actually exist?
  • Are limitations and caveats documented?

Environment Setup

Installing the Aspire CLI

Before testing, ensure you have the appropriate version of the Aspire CLI installed. The version needed depends on what you're testing:

GA/Stable Builds (Default)

For testing documentation of released features, use the stable release:

# Linux/macOS
curl -sSL https://aspire.dev/install.sh | bash

# Windows (PowerShell)
irm https://aspire.dev/install.ps1 | iex

For complete installation instructions, see the Install Aspire CLI page on the documentation site.

Nightly/Dev Builds

For testing documentation of features being developed on the main branch, use the dev channel:

# Linux/macOS
curl -sSL https://aspire.dev/install.sh | bash -s -- --quality dev

# Windows (PowerShell)
iex "& { $(irm https://aspire.dev/install.ps1) } -Quality 'dev'"

You can also find the dev channel option by clicking the download icon on the aspire.dev site and selecting "Dev" from the Channel dropdown.

<Aside type="caution"> Dev builds are the latest from the main branch and may be unstable. Only use for testing upcoming features. </Aside>

PR Builds

For testing documentation of features in specific pull requests (before they're merged), you need to install the CLI from the PR artifacts:

  1. Navigate to the PR in the microsoft/aspire repository
  2. Find the "Checks" or "Actions" section of the PR
  3. Look for the build artifacts that contain the CLI
  4. Download and install the CLI from the PR-specific build artifacts

PR builds are useful when writing documentation ahead of feature merges.

Staging Builds

For testing prerelease builds from the current release branch:

# Linux/macOS
curl -sSL https://aspire.dev/install.sh | bash -s -- --quality staging

# Windows (PowerShell)
iex "& { $(irm https://aspire.dev/install.ps1) } -Quality 'staging'"

Aspire App Model

The aspire.dev workspace uses Aspire to orchestrate local services. The app model in apphost.cs defines the documentation site resources. Use the Aspire CLI output or dashboard resource list to get the current resource states and URLs.

Starting the Local Environment

⚠️ CRITICAL: Terminal Isolation

Aspire must run in an isolated background process to avoid interference with other terminal commands.

Start Aspire:

cd /path/to/aspire.dev
aspire run

Use the Aspire CLI output or dashboard resource list to get the content URL. Look for the frontend resource endpoint URL, for example http://frontend.dev.localhost:5000.

IMPORTANT: Use the local frontend URL for all testing, not https://aspire.dev

Creating Test Projects

To test code examples accurately, create test projects using the Aspire CLI.

# Create a test directory in the workspace
mkdir -p .doc-tester-workspace
cd .doc-tester-workspace

# Create a new Aspire project using templates
aspire new aspire-starter -n DocTest -o DocTest
cd DocTest

Use aspire new --list to see all available project templates. Choose a template that matches the documentation you're testing (e.g., Python, JavaScript, or .NET projects).

Purpose

The doc-tester agent produces actionable feedback that can:

  1. Trigger the doc-writer skill to correct documentation inaccuracies
  2. Identify product design issues that need to be addressed in Aspire
  3. Surface missing documentation for existing features
  4. Find broken examples or outdated instructions

Scope

What to Test

AreaDescription
Conceptual accuracyDo explanations match actual Aspire behavior?
Code examplesDo code samples compile and run as described?
CLI commandsDo Aspire CLI commands work as documented?
Integration docsAre integration configurations accurate?
Navigation & linksDo internal links work? Are pages accessible? Do they follow link format conventions?
Feature coverageAre all significant features documented?

Link Validation Rules

When testing any page, verify that all internal links follow these conventions:

  1. Site-relative paths: Internal links must start with / (not relative paths like ../ except within the same integration section)
  2. Trailing slash required: All internal links must end with / (e.g., /get-started/first-app/ not /get-started/first-app)
  3. Anchor links: Hash links to sections on the same page (e.g., #configuration) are fine without a trailing slash
  4. Valid targets: Every internal link must point to a page that actually exists in the docs
  5. No broken anchors: Section anchor links (e.g., /page/#section-name) must reference an actual heading on the target page

How to validate links:

  • Extract all [text](url) and href="url" patterns from the page source
  • For site-relative links, verify the target .mdx file exists under src/frontend/src/content/docs/
  • For links with anchors, verify the heading exists on the target page
  • Use Playwright to click links and verify they resolve (no 404s)

Documentation Structure

The documentation site includes:

/                           # Landing page
/get-started/               # Getting started guides
    prerequisites
    install-cli
    first-app
    app-host
    deploy-first-app
    ...
/fundamentals/             # Core concepts
    app-host
    networking-overview
    service-defaults
    ...
/integrations/             # Per-integration documentation
    databases/
    caching/
    messaging/
    ai/
    ...
/deployment/               # Deployment guides
/diagnostics/              # Diagnostics and telemetry
/dashboard/                # Dashboard documentation
/testing/                  # Testing guides
/reference/                # API and CLI reference
/whats-new/                # Release notes

Testing Workflow

All browser-based testing uses playwright-cli to interact with the documentation site.

Phase 0: Environment Preparation

  1. Start Aspire: Run aspire run from the repository root
  2. Get frontend URL: Use the Aspire CLI output or dashboard resource list to find the frontend endpoint
  3. Note the URL: The script outputs the local development URL

Phase 1: Navigate and Read Documentation (Playwright)

Use playwright-cli to browse the documentation:

# Open the local docs site
playwright-cli open http://frontend.dev.localhost:5000

# Take an accessibility snapshot to read page content
playwright-cli snapshot

# Navigate to a page by clicking a ref from the snapshot
playwright-cli click e42

# Read page content
playwright-cli snapshot

For each documentation page:

  1. Navigate to the page using Playwright click actions
  2. Take a snapshot to read the page content
  3. Evaluate the content - Is it clear? Complete? Accurate?
  4. Note any confusion - What would a new user struggle with?
  5. Inspect current-version references in the source MDX - Rendered pages show the replaced value, so confirm that current guidance uses the shared placeholders rather than a hard-coded Aspire version:
    • %ASPIRE_VERSION% for the full current stable version
    • %ASPIRE_VERSION_MAJOR_MINOR% for the current major/minor version

Flag hard-coded Aspire versions in current installation instructions, package references, AppHost SDK declarations, CLI output, and copy/paste examples. Keep fixed versions when the exact version is intentional, such as release notes, upgrade comparisons, minimum-version requirements, compatibility notes, or issue reproduction steps.

Phase 2: Test CLI Commands

For CLI commands shown in the documentation:

  1. Copy the command exactly as shown in the browser
  2. Run the command in the terminal
  3. Verify output - Does it match what the docs describe?
  4. Test variations - Do optional parameters work as documented?

Example: Testing aspire new

# Create a test directory
cd /path/to/aspire.dev/.doc-tester-workspace
mkdir -p cli-tests && cd cli-tests

# Test the command from documentation
aspire new aspire-starter -n TestApp -o TestApp

# Verify the output matches documentation claims
ls TestApp/

Phase 3: Test Code Examples

For each code example shown in the documentation:

  1. Copy the code exactly as shown in the browser
  2. Create a test project in the workspace directory
  3. Build the code - does it compile without errors?
  4. Run and observe - does it behave as documented?

Step 1: Create Test Project

# Navigate to workspace
cd /path/to/aspire.dev/.doc-tester-workspace

# Create a project using an appropriate Aspire template
aspire new aspire-starter -n ExampleTest -o ExampleTest
cd ExampleTest

Use aspire new --list to view available templates. Choose a template that matches the language or framework in the documentation you're testing.

Step 2: Add Required Packages

Based on the documentation being tested, use the Aspire CLI to add integration packages:

# Add hosting packages using Aspire CLI (preferred)
aspire add Aspire.Hosting.Redis

# Or add client packages
aspire add Aspire.StackExchange.Redis
<Aside type="tip"> The `aspire add` command automatically adds packages to the correct project and handles any additional configuration. Only fall back to `dotnet add package` if the Aspire CLI is not available. </Aside>

Step 3: Apply Code Examples

Copy the code examples from the documentation into your test project exactly as shown. This may involve:

  • Updating source files (e.g., Program.cs, app.py, server.js)
  • Adding configuration files
  • Any other steps the documentation specifies
<Aside type="note"> Aspire is polyglot and supports multiple languages (C#, Python, JavaScript, etc.). Follow the documentation's instructions for your target language. The docs should include any language-specific build steps if required. </Aside>

Step 4: Run and Verify

Use aspire run to build and run the application:

aspire run

Aspire handles building and orchestrating all resources. If the documentation specifies additional build or run commands for specific languages, follow those instructions and verify they work as documented.

Phase 4: Test Integration Documentation

For integration documentation:

  1. Verify package installation - Does the documented package exist?
  2. Test basic usage - Does the minimal example work?
  3. Test configuration - Do configuration options work as described?
  4. Check health checks - Do documented health checks function?
# Verify package exists using Aspire CLI
aspire add Aspire.Hosting.Technology

# If package not found, document as error

Phase 5: Evaluate Teaching Effectiveness

As you navigate, evaluate:

  1. Concept flow - Are ideas introduced in a logical order?
  2. Prerequisites - Is prior knowledge clearly stated?
  3. Completeness - Can you accomplish tasks with just the docs?
  4. Clarity - Would a new user understand this?

When you get stuck:

  • Document what you were trying to do
  • Note what information was missing
  • This becomes a doc-writer task

Focus Area Templates

When given a focus area, use these templates to guide testing:

Getting Started Focus

## Focus: Getting Started Guide

### Page: /get-started/[page-name]

#### Navigation (Playwright)
- [ ] Page loads successfully
- [ ] All sections visible in snapshot
- [ ] Code examples readable
- [ ] Links to related pages work
- [ ] All internal links are site-relative with trailing slashes

#### CLI Command Testing
- [ ] `aspire new` commands work as shown
- [ ] Template names are correct
- [ ] Output matches documentation

#### Content Clarity
- [ ] Prerequisites are clearly stated
- [ ] Steps are in logical order
- [ ] New users can follow without prior knowledge

#### Code Example Testing
- [ ] Example 1: Compiles and runs as described
- [ ] Example 2: Compiles and runs as described

Integration Documentation Focus

## Focus: [Integration Name] Integration

### Page: /integrations/[category]/[integration]

#### Package Verification
- [ ] Hosting package exists on NuGet
- [ ] Client package exists on NuGet (if applicable)
- [ ] Package names match documentation

#### Hosting Integration
- [ ] Basic example compiles
- [ ] Resource is created correctly
- [ ] Configuration options work
- [ ] Health checks function (if documented)

#### Client Integration (if applicable)
- [ ] Client registration works
- [ ] Keyed services work
- [ ] Configuration providers work
- [ ] Connection strings work

#### Cross-References
- [ ] Links to official docs work
- [ ] Links to related Aspire docs work
- [ ] All internal links are site-relative with trailing slashes
- [ ] See also section is complete

Fundamentals Focus

## Focus: [Concept Name]

### Page: /fundamentals/[concept]

#### Conceptual Accuracy
- [ ] Explanations match actual behavior
- [ ] Diagrams are accurate
- [ ] Terminology is consistent

#### Code Examples
- [ ] All examples compile
- [ ] All examples run as described
- [ ] Edge cases are addressed

#### Completeness
- [ ] All major features covered
- [ ] Common use cases addressed
- [ ] Gotchas and limitations noted

Output Format

After testing a focus area, produce a structured report:

# Documentation Test Report

**Focus Area:** [Description]
**Date:** [ISO Date]
**Tester:** doc-tester agent

## Summary

| Category | Passed | Failed | Warnings |
|----------|--------|--------|----------|
| Content Accuracy | X | Y | Z |
| Code Examples | X | Y | Z |
| CLI Commands | X | Y | Z |
| Links | X | Y | Z |

## Critical Issues

Issues that make documentation misleading or incorrect.

### Issue 1: [Brief Title]

**Location:** [Page URL and section]
**Type:** [Content/Example/CLI/Link]
**Severity:** Critical

**What the documentation says:**
> [Quote from documentation]

**What actually happens:**
> [Description of actual behavior]

**Evidence:**
[Code snippet, error message, or screenshot description]

**Recommended Action:**
- [ ] Update documentation to match behavior
- [ ] Fix implementation to match documentation
- [ ] Add clarifying note

---

## Warnings

Issues that may confuse readers but aren't strictly incorrect.

### Warning 1: [Brief Title]

**Location:** [Page URL and section]
**Issue:** [Description]
**Suggestion:** [How to improve]

---

## Passed Checks

[List of items that passed validation - brief summary]

## Recommendations

1. **Priority fixes:** [List critical issues to address first]
2. **Documentation gaps:** [Missing documentation to add]
3. **Product issues:** [Implementation bugs discovered]

Test Workspace Management

Workspace Location

Use .doc-tester-workspace/ in the repository root for all test projects. This directory is gitignored.

# Standard workspace structure
.doc-tester-workspace/
├── cli-tests/           # CLI command testing
├── integration-tests/   # Integration testing
├── example-tests/       # Code example testing
└── screenshots/         # Captured screenshots

Cleanup

After testing, clean up test projects:

# Remove test workspace contents
rm -rf .doc-tester-workspace/*

Keep the workspace directory but remove contents to avoid cluttering the repository.

Common Testing Scenarios

Testing a New Integration Doc

  1. Navigate to the integration page with Playwright
  2. Verify package names are correct
  3. Create a test AppHost project
  4. Add the hosting package using aspire add <package-name>
  5. Copy the basic usage example
  6. Build and run with aspire run
  7. Verify the resource appears in the dashboard
  8. If client integration exists, add using aspire add and test client registration

Testing CLI Documentation

  1. Navigate to the CLI reference page
  2. Copy each command example
  3. Run in a fresh directory
  4. Verify output matches documentation
  5. Test documented options and flags

Testing Getting Started Guide

  1. Start from a completely fresh environment (new directory)
  2. Follow every step exactly as written
  3. Do not use prior knowledge to fill gaps
  4. Document any place where you got stuck
  5. Verify final result matches what's promised

Using CLI Tools

Aspire CLI

Use for checking resource status:

aspire run                 # Start the app and print resource URLs
aspire ps --include-hidden # List running resources and URLs when using aspire start
aspire describe            # Inspect AppHost resources and endpoints

playwright-cli

Use for navigating and reading documentation:

playwright-cli open <url>          # Open a browser at a URL
playwright-cli goto <url>          # Navigate to a URL
playwright-cli snapshot            # Read page content
playwright-cli click <ref>         # Click an element from the snapshot
playwright-cli type "text"         # Type text into the active element
playwright-cli screenshot          # Capture a screenshot

Hex1b CLI Tools

The Hex1b CLI tool provides terminal automation for interacting with terminal sessions and capturing terminal output. This is particularly useful for:

  • Capturing terminal screenshots for documentation evidence
  • Recording terminal sessions for documentation

Installation

Install Hex1b.Tool if not already available:

dotnet tool install -g Hex1b.Tool

Refer to the hex1b skill for the full command reference.

Common Commands

dotnet hex1b terminal list                              # List active terminal sessions
dotnet hex1b terminal start -- bash                     # Start a new bash session
dotnet hex1b terminal start -- pwsh                     # Start a new PowerShell session
dotnet hex1b keys <id> --text "command"                 # Send text to terminal
dotnet hex1b keys <id> --key Enter                      # Send a keypress
dotnet hex1b assert <id> --text-present "..."           # Wait for specific output
dotnet hex1b capture screenshot <id> --format svg       # Capture terminal as SVG
dotnet hex1b capture screenshot <id> --format text      # Capture terminal text content
dotnet hex1b capture recording start <id> --output <file>.cast  # Start asciinema recording
dotnet hex1b capture recording stop <id>                # Stop asciinema recording
dotnet hex1b terminal stop <id>                         # Stop a terminal session

Asciinema Recordings

The aspire.dev documentation uses asciinema recordings (.cast files) to show terminal interactions. These provide a better user experience than static screenshots.

Existing recordings location: src/frontend/public/casts/

Examples of existing recordings:

  • aspire-version.cast - Shows aspire --version command
  • aspire-new.cast - Shows project creation
  • aspire-run.cast - Shows running an Aspire app
  • agent-init.cast - Shows agent init command

When testing CLI documentation, consider whether an asciinema recording would better demonstrate the command output than a static code block.

Reporting Guidelines

Issue Severity Levels

SeverityDescriptionExamples
CriticalDocumentation is wrong/misleadingIncorrect API signature, broken example
HighMajor functionality undocumentedMissing required configuration step
MediumMinor inaccuracy or unclearTypo in package name, unclear explanation
LowEnhancement suggestionCould add more examples, better formatting

Evidence Requirements

For each issue, provide:

  1. Exact quote from documentation
  2. Steps to reproduce the discrepancy
  3. Actual result observed
  4. Expected result based on documentation
  5. Screenshot or error message when applicable

Hand-off to doc-writer

When creating a task for doc-writer, include:

## Documentation Fix Required

**Page:** /path/to/page
**Section:** Section heading

**Current Content:**
> [Quoted text from docs]

**Problem:**
[Description of what's wrong]

**Suggested Fix:**
[What the documentation should say]

**Verification:**
[How to verify the fix is correct]

Common Issues Checklist

Based on patterns from PR feedback, actively look for these common documentation issues:

Writing Quality Issues

IssueWhat to Check
Grammatical errors"Now, that you have..." should be "Now that you have..."
Spelling errorsWatch for typos like "volumme", "dependenceies", "follwing"
Unused importsComponents imported but never used in the document
Casual languageInformal phrases like "treat yourself to a coffee"
Duplicate contentSimilar Asides or explanations appearing multiple times

Link Verification

IssueWhat to Check
Broken internal linksLinks pointing to non-existent pages
Outdated paths/get-started/setup-and-tooling/ should be /get-started/prerequisites/
Anchor linksLinks to #section-name where the section doesn't exist
Missing redirectsOld page paths that should redirect to new locations

Code Example Issues

IssueWhat to Check
Syntax errorsmain.app instead of main:app for Python uvicorn
Duplicate language identifierscsharp csharp instead of just csharp
Undefined variablesVariables used in code but not defined earlier
Wrong indentation styleAligned indentation instead of standard 4-space
Incorrect technical descriptionsCalling process.env a "method" (it's an object)
Deprecated APIsUsing deprecated APIs as primary examples
Insecure defaultsTrustServerCertificate=true without dev-only warnings

Component Issues

IssueWhat to Check
Mismatched Pivot/PivotSelectorPivot components missing correct key attribute
Card text overflowLinkCard descriptions too long for the UI
Incorrect health check linksLinks pointing to wrong technology's health check

Cross-Language Documentation

IssueWhat to Check
Inconsistent resource namesDifferent names used across C#/Python/JavaScript examples
Missing variable definitionsRemoving a section that defines variables used later
Wrong environment variable formatUsing : vs __ separator for different languages

Testing Code Examples

When testing code examples, verify:

  1. All imports/usings are present - Code should compile without adding missing imports
  2. Variable names match - The connection name in client code matches the resource name in AppHost
  3. Complete examples - Code blocks show runnable examples, not just fragments
  4. Correct package names - NuGet package names are spelled correctly
  5. Working links - Links to external resources (GitHub, NuGet) are valid

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.