justfile-assistant
Skill3 starsChanged 3 months agoMITView on GitHub
Create well-formed justfiles with test ladder patterns, standard recipes (install, build, test, clean, lint, dev, docs), and Makefile compatibility wrappers. Detects project type and generates appropriate recipes for Node.js, Python, Rust, Go, Terraform, and generic projects.
In this repository86 other files it gives its agents.
- AGENTS.mdAGENTS.md
- adrSkill
- adzic-bddSkill
- agent-md-refactorSkill
- agent-muxSkill
- agent-role-impersonatorSkill
- agilquest-reservationsSkill
- ai-text-humanizerSkill
- architecture-decision-recordsSkill
- ast-grepSkill
- atacSkill
- aws-cliSkill
- bart-adversarial-reviewerSkill
- bddSkill
- branch-doctorSkill
- c4-architectureSkill
- c4Skill
- claude-sub-agentSkill
- codemap-config-setupSkill
- codemap-exploreSkill
- codemap-handoffSkill
- codemap-hub-safetySkill
- codemapSkill
- commitSkill
- copilot-sub-agentSkill
- daily-standupSkill
- daily-statusSkill
- debugSkill
- design-thinkingSkill
- doctorSkill
- docx-word-processorSkill
- farley-tddSkill
- forensicsSkill
- gemini-sub-agentSkill
- git-commit-formatterSkill
- git-forensicsSkill
- github-actions-permissionsSkill
- github-cliSkill
- git-repo-discoverySkill
- git-safety-guardrailsSkill
- harness-idpSkill
- humanizeSkill
- iteration-plannerSkill
- jira-issue-managerSkill
- kiro-sub-agentSkill
- lessons-learnedSkill
- lessonsSkill
- lisa-planning-agentSkill
- lovejoy-release-agentSkill
- lsp-code-analysisSkill
- macro-to-microSkill
- marge-product-agentSkill
- meeting-notesSkill
- mermaid-diagram-generatorSkill
- modern-cli-overridesSkill
- native-web-searchSkill
- obsidian-notetakerSkill
- outlook-headlessSkill
- pdf-document-processorSkill
- pi-sub-agentSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 6 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
If a justfile already exists, discover available recipes first:
- Distinctive: line 46
Test ladder pattern (fast feedback → detailed testing)
- Distinctive: line 62
Every generated justfile includes these core recipes:
- Distinctive: line 117
After generation, customize recipes to match your actual commands.
- Distinctive: line 153
When working with an existing justfile, start with discovery:
- Very specific: line 166
Use just -l to understand what recipes are available before customizing or extending a justfile.
- Distinctive: line 218
Stop on failure: Test recipes fail fast—no cascading slow tests on lint failure
- Very specific: line 247
Always include an install-hooks recipe that wires a tracked hook:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Justfile Assistant
This skill helps you create well-formed, maintainable justfiles for any project. It handles the mechanical work of scaffolding justified recipes with standard patterns, test ladder implementations, and backward-compatible Makefile redirects.
Quick Start
Discovering Existing Recipes
If a justfile already exists, discover available recipes first:
# List all available recipes/targets
just -l
# Or with descriptions
just --listThis shows all recipes with their documentation. Use this for early discovery when working with existing justfiles.
Generating a New Justfile
To create a justfile from scratch:
# From your project root, invoke the skill:
gh copilot workspace
# The skill will:
# 1. Detect your project type (Node.js, Python, Rust, Terraform, etc.)
# 2. Generate a contextual justfile with standard recipes
# 3. Create a Makefile that redirects to justfile targets
# 4. Walk you through customizationWhat Gets Created
1. justfile (Main file)
A well-structured justfile with:
- Standard recipe categories (install, build, clean, test, lint, dev, docs)
- Test ladder pattern (fast feedback → detailed testing)
- Language-specific build/test commands
- Consistent formatting and documentation
2. Makefile (Backward compatibility)
A thin wrapper that redirects classic make commands to justfile equivalents:
make test # → just test
make build # → just build
make clean # → just cleanAllows teams to transition gradually without breaking existing workflows.
Standard Recipes
Every generated justfile includes these core recipes:
Installation & Setup
just install- Install all dependenciesjust clean- Remove build artifacts and cachejust setup- One-time project setup (runs install)
Build & Development
just build- Build the projectjust dev- Run development server/watcherjust format- Auto-format codejust lint- Check code quality
Testing (Test Ladder)
just test- Run full test suite (graduated ladder)just test-lint- Fast: linting/type checksjust test-unit- Unit tests onlyjust test-integration- Integration testsjust test-e2e- End-to-end tests
Documentation
just help- Display available commandsjust docs- Generate or view documentation
Test Ladder Concept
The test ladder is a graduated testing strategy where just test orchestrates multiple focused test recipes in order of feedback speed:
just test (Master Orchestrator)
├─ just test-lint ⚡ 1-2 seconds (linting, type checks)
├─ just test-unit 🔋 ~10 seconds (unit tests)
├─ just test-integration 🔗 ~30 seconds (integration tests)
└─ just test-e2e 🌐 ~2 minutes (full E2E tests)Benefits:
- Developers get feedback on the fastest checks first (lint/format)
- CI/CD doesn't run slow E2E tests if linting fails
- Each rung stops on failure—no wasted time on subsequent tiers
- Encourages breaking test suites into focused, purposeful groups
Project Type Detection & Customization
The skill auto-detects your project type and generates appropriate recipes:
| Project Type | Detection | Test Runner | Build Tool | Notes |
| Node.js/JS | package.json | jest/vitest/npm test | npm/yarn | TypeScript support |
| Python | pyproject.toml or requirements.txt | pytest | uv/pip | Virtual env aware |
| Rust | Cargo.toml | cargo test | cargo | clippy integration |
| Go | go.mod | go test | go | Built-in patterns |
| Terraform | *.tf files or terraform/ dir | terraform validate | terraform | Plan/apply patterns |
| Generic | No recognized files | (TODO) | (TODO) | Minimal template |
After generation, customize recipes to match your actual commands.
Customization Examples
Add a custom recipe
# ============================================================================
# CUSTOM RECIPES
# ============================================================================
publish:
@echo "📦 Publishing to npm..."
npm publishOverride a test command
test-unit:
@echo "⚡ Running unit tests..."
npm run test:unit -- --coverage --watch=falseAdd environment variables
set env_var := "production"
set db_url := env("DATABASE_URL")
deploy:
@echo "Deploying to $env_var..."
DB_URL={{db_url}} ./deploy.shWorkflow: Working with Justfiles
Discovery: List Existing Recipes
When working with an existing justfile, start with discovery:
# Quick list of all recipes
just -l
# Detailed list with descriptions
just --list
# Parse recipe names programmatically (for scripting)
just --list --quietUse just -l to understand what recipes are available before customizing or extending a justfile.
Generation: Creating a New Justfile
To create a new justfile from scratch:
Step 1: Invoke the skill
# In your project root
cd /path/to/your/project
gh copilot workspace # Activate skill contextStep 2: Let the skill generate files
The skill runs:
python scripts/generate_justfile.py . --output justfileThis creates:
justfilewith project-specific recipesMakefilethat redirects to justfile targets
Step 3: Customize if needed
# Edit justfile to add/modify recipes
vim justfile
# Verify it works
just help # List all recipes
just test # Run the test ladder
just build # Build the projectStep 4: Commit to version control
git add justfile Makefile
git commit -m "Add justfile with test ladder and standard recipes"References
For detailed patterns, examples, and advanced justfile techniques, see:
justfile-template.md- Full template reference with all patternstest-ladder-patterns.md- Test ladder implementation patternsmakefile-wrapper.md- Makefile redirect patterns
Key Design Principles
- Auto-detection: Scan project files to choose appropriate recipes
- Convention over configuration: Standard recipe names everyone recognizes
- Test ladder first:
testis the master orchestrator, not a simple wrapper - Stop on failure: Test recipes fail fast—no cascading slow tests on lint failure
- Backward compatible: Makefile redirects let teams use
makeif they prefer - Self-documenting: Section headers and recipe comments explain purpose
- Language-agnostic: Works for any project type with sensible defaults
Troubleshooting
Q: How do I see what recipes are available?
A: Use just -l or just --list to discover all recipes in the justfile.
Q: My custom recipe isn't working
A: Check your shell syntax. Justfile uses bash -c by default. Use just --list to confirm the recipe appears and is properly formatted.
Q: just test runs too slowly
A: Review test-e2e recipe and move slow tests to a separate just test-full recipe. The default test ladder should complete in ~1 minute.
Q: Makefile redirects don't work
A: Ensure just is installed. The Makefile assumes just is available in PATH. Use just --version to verify.
Q: I have language-specific test setup
A: Customize test-unit, test-integration, and test-e2e recipes with your specific test commands. See test-ladder-patterns.md for examples.
See Also
- just official docs: https://github.com/casey/just
- Task automation patterns: The skill is modeled after best practices from large open-source projects
Pre-commit hook pattern
Always include an install-hooks recipe that wires a tracked hook:
# Install the git pre-commit hook into .git/hooks/
install-hooks:
@cp .githooks/pre-commit .git/hooks/pre-commit
@chmod +x .git/hooks/pre-commit
@printf "✅ pre-commit hook installed\n"Store the hook at .githooks/pre-commit (tracked in git) so it's shareable.
The hook should run the fast phases of the test ladder — syntax + lint + unit:
#!/usr/bin/env bash
set -euo pipefail
printf "pre-commit checks\n"
printf " syntax ... "
find src tests -name "*.py" -exec python3 -m py_compile {} +
printf "ok\n"
printf " lint ... "
uv run ruff check src/ tests/ --output-format=concise
uv run ruff format --check src/ tests/
printf "ok\n"
printf " unit ... "
uv run pytest tests/unit/ -q --tb=short
printf "ok\n"
printf "all checks passed\n"Do not run the full test suite in pre-commit — it blocks fast commits. Save coverage and e2e for CI. The hook should complete in < 15 seconds.
Python-specific test ladder phases
For Python projects using uv + ruff + pytest:
| Phase | Recipe | Command | Time |
| 0 | test-syntax | find src -name "*.py" -exec py_compile | ~1s |
| 0.5 | test-lint | ruff check + ruff format --check | ~2s |
| 1 | test-unit | uv run pytest tests/unit/ -q | ~5s |
| 2 | test-cov | uv run pytest --cov --cov-fail-under=N | ~15s |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

