界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
开发与工程 · SKILL.md

task-runner

task-runner

【开发与工程】Run project commands with just. Check for justfile in project root, list available tasks, execute common operations like test, build, lint. Triggers on: run tests, build project, list tasks, check available commands, run script, project commands.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: task-runner description: "Run project commands with just. Check for justfile in project root, list available tasks, execute common operations like test, build, lint. Triggers on: run tests, build project, list tasks, check available commands, run script, project commands." license: MIT compatibility: "Requires just CLI tool. Install: brew install just (macOS) or cargo install just (cross-platform)." allowed-tools: "Bash Glob" metadata: author: claude-mods

Task Runner

Purpose

Execute project-specific commands using just, a modern command runner that's simpler than make and works cross-platform.

Tools

ToolCommandUse For
justjustList available recipes
justjust testRun specific recipe

Usage Examples

Basic Usage

# List all available recipes
just

# Run a recipe
just test
just build
just lint

# Run recipe with arguments
just deploy production

# Run specific recipe from subdirectory
just --justfile backend/justfile test

Common justfile Recipes

# Example justfile

# Run tests
test:
    pytest tests/

# Build project
build:
    npm run build

# Lint code
lint:
    ruff check .
    eslint src/

# Start development server
dev:
    npm run dev

# Clean build artifacts
clean:
    rm -rf dist/ build/ *.egg-info/

# Deploy to environment
deploy env:
    ./scripts/deploy.sh {{env}}

Discovery

# Check if justfile exists
just --summary

# Show recipe details
just --show test

# List recipes with descriptions
just --list

When to Use

  • First check: just to see available project commands
  • Running tests: just test
  • Building: just build
  • Any project-specific task
  • Cross-platform command running

Best Practice

Always check for a justfile when entering a new project:

just --list

This shows what commands are available without reading documentation.

我的收藏