/volcano:volcano-logsfrom volcano
Use for Volcano project logs, retained log search, log pagination, activity buckets, structured log filters, and server-side log readers using project access tokens.
Ships in volcano. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this skill when application or operator code reads retained project logs or
activity counts through an SDK. Pair it with volcano-sdk and
volcano-platform.
CLI log commands for one deployed function belong to volcano-functions or
volcano-durable. This skill covers the SDK project-log facade.
Use the project's language:
| Project signal | SDK behavior |
|---|---|
package.json, .ts, .js | JavaScript/TypeScript result envelopes |
pyproject.toml, requirements.txt, .py | Python values and typed exceptions |
Gemfile, .gemspec, .rb | Ruby values and typed exceptions |
Logs require a platform token or project access token. A read_only project
access token is sufficient. Keep it in server code. End-user sessions, anon
keys, and service keys do not grant project log access.
import { VolcanoClient } from '@volcano.dev/sdk';
const client = new VolcanoClient({
anonKey: process.env.VOLCANO_ANON_KEY,
apiUrl: process.env.VOLCANO_API_URL,
accessToken: process.env.VOLCANO_PROJECT_ACCESS_TOKEN,
});
Python uses VolcanoClient(anon_key=..., access_token=...). Ruby uses
Volcano::Client.new(anon_key: ..., access_token: ...). Supply the same project
access token and API URL in each language.
const request = {
resource: { type: 'function' as const },
q: 'level:(warn OR error) body:checkout_failed',
limit: 100,
};
const { data: page, error } = await client.logs.search(projectId, request);
if (error) throw error;
if (!page) throw new Error('Log search returned no page');
for (const event of page.data) console.log(event.timestamp, event.body);
request = {
"resource": {"type": "function"},
"q": "level:(warn OR error) body:checkout_failed",
"limit": 100,
}
page = client.logs.search(project_id, request)
for event in page.data:
print(event["timestamp"], event["body"])
request = {
resource: { type: "function" },
q: "level:(warn OR error) body:checkout_failed",
limit: 100
}
page = client.logs.search(project_id, request)
page.data.each { |event| puts [event["timestamp"], event["body"]] }
Python and Ruby raise typed SDK exceptions on request or response failures. Use
resource.ids to select resources. Use RFC3339 start_time and end_time for
a bounded range. Log bodies can be JSON values, not only strings.
if (page.has_more && page.next_cursor) {
const { data: next, error } = await client.logs.search(projectId, {
...request,
cursor: page.next_cursor,
});
if (error) throw error;
if (!next) throw new Error('Log search returned no page');
}
Keep the resource selector, query, and time bounds unchanged when continuing a search. Treat the cursor as opaque.
const { data: activity, error } = await client.logs.activity(projectId, {
resource: request.resource,
q: request.q,
bucket_count: 24,
});
if (error) throw error;
if (!activity) throw new Error('Log activity returned no data');
console.log(activity.total, activity.data);
Activity groups counts by level, region, and resource ID. Logs arrive asynchronously, so use bounded polling when a check waits for a new event.
body is a string.read_only project token.next_cursor when present.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub kong/volcano-agentic-plugins --plugin volcano18 skills in this plugin
/install-volcanoInstall, upgrade, or set up the Volcano CLI. Use this whenever a task needs the volcano CLI and `which volcano` hasn't been confirmed yet, even if the user never says "install" (e.g. "build me a todo API using volcano")./volcano-authUse for Volcano authentication and identity work including user accounts, email or password sign-up and sign-in, OAuth, sessions, anonymous users, password recovery, and private or per-user data./volcano-databaseUse whenever a Volcano app stores or persists data, including CRUD, records, per-user data, migrations, RLS, todos, chat messages, polls, analytics, counters, click tracking, CMS content, feature flags, and leaderboards.