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, or debug ConfigurationError, AuthenticationError, or AuthorizationError from the SDK. Do not use this skill for creating models, vpops, protocols, output sets, or trials.From its SKILL.md
npx -y skills add novainsilico/jinko-skills --skill jinko-sdk-setupAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 4 stars4 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its file declares
Copied from the file, not written here
The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
4.4 KB, as published. Nobody here has run it
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
- Confirm the user has Python 3.11+.
- Install the Jinko SDK:
jinko-sdk. - Install dotenv support when needed.
- Ask the user to create an API key using
https://doc.jinko.ai/docs/api/if they do not already have one. - Ask the user to set
JINKO_API_KEYandJINKO_PROJECT_IDin their shell or local.envfile. - Point them to
assets/.env.exampleas the safe template. Do not ask them to paste secrets into chat. - Run or adapt
scripts/check_jinko_connection.pyto fail fast on configuration, authentication, authorization, or project-read-access issues. - If the check passes, report that the Jinkō connection is OK.
- When the user wants to browse the project after setup, recommend
client.search(...)as the default read-only exploration call before moving to a workflow-specific skill.
Required Configuration
JINKO_API_KEY: API key created in the Jinkō web interface.JINKO_PROJECT_ID: project identifier used by the SDK.
For alternate or on-premises environments, the SDK also supports:
JINKO_BASE_URL: API endpoint.JINKO_URL: application URL used to construct resource links.
Do not introduce alternate environments unless the user needs them. When they do, configure both values so SDK-generated links do not point to the public app.
Validation Script
Use the bundled script instead of writing ad hoc checks:
python skills/jinko-sdk-setup/scripts/check_jinko_connection.py
The script:
- Loads
.envwhenpython-dotenvis installed. - Redacts sensitive values when showing configuration.
- Requires both
JINKO_API_KEYandJINKO_PROJECT_ID. - Constructs
JinkoClient()from environment variables. - Calls
client.auth_check()to prove authentication. - Calls
client.search(limit=1, show_table=False, show_table_hint=False)to prove minimal read-only project-item access. - Prints minimal output on success.
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.
Troubleshooting
- For
ConfigurationError, check that.envor the shell environment contains both required variables. - For missing
JINKO_API_KEY, direct the user tohttps://doc.jinko.ai/docs/api/. - For
AuthenticationError, assume the API key is missing, expired, malformed, or copied incorrectly. - For
AuthorizationError, assume the API key is valid but does not have access to the requested project. - For other SDK request failures, check that
JINKO_PROJECT_IDis copied exactly and that the network can reach Jink - If the user uses
direnv, ask them to ensure.envrcloads.env, then rundirenv allow.