taskfile-automation by seabbs/claude-code-config
npx skills add https://github.com/seabbs/claude-code-config --skill taskfile-automation当处理使用 Task 的项目时,使用此技能,以便为开发工作流提供易于发现的自化命令。
重要提示:当存在 Taskfile 时,始终优先使用 task 命令,而不是直接的 shell/语言命令。
Task 提供:
task --list 显示所有可用任务task dev 结合了测试和文档生成)# 列出所有带有描述的可用任务
task --list
# 显示常见工作流和使用模式
task help
# 获取特定任务的详细帮助
task <taskname> --help
当进入一个带有 Taskfile 的新项目时,始终从发现开始。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
项目通常提供这些标准任务:
# 快速开发周期(常见迭代循环)
task dev # 通常运行快速测试 + 快速文档生成
# 预提交工作流
task precommit # 运行预提交钩子 + 快速测试
# 本地完整 CI 模拟
task ci # 在本地运行完整的 CI 流水线
# 完整的测试套件,包括质量检查
task test
# 快速测试(为快速开发跳过质量检查)
task test-fast
task test:fast # 替代命名
# 仅质量检查(Aqua、格式化、代码检查)
task test-quality
task test:quality
# 快速文档构建(推荐用于开发)
task docs-fast
task docs:fast
# 完整文档,包括慢速组件(笔记本等)
task docs
# 交互式文档服务器
task docs-pluto # 用于包含 Pluto 笔记本的 Julia 项目
task docs:serve # 用于支持实时重载的文档服务器
# 从头开始设置开发环境
task setup
# 显示包/依赖状态
task pkg:status
task status
# 项目概览和环境信息
task info
# 代码检查
task lint
# 代码格式化
task format
# 组合质量检查
task quality
在以下情况下使用 task 命令:
任务通常是围绕特定语言命令的薄包装:
示例 - Julia:
# Task 命令
task test
# 它运行的底层命令
julia --project=. -e 'using Pkg; Pkg.test()'
示例 - R:
# Task 命令
task docs
# 它运行的底层命令
Rscript -e "devtools::document()"
在以下情况下使用直接的语言命令:
# 1. 发现可用的内容
task --list
# 2. 运行快速迭代周期
task dev # 快速测试 + 快速文档生成
# 3. 提交前
task precommit # 预提交检查 + 测试
# 4. 推送前(可选)
task ci # 完整 CI 模拟
# 1. 查看存在哪些设置任务
task --list | grep setup
# 2. 运行设置
task setup # 安装依赖项,配置环境
# 3. 验证设置
task info # 显示项目和环境状态
# 4. 测试一切是否正常
task test
任务名称中的常见模式:
前缀:
test:* - 与测试相关的任务docs:* - 文档任务pkg:* - 包管理任务ci:* - CI/CD 相关任务后缀:
*-fast - 任务的快速版本*-full - 包含可选步骤的完整版本特殊名称:
dev - 快速开发迭代周期precommit - 预提交验证ci - 完整 CI 流水线setup - 初始项目设置clean - 清理构建产物help - 显示使用信息# 替代:julia --project=. -e 'using Pkg; Pkg.test()'
task test
# 替代:julia --project=docs docs/make.jl --skip-notebooks
task docs-fast
# 替代:julia --project=. -e 'using Pkg; Pkg.update()'
task pkg:update
# 替代:Rscript -e "devtools::test()"
task test
# 替代:Rscript -e "devtools::document()"
task docs
# 替代:Rscript -e "devtools::check()"
task check
# 替代:pytest
task test
# 替代:sphinx-build docs docs/_build
task docs
# 替代:pip install -e .
task install
查找:
Taskfile.ymlTaskfile.yaml阅读 Taskfile 时:
cmds: - 任务执行的命令deps: - 在此任务之前运行的依赖项desc: - 在 task --list 中显示的描述summary: - 用于 task <name> --help 的扩展描述task --listtask help 以获取项目特定的指导在以下情况下激活此技能:
task 而不是直接命令时此技能帮助您利用 Task 自动化,而不是手动运行底层命令。项目特定的任务定义和工作流仍保留在项目文档中。
每周安装量
1.2K
仓库
GitHub 星标数
6
首次出现
2026年1月28日
安全审计
安装于
opencode974
codex971
gemini-cli970
github-copilot967
kimi-cli965
amp965
Use this skill when working with projects that use Task to provide easy-to-discover automation commands for development workflows.
IMPORTANT : Always prefer task commands over direct shell/language commands when a Taskfile is present.
Task provides:
task --list shows all available taskstask dev combines testing and docs)# List all available tasks with descriptions
task --list
# Show common workflows and usage patterns
task help
# Get detailed help for specific task
task <taskname> --help
Always start with discovery when entering a new project with a Taskfile.
Projects typically provide these standard tasks:
# Fast development cycle (common iteration loop)
task dev # Usually runs fast tests + fast docs
# Pre-commit workflow
task precommit # Runs pre-commit hooks + fast tests
# Full CI simulation locally
task ci # Complete CI pipeline locally
# Full test suite including quality checks
task test
# Fast tests (skip quality checks for rapid development)
task test-fast
task test:fast # Alternative naming
# Quality checks only (Aqua, formatting, linting)
task test-quality
task test:quality
# Quick docs build (recommended for development)
task docs-fast
task docs:fast
# Full documentation including slow components (notebooks, etc.)
task docs
# Interactive documentation server
task docs-pluto # For Julia projects with Pluto notebooks
task docs:serve # For live-reload documentation server
# Set up development environment from scratch
task setup
# Show package/dependency status
task pkg:status
task status
# Project overview and environment information
task info
# Linting
task lint
# Formatting
task format
# Combined quality checks
task quality
Use task commands when:
Tasks are typically thin wrappers around language-specific commands:
Example - Julia:
# Task command
task test
# Underlying command it runs
julia --project=. -e 'using Pkg; Pkg.test()'
Example - R:
# Task command
task docs
# Underlying command it runs
Rscript -e "devtools::document()"
Use direct language commands when:
# 1. Discover what's available
task --list
# 2. Run fast iteration cycle
task dev # Fast tests + fast docs
# 3. Before committing
task precommit # Pre-commit checks + tests
# 4. Before pushing (optional)
task ci # Full CI simulation
# 1. See what setup tasks exist
task --list | grep setup
# 2. Run setup
task setup # Install dependencies, configure environment
# 3. Verify setup
task info # Show project and environment status
# 4. Test everything works
task test
Common patterns in task names:
Prefixes:
test:* - Testing-related tasksdocs:* - Documentation taskspkg:* - Package management tasksci:* - CI/CD related tasksSuffixes:
*-fast - Quick version of the task*-full - Complete version including optional stepsSpecial names:
dev - Fast development iteration cycleprecommit - Pre-commit validationci - Full CI pipelinesetup - Initial project setupclean - Clean build artifactshelp - Show usage information# Instead of: julia --project=. -e 'using Pkg; Pkg.test()'
task test
# Instead of: julia --project=docs docs/make.jl --skip-notebooks
task docs-fast
# Instead of: julia --project=. -e 'using Pkg; Pkg.update()'
task pkg:update
# Instead of: Rscript -e "devtools::test()"
task test
# Instead of: Rscript -e "devtools::document()"
task docs
# Instead of: Rscript -e "devtools::check()"
task check
# Instead of: pytest
task test
# Instead of: sphinx-build docs docs/_build
task docs
# Instead of: pip install -e .
task install
Look for:
Taskfile.yml in project rootTaskfile.yaml in project rootWhen reading a Taskfile:
cmds: - Commands executed by the taskdeps: - Dependencies run before this taskdesc: - Description shown in task --listsummary: - Extended description for task <name> --helptask --list when entering a projecttask help for project-specific guidanceActivate this skill when:
task instead of direct commandsThis skill helps you leverage Task automation rather than manually running underlying commands. Project-specific task definitions and workflows remain in project documentation.
Weekly Installs
1.2K
Repository
GitHub Stars
6
First Seen
Jan 28, 2026
Security Audits
Gen Agent Trust HubFailSocketPassSnykPass
Installed on
opencode974
codex971
gemini-cli970
github-copilot967
kimi-cli965
amp965
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
102,200 周安装