local-ci

tettuan 的头像作者 tettuan

运行'deno task ci'、本地CI检查或推送前验证时使用。为提高上下文效率,委托给子代理。

📖 中文导读:运行'deno task ci'、本地CI检查或推送前验证时使用。为提高上下文效率,委托给子代理。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: local-ci description: Use when running 'deno task ci', local CI checks, or pre-push validation. Delegates to sub agent for context efficiency. allowed-tools: [Bash, Read, Edit, Grep, Glob, Task]

Local CI Execution

Overview

Run CI locally to verify code quality before pushing.

Recommendation: Delegate to sub agent to save context.

Execution Methods

Sub Agent Delegation (Preferred)

Task({
  subagent_type: "Bash",
  prompt: "Run deno task ci and report results",
  description: "Run local CI"
})

Direct Execution (Watch for Sandbox)

When JSR/Deno packages need to be fetched:

Bash({
  command: "deno task ci",
  dangerouslyDisableSandbox: true,
})

CI Pipeline Stages

deno task ci runs in order:

  1. deps - Cache dependencies (deno.lock)
  2. check - Type checking
  3. jsr-check - JSR publish dry-run
  4. test - Run tests (216+ tests)
  5. lint - Deno lint
  6. fmt - Format check

Pre-Push Workflow

Always pass local CI before pushing:

deno task ci && git push origin branch-name

Or with sandbox bypass:

Bash({
  command: "deno task ci && git push origin branch-name",
  dangerouslyDisableSandbox: true,
})

Error Handling

Error Type Skill Reference
JSR connection failed /ci-troubleshooting
Lint errors /ci-troubleshooting
Test failures /ci-troubleshooting
Network blocked /git-gh-sandbox

Quick Commands

# Full CI
deno task ci

# Type check only
deno check src/**/*.ts

# Lint only
deno lint

# Test only
deno test --allow-all

# Format only
deno fmt --check