Agent Skillsopenclaw/openclaw › discord-e2e

discord-e2e

GitHub

用于 Discord 端到端测试的 Skill,支持通过 API、QA Lab 或手动客户端验证机器人行为、消息交互及 OpenClaw 模型调用。

.agents/skills/discord-e2e/SKILL.md openclaw/openclaw

Trigger Scenarios

需要验证 Discord 机器人功能 执行端到端集成测试 检查凭证和网关状态

Install

npx skills add openclaw/openclaw --skill discord-e2e -g -y
More Options

Non-standard path

npx skills add https://github.com/openclaw/openclaw/tree/main/.agents/skills/discord-e2e -g -y

Use without installing

npx skills use openclaw/openclaw@discord-e2e

指定 Agent (Claude Code)

npx skills add openclaw/openclaw --skill discord-e2e -a claude-code -g -y

安装 repo 全部 skill

npx skills add openclaw/openclaw --all -g -y

预览 repo 内 skill

npx skills add openclaw/openclaw --list

SKILL.md

Frontmatter
{
    "name": "discord-e2e",
    "description": "Test Discord with Convex-leased QA bots: check credentials without a Gateway, exercise owned messages, or prove OpenClaw replies, files, threads, reactions, streaming, and typing. Distinguish API and Gateway evidence from manual user interactions."
}

Discord E2E

Choose the smallest boundary that proves the requested behavior:

Goal Entry point What it proves
Check the shared bot pair and channel Read-only command below Bot identities, pinned SUT, guild text channel, and history access
Exercise bot-authored mutations Existing channelE2e lifecycle Owned messages, reactions, files, threads, and cleanup
Prove OpenClaw behavior Existing QA Lab flow Real Discord events, an isolated SUT Gateway, and the selected model lane
Prove human interactions or rendering Authorized manual Discord client Actual user action or inspected client capture

The API probe starts no Gateway, event recorder, or model. QA Lab remains the owner for product E2E: it controls its lease, temporary Gateway, provider, cancellation, and cleanup. Neither path changes app permissions or provisions credentials.

1. Choose the evidence

Read feature recipes for the changed behavior. Native fixture calls prove Discord API operations, not that a model invoked a tool. A SUT round trip additionally proves Gateway ingress and a stored public reply. Model-tool claims also require the tool trace and provider request evidence.

Human slash commands, component clicks, modals, ephemeral interactions, and human-to-bot DMs need an authorized manual client. A bot posting /status sends text, not a slash interaction. Use official bot tokens from the lease only. Discord prohibits user-token/self-bot automation; Slack's user OAuth route has no equivalent here.

2. Prepare and check the current lease

Use the dependency-ready OpenClaw checkout under test. The setup prerequisite is an existing authenticated Convex CLI with access to the published QA broker. The existing shared lease helper discovers the repository's broker binding and CI credential in memory; you do not need to copy bot tokens, guild IDs, or broker secrets. If authentication is absent, have the operator run convex login (or the already cached bunx --no-install convex login) once. Do not install a CLI or log in on the operator's behalf. Network/permission errors are not evidence that another login is needed.

For a fast check without QA Lab:

node .agents/skills/discord-e2e/scripts/bot-readiness.mjs

The check is read-only in Discord, but it acquires, renews, and releases a Convex lease. It creates no Discord objects and has no mutation mode. Read bot API readiness for the payload, permission limits, private result, and failure handling.

This probe does not verify Gateway intents, event delivery, model behavior, or all native fixture permissions. For an OpenClaw claim, continue with QA Lab:

pnpm openclaw qa discord --list-scenarios
pnpm openclaw qa discord --doctor \
  --output-dir .artifacts/qa-e2e/discord-doctor

Require a passing QA Lab doctor for this lane. It sends no fixture messages; it checks the leased identities, guild text channel, effective permissions, driver Gateway intents, and connected SUT Gateway. Every scenario repeats readiness on its own lease; a released doctor's result never qualifies a later run.

--doctor and --scenario-file default to Convex, CI role, and mock-openai. Existing explicit credential/provider flags still work; ordinary curated qa discord defaults remain unchanged. Preprovisioned private broker environment variables are an alternative to discovery, not a prerequisite.

3. Run one scoped proof

For a native lifecycle plus real Gateway reply:

pnpm openclaw qa discord \
  --scenario-file qa/scenarios/channels/discord-e2e-lifecycle.yaml \
  --output-dir .artifacts/qa-e2e/discord-lifecycle

For a changed feature, adapt that YAML using feature recipes. --scenario-file is repeatable and uses the existing QA flow schema. Set retryCount: 0 for native write scenarios. Use a new output directory for each proof. These examples are opt-in, not additions to the curated default suite.

Read runtime and recovery when changing config, restarting the SUT, choosing a real provider, diagnosing cancellation, or reconciling failed cleanup.

4. Judge and report

For the API probe, require status: ready and leaseReleased: true. An empty history list is inconclusive (exit 2): it can mean an empty channel or missing Read Message History permission. Use QA Lab doctor to distinguish those cases; do not call either one a proven permission failure. Report a ready result as bot identity and observed read-access proof, not mutation or Gateway E2E. Private result.json contains leased identities and check statuses, not tokens or history.

For QA Lab, inspect qa-suite-summary.json, qa-suite-report.md, the Gateway/provider artifacts, and each private discord-e2e-*/events.ndjson under the output directory. Join native receipts to recorder rows by message ID; use actor: sut, channel, sequence, and trigger correlation for SUT claims. A marker alone does not prove edits, reactions, typing, deletion, formatting, or a model tool call. Event logs are not visual proof; visual claims need an actual Discord client screenshot.

Completion requires the requested evidence and successful owned cleanup after Gateway stop, before lease release. Existing permissions decide whether owned threads are deleted or archived; report the recorded disposition, never call archival deletion. Preserve private evidence on failure. Report the sanitized command, exact revision, claim, relevant evidence, manual-only gaps, and cleanup outcome. Redact identities, unrelated content, private paths, and credentials before sharing artifacts.

Version History

  • 8e18591 Current 2026-09-23 04:21

Same Skill Collection

.agents/skills/agent-transcript/SKILL.md
.agents/skills/auto-qa/SKILL.md
.agents/skills/autoreview/SKILL.md
.agents/skills/channel-message-flows/SKILL.md
.agents/skills/claw-score/SKILL.md
.agents/skills/clawdtributor/SKILL.md
.agents/skills/clawsweeper/SKILL.md
.agents/skills/control-ui-e2e/SKILL.md
.agents/skills/crabbox/SKILL.md
.agents/skills/deslop/SKILL.md
.agents/skills/discord-clawd/SKILL.md
.agents/skills/discord-user-post/SKILL.md
.agents/skills/discrawl/SKILL.md
.agents/skills/gitcrawl/SKILL.md
.agents/skills/graincrawl/SKILL.md
.agents/skills/notcrawl/SKILL.md
.agents/skills/openclaw-changelog-update/SKILL.md
.agents/skills/openclaw-ci-limits/SKILL.md
.agents/skills/openclaw-debugging/SKILL.md
.agents/skills/openclaw-docker-e2e-authoring/SKILL.md
.agents/skills/openclaw-ghsa-maintainer/SKILL.md
.agents/skills/openclaw-live-updater/SKILL.md
.agents/skills/openclaw-parallels-smoke/SKILL.md
.agents/skills/openclaw-pr-maintainer/SKILL.md
.agents/skills/openclaw-qa-testing/SKILL.md
.agents/skills/openclaw-refactor-docs/SKILL.md
.agents/skills/openclaw-release-validation/SKILL.md
.agents/skills/openclaw-repair-sweep/SKILL.md
.agents/skills/openclaw-secret-scanning-maintainer/SKILL.md
.agents/skills/openclaw-test-heap-leaks/SKILL.md
.agents/skills/openclaw-test-performance/SKILL.md
.agents/skills/openclaw-testing/SKILL.md
.agents/skills/openclaw-update/SKILL.md
.agents/skills/parallels-discord-roundtrip/SKILL.md
.agents/skills/proof-video/SKILL.md
.agents/skills/prototype-openclaw-tui/SKILL.md
.agents/skills/release-openclaw-announcement/SKILL.md
.agents/skills/release-openclaw-ci/SKILL.md
.agents/skills/release-openclaw-mac/SKILL.md
.agents/skills/release-openclaw-maintainer/SKILL.md
.agents/skills/release-openclaw-nightly/SKILL.md
.agents/skills/release-openclaw-plugin-testing/SKILL.md
.agents/skills/security-triage/SKILL.md
.agents/skills/slack-e2e/SKILL.md
.agents/skills/slacrawl/SKILL.md
.agents/skills/tag-duplicate-prs-issues/SKILL.md
.agents/skills/technical-documentation/SKILL.md
.agents/skills/telegram-crabbox-e2e-proof/SKILL.md
.agents/skills/telegram-e2e-userbot/SKILL.md

Metadata

Files
0
Version
8e18591
Hash
ce18b1c5
Indexed
2026-09-23 04:21

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-23 09:12
浙ICP备14020137号-1