AgentSkillsCN

mission-airlock

借助Pathfinder/Builder/Inspector团队,一次性高效完成单个任务的执行。代理会自动从“珠子”中提取待办事项。

SKILL.md
--- frontmatter
name: mission-airlock
description: "Run test and lint validation gate. Use after implementation to verify code quality."

/mission-airlock - Validation Gate

Run tests, lint, and type checking before task completion.


Instructions

Step 1: Detect Project Type

Check for these files in project root:

FileType
package.jsonNode.js
Cargo.tomlRust
pyproject.toml or setup.pyPython
go.modGo
MakefileMake
build.gradleGradle
pom.xmlMaven

Step 2: Run Tests

TypeCommand
Node.jsnpm test (if "test" script exists in package.json)
Rustcargo test
Pythonpytest or python -m unittest discover
Gogo test ./...
Makemake test (if target exists)
Gradle./gradlew test
Mavenmvn test

Step 3: Run Lint

TypeCommand
Node.jsnpm run lint or npx eslint . or npx biome check .
Rustcargo clippy -- -D warnings
Pythonruff check . or flake8 .
Gogolangci-lint run or go vet ./...
Makemake lint (if target exists)
Gradle./gradlew spotlessCheck or ./gradlew checkstyleMain
Mavenmvn checkstyle:check (if configured)

Step 4: Run Type Check (if applicable)

TypeCommand
Node.jsnpx tsc --noEmit (if tsconfig.json exists)
Pythonmypy . (if configured)

Step 5: Report Result

  • All pass → === RESULT: PASS ===
  • Any fail → === RESULT: FAIL ===

Pod Integration

On PASS: Proceed to bd close <task_id>.

On FAIL: Create blocking bug:

bash
bd create -t bug --title="Airlock: [summary]" --priority=1
bd comments <bug-id> --add "[CONTEXT] Task: <task-id>, Failure: <type>, Output: <error>"
bd dep add <task-id> <bug-id>
bd sync

Bug Severity

FailureSeverityBlocks?
Tests failblocker (P1)Yes
Build failcritical (P0)Yes + halt Ralph
Lint/Type failwarning (P2)No