# Send Singleshot Prompt Testing to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "singleshot-prompt-testing",
    "name": "Singleshot Prompt Testing",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/vincentzhangz/singleshot-prompt-testing",
    "canonicalUrl": "https://clawhub.ai/vincentzhangz/singleshot-prompt-testing",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/singleshot-prompt-testing",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=singleshot-prompt-testing",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "QUICKSTART.md",
      "metadata.json",
      "README.md",
      "SKILL.md",
      "RELEASE_NOTES.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-07T17:22:31.273Z",
      "expiresAt": "2026-05-14T17:22:31.273Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
        "contentDisposition": "attachment; filename=\"afrexai-annual-report-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/singleshot-prompt-testing"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/singleshot-prompt-testing",
    "downloadUrl": "https://openagent3.xyz/downloads/singleshot-prompt-testing",
    "agentUrl": "https://openagent3.xyz/skills/singleshot-prompt-testing/agent",
    "manifestUrl": "https://openagent3.xyz/skills/singleshot-prompt-testing/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/singleshot-prompt-testing/agent.md"
  }
}
```
## Documentation

### Description

Prompt cost testing with single shot

### Installation

brew tap vincentzhangz/singleshot
brew install singleshot

Or: cargo install singleshot

### When to Use

Testing new prompts before openclaw implementation
Benchmarking prompt variations for token efficiency
Comparing model performance and costs
Validating prompt outputs before production

### Core Commands

Always use -d (detail) and -r (report) flags for efficiency analysis:

# Basic test with full metrics
singleshot chat -p "Your prompt" -P openai -d -r report.md

# Test with config file
singleshot chat -l config.md -d -r report.md

# Compare providers
singleshot chat -p "Test" -P openai -m gpt-4o-mini -d -r openai.md
singleshot chat -p "Test" -P anthropic -m claude-sonnet-4-20250514 -d -r anthropic.md

# Batch test variations
for config in *.md; do
  singleshot chat -l "$config" -d -r "report-${config%.md}.md"
done

### 1. Generate Baseline

singleshot chat -p "Your prompt" -P openai -d -r baseline.md
cat baseline.md

### 2. Optimize & Compare

# Create optimized version, test, and compare
cat > optimized.md << 'EOF'
---provider---
openai
---model---
gpt-4o-mini
---max_tokens---
200
---system---
Expert. Be concise.
---prompt---
Your optimized prompt
EOF

singleshot chat -l optimized.md -d -r optimized-report.md

# Compare metrics
echo "Baseline:" && grep -E "(Tokens|Cost)" baseline.md
echo "Optimized:" && grep -E "(Tokens|Cost)" optimized-report.md

### Report Metrics

Reports contain:

## Token Usage
- Input Tokens: 245
- Output Tokens: 180
- Total Tokens: 425

## Cost (estimated)
- Input Cost: $0.00003675
- Output Cost: $0.000108
- Total Cost: $0.00014475

## Timing
- Time to First Token: 0.45s
- Total Time: 1.23s

### Optimization Strategies

Test with cheaper models first:
singleshot chat -p "Test" -P openai -m gpt-4o-mini -d -r report.md



Reduce tokens:

Shorten system prompts
Use --max-tokens to limit output
Add "be concise" to system prompt



Test locally (free):
singleshot chat -p "Test" -P ollama -m llama3.2 -d -r report.md

### Example: Full Optimization

# Step 1: Baseline (verbose)
singleshot chat \\
  -p "How do I write a Rust function to add two numbers?" \\
  -s "You are an expert Rust programmer with 10 years experience" \\
  -P openai -d -r v1.md

# Step 2: Read metrics
cat v1.md
# Expected: ~130 input tokens, ~400 output tokens

# Step 3: Optimized version
singleshot chat \\
  -p "Rust function: add(a: i32, b: i32) -> i32" \\
  -s "Rust expert. Code only." \\
  -P openai --max-tokens 100 -d -r v2.md

# Step 4: Compare
echo "=== COMPARISON ==="
grep "Total Cost" v1.md v2.md
grep "Total Tokens" v1.md v2.md

### Quick Reference

# Test with full details
singleshot chat -p "prompt" -P openai -d -r report.md

# Extract metrics
grep -E "(Input|Output|Total)" report.md

# Compare reports
diff report1.md report2.md

# Vision test
singleshot chat -p "Describe" -i image.jpg -P openai -d -r report.md

# List models
singleshot models -P openai

# Test connection
singleshot ping -P openai

### Environment Variables

export OPENAI_API_KEY="sk-..."
export ANTHROPIC_API_KEY="sk-ant-..."
export OPENROUTER_API_KEY="sk-or-..."

### Best Practices

Always use -d for detailed token metrics
Always use -r to save reports
Always cat reports to analyze metrics
Test variations and compare costs
Set --max-tokens to control costs
Use gpt-4o-mini for testing (cheaper)

### Troubleshooting

No metrics: Ensure -d flag is used
No report file: Ensure -r flag is used
High costs: Switch to gpt-4o-mini or Ollama
Connection issues: Run singleshot ping -P <provider>
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: vincentzhangz
- Version: 0.1.0
## Source health
- Status: healthy
- Source download looks usable.
- Yavira can redirect you to the upstream package for this source.
- Health scope: source
- Reason: direct_download_ok
- Checked at: 2026-05-07T17:22:31.273Z
- Expires at: 2026-05-14T17:22:31.273Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/singleshot-prompt-testing)
- [Send to Agent page](https://openagent3.xyz/skills/singleshot-prompt-testing/agent)
- [JSON manifest](https://openagent3.xyz/skills/singleshot-prompt-testing/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/singleshot-prompt-testing/agent.md)
- [Download page](https://openagent3.xyz/downloads/singleshot-prompt-testing)