Crawler Summary

mastra-system-check answer-first brief

Comprehensive system check for Mastra AI agent projects. Validates configuration, agents, workflows, memory, tools, prompts, and security across 66 rules organized by priority. Use when setting up new projects, debugging issues, reviewing code, or preparing for production deployment. --- name: mastra-system-check description: > Comprehensive system check for Mastra AI agent projects. Validates configuration, agents, workflows, memory, tools, prompts, and security across 66 rules organized by priority. Use when setting up new projects, debugging issues, reviewing code, or preparing for production deployment. license: MIT metadata: author: stan x: "https://x.com/goldkey" version: "1.1.0" --- Mastra Capability contract not published. No trust telemetry is available yet. 10 GitHub stars reported by the source. Last updated 4/15/2026.

Freshness

Last checked 4/15/2026

Best For

mastra-system-check is best for for, agent workflows where OpenClaw compatibility matters.

Not Ideal For

Contract metadata is missing or unavailable for deterministic execution.

Evidence Sources Checked

editorial-content, GITHUB OPENCLEW, runtime-metrics, public facts pack

Claim this agent
Agent DossierGitHubSafety: 100/100

mastra-system-check

Comprehensive system check for Mastra AI agent projects. Validates configuration, agents, workflows, memory, tools, prompts, and security across 66 rules organized by priority. Use when setting up new projects, debugging issues, reviewing code, or preparing for production deployment. --- name: mastra-system-check description: > Comprehensive system check for Mastra AI agent projects. Validates configuration, agents, workflows, memory, tools, prompts, and security across 66 rules organized by priority. Use when setting up new projects, debugging issues, reviewing code, or preparing for production deployment. license: MIT metadata: author: stan x: "https://x.com/goldkey" version: "1.1.0" --- Mastra

OpenClawself-declared

Public facts

5

Change events

1

Artifacts

0

Freshness

Apr 15, 2026

Verifiededitorial-contentNo verified compatibility signals10 GitHub stars

Capability contract not published. No trust telemetry is available yet. 10 GitHub stars reported by the source. Last updated 4/15/2026.

10 GitHub starsTrust evidence available

Trust score

Unknown

Compatibility

OpenClaw

Freshness

Apr 15, 2026

Vendor

Goldk3y

Artifacts

0

Benchmarks

0

Last release

Unpublished

Executive Summary

Key links, install path, and a quick operational read before the deeper crawl record.

Verifiededitorial-content

Summary

Capability contract not published. No trust telemetry is available yet. 10 GitHub stars reported by the source. Last updated 4/15/2026.

Setup snapshot

git clone https://github.com/goldk3y/mastra-system-check.git
  1. 1

    Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.

  2. 2

    Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Evidence Ledger

Everything public we have scraped or crawled about this agent, grouped by evidence type with provenance.

Verifiededitorial-content
Vendor (1)

Vendor

Goldk3y

profilemedium
Observed Apr 15, 2026Source linkProvenance
Compatibility (1)

Protocol compatibility

OpenClaw

contractmedium
Observed Apr 15, 2026Source linkProvenance
Adoption (1)

Adoption signal

10 GitHub stars

profilemedium
Observed Apr 15, 2026Source linkProvenance
Security (1)

Handshake status

UNKNOWN

trustmedium
Observed unknownSource linkProvenance
Integration (1)

Crawlable docs

6 indexed pages on the official domain

search_documentmedium
Observed Apr 15, 2026Source linkProvenance

Release & Crawl Timeline

Merged public release, docs, artifact, benchmark, pricing, and trust refresh events.

Self-declaredagent-index

Artifacts Archive

Extracted files, examples, snippets, parameters, dependencies, permissions, and artifact metadata.

Self-declaredGITHUB OPENCLEW

Extracted files

0

Examples

6

Snippets

0

Languages

typescript

Parameters

Executable Examples

bash

grep "storage:" src/mastra/index.ts

bash

cat .env | grep -E "(OPENAI|ANTHROPIC|GOOGLE)_API_KEY"

bash

grep -r "model:" src/mastra/ | grep -v "provider/"

bash

grep -r "new Workflow" src/mastra/ -A 20 | grep "\.commit()"

bash

# Find the main Mastra instance
cat src/mastra/index.ts

bash

# Verify required packages
cat package.json | grep -E "@mastra|zod|@ai-sdk"

Docs & README

Full documentation captured from public sources, including the complete README when available.

Self-declaredGITHUB OPENCLEW

Docs source

GITHUB OPENCLEW

Editorial quality

ready

Comprehensive system check for Mastra AI agent projects. Validates configuration, agents, workflows, memory, tools, prompts, and security across 66 rules organized by priority. Use when setting up new projects, debugging issues, reviewing code, or preparing for production deployment. --- name: mastra-system-check description: > Comprehensive system check for Mastra AI agent projects. Validates configuration, agents, workflows, memory, tools, prompts, and security across 66 rules organized by priority. Use when setting up new projects, debugging issues, reviewing code, or preparing for production deployment. license: MIT metadata: author: stan x: "https://x.com/goldkey" version: "1.1.0" --- Mastra

Full README

name: mastra-system-check description: > Comprehensive system check for Mastra AI agent projects. Validates configuration, agents, workflows, memory, tools, prompts, and security across 66 rules organized by priority. Use when setting up new projects, debugging issues, reviewing code, or preparing for production deployment. license: MIT metadata: author: stan x: "https://x.com/goldkey" version: "1.1.0"

Mastra System Check

Validates Mastra AI agent projects with 66 checks across 10 categories. Finds configuration errors, missing best practices, and potential issues before they cause problems.


Trigger Keywords

Activate this skill when the user mentions:

| Category | Example Phrases | |----------|-----------------| | General Check | "check my mastra project", "mastra system check", "validate mastra", "review my mastra code" | | Setup Issues | "mastra not working", "agent won't start", "can't find mastra instance" | | Memory Issues | "memory not persisting", "conversation lost", "agent forgets context" | | Workflow Issues | "workflow stuck", "workflow not executing", "steps not running" | | Context Issues | "context not propagating", "requestcontext empty", "can't access user data" | | Deployment | "prepare for production", "production checklist", "deploy mastra" | | Debugging | "debug mastra", "troubleshoot agent", "why is my agent..." |


Quick Checks (Run First)

Before deep analysis, verify these 4 common issues that cause most failures:

1. Storage Configured?

grep "storage:" src/mastra/index.ts

If missing → Add storage: new LibSQLStore({ url: "file:./mastra.db" })

2. API Keys Set?

cat .env | grep -E "(OPENAI|ANTHROPIC|GOOGLE)_API_KEY"

If missing → Add the required API key for the model provider being used

3. Model Format Correct?

grep -r "model:" src/mastra/ | grep -v "provider/"

All models must use provider/model-name format (e.g., openai/gpt-4o)

4. Workflows Committed?

grep -r "new Workflow" src/mastra/ -A 20 | grep "\.commit()"

Every workflow chain must end with .commit()

If any quick check fails, fix it before proceeding with full analysis.


Execution Steps

When this skill activates, follow these steps IN ORDER:

Step 1: Locate Entry Point

# Find the main Mastra instance
cat src/mastra/index.ts

Verify: Named export mastra exists with proper configuration.

Step 2: Check Dependencies

# Verify required packages
cat package.json | grep -E "@mastra|zod|@ai-sdk"

Required: @mastra/core. Check Zod is v4+ for schema compatibility.

Step 3: Scan for Agents

grep -rn "new Agent" src/

For each agent found, check: id, model format, instructions, tools, memory.

Step 4: Scan for Workflows

grep -rn "new Workflow" src/

For each workflow, check: .commit() called, steps connected, schemas defined.

Step 5: Check Configuration Files

  • .env / .env.local → API keys present
  • tsconfig.json → Module ES2022+, moduleResolution bundler/node16

Step 6: Run Category Checks

Apply rules from AGENTS.md in this priority order:

  1. 🔴 CRITICAL (config-*) - Fix immediately
  2. 🟠 HIGH (agent-, workflow-, context-, prompt-) - Fix before deployment
  3. 🟡 MEDIUM (memory-, tool-, security-*) - Fix when possible
  4. 🟢 LOW (optimization-*) - Nice to have

Step 7: Report Findings

Present issues sorted by priority with specific file locations and fixes.


File Patterns to Check

| Pattern | Purpose | Priority | |---------|---------|----------| | src/mastra/index.ts | Main Mastra instance, storage, agents | CRITICAL | | src/mastra/agents/*.ts | Agent definitions | HIGH | | src/mastra/workflows/*.ts | Workflow definitions | HIGH | | src/mastra/tools/*.ts | Tool definitions | MEDIUM | | package.json | Dependencies, versions | CRITICAL | | tsconfig.json | TypeScript module config | CRITICAL | | .env / .env.local | API keys, secrets | CRITICAL | | src/**/middleware*.ts | RequestContext setup | HIGH |


Priority Legend

| Badge | Level | Meaning | Action | |-------|-------|---------|--------| | 🔴 | CRITICAL | System won't function | Fix immediately | | 🟠 | HIGH | Major functionality issues | Fix before deployment | | 🟡 | MEDIUM | Quality/maintainability | Fix when possible | | 🟢 | LOW | Performance/cost optimization | Nice to have |


Check Categories Summary

| Category | Rules | Priority | Key Checks | |----------|-------|----------|------------| | Configuration | 6 | 🔴 CRITICAL | Storage, env vars, TypeScript, entry point | | Agents | 6 | 🟠 HIGH | Model format, instructions, tools, memory | | Workflows | 6 | 🟠 HIGH | .commit(), schemas, connections, suspend | | Context | 8 | 🟠 HIGH | RequestContext typing, propagation, access | | Prompts | 10 | 🟠 HIGH | Token efficiency, structure, examples | | Memory | 6 | 🟡 MEDIUM | Storage, threads, vector stores | | Tools | 6 | 🟡 MEDIUM | Schemas, descriptions, error handling | | Observability | 6 | 🟡 MEDIUM* | Tracing, scorers, exporters | | Security | 6 | 🟡 MEDIUM | Auth, CORS, PII, secrets | | Optimization | 6 | 🟢 LOW | Model selection, caching, timeouts |

Total: 66 rules across 10 categories

*Observability checks are conditional - only apply if telemetry/evals are configured.


Output Format

For each issue found, report in this format:

### 🔴 CRITICAL Issues (count)

**[rule-id] Rule Name**
- **Location:** `file/path.ts:lineNumber`
- **Issue:** Clear description of what's wrong
- **Fix:**
  ```typescript
  // Corrected code example
  • Docs: https://mastra.ai/docs/relevant-section

---

## Example Output

```markdown
## Mastra System Check Results

**Project:** my-mastra-app
**Scanned:** 12 files
**Duration:** 2.3s

---

### 🔴 CRITICAL Issues (2)

**[config-storage-provider] Missing Storage Provider**
- **Location:** `src/mastra/index.ts:8`
- **Issue:** No storage configured - memory, workflows, and traces won't persist
- **Fix:**
  ```typescript
  import { LibSQLStore } from "@mastra/libsql";

  export const mastra = new Mastra({
    storage: new LibSQLStore({
      url: process.env.DATABASE_URL || "file:./mastra.db",
    }),
    agents: { myAgent },
  });
  • Docs: https://mastra.ai/docs/storage

[config-env-variables] Missing API Key

  • Location: .env
  • Issue: OPENAI_API_KEY not set but openai/gpt-4o model is used
  • Fix: Add to .env:
    OPENAI_API_KEY=sk-your-key-here
    

🟠 HIGH Issues (1)

[prompt-right-altitude] Under-specified Agent Instructions

  • Location: src/mastra/agents/assistant.ts:12
  • Issue: Agent has minimal instructions: "You are a helpful assistant"
  • Fix:
    instructions: `
      <role>
      You are a customer support agent for Acme Corp.
      </role>
    
      <capabilities>
      - Answer product questions using search_products tool
      - Check order status using order_lookup tool
      </capabilities>
    
      <guidelines>
      - Be concise and helpful
      - Escalate billing issues to human support
      </guidelines>
    `,
    

🟡 MEDIUM Issues (0)

No medium-priority issues found.


🟢 LOW Issues (1)

[optimization-model-selection] Expensive Model for Simple Task

  • Location: src/mastra/agents/classifier.ts:6
  • Issue: Using gpt-4o for classification - gpt-4o-mini would be more cost-effective
  • Fix: Change model to openai/gpt-4o-mini for simple classification tasks

✅ Summary

| Priority | Issues | |----------|--------| | 🔴 CRITICAL | 2 | | 🟠 HIGH | 1 | | 🟡 MEDIUM | 0 | | 🟢 LOW | 1 |

Passed: 62/66 checks

Next Steps:

  1. Fix CRITICAL issues immediately - system won't work without them
  2. Address HIGH issues before deployment
  3. Consider LOW optimizations to reduce costs

---

## Conditional Checks

Some rules only apply in specific situations:

### Observability Section (Conditional)
**Only check if** `telemetry` or `observability` is configured, or if evals/scorers are used.

```typescript
// If you see this in the codebase, run observability checks:
telemetry: { enabled: true, ... }
// or
evals: { scorers: [...] }

If NOT configured: Skip observability section entirely - it's optional.

Memory Checks (Conditional)

Only check if agents have memory configured.

Workflow Storage (Conditional)

Only check if workflows use suspend() for human-in-the-loop.


Scope Limitations

This skill does NOT:

  • ❌ Deploy projects or run the dev server
  • ❌ Make changes without user approval
  • ❌ Check runtime behavior (static analysis only)
  • ❌ Validate external API integrations
  • ❌ Test actual LLM responses
  • ❌ Run the project's test suite

This skill DOES:

  • ✅ Static code analysis
  • ✅ Configuration validation
  • ✅ Best practice review
  • ✅ Security pattern detection
  • ✅ Provide specific code fixes

Documentation Links

Include these when suggesting fixes:

| Topic | URL | |-------|-----| | Mastra Docs | https://mastra.ai/docs | | Storage Setup | https://mastra.ai/docs/storage | | Memory Guide | https://mastra.ai/docs/memory | | Workflows | https://mastra.ai/docs/workflows | | Agents | https://mastra.ai/docs/agents | | Tools | https://mastra.ai/docs/tools | | AI SDK | https://sdk.vercel.ai/docs |


Full Rules Reference

For complete details on all 66 rules with code examples and fixes, read AGENTS.md in this skill directory.


Common Fix Patterns

Missing Storage (Most Common)

import { LibSQLStore } from "@mastra/libsql";

export const mastra = new Mastra({
  storage: new LibSQLStore({
    url: process.env.DATABASE_URL || "file:./mastra.db",
  }),
  agents: { /* ... */ },
});

Wrong Model Format

// ❌ Wrong
model: "gpt-4o"

// ✅ Correct
model: "openai/gpt-4o"

Missing Workflow Commit

// ❌ Wrong
const workflow = new Workflow({ id: "my-flow" })
  .step("step1", { execute: async () => ({ done: true }) });

// ✅ Correct
const workflow = new Workflow({ id: "my-flow" })
  .step("step1", { execute: async () => ({ done: true }) })
  .commit();  // Required!

Memory Without Thread/Resource

// ❌ Wrong
await agent.generate("Hello");

// ✅ Correct
await agent.generate("Hello", {
  memory: {
    thread: `session-${sessionId}`,
    resource: `user-${userId}`,
  },
});

Version History

  • 1.1.0 - Enhanced triggering, quick checks, execution steps, example output
  • 1.0.0 - Initial release with 66 rules across 10 categories

Contract & API

Machine endpoints, protocol fit, contract coverage, invocation examples, and guardrails for agent-to-agent use.

MissingGITHUB OPENCLEW

Contract coverage

Status

missing

Auth

None

Streaming

No

Data region

Unspecified

Protocol support

OpenClaw: self-declared

Requires: none

Forbidden: none

Guardrails

Operational confidence: low

No positive guardrails captured.
Invocation examples
curl -s "https://xpersona.co/api/v1/agents/goldk3y-mastra-system-check/snapshot"
curl -s "https://xpersona.co/api/v1/agents/goldk3y-mastra-system-check/contract"
curl -s "https://xpersona.co/api/v1/agents/goldk3y-mastra-system-check/trust"

Reliability & Benchmarks

Trust and runtime signals, benchmark suites, failure patterns, and practical risk constraints.

Missingruntime-metrics

Trust signals

Handshake

UNKNOWN

Confidence

unknown

Attempts 30d

unknown

Fallback rate

unknown

Runtime metrics

Observed P50

unknown

Observed P95

unknown

Rate limit

unknown

Estimated cost

unknown

Do not use if

Contract metadata is missing or unavailable for deterministic execution.
No benchmark suites or observed failure patterns are available.

Media & Demo

Every public screenshot, visual asset, demo link, and owner-provided destination tied to this agent.

Missingno-media
No screenshots, media assets, or demo links are available.

Related Agents

Neighboring agents from the same protocol and source ecosystem for comparison and shortlist building.

Self-declaredprotocol-neighbors
GITHUB_REPOSactivepieces

Rank

70

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

Traction

No public download signal

Freshness

Updated 2d ago

OPENCLAW
GITHUB_REPOScherry-studio

Rank

70

AI productivity studio with smart chat, autonomous agents, and 300+ assistants. Unified access to frontier LLMs

Traction

No public download signal

Freshness

Updated 6d ago

MCPOPENCLAW
GITHUB_REPOSAionUi

Rank

70

Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!

Traction

No public download signal

Freshness

Updated 6d ago

MCPOPENCLAW
GITHUB_REPOSCopilotKit

Rank

70

The Frontend for Agents & Generative UI. React + Angular

Traction

No public download signal

Freshness

Updated 23d ago

OPENCLAW
Machine Appendix

Contract JSON

{
  "contractStatus": "missing",
  "authModes": [],
  "requires": [],
  "forbidden": [],
  "supportsMcp": false,
  "supportsA2a": false,
  "supportsStreaming": false,
  "inputSchemaRef": null,
  "outputSchemaRef": null,
  "dataRegion": null,
  "contractUpdatedAt": null,
  "sourceUpdatedAt": null,
  "freshnessSeconds": null
}

Invocation Guide

{
  "preferredApi": {
    "snapshotUrl": "https://xpersona.co/api/v1/agents/goldk3y-mastra-system-check/snapshot",
    "contractUrl": "https://xpersona.co/api/v1/agents/goldk3y-mastra-system-check/contract",
    "trustUrl": "https://xpersona.co/api/v1/agents/goldk3y-mastra-system-check/trust"
  },
  "curlExamples": [
    "curl -s \"https://xpersona.co/api/v1/agents/goldk3y-mastra-system-check/snapshot\"",
    "curl -s \"https://xpersona.co/api/v1/agents/goldk3y-mastra-system-check/contract\"",
    "curl -s \"https://xpersona.co/api/v1/agents/goldk3y-mastra-system-check/trust\""
  ],
  "jsonRequestTemplate": {
    "query": "summarize this repo",
    "constraints": {
      "maxLatencyMs": 2000,
      "protocolPreference": [
        "OPENCLEW"
      ]
    }
  },
  "jsonResponseTemplate": {
    "ok": true,
    "result": {
      "summary": "...",
      "confidence": 0.9
    },
    "meta": {
      "source": "GITHUB_OPENCLEW",
      "generatedAt": "2026-04-17T04:46:20.403Z"
    }
  },
  "retryPolicy": {
    "maxAttempts": 3,
    "backoffMs": [
      500,
      1500,
      3500
    ],
    "retryableConditions": [
      "HTTP_429",
      "HTTP_503",
      "NETWORK_TIMEOUT"
    ]
  }
}

Trust JSON

{
  "status": "unavailable",
  "handshakeStatus": "UNKNOWN",
  "verificationFreshnessHours": null,
  "reputationScore": null,
  "p95LatencyMs": null,
  "successRate30d": null,
  "fallbackRate": null,
  "attempts30d": null,
  "trustUpdatedAt": null,
  "trustConfidence": "unknown",
  "sourceUpdatedAt": null,
  "freshnessSeconds": null
}

Capability Matrix

{
  "rows": [
    {
      "key": "OPENCLEW",
      "type": "protocol",
      "support": "unknown",
      "confidenceSource": "profile",
      "notes": "Listed on profile"
    },
    {
      "key": "for",
      "type": "capability",
      "support": "supported",
      "confidenceSource": "profile",
      "notes": "Declared in agent profile metadata"
    },
    {
      "key": "agent",
      "type": "capability",
      "support": "supported",
      "confidenceSource": "profile",
      "notes": "Declared in agent profile metadata"
    }
  ],
  "flattenedTokens": "protocol:OPENCLEW|unknown|profile capability:for|supported|profile capability:agent|supported|profile"
}

Facts JSON

[
  {
    "factKey": "docs_crawl",
    "category": "integration",
    "label": "Crawlable docs",
    "value": "6 indexed pages on the official domain",
    "href": "https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar",
    "sourceUrl": "https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar",
    "sourceType": "search_document",
    "confidence": "medium",
    "observedAt": "2026-04-15T05:03:46.393Z",
    "isPublic": true
  },
  {
    "factKey": "vendor",
    "category": "vendor",
    "label": "Vendor",
    "value": "Goldk3y",
    "href": "https://github.com/goldk3y/mastra-system-check",
    "sourceUrl": "https://github.com/goldk3y/mastra-system-check",
    "sourceType": "profile",
    "confidence": "medium",
    "observedAt": "2026-04-15T03:17:35.369Z",
    "isPublic": true
  },
  {
    "factKey": "protocols",
    "category": "compatibility",
    "label": "Protocol compatibility",
    "value": "OpenClaw",
    "href": "https://xpersona.co/api/v1/agents/goldk3y-mastra-system-check/contract",
    "sourceUrl": "https://xpersona.co/api/v1/agents/goldk3y-mastra-system-check/contract",
    "sourceType": "contract",
    "confidence": "medium",
    "observedAt": "2026-04-15T03:17:35.369Z",
    "isPublic": true
  },
  {
    "factKey": "traction",
    "category": "adoption",
    "label": "Adoption signal",
    "value": "10 GitHub stars",
    "href": "https://github.com/goldk3y/mastra-system-check",
    "sourceUrl": "https://github.com/goldk3y/mastra-system-check",
    "sourceType": "profile",
    "confidence": "medium",
    "observedAt": "2026-04-15T03:17:35.369Z",
    "isPublic": true
  },
  {
    "factKey": "handshake_status",
    "category": "security",
    "label": "Handshake status",
    "value": "UNKNOWN",
    "href": "https://xpersona.co/api/v1/agents/goldk3y-mastra-system-check/trust",
    "sourceUrl": "https://xpersona.co/api/v1/agents/goldk3y-mastra-system-check/trust",
    "sourceType": "trust",
    "confidence": "medium",
    "observedAt": null,
    "isPublic": true
  }
]

Change Events JSON

[
  {
    "eventType": "docs_update",
    "title": "Docs refreshed: Sign in to GitHub · GitHub",
    "description": "Fresh crawlable documentation was indexed for the official domain.",
    "href": "https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar",
    "sourceUrl": "https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar",
    "sourceType": "search_document",
    "confidence": "medium",
    "observedAt": "2026-04-15T05:03:46.393Z",
    "isPublic": true
  }
]

Sponsored

Ads related to mastra-system-check and adjacent AI workflows.