Complete toolkit for configuring and extending OpenCode: agent creation, custom slash commands, configuration management, plugin development, and SDK usage.
75
94%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Write a Node.js/TypeScript script that uses the OpenCode SDK client to:
Show the correct imports, client initialization, and API calls.
createOpencode or createOpencodeClient from @opencode-ai/sdkbaseUrlclient.session.create() to create a new session before sending any promptsclient.session.prompt with a parts array containing the text message to send the prompt.data from the response and print or log it to the consolecreateOpencode or createOpencodeClient from @opencode-ai/sdkcreateOpencode with hostname/port or createOpencodeClient with baseUrlclient.session.create() to create a new sessionclient.session.prompt with parts array containing text message.data from the response and prints/logs it@opencode-ai/plugin instead of @opencode-ai/sdkclient.session.prompt).data from the response