agentleFS
ww-w-aiww-w-ai/bkit-claude-code/skills/bkend-data/SKILL.md

bkend-data

Skill605 starsChanged 3 months agoApache-2.0View on GitHub

bkend.ai database — CRUD, column types, filtering, sorting, relations, indexing. Triggers: bkend table, bkend CRUD, bkend column, bkend relation, bkend data

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    All Data CRUD tools require: organizationId, projectId, environmentId (from get_context).

    line 81
  2. Very specific:

    Use search_docs tool to access these guides:

    line 95
  3. Very specific:

    Use get_operation_schema to get any tool's input/output schema.

    line 102

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

bkend.ai Database Guide

Column Types (7)

TypeDescriptionExample
StringTextname, email
NumberNumericage, price
BooleanTrue/falseisActive
DateDate/timebirthDate
ArrayArraytags: ["a","b"]
ObjectNested objectaddress: {city, zip}
MixedAny typemetadata

Constraints

  • required: Field must have a value
  • unique: No duplicate values allowed
  • default: Default value when not provided

Auto System Fields

FieldTypeDescription
idStringAuto-generated unique ID
createdByStringCreator user ID
createdAtDateCreation timestamp
updatedAtDateLast update timestamp

Important: bkend uses id (NOT _id) in all API responses.

MCP Table Management Tools

ToolPurposeScope
backend_table_createCreate tabletable:create
backend_table_listList tablestable:read
backend_table_getGet table detail + schematable:read
backend_table_deleteDelete tabletable:delete
backend_field_manageAdd/modify/delete fieldstable:update
backend_index_manageManage indexestable:update
backend_schema_version_listSchema version historytable:read
backend_schema_version_getSchema version detailtable:read
backend_schema_version_applyApply schema version (rollback)table:update
backend_index_version_listIndex version historytable:read
backend_index_version_getIndex version detailtable:read

MCP Data CRUD Tools

ToolPurposeKey Parameters
backend_data_listList records (filter, sort, paginate)tableId, page?, limit?, sortBy?, sortDirection?, andFilters?, orFilters?
backend_data_getGet single recordtableId, recordId
backend_data_createCreate recordtableId, data: { field: value }
backend_data_updatePartial update recordtableId, recordId, data: { field: value }
backend_data_deleteDelete recordtableId, recordId

All Data CRUD tools require: organizationId, projectId, environmentId (from get_context).

Filter Operators

OperatorMeaningExample
$eqEqual{ "status": { "$eq": "active" } }
$neNot equal{ "role": { "$ne": "admin" } }
$gt / $gteGreater than / >={ "age": { "$gt": 18 } }
$lt / $lteLess than / <={ "price": { "$lt": 100 } }
$in / $ninIn / Not in array{ "tag": { "$in": ["a","b"] } }

MCP Guide Docs (via search_docs)

Use search_docs tool to access these guides:

Doc IDContent
4_howto_implement_data_crudCRUD implementation patterns
7_code_examples_dataCRUD + file upload code examples

Use get_operation_schema to get any tool's input/output schema.

REST Data API

MethodEndpointDescription
GET/v1/data/{table}List (filter, sort, page, limit)
POST/v1/data/{table}Create
GET/v1/data/{table}/{id}Get single
PATCH/v1/data/{table}/{id}Partial update
DELETE/v1/data/{table}/{id}Delete

Filtering

  • Text search: ?search=keyword
  • AND filter: ?filter[field1]=value1&filter[field2]=value2
  • Comparison operators: $eq, $ne, $gt, $gte, $lt, $lte, $in, $nin
  • Sort: ?sort=field:asc (or desc)
  • Pagination: ?page=1&limit=20 (default 20, max 100)

Relations & Joins

  • Configure table relationships
  • Join queries for related data retrieval

Index Management

  • Single/compound index creation
  • Manage via MCP backend_index_manage
  • Essential for query performance optimization

Official Documentation (Live Reference)

For the latest database documentation, use WebFetch:

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.