xiaohongshu
xiaohongshu
justfile-polyglot-patterns
Level 4 patterns - multi-language orchestration, root + subproject structure
Full skill instructions
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:
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience