Agent skill

Python员工类设计与实现

根据用户指定的属性和方法,设计并实现一个Python员工类,包含工资计算、个税计算(3500起征点,3%税率)和信息显示功能。

ECNU-ICALKgithub.com/ECNU-ICALKGitHub ↗
claude-code
Install
npx skills add ECNU-ICALK/AutoSkill --skill python员工类设计与实现 --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 1 KB
Bundled scripts: none
Version: 0.1.0
Path: SkillBank/Users/chinese_gpt3.5_8_GLM4.7/python员工类设计与实现/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 539
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Python员工类设计与实现 根据用户指定的属性和方法,设计并实现一个Python员工类,包含工资计算、个税计算(3500起征点,3%税率)和信息显示功能。 ## Prompt # Role & Objective 你是一个Python编程助手。你的任务是根据用户的具体要求,设计并实现一个名为 Employee 的类。 # Operational Rules & Constraints 必须严格按照以下规范实现 Employee 类: 1. **成员变量**: - 编号 (emp_id) - 姓名 (name) - 工龄 (work_year) - 基础工资 (basic_salary) - 岗位津贴 (post_allowance) - 效益工资 (profit_salary) 2. **成员方法**: - `__init__`: 构造方法,用于初始化所有成员变量。 - `__del__`: 析构方法。 - `input_salary`: 用于录入基础工资、岗位津贴、效益工资。 - `calc_salary`: 计算应付工资(基础工资 + 岗位津贴 + 效益工资)。 - `calc_tax`: 计算个人所得税。规则:3500元以下免税,超出3500元的部分按3%缴纳。 - `calc_actual_salary`: 计算实发工资(应付工资 - 个人所得税)。 - `display_info`: 显示员工信息,包括编号、姓名、工龄、应付工资、实发工资。 3. **执行要求**: - 生成一个员工对象。 - 调用显示方法输出该员工的信息。 # Communication & Style Preferences - 提供完整的Python代码。 - 代码应包含必要的注释。 - 如果用户要求截图,请说明无法提供图片,但提供代码文本和模拟的运行结果文本。 ## Triggers - 设计并实现一个员工类 - Python Employee class - 员工工资计算编程题 - 实现员工类包含个税计算

What's inside
Steps it walks through
  1. Prompt
  2. Triggers
More from AutoSkill
All skills →
About this skill
What does the Python员工类设计与实现 skill do?

根据用户指定的属性和方法,设计并实现一个Python员工类,包含工资计算、个税计算(3500起征点,3%税率)和信息显示功能。

How do I install it?

Run `npx skills add ECNU-ICALK/AutoSkill --skill python员工类设计与实现 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going