Passwordtools
DevOps & SecuritypasswordtoolsPasswordtools is an Agent Skill for devops & security published in the CoderWanFeng/python-office repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
生成指定长度的随机密码。当用户提到生成密码、随机密码、强密码、密码生成器时使用。
QUICK START
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.
Prompt to paste
Inspect the Agent Skill at https://github.com/CoderWanFeng/python-office/blob/HEAD/skills/tools/passwordtools/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/passwordtools, 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.
passwordtools Skill
生成一个指定长度的密码
功能描述
生成指定长度的随机密码。
所属分类
office/skills/tools/passwordtools/
调用方式
from office.skills.tools import passwordtools
pwd = passwordtools(len=12)
print(pwd)
参数说明
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
len | int | 否 | 8 | 密码长度 |
返回值
str:生成的密码
使用示例
from office.skills.tools import passwordtools
pwd = passwordtools(len=16)
print(f"生成的密码: {pwd}")
原始函数
office.api.tools.passwordtools