/nocobase-dev:nocobase-data-analysisfrom nocobase-dev
NocoBase 2 only; never use in a NocoBase 3 project. Query and analyze business data in NocoBase via MCP. Use when users want current counts, grouped breakdowns, owner/source distributions, or business summaries across collections, with main data source first and fallback discovery to other enabled data sources.
Ships in nocobase-dev. 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.
Read when SKILL.md points to them.
Use NocoBase MCP tools to locate the right collection, query business data safely, and produce reliable summaries or grouped analysis.
Auth required, stop and ask the user to refresh MCP authentication before continuing.main data source.main, inspect other enabled data sources.dataSource explicitly in every subsequent resource_* call.resource_query for counts and grouped analysis only after confirming the query parameter contract.resource_list plus manual counting when query results are suspicious or need cross-checking.Useful references:
references/analysis-patterns.md for common business analysis shapesreferences/metric-checklist.md for metric definition and scope checksreferences/entity-mapping.md for mapping business terms to collections and fieldsmain.main, call data_sources:list_enabled and inspect other enabled data sources one by one.main when main is one of them;collections:listMeta for a fast overview.collections:get with appends: ["fields"] when you need exact field names, relation targets, or enum options.references/entity-mapping.md as a reusable heuristic for common business nouns and likely field categories.Before using resource_query, verify the request shape matches the real backend contract:
measures[].aggregation, not aggregateorders[].order, not directionfield should usually be passed as a field path array such as ["id"] or ["owner", "nickname"]alias whenever the result will be referenced in output or havingCorrect examples:
{
"resource": "lead",
"dataSource": "main",
"measures": [
{ "aggregation": "count", "field": ["id"], "alias": "lead_count" }
]
}
{
"resource": "lead",
"dataSource": "main",
"dimensions": [
{ "field": ["status"], "alias": "status" }
],
"measures": [
{ "aggregation": "count", "field": ["id"], "alias": "lead_count" }
],
"orders": [
{ "field": ["status"], "alias": "status", "order": "asc" }
]
}
auth:check.main.resource_query with a single count(id) measure.Common grouped views:
For relation labels, use field paths such as:
["owner", "nickname"]["mainDepartment", "title"]Re-check with resource_list when:
When cross-checking:
resource_query.Report:
Classify the user request before querying:
overview for current totals and main distributionsdistribution for grouped counts by status, owner, source, team, or departmentfunnel for stage-based business progressiontrend for date or month-based change over timeranking for top owners, sources, accounts, or productsquality-check for missing values, null-heavy fields, suspicious statuses, or orphaned relationsUse references/analysis-patterns.md for the recommended query shapes for each pattern.
Before returning an answer, verify the metric scope:
Use references/metric-checklist.md when the user request is ambiguous or the metric may be interpreted in more than one way.
main; check main first, then search other enabled data sources.dataSource after the collection has been located.aggregate in query measures; the backend expects aggregation.direction in query orders; the backend expects order.36, 54, 80, or another plausible record ID, verify whether aggregation was actually applied.dimensions, measures, orders, and filter actually exist.resource_query uses aggregation and order.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub agents-store/claude-plugins --plugin nocobase-dev25 skills in this plugin
/api-referenceReference-only skill (loaded on demand) that maps the NocoBase v2 REST API surface — base URL, authentication, action-style endpoint convention, and pointers into the bundled OpenAPI 3.0.3 specification. Loaded by the model when it needs an exact endpoint path or schema; not auto-triggered./authUse when the user wants to authenticate to a NocoBase v2 instance, asks "how do I get a token for NocoBase", "how do I log in via API or CLI", "how do I connect an agent or MCP client", "why is my request returning 401 from NocoBase", or needs working curl/Node samples that send the bearer token. Covers the CLI path (`nb env add` / `nb env auth`), the upstream login flow (NB_USER + NB_PASSWORD → auth:signIn → token), the long-lived API Key path, OAuth through the IdP: OAuth plugin, and the separate Auth: OIDC SSO plugin./