skills/konecty-session/SKILL.md
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).
npx skillsauth add konecty/skills konecty-sessionInstall 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.
Opens an authenticated session with Konecty using OTP (one-time password) and persists the token so other skills and scripts can use it. Login is allowed only when the namespace has OTP configured (email and/or WhatsApp); if OTP is not enabled, this skill cannot be used to obtain a session.
KONECTY_TOKEN for automation or other skills and is willing to complete OTP (receive code, then paste it).authId), and persists it. Consider token validity (session expiration); when the token expires, the user must run this flow again.GET {host}/api/auth/login-options. Response: { passwordEnabled, emailOtpEnabled, whatsAppOtpEnabled }.emailOtpEnabled nor whatsAppOtpEnabled is true, inform the user: "This Konecty namespace does not have OTP login enabled. This skill cannot open a session here." Do not proceed with request-otp.KONECTY_URL) and either email or phone number (E.164, e.g. +5511999999999) for the user who will receive the code.POST {host}/api/auth/request-otp{ "email": "[email protected]" } or { "phoneNumber": "+5511999999999" } (exactly one).python scripts/login.py request-otp --host <url> --email <email>python scripts/login.py request-otp --host <url> --phone <E164>POST {host}/api/auth/verify-otp{ "email": "[email protected]", "otpCode": "123456" } or { "phoneNumber": "+5511999999999", "otpCode": "123456" }.{ success, authId, user } — same shape as password login; use authId as the session token.python scripts/login.py verify-otp --host <url> --email <email> --otp <code>--phone <E164> --otp <code>.KONECTY_TOKEN until it expires; when the API returns 401 or session errors, the user must run this OTP flow again to obtain a new token.KONECTY_URL=<host>, KONECTY_TOKEN=<authId>, optionally KONECTY_USER_ID=<user._id>. Stored in the same directory as credentials so all Konecty skills can load it (e.g. source or load from ~/.konecty/.env).@konecty/sdk and CLI; section [default] or [<host>] with host, userId, authId.Other skills should read KONECTY_URL and KONECTY_TOKEN from the environment (after loading ~/.konecty/.env when needed) and handle expired tokens (e.g. ask the user to run konecty-session again).
~/.konecty/.env or ~/.konecty/credentials; add ~/.konecty/ to .gitignore if storing repo-specific paths.authId), never the OTP code or password.python scripts/login.py --help, python scripts/login.py request-otp --help, python scripts/login.py verify-otp --help.data-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.
tools
Lists Konecty modules the current session has read access to, and retrieves fields and types for a specific module. Use when the user asks what modules or documents are available in Konecty, wants to know the fields/types of a module, needs to find the internal name of a module (e.g. "contatos", "clientes", "Oportunidade"), or wants to understand what data is accessible. Requires an active session from the konecty-session skill (KONECTY_URL and KONECTY_TOKEN in ~/.konecty/.env).