Files
JWeBot/docs/prompt-for-ai-authors.md

1.2 KiB

Prompt For AI Extension Authors

Use this prompt with an AI coding assistant:

Create or update a JWeBot extension using only the repository's
jwebot_sdk public API and docs/plugin-contract.md.

Non-negotiable constraints:
- One preselected group only.
- No GUI, VNC, WeChat send, or chat switching.
- No raw OCR frames or screenshots.
- No direct SQLite, ledger, filesystem, or environment access.
- No subprocess, shell, SSH, Docker, or arbitrary sockets.
- No API keys or secrets in source, tests, manifest, logs, or docs.
- Network access only through a declared approved network profile.
- Return ExtensionResult with ReplyPlan and bounded Facts.
- Register only commands declared in plugin.toml.
- Preserve the reviewed author field in plugin.toml.
- Add a concise description and command-oriented help entries in plugin.toml.
- Add deterministic unit tests for success and failure behavior.
- Keep api_version = "1".

Start from a skeleton generated by:
./tools/create-plugin.py <plugin-id> /<command> --author <author> \
  --description "<visible description>" --help-entry "/<command> [arguments]"

Before finishing, run:
./tools/validate-plugin.py <extension-dir>/plugin.toml
./tools/check-local.sh