jinko-sdk-setup
Authenticate and configure access to a Jinkō project via the jinko-sdk. Use this skill whenever the user wants to connect to Jinkō, install the SDK, set up credentials or a .env file, verify API access, fail-fast check that a JINKO_API_KEY and JINKO_PROJECT_ID work, tell a project key from an organization key, choose between JinkoClient and JinkoOrgClient, or debug ConfigurationError, AuthenticationError, or AuthorizationError from the SDK. Do not use this skill for creating models, vpops, protocols, output sets, or trials.
How do I install this agent skill?
npx skills add https://github.com/novainsilico/jinko-skills --skill jinko-sdk-setupIs this agent skill safe to install?
- Gen Agent Trust Hubpass
This skill is used for the setup and authentication of the Jinkō Python SDK. It follows security best practices by providing a template for local environment variables to manage secrets and specifically warns users about potential dependency confusion attacks regarding package naming.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
What does this agent skill do?
Jinkō SDK Setup
Use this skill for SDK setup and credential checks only. Keep the user focused on proving that Python can authenticate against Jinkō and read one project item list before moving to model, vpop, protocol, output-set, or trial workflows.
BE CAREFUL: the right package is jinko-sdk that export a jinko module. jinko is a different package unrelated to the Jinko SDK.
Workflow
SDK VERSION PREREQUISITE: Run the check below. It ships with the SDK and verifies the installed SDK against every neighboring SDK-dependent skill before API access.
Run the deterministic check and follow its success or error message:
python -m jinko.cli.check_jinko_connection
The script:
- Loads
.envwhenpython-dotenvis installed. - Redacts sensitive values when showing configuration.
- Requires
JINKO_API_KEY, which holds either a project key or an organization key. - Without
JINKO_PROJECT_ID, lists the projects visible to the key withJinkoOrgClient().list_projects(). This list does not show the key scope, so the script does not report the key type. - With
JINKO_PROJECT_ID, constructsJinkoClient(), callsclient.auth_check(), thenclient.search(limit=1, show_table=False, show_table_hint=False)to prove minimal read-only project-item access. - Prints minimal output on success, including the key type when
JINKO_PROJECT_IDis set.
Use --show-config only when debugging local setup; it prints presence and redacted values, never the full API key.
After Validation
Once the connection check passes, prefer client.search(...) for project exploration because it gives the user an immediate view across project items.
Use a minimal example like:
from jinko import JinkoClient
client = JinkoClient()
client.search(limit=20, columns="compact")
Use search() when the user wants to:
- browse what exists in the configured project
- find an item by name or free text
- orient themselves before choosing a model, protocol, vpop, or trial workflow
The setup script uses a one-item, non-rendered search() only as its project-read check after authentication. Use a larger interactive search() only for exploration after validation succeeds.
Choosing a client
Both clients accept a project key and an organization key, so choose by task. Use JinkoClient() for work in the project that JINKO_PROJECT_ID names. Use JinkoOrgClient when JINKO_PROJECT_ID is unset or the task spans several projects. JinkoOrgClient reads JINKO_API_KEY and JINKO_BASE_URL only:
from jinko import JinkoOrgClient
org = JinkoOrgClient()
for project in org.list_projects():
print(project.id, project.name)
client = org.project(project.id) # a JinkoClient for that project
list_projects() lists the projects visible to the key owner and does not show the key scope: a project key sees the same list but reaches only its own project. A project outside the key scope raises AuthenticationError on the first request of its client, so a script that loops over the list catches that error and skips the project.
Troubleshooting
Run the check again and act on its deterministic diagnostic. Do not replace it with ad hoc checks or ask the user to share secrets.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/novainsilico/jinko-skills/jinko-sdk-setup">View jinko-sdk-setup on skillZs</a>