Skills Registration
Agent Buildingskills-registrationSkills Registration is an Agent Skill for agent building published in the bytedance/agentkit-samples repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Registers a local skill to the AgentKit platform by uploading it. Invoke when the user wants to publish, upload, or register a skill they have created.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/bytedance/agentkit-samples/blob/HEAD/skills/skills-registration/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/skills-registration, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
AgentKit Skill Registration
This skill registers a local skill directory to the AgentKit platform. It zips the directory, uploads it to TOS, and calls the CreateSkill API.
Usage
To register a skill, run the following command:
python3 scripts/skills_register.py <path_to_skill_directory>
Replace <path_to_skill_directory> with the path to the folder containing your SKILL.md.
Requirements
veadkpython package installed.- Environment variables:
VOLCENGINE_ACCESS_KEYVOLCENGINE_SECRET_KEYSKILL_SPACE_ID(required, comma-separated list of skill space IDs)AGENTKIT_TOOL_REGION(optional, defaults to cn-beijing)
Example
python3 scripts/skills_register.py ./my-new-skill
Error Handling
- IF the script raises the error
VOLCENGINE_ACCESS_KEY and VOLCENGINE_SECRET_KEY are not set in environment variables., inform the user that they need to provide theVOLCENGINE_ACCESS_KEYandVOLCENGINE_SECRET_KEYenvironment variable. Write it to the environment variable file in the workspace. If the file already exists, append it to the end. Ensure the environment variable format is correct, make the environment variable effective, and retry the task that just failed.