一键导入
tasks-py
Create and maintain tasks.py task runner files. Use when user wants to add project automation, create a tasks.py file, add tasks, or mentions "tasks.py".
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create and maintain tasks.py task runner files. Use when user wants to add project automation, create a tasks.py file, add tasks, or mentions "tasks.py".
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Create GitHub releases with release notes using gh CLI. Use when publishing a new release, generating changelogs, or creating release notes from commits.
Capture and save the current AI chat session as a markdown transcript file. Use when the user asks to "save transcript", "capture session", "write transcript.md", or wants to export the current conversation for review. Supports Claude Code and GitHub Copilot (CLI + VS Code Chat) on Linux, WSL, and Windows.
Access Jira tickets offline using zaira CLI. Use when user needs to export, report, or refresh Jira tickets, or mentions "jira", "zaira", or ticket keys like "FOO-123".
Code review a pull request or branch diff. Use when user says /vp-code-review, asks to review a PR, review changes, or review code.
Spec-driven design workflow keeping plans and requirements in a `specs/` directory. Never activates automatically — only engages after explicit `/mspec` invocation. Also handles handovers: when the user requests one, update `plan.md` with current status and commit it.
Download and install tools from GitHub releases, URLs, or S3. Use when user needs to download binaries, install CLI tools, create tool recipes, or set up Java JAR applications.
| name | tasks-py |
| description | Create and maintain tasks.py task runner files. Use when user wants to add project automation, create a tasks.py file, add tasks, or mentions "tasks.py". |
A zero-dependency Python task runner using do_ prefixed functions.
Minimal (zero dependencies, self-contained): Copy tasks.py to the project root.
Maximal (argparse integration, task modules, task-by-index): Use scaffer-templates tasks.py
Use minimal for standard tasks (check, format, test). Use maximal for project-specific tasks or if you need argparse arguments.
Add new tasks by creating do_<name> functions:
def do_build(args) -> None:
"""Build the project"""
c("python -m build")
def do_publish(args) -> None:
"""Publish package to PyPI"""
shutil.rmtree("dist", ignore_errors=True)
c("python -m build")
c("twine upload dist/*")
def do_test(args) -> None:
"""Run tests in test directory"""
os.chdir("test")
c("pytest")
def do_frontend(args) -> None:
"""Build frontend"""
c_dir("npm run build", "frontend")
def do_greet(args) -> None:
"""Greet someone: greet <name>"""
name = args[0] if args else "World"
print(f"Hello, {name}!")
python tasks.py # Show available tasks
python tasks.py check # Run the check task
python tasks.py test -h # Show help for test task
| Function | Purpose |
|---|---|
c(cmd) | Run command, fail on error |
c_ignore(cmd) | Run command, ignore errors |
c_dir(cmd, dir) | Run command in directory |
c_spawn(cmd, cwd) | Run command in background |
copy_files(src, dest) | Copy files to destinations |
c() for commands that must succeedc_ignore() for optional/cleanup commands