skills/konecty-meta-read/SKILL.md
Read Konecty metadata: list documents, get document/list/view/access/pivot/hook definitions, inspect meta types. Use when the user wants to see what metadata exists, inspect a document schema, read access profiles, view hook code, or understand metadata structure. Requires admin credentials from konecty-session.
npx skillsauth add konecty/skills konecty-meta-readInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Read-only access to all Konecty metadata types via the admin API.
Requires admin credentials from konecty-session: KONECTY_URL and KONECTY_TOKEN in ~/.konecty/.env.
The authenticated user must have admin: true.
All endpoints require Authorization: <KONECTY_TOKEN> header. All are admin-only.
| Endpoint | Description |
|----------|-------------|
| GET /api/admin/meta | List all document/composite metas (summary) |
| GET /api/admin/meta/:document | List all meta objects for a document (summary) |
| GET /api/admin/meta/:document/:type/:name | Get full meta by type and name |
| GET /api/admin/meta/:document/hook/:hookName | Get hook code (JS) or JSON (validationData) |
python3 scripts/meta_read.py list
python3 scripts/meta_read.py list --format json
python3 scripts/meta_read.py get Contact
Returns summary of all metas: document, lists, views, access profiles, pivots, cards.
python3 scripts/meta_read.py get Contact --type list --name Default
python3 scripts/meta_read.py get Contact --type view --name Default
python3 scripts/meta_read.py get Contact --type access --name Corretor
python3 scripts/meta_read.py get Namespace --type namespace --name Namespace
python3 scripts/meta_read.py hook Contact scriptBeforeValidation
python3 scripts/meta_read.py hook Product validationData
python3 scripts/meta_read.py hook Contact validationScript
python3 scripts/meta_read.py hook Contact scriptAfterSave
python3 scripts/meta_read.py types Contact
Shows all meta types and their IDs grouped by type.
| Type | _id pattern | Example |
|------|--------------|---------|
| document | {Name} | Contact |
| composite | {Name} | Education |
| list | {Doc}:list:{Name} | Contact:list:Default |
| view | {Doc}:view:{Name} | Contact:view:Default |
| access | {Doc}:access:{Name} | Contact:access:Corretor |
| pivot | {Doc}:pivot:{Name} | Contact:pivot:Default |
| card | {Doc}:card:{Name} | Opportunity:card:Default |
| namespace | Namespace | Namespace |
See references/meta-schemas.md for full schema documentation with annotated examples for each type.
See scripts/meta_read.py. Stdlib only (urllib, json).
All subcommands accept:
--host — overrides KONECTY_URL--token — overrides KONECTY_TOKENdata-ai
Replace with description of the skill and when the agent should use it.
tools
Upload, list, and delete files in Konecty document fields via the file API. Use this skill whenever the user wants to attach a file to a Konecty record, upload a photo/image to a contact or product, add a PDF or document to an opportunity, send a curriculum to a candidate, manage gallery images for a development or promotion, or attach any binary file to any Konecty module field. Also triggers when the user says 'upload', 'anexar', 'enviar arquivo', 'adicionar imagem', 'attach file', or refers to file-type fields in any document. Automatically reads field constraints (accepted extensions, max size, max file count) from metadata before uploading to catch errors early. Requires an active konecty-session (KONECTY_URL and KONECTY_TOKEN in ~/.konecty/.env or ~/.konecty/credentials).
documentation
Updates records in any Konecty module via PUT /rest/data/:document. Enforces the mandatory pre-update fetch workflow: always fetch the current record first to obtain its _updatedAt (optimistic locking guard), then PUT with ids=[{_id, _updatedAt}] and data={changed fields}. Use when the user wants to update, edit, change, or modify any record in Konecty. Requires an active konecty-session. Use konecty-modules to discover field names and types before updating.
development
Opens a Konecty session via OTP login (request OTP, then verify OTP) and persists the access token in .env or ~/.konecty/credentials for use by other skills. Use when the user wants to log in to Konecty with OTP, store credentials, set up KONECTY_TOKEN, or establish a session so other Konecty skills can call the API. Only works when the namespace has OTP enabled (email or WhatsApp).