Skip to content
Back to skills

Recipes

ASecurity

_Assign an existing skill to Tolokers an set its level._

  • 2 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added June 5, 2026
documentationpythonbashapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 21 files and shows the line behind each finding

Scanned June 5, 2026

npx -y skills add Toloka/docs --skill recipes --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Recipes?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Recipes
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/toloka-recipes/badge)](https://www.skillsdirectory.com/skills/toloka-recipes)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Assign skill to Toloker

_Assign an existing skill to Tolokers an set its level._

## Steps to follow

{% include [import](../_includes/recipes/import.md) %}

{% include [instantiate](../_includes/recipes/instantiate.md) %}

### 3. Assign skill to Toloker {#step-three}

[Find out](get-skills.md) the ID of the skill which you want to assign. Then assign the skill to the Toloker with the ID specified in the request.

```python
from decimal import Decimal

user_skill = toloka_client.[set_user_skill](*set_user_skill)(
                user_id='1ad097faba0eff85a04fe30bc04d53db',
                skill_id='11051', value=Decimal(50)
)
```

### 4. Print created skill information {#step-four}

The `set_user_skill()` request will return the [UserSkill](../reference/toloka.client.user_skill.UserSkill.md) class object. You can use its attributes to print the information you need.

```python
print(user_skill.id, user_skill.skill_id, user_skill.user_id, user_skill.value)
```

You should get an output with the ID of the skill-Toloker pair (this allows [removing skills from Tolokers](delete-user-skill.md) later), assigned skill ID, Toloker ID, and the skill level the Toloker received which looks like this.

```bash
54132692 12648 1ad097faba0eff85a04fe30bc04d53db 50
```

## Complete code: Create skill {#complete-code}

```python
import toloka.client as toloka
from decimal import Decimal

toloka_client = toloka.TolokaClient('PlaceYourRealApiKey_Here', 'PRODUCTION')

user_skill = toloka_client.set_user_skill(
                user_id='1ad097faba0eff85a04fe30bc04d53db',
                skill_id='12648', value=Decimal(50)
)
print(user_skill.id, user_skill.skill_id, user_skill.user_id, user_skill.value)
```

{% note tip "List of classes and methods used in this recipe" %}

- _[TolokaClient](../reference/toloka.client.TolokaClient.md) class_
- _[set_user_skill()](../reference/toloka.client.TolokaClient.set_user_skill.md) method_

{% endnote %}

## See also {#see-also}

- [{#T}](../../guide/concepts/overview.md)
- [{#T}](learn-basics.md)
- [{#T}](use-cases.md)
- [{#T}](get-skills.md)
- [Toloka-Kit: UserSkill class](../reference/toloka.client.user_skill.UserSkill.md)
- [Toloka API: Set skill](https://toloka.ai/docs/api/api-reference/#put-/user-skills)

[*TolokaClient]: [TolokaClient](../reference/toloka.client.TolokaClient.md) class
[*set_user_skill]: [set_user_skill()](../reference/toloka.client.TolokaClient.set_user_skill.md) method

Files in this skill

  • accept-responses.md2.3 KB
  • aggregate-responses.md4.3 KB
  • archive-pool.md1.8 KB
  • archive-project.md1.9 KB
  • assign-reward.md2.7 KB
  • assign-skill.md2.4 KB
  • ban-tolokers.md5.7 KB
  • change-pool-priority.md1.9 KB
  • change-task-overlap.md1.9 KB
  • clone-pool.md1.7 KB
  • close-pool.md1.7 KB
  • create-pool.md3.5 KB
  • create-project.md6.4 KB
  • create-skill.md2.3 KB
  • create-task-suite.md3.5 KB
  • delete-restriction.md1.6 KB
  • delete-user-skill.md1.6 KB
  • download-attachment.md1.8 KB
  • edit-project.md2.9 KB
  • edit-skill.md2.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in documentation →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.