nocobase-data-modeling
SKILL.md
Goal
Design and implement NocoBase data models through API calls.
Workflow
- Clarify modeling intent:
- Create/update/list/get collections
- Add/update/list fields
- Configure relations
- Ensure API authentication is ready by following
nocobase-api-callskill rules. - Fetch API spec for data modeling namespace only:
- Ask the agent to fetch Swagger using
nocobase-swagger-fetchforplugins%2Fdata-source-main.
- Ask the agent to fetch Swagger using
- Parse Swagger response to identify endpoint, method, and payload schema.
- Execute the request with
nocobase-api-call:- Ask the agent to call the target endpoint and payload through
nocobase-api-call.
- Ask the agent to call the target endpoint and payload through
- Verify results by querying the created/updated collection or fields.
- For complex schemas, prefer templates in
assets/collection-templates/.
Dependency Gate
- Required dependency skills:
nocobase-swagger-fetch,nocobase-api-call. - Never call another skill through direct script-path coupling.
- If required skills are missing, pause and ask user to install skills first (for example:
npx skills add nocobase/skills).
Mandatory Doc-Read Gate
- Do not construct API requests before fetching Swagger.
- Namespace is fixed to
plugins%2Fdata-source-mainfor this skill.
Resources
../nocobase-swagger-fetch/- Shared swagger retrieval skill../nocobase-api-call/- Shared API execution skillassets/collection-templates/- Reusable schema templates
Usage
# 1) Read available endpoints in fixed namespace
Fetch Swagger for namespace `plugins%2Fdata-source-main`.
# 2) Inspect create collection API
Extract from returned Swagger JSON: .paths["/collections:create"]
# 3) Create collection
Ask the agent to create collection `products` via `nocobase-api-call` on endpoint `/collections:create`.
# 4) Verify
Ask the agent to verify collection `products` via `nocobase-api-call` on endpoint `/collections:get?filterByTk=products`.
Weekly Installs
13
Repository
nocobase/skillsFirst Seen
13 days ago
Security Audits
Installed on
opencode13
gemini-cli13
github-copilot13
codex13
kimi-cli13
amp13