AGENT SKILL

H5 类型检查

对 Phaser + TypeScript 仓库跑 tsc --noEmit,产出结构化错误

使用场景测试与质量
License 许可
MIT
最近更新
2026-11-12
Stars
★ 3
Forks
1

01 前言 Front Matter

name
H5 类型检查
x-runner
{ "budget": { "max_rounds": 3, "max_tokens": 20000, "max_seconds": 120 }, "outputs": { "root": "artifacts/{req_short}/{ticket_short}/typecheck_log", "globs": [ "typecheck_log.json" ] }, "version": 1, "builtin_tools": [ "h5_typecheck", "read_file" ] }
x-workflow
{ "version": 1, "consumes": [ { "kind": "code", "mode": "path", "required": false } ], "priority": 94, "produces": [ { "glob": "typecheck_log.json", "kind": "typecheck_log" } ], "stage_id": "h5_typecheck", "stage_name": "H5 类型检查", "required_traits": { "any_of": [ "framework:phaser" ] }, "pipeline_view_contrib": { "group": "testing", "create_if_missing": { "icon": "?", "name": "测试验证", "insert_after": "development" } } }
description
对 Phaser + TypeScript 仓库跑 tsc --noEmit,产出结构化错误

03 SKILL.md 正文

H5 类型检查

用插件 Action h5_typecheck 对当前仓库跑 tsc --noEmit。

和 SOP fragment 的关系

第一版不接管流水线位置。sop/fragments/h5_typecheck.yaml 仍负责:

  • 插在 development 之后
  • reject_goto: development

本 skill 的 stage_id 与 fragment 同名,组装器会跳过插入,避免两个类型检查阶段。

执行步骤

  1. 确认 repo_path 下有 tsconfig.json。没有则先让调用方跑 instantiate_h5_template。
  2. 调用一次 h5_typecheck。不要自己拼 tsc 命令。
  3. status=success 结束;typecheck_failed 把 errors / hints 原样交回,不要在本阶段重试。

04 同仓库更多 Skills

welflau
welflau/ai-dev-system

webapp-testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

测试与质量前端开发
★ 3
welflau
welflau/ai-dev-system

internal-comms

A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.).

邮件与沟通
★ 3
welflau
welflau/ai-dev-system

web-artifacts-builder

Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.

前端开发
★ 3
welflau
welflau/ai-dev-system

frontend-design

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.

设计师前端开发视觉设计
★ 3
welflau
welflau/ai-dev-system

algorithmic-art

Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.

视觉设计
★ 3
welflau
welflau/ai-dev-system

theme-factory

Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.

视觉设计
★ 3