addlinebytype Skill

SkillFiles & storage

Adds 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.

Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.

addlinebytype SkillStart free

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_dictdict是-添加行的字典
file_pathstr是-文件路径
file_typestr否'.py'文件类型
output_pathstr否'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