xiaohongshu
xiaohongshu
sayt-ide
How to write .vscode/tasks.json — build/test task schema, dependsOn chains, per-language examples (Gradle, Go, Node/pnpm, Python, Zig). Use when creating build tasks, test tasks, or fixing compilation/test failures.
Full skill instructions
sayt build and sayt test delegate to vscode-task-runner (vtr), which reads .vscode/tasks.json and runs the tasks labeled "build" and "test" respectively.
sayt build runs vtr build which finds the task with "label": "build" in .vscode/tasks.jsonsayt test runs vtr test which finds the task with "label": "test"dependsOn chains and runs prerequisite tasks firstvtr is installed via uvx (Python) and is cached after sayt setup for offline use.
.vscode/tasks.json SchemaEvery tasks.json must have:
"version": "2.0.0"tasks array with at minimum a "build" and "test" task{
"label": "build", // MUST be exactly "build" or "test"
"type": "shell", // MUST be "shell" for sayt compatibility
"command": "...", // The executable to run
"args": ["..."], // Arguments (optional)
"group": {
"kind": "build", // "build" or "test"
"isDefault": true // Mark as default for the group
},
"problemMatcher": [], // VS Code error matching (can be empty)
"dependsOn": ["..."] // Prerequisite tasks (optional)
}
Add a windows override for cross-platform commands:
{
"label": "build",
"type": "shell",
"command": "./gradlew",
"windows": { "command": ".\\gradlew.bat" },
"args": ["assemble"]
}
Use dependsOn to run prerequisite tasks:
{
"label": "build",
"type": "shell",
"command": "go",
"args": ["build", "-o", "app"],
"dependsOn": ["sqlc-generate", "buf-generate"]
}
Dependency tasks don't need isDefault: true but should still be in the tasks array.
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"command": "./gradlew",
"windows": { "command": ".\\gradlew.bat" },
"args": ["assemble"],
"problemMatcher": [],
"group": { "kind": "build", "isDefault": true }
},
{
"label": "test",
"type": "shell",
"command": "./gradlew",
"windows": { "command": ".\\gradlew.bat" },
"args": ["test"],
"group": { "kind": "test", "isDefault": true },
"problemMatcher": []
}
]
}
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"command": "go",
"args": ["build", "-o", "app"],
"group": { "kind": "build", "isDefault": true },
"dependsOn": ["sqlc-generate", "buf-generate"],
"problemMatcher": []
},
{
"label": "sqlc-generate",
"type": "shell",
"command": "sqlc",
"args": ["generate"],
"group": { "kind": "build" },
"problemMatcher": []
},
{
"label": "buf-generate",
"type": "shell",
"command": "buf",
"args": ["generate", "../../libraries/xproto", "--template", "../../libraries/xproto/buf.go.gen.yaml", "-o", "../../libraries/xproto"],
"group": { "kind": "build" },
"problemMatcher": []
},
{
"label": "test",
"type": "shell",
"command": "go",
"args": ["run", "gotest.tools/[email protected]", "-f", "github-actions", "--", "./...", "-tags=unit_test"],
"group": { "kind": "test", "isDefault": true },
"problemMatcher": []
}
]
}
{
"version": "2.0.0",
"tasks": [
{
"label": "install",
"type": "shell",
"command": "pnpm install --frozen-lockfile"
},
{
"label": "build",
"type": "shell",
"command": "pnpm -C ../.. exec turbo --filter ./guis/web assemble",
"problemMatcher": ["$tsc"],
"group": { "kind": "build", "isDefault": true },
"dependsOn": ["install"]
},
{
"label": "test",
"type": "shell",
"command": "pnpm -C ../.. exec turbo --filter ./guis/web test",
"group": { "kind": "test", "isDefault": true },
"problemMatcher": ["$tsc"],
"dependsOn": ["install"]
}
]
}
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"command": "pnpm",
"args": ["build"],
"group": { "kind": "build", "isDefault": true },
"problemMatcher": ["$tsc"]
},
{
"label": "test",
"type": "shell",
"command": "pnpm",
"args": ["test"],
"group": { "kind": "test", "isDefault": true },
"problemMatcher": []
}
]
}
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"command": "python",
"args": ["-m", "build"],
"group": { "kind": "build", "isDefault": true },
"problemMatcher": []
},
{
"label": "test",
"type": "shell",
"command": "pytest",
"group": { "kind": "test", "isDefault": true },
"problemMatcher": []
}
]
}
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"command": "zig",
"args": ["build"],
"group": { "kind": "build", "isDefault": true },
"problemMatcher": []
},
{
"label": "test",
"type": "shell",
"command": "zig",
"args": ["build", "test"],
"group": { "kind": "test", "isDefault": true },
"problemMatcher": []
}
]
}
"type": "shell" — Required for sayt/vtr compatibilityisDefault: true — Mark one build and one test task as defaultdependsOn — For code generation or install steps that must run firstproblemMatcher — Helps VS Code parse errors (use ["$tsc"] for TypeScript, [] otherwise)windows overrides — If the command differs on Windows (e.g., gradlew vs gradlew.bat)pipx install vscode-task-runner or sayt setup!sayt help build 2>&1 || true
!sayt help test 2>&1 || true
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