Use when you need the current user's identity or contact info: name, job title, employee number, email, phone, or department.
80
100%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
High
Do not use without reviewing
Retrieve the current session user's profile via get_user_info.
from sdk.tool import tool
result = tool.call("get_user_info", {})
print(result.content)Example output:
User: Zhang San. Position: Engineering Lead. Work Number: 10086. Email: zhang@example.com. Phone: 138****0000 (desensitized). Departments: Engineering, Architecture.For structured access, use result.data:
| Field | Type | Notes |
|---|---|---|
id | string | User ID |
nickname | string | Display name |
real_name | string | Legal name |
work_number | string | Employee number (may be empty) |
position | string | Job title |
email | string | Email address |
phone | string | Phone, desensitized by default (e.g. 138****0000) |
departments | array | Each item: {id, name, path} |
Phone is masked by default to protect privacy. To get the full number, you must first ask for explicit user consent.
Step 1 — Ask for consent:
from sdk.tool import tool
result = tool.call("ask_user", {
"questions": '<question type="confirm">I need your full phone number to proceed. Do you allow me to access it?</question>'
})
print(result.content)Step 2 — If the user consents, request the full number:
result = tool.call("get_user_info", {
"include_sensitive_fields": ["phone"]
})
print(result.content)If the user declines: use the desensitized value or drop the requirement. Do not ask again.
include_sensitive_fields without prior explicit user approval in the same conversation.41d7ef4
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.