addlinebytype Skill
SkillFiles & storageAdds code lines to a specified file based on file type. Use when the user mentions batch-adding code, inserting lines by type, or automatically adding imports.
Use addlinebytype Skill in Claude, ChatGPT or Ahel Desktop
Free. Sign in, add addlinebytype Skill and connect your AI. About a minute.
Also: Claude Code · Cursor · Codex
Then ask your AI: use the addlinebytype Skill skill
Details
Instructions available. Your AI can read the instructions. Execution depends on the setup they require.
Account requirements not reviewed. Check the skill instructions before use; ahel provides instructions and does not run this skill.
No other account needed.
Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.
What this skill tells your AI
The instructions your AI receives, as published by coderwanfeng/python-office in skills/file/add_line_by_type/SKILL.md and read by ahel’s review.
根据类型添加行
功能描述
根据文件类型,向指定文件中添加对应的代码行。
⚠️ TODO: 该功能为历史功能,行为待测试。
所属分类
office/skills/file/add_line_by_type/
调用方式
from skills.file import add_line_by_type
add_line_by_type(
add_line_dict={'import': 'import os'},
file_path='./test.py',
file_type='.py',
output_path='add_line'
)
参数说明
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
add_line_dict | dict | 是 | - | 添加行的字典 |
file_path | str | 是 | - | 文件路径 |
file_type | str | 否 | '.py' | 文件类型 |
output_path | str | 否 | 'add_line' | 输出路径 |
返回值
None
原始函数
office.api.file.add_line_by_type
Signals
- GitHub stars
- 1k
- Forks
- 303
- Last commit
- Aug 2026
Advanced
- Item type
- skill
- Key
add-line-by-type- Source
- github.com/coderwanfeng/python-office
github.com/coderwanfeng/python-office
Related picks
Skill · wshobson
The pick for Pythonpython-pro
Skill · jeffallan
The pick for Pythonpptx
Skill · anthropics
More in Files & storagedocx
Skill · anthropics
More in Files & storageresearch
Skill · mattpocock
More in Files & storageto-tickets
Skill · mattpocock
More in Files & storage