xiaohongshu
xiaohongshu
agent-ops-build
Language-aware build orchestration that detects project language and runs appropriate build pipeline
Full skill instructions
Language-aware build orchestration skill that detects project language and runs the appropriate build pipeline.
Provide a unified build command that:
flowchart TD
A[Start] --> B{pyproject.toml?}
B -->|Yes| C[Python Project]
B -->|No| D{setup.py?}
D -->|Yes| C
D -->|No| E{package.json?}
E -->|Yes| F[Node.js Project]
E -->|No| G{*.sln?}
G -->|Yes| H[.NET Project]
G -->|No| I{*.csproj?}
I -->|Yes| H
I -->|No| J[Unknown - Check Constitution]
| Language | Indicators | Priority |
|---|---|---|
| Python | pyproject.toml, setup.py, requirements.txt | 1 |
| TypeScript/JS | package.json, tsconfig.json | 2 |
| C#/.NET | *.sln, *.csproj | 3 |
For mixed projects, run pipelines in priority order.
Stage 1: Dependencies → uv sync / pip install
Stage 2: Format → ruff format --check
Stage 3: Lint → ruff check
Stage 4: Type Check → mypy src/
Stage 5: Test → pytest --cov
Stage 6: Coverage → Check threshold
Commands:
uv sync
uv run ruff format --check .
uv run ruff check .
uv run mypy src/
uv run pytest --cov=src --cov-report=term-missing
Stage 1: Dependencies → npm ci / pnpm install
Stage 2: Format → prettier --check
Stage 3: Lint → eslint
Stage 4: Type Check → tsc --noEmit
Stage 5: Test → vitest run / jest
Stage 6: Coverage → Check threshold
Commands:
pnpm install
pnpm run format:check
pnpm run lint
pnpm run typecheck
pnpm run test:coverage
Stage 1: Dependencies → dotnet restore
Stage 2: Format → dotnet format --verify-no-changes
Stage 3: Build → dotnet build -c Release
Stage 4: Test → dotnet test --collect:"XPlat Code Coverage"
Stage 5: Coverage → ReportGenerator (if available)
Commands:
dotnet restore
dotnet format --verify-no-changes
dotnet build -c Release --no-restore
dotnet test -c Release --no-build --collect:"XPlat Code Coverage"
Detecting project type...
✓ Found pyproject.toml → Python
✓ Found package.json → Node.js
Detected: Python + Node.js (mixed project)
Check for existing configuration:
Run each stage, stopping on first failure:
Python Build Pipeline
═════════════════════
[1/6] Dependencies
$ uv sync
✓ Resolved 45 packages (2.1s)
[2/6] Format Check
$ uv run ruff format --check .
✓ 23 files checked (0.3s)
[3/6] Lint
$ uv run ruff check .
✓ 0 issues (0.4s)
[4/6] Type Check
$ uv run mypy src/
✓ Success, no errors (1.2s)
[5/6] Tests
$ uv run pytest --cov=src
✓ 45 passed (3.1s)
[6/6] Coverage
✓ 84.2% (threshold: 80%)
═════════════════════
✓ BUILD SUCCESSFUL
Total time: 7.1s
Generate consistent output:
## Build Report
**Project**: my-project
**Languages**: Python, Node.js
**Date**: 2024-01-15 10:30:00
### Python
| Stage | Status | Time | Notes |
|-------|--------|------|-------|
| Dependencies | ✓ | 2.1s | 45 packages |
| Format | ✓ | 0.3s | 23 files |
| Lint | ✓ | 0.4s | 0 issues |
| Type Check | ✓ | 1.2s | - |
| Tests | ✓ | 3.1s | 45 passed |
| Coverage | ✓ | - | 84.2% |
### Node.js
| Stage | Status | Time | Notes |
|-------|--------|------|-------|
| Dependencies | ✓ | 4.2s | 120 packages |
| Format | ✓ | 0.5s | - |
| Lint | ✓ | 1.1s | 0 warnings |
| Type Check | ✓ | 2.3s | - |
| Tests | ✓ | 5.2s | 78 passed |
| Coverage | ✓ | - | 72.1% |
### Summary
- **Status**: ✓ PASSED
- **Total Time**: 19.4s
- **Warnings**: 0
- **Errors**: 0
If constitution.md has explicit commands, prefer those:
# Constitution
## Commands
- **Build**: `make build`
- **Test**: `make test`
- **Lint**: `make lint`
The skill will use constitution commands over auto-detected ones.
When --baseline flag is used or baseline.md exists:
Comparing to baseline (2024-01-14)...
| Metric | Baseline | Current | Change |
|--------|----------|---------|--------|
| Tests | 45 | 48 | +3 |
| Coverage | 82.1% | 84.2% | +2.1% |
| Lint | 0 | 0 | - |
| Type Errors | 0 | 0 | - |
✓ No regressions detected
| Option | Description | Default |
|---|---|---|
--language | Force specific language | auto-detect |
--stage | Run specific stage only | all |
--fix | Auto-fix issues (format, lint) | false |
--baseline | Compare to baseline | false |
--strict | Fail on warnings | false |
--coverage-threshold | Minimum coverage | from config |
[3/6] Lint
$ uv run ruff check .
✗ 3 issues found
src/auth.py:45:1: E501 Line too long (120 > 100)
src/users.py:12:5: F401 Unused import 'os'
src/users.py:30:1: E302 Expected 2 blank lines
Hint: Run with --fix to auto-fix 2 issues
═════════════════════
✗ BUILD FAILED at stage: Lint
[2/6] Format Check
⚠ ruff not found
Hint: Install with 'uv add --dev ruff'
Skipping format check...
Run the build pipeline
Run Python build only
Run build and fix any auto-fixable issues
Run build and compare to baseline
The skill can optionally output:
build-report.md — Markdown reportbuild-report.json — Machine-readable JSONbaseline.md — If capturing new baseline| Skill | Integration |
|---|---|
agent-ops-baseline | Compare results, update baseline |
agent-ops-validation | Pre-commit validation |
agent-ops-constitution | Read custom commands |
agent-ops-recovery | Handle build failures |
Ensure you have one of:
pyproject.toml / setup.py (Python)package.json (Node.js)*.sln / *.csproj (.NET)Or add explicit commands to constitution.md.
Install required tools:
uv, ruff, mypy, pytestpnpm/npm, eslint, prettierdotnet CLIEither:
--coverage-threshold to overridexiaohongshu
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