Level 4 patterns - multi-language orchestration, root + subproject structure
/plugin marketplace add bryonjacob/aug/plugin install bryonjacob-aug-just-aug-just@bryonjacob/augThis skill inherits all available tools. When active, it can use any tool Claude has access to.
Multi-language projects. Root orchestration, subproject independence, clean delegation.
my-project/
├── justfile # Root orchestration
├── api/
│ ├── justfile # Full interface (Python)
│ ├── pyproject.toml
│ └── src/
└── web/
├── justfile # Full interface (JavaScript)
├── package.json
└── src/
Key principles:
_run-all helper for delegationImplements subset of interface. Delegates to subprojects.
set shell := ["bash", "-uc"]
# Show all available commands
default:
@just --list
# Install dependencies and setup development environment
dev-install:
@just _run-all dev-install
# Run all quality checks
check-all:
@just _run-all check-all
# Remove generated files
clean:
@just _run-all clean
# Detailed complexity report
complexity:
@just _run-all complexity
# Show N largest files
loc N="20":
@just _run-all "loc {{N}}"
# Show outdated packages
deps:
@just _run-all deps
# Check for vulnerabilities
vulns:
@just _run-all vulns
# Analyze licenses
lic:
@just _run-all lic
# Generate SBOM
sbom:
@just _run-all sbom
# Build artifacts
build:
@just _run-all build
# Helper: run command in all subprojects
_run-all CMD:
#!/usr/bin/env bash
for proj in api web; do
echo "▸ $proj: just {{CMD}}"
cd $proj && just {{CMD}} || exit 1
done
Customize: Change api web to match your subprojects.
Each implements full interface independently.
api/justfile (Python):
# Full baseline interface
# See justfile-interface skill
# Uses Python stack (uv, ruff, mypy, pytest)
web/justfile (JavaScript):
# Full baseline interface
# See justfile-interface skill
# Uses JavaScript stack (pnpm, prettier, eslint, vitest)
Don't orchestrate all commands. Run directly in subprojects when:
Subproject-specific:
format, lint, typecheck - Stack-specific, run as needed per projecttest, coverage - Different test suites, run separatelytest-watch - Must run in specific subprojectWhy: Root orchestration for commands that validate whole project. Stack-specific commands run per-project.
Root level (full project):
just dev-install # Setup everything
just check-all # All projects pass quality gates
just build # Build all artifacts
Subproject level (targeted):
cd api && just test # API tests only
cd web && just test-watch # Web watch mode
Iterates subprojects, runs command, fails fast.
_run-all CMD:
#!/usr/bin/env bash
for proj in api web; do
echo "▸ $proj: just {{CMD}}"
cd $proj && just {{CMD}} || exit 1
done
Key aspects:
|| exit 1)▸ $proj)Generate SBOM per subproject.
sbom:
syft dir:./api -o cyclonedx-json > sbom-api.json
syft dir:./web -o cyclonedx-json > sbom-web.json
Scan all:
security-scan: sbom
grype sbom:./sbom-api.json --fail-on critical
grype sbom:./sbom-web.json --fail-on critical
Root handles deployment coordination.
# Deploy everything
deploy environment="dev":
@scripts/deploy/check-auth.sh {{environment}}
@cd api && just deploy {{environment}}
@cd web && just deploy {{environment}}
# Deploy API only
deploy-api environment="dev":
@scripts/deploy/check-auth.sh {{environment}}
@cd api && just deploy {{environment}}
# Deploy Web only
deploy-web environment="dev":
@scripts/deploy/check-auth.sh {{environment}}
@cd web && just deploy {{environment}}
Root delegates to API (assuming API owns database).
migrate:
@cd api && just migrate
migrate-down:
@cd api && just migrate-down
migrate-create message:
@cd api && just migrate-create {{message}}
Add when:
Skip when:
Level 4 complete when:
just check-all independentlycd api && just check-all works standalonecd web && just check-all works standalonejust check-all validates entire projectDon't:
Do: