Back to Skills

mission-airlock

verified

Run test and lint validation gate. Use after implementation to verify code quality.

View on GitHub

Marketplace

space-agents

thebrownproject/space-agents

Plugin

space-agents

Repository

thebrownproject/space-agents

skills/mission-airlock/SKILL.md

Last Verified

January 25, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/thebrownproject/space-agents/blob/main/skills/mission-airlock/SKILL.md -a claude-code --skill mission-airlock

Installation paths:

Claude
.claude/skills/mission-airlock/
Powered by add-skill CLI

Instructions

# /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:

| File | Type |
|------|------|
| `package.json` | Node.js |
| `Cargo.toml` | Rust |
| `pyproject.toml` or `setup.py` | Python |
| `go.mod` | Go |
| `Makefile` | Make |
| `build.gradle` | Gradle |
| `pom.xml` | Maven |

### Step 2: Run Tests

| Type | Command |
|------|---------|
| Node.js | `npm test` (if "test" script exists in package.json) |
| Rust | `cargo test` |
| Python | `pytest` or `python -m unittest discover` |
| Go | `go test ./...` |
| Make | `make test` (if target exists) |
| Gradle | `./gradlew test` |
| Maven | `mvn test` |

### Step 3: Run Lint

| Type | Command |
|------|---------|
| Node.js | `npm run lint` or `npx eslint .` or `npx biome check .` |
| Rust | `cargo clippy -- -D warnings` |
| Python | `ruff check .` or `flake8 .` |
| Go | `golangci-lint run` or `go vet ./...` |
| Make | `make lint` (if target exists) |
| Gradle | `./gradlew spotlessCheck` or `./gradlew checkstyleMain` |
| Maven | `mvn checkstyle:check` (if configured) |

### Step 4: Run Type Check (if applicable)

| Type | Command |
|------|---------|
| Node.js | `npx tsc --noEmit` (if tsconfig.json exists) |
| Python | `mypy .` (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

| Failure | Severity | Blocks? |
|---------|----------|---------|
| Tests fail | blocker (P1) | Yes |
| Build fail | critical (P0) | Yes + halt Ralph |
| Lint/Type fail | warning (P2) | No |

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
1940 chars