Saleor Commit Workflow
saleor/saleor
Commits changes in the Saleor codebase and works through pre-commit hook failures from ruff, mypy, the GraphQL schema check and the migrations check.
检查代码格式是否符合 CI 规则。自动检测并安装缺失工具(ruff、clang-format),先运行检查生成报告,使用醒目方式询问用户后,仅在用户同意时执行修复。工作流程:检测环境→自动安装缺失工具→运行检查→生成报告→醒目询问→用户确认→执行修复。使用此技能当:用户要求"格式检查"、"格式化代码"、"代码格式化"、"检查代码格式"、"代码…
$ npx skills add tile-ai/tilelang-ascend --skill tilelang-review -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install tile-ai/tilelang-ascend tilelang-review --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/tile-ai/tilelang-ascend.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/tilelang-custom-skill/tilelang-review .claude/skills/tilelang-review && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "tilelang-review" agent skill from https://github.com/tile-ai/tilelang-ascend/tree/ascendc_pto/.agents/skills/tilelang-custom-skill/tilelang-review into .claude/skills/tilelang-review/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tilelang-review", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/tile-ai/tilelang-ascend/tree/ascendc_pto/.agents/skills/tilelang-custom-skill/tilelang-reviewType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add tile-ai/tilelang-ascend --skill tilelang-review -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install tile-ai/tilelang-ascend tilelang-review --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/tile-ai/tilelang-ascend.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/tilelang-custom-skill/tilelang-review .agents/skills/tilelang-review && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "tilelang-review" agent skill from https://github.com/tile-ai/tilelang-ascend/tree/ascendc_pto/.agents/skills/tilelang-custom-skill/tilelang-review into .agents/skills/tilelang-review/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tilelang-review", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add tile-ai/tilelang-ascend --skill tilelang-review -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install tile-ai/tilelang-ascend tilelang-review --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/tile-ai/tilelang-ascend.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/tilelang-custom-skill/tilelang-review .cursor/skills/tilelang-review && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "tilelang-review" agent skill from https://github.com/tile-ai/tilelang-ascend/tree/ascendc_pto/.agents/skills/tilelang-custom-skill/tilelang-review into .cursor/skills/tilelang-review/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tilelang-review", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/tile-ai/tilelang-ascend.git --path .agents/skills/tilelang-custom-skill/tilelang-review--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add tile-ai/tilelang-ascend --skill tilelang-review -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install tile-ai/tilelang-ascend tilelang-review --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/tile-ai/tilelang-ascend.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/tilelang-custom-skill/tilelang-review .gemini/skills/tilelang-review && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "tilelang-review" agent skill from https://github.com/tile-ai/tilelang-ascend/tree/ascendc_pto/.agents/skills/tilelang-custom-skill/tilelang-review into .gemini/skills/tilelang-review/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tilelang-review", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install tile-ai/tilelang-ascend tilelang-reviewInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add tile-ai/tilelang-ascend --skill tilelang-review -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/tile-ai/tilelang-ascend.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/tilelang-custom-skill/tilelang-review .github/skills/tilelang-review && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "tilelang-review" agent skill from https://github.com/tile-ai/tilelang-ascend/tree/ascendc_pto/.agents/skills/tilelang-custom-skill/tilelang-review into .github/skills/tilelang-review/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tilelang-review", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add tile-ai/tilelang-ascend --skill tilelang-review -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install tile-ai/tilelang-ascend tilelang-review --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/tile-ai/tilelang-ascend.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/tilelang-custom-skill/tilelang-review .opencode/skills/tilelang-review && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "tilelang-review" agent skill from https://github.com/tile-ai/tilelang-ascend/tree/ascendc_pto/.agents/skills/tilelang-custom-skill/tilelang-review into .opencode/skills/tilelang-review/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tilelang-review", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
tilelang-review检查代码格式是否符合 CI 规则。自动检测并安装缺失工具(ruff、clang-format),先运行检查生成报告,使用醒目方式询问用户后,仅在用户同意时执行修复。工作流程:检测环境→自动安装缺失工具→运行检查→生成报告→醒目询问→用户确认→执行修复。使用此技能当:用户要求"格式检查"、"格式化代码"、"代码格式化"、"检查代码格式"、"代码…
Tilelang Review is an agent skill from tile-ai/tilelang-ascend. 检查代码格式是否符合 CI 规则。自动检测并安装缺失工具(ruff、clang-format),先运行检查生成报告,使用醒目方式询问用户后,仅在用户同意时执行修复。工作流程:检测环境→自动安装缺失工具→运行检查→生成报告→醒目询问→用户确认→执行修复。使用此技能当:用户要求"格式检查"、"格式化代码"、"代码格式化"、"检查代码格式"、"代码 review"、"代码审查"、"修复格式"、"fix format"、"lint code"、"检查代码规范"、提交 PR 前验证、或需要检查 Python/C++ 代码风格时。
Its SKILL.md is about 2.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including scripts (for example `scripts/check-cpp.sh`, `scripts/check-python.sh` and `scripts/fix-cpp.sh`).
It sits in Development, covering Linting and formatting. It works with C++, Python, Ruff and Git. The repository describes itself as: Ascend TileLang adapter. The licence is MIT.
8 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 83b0ece. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 4 files in scripts/ (Shell), which the agent can run.
Shell commands in SKILL.md call:
bashruffgitcurlshapt-getbrewFrom the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
astral.shFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Tilelang Review loads about 2.8k tokens when it runs. Until then it costs about 70 tokens; SKILL.md has 386 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check noted patterns worth knowing about, such as sudo or a known installer.
curl -LsSf https://astral.sh/ruff/install.sh | sh(sudo apt-get install clang-format-18 2>/dev/null || \| ruff | `curl -LsSf https://astral.sh/ruff/install.sh \| sh` | 下载独立二进制文件,安装到 `~/.local/bin` || clang-format | `sudo apt-get install clang-format-18` | 系统包管理器安装 |Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from tile-ai/tilelang-ascend at commit 83b0ece, republished under its MIT licence (© tile-ai). 386 words, ~2,808 tokens.
.claude/skills/tilelang-review/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.检查代码格式并生成详细报告,与 CI 规则保持一致。
询问范围 + 自动安装 + 检查和修复分离: 0. 询问范围: 首先询问用户检查范围(修改文件 / 全部文件)
╔═══════════════════════════════════════════════════════════════╗
║ 🚫 检查时严禁自动修复!必须等待用户确认! ║
╚═══════════════════════════════════════════════════════════════╝flowchart TD
A[开始] --> B[🔍 询问检查范围]
B --> C{检查范围?}
C -->|修改文件| D[仅检查变更文件]
C -->|全部文件| E[检查所有文件]
D --> F[检测环境]
E --> F
F --> G{工具已安装?}
G -->|否| H[🔧 自动安装工具]
G -->|是| I[运行检查脚本]
H --> I
I --> J[收集检查结果]
J --> K[生成初始报告]
K --> L{有问题?}
L -->|否| M[✅ 报告: 全部通过]
L -->|是| N[显示问题摘要]
N --> O[⚠️ 醒目询问用户]
O --> P{用户确认修复?}
P -->|是| Q[运行修复脚本]
P -->|否| R[❌ 跳过修复]
Q --> S[📝 更新报告: 追加修复结果]
S --> T
M --> T
R --> T
T[检查报告是否生成] --> U{报告已生成?}
U -->|是| V[输出报告路径]
U -->|否| W[分析跳过的步骤]
W --> X[重新生成报告]
X --> V
V --> Y[✅ 完成]
style B fill:#2196f3,stroke:#1976d2,stroke-width:2px,color:#fff
style H fill:#9c27b0,stroke:#7b1fa2,stroke-width:2px,color:#fff
style O fill:#ff9800,stroke:#f57c00,stroke-width:3px,color:#fff
style P fill:#2196f3,stroke:#1976d2,stroke-width:2px,color:#fff
style N fill:#fff3e0,stroke:#ff9800,stroke-width:2px
style S fill:#4caf50,stroke:#388e3c,stroke-width:2px,color:#fff
style T fill:#e91e63,stroke:#c2185b,stroke-width:2px,color:#fff
style W fill:#ff5722,stroke:#e64a19,stroke-width:2px,color:#fff在开始任何检查之前,必须先询问用户检查范围!
使用 AskUserQuestion 工具询问:
问题: 请选择代码格式检查的范围?
选项:
- 仅修改文件 (Recommended) - 只检查 git status 中的变更文件(修改、新增、未跟踪)
- 全部文件 - 检查项目中的所有 Python/C++ 文件检查范围说明:
| 范围 | 说明 | 适用场景 |
|---|---|---|
| 仅修改文件 | 通过 git status --porcelain 获取变更文件 | 提交 PR 前验证、日常开发 |
| 全部文件 | 检查项目中所有匹配的文件 | CI 全量检查、代码规范初始化 |
根据用户选择执行后续步骤:
--all 参数--all 参数检测必需工具是否已安装:
# 检测 ruff
ruff --version
# 检测 clang-format
clang-format --version如未安装,自动安装:
# 检测并安装 ruff(使用独立二进制安装,安装到系统路径)
if ! command -v ruff &>/dev/null; then
curl -LsSf https://astral.sh/ruff/install.sh | sh
fi
# 检测并安装 clang-format
if ! command -v clang-format &>/dev/null; then
# 通过系统包管理器安装
(sudo apt-get install clang-format-18 2>/dev/null || \
brew install clang-format@18 2>/dev/null)
fi自动安装命令:
| 工具 | 自动安装命令 | 说明 |
|---|---|---|
| ruff | curl -LsSf https://astral.sh/ruff/install.sh | sh | 下载独立二进制文件,安装到 ~/.local/bin |
| clang-format | sudo apt-get install clang-format-18 | 系统包管理器安装 |
从 skill 的 scripts/ 目录调用检查脚本,根据步骤 0 的选择传递参数:
| 参数 | 说明 |
|---|---|
| 无参数 | 仅检查变更文件(默认) |
--all | 检查所有文件 |
# 仅修改文件
bash .agents/skills/tilelang-custom-skill/tilelang-review/scripts/check-python.sh
# 全部文件
bash .agents/skills/tilelang-custom-skill/tilelang-review/scripts/check-python.sh --all输出: JSON 格式
{
"issues": [...], // ruff 检查问题
"format_issues": [...], // 需要格式化的文件
"files_checked": N
}# 仅修改文件
bash .agents/skills/tilelang-custom-skill/tilelang-review/scripts/check-cpp.sh
# 全部文件
bash .agents/skills/tilelang-custom-skill/tilelang-review/scripts/check-cpp.sh --all输出: JSON 格式
{
"issues": [...], // 需要格式化的文件
"files_checked": N
}| 检查范围 | 获取方式 |
|---|---|
| 仅修改文件 | git status --porcelain 获取变更文件(修改、新增、未跟踪) |
| 全部文件 | find 或 git ls-files 获取所有匹配的文件 |
解析 JSON 输出,使用 templates/report.md 模板生成 Markdown 报告。
报告路径: .agents/reports/format-report-{timestamp}.md
⚠️ 重要:报告文件命名规则
format-report-YYYYMMDD_HHMMSS.md(如 format-report-20260316_190133.md)报告内容要求:
必须包含:语言、文件数、Lint 问题数、格式问题数
对于每个有问题的 Python 文件,必须包含:
| 行号 | 代码 | 描述 | 修复建议 |
|---|---|---|---|
| N | CODE | 详细问题描述 | 如果 ruff 提供了自动修复建议,列出 |
ruff format --diff <file> 获取格式差异对于每个有问题的 C++ 文件,必须包含:
clang-format --dry-run --Werror <file> 检查clang-format --style=file <file> | diff -u <file> - 获取格式差异按问题类型分类统计:
提供查看问题和手动修复的命令示例
⛔ 检查阶段不进行任何修复!
完成检查后,生成报告并使用醒目的方式询问用户:
╔═══════════════════════════════════════════════════════════════╗
║ 📋 代码格式检查完成 ║
╠═══════════════════════════════════════════════════════════════╣
║ 发现问题数: X ║
║ - Python: N 个文件有问题 ║
║ - C++: N 个文件需要格式化 ║
║ ║
║ 📄 报告已保存到: ║
║ .agents/reports/format-report-xxx.md ║
║ ║
║ 🔧 是否进行自动修复?(可在最后一项选择性填写单独对 C++ 或者 Python 进行修复)║
║ [ 是 / Y ] - 执行修复 ║
║ [ 否 / N ] - 跳过修复 ║
╚═══════════════════════════════════════════════════════════════╝关键规则:
AskUserQuestion 工具等待用户确认⚠️ 严格遵守 AskUserQuestion 格式 ⚠️
使用 AskUserQuestion 工具时,必须严格按照以下格式:
问题: 是否进行代码格式修复?
选项:
- 是 / 同意 / Y - 执行自动修复
- 否 / 拒绝 / N - 跳过修复(可在最后一项选择性填写单独对 C++ 或者 Python 进行修复)⛔ 禁止私自修改 AskUserQuestion 的内容和选项:
| 禁止行为 | 说明 |
|---|---|
| ❌ 添加额外选项 | 不要添加"仅修复 Python"、"仅修复 C++"等选项 |
| ❌ 修改问题内容 | 不要在问题中添加详细的问题说明文字 |
| ❌ 修改选项描述 | 不要修改选项的 label 或 description |
| ❌ 添加自定义选项 | 不要使用 "Type your own answer" 提供额外选项 |
正确示例 vs 错误示例:
❌ 错误做法(私自添加选项和详细说明):
问题: 发现 3426 个 Python lint 问题(主要是 tabs 缩进)和 20 个 C++ 格式问题。是否进行自动修复?
选项:
- 是 / 同意 / Y (Recommended) - 自动修复所有 Python 和 C++ 格式问题
- 仅修复 Python - 仅修复 Python 文件(lint + format)
- 仅修复 C++ - 仅修复 C++ 文件(format)
- 否 / 拒绝 / N - 不进行任何修复,仅查看报告↑ 这是错误的!私自添加了"仅修复 Python"、"仅修复 C++"选项,并在问题中添加了详细说明
✅ 正确做法(严格按照模板):
问题: 是否进行代码格式修复?
选项:
- 是 / 同意 / Y - 执行自动修复
- 否 / 拒绝 / N - 跳过修复(可在最后一项选择性填写单独对 C++ 或者 Python 进行修复)↑ 这是正确的!严格遵循 skill 规定的格式,没有私自添加内容
为什么必须严格遵守格式?
如果用户需要单独修复 Python 或 C++:
用户可以在选择 "否" 后,手动执行修复命令:
# 仅修复 Python
bash .agents/skills/tilelang-custom-skill/tilelang-review/scripts/fix-python.sh --all
# 仅修复 C++
bash .agents/skills/tilelang-custom-skill/tilelang-review/scripts/fix-cpp.sh --all⚠️ 只有用户明确同意后才执行此步骤!
用户确认后,调用修复脚本,使用与检查阶段相同的参数:
用户确认后,调用修复脚本,使用与检查阶段相同的参数:
# 仅修改文件
bash .agents/skills/tilelang-custom-skill/tilelang-review/scripts/fix-python.sh
# 全部文件
bash .agents/skills/tilelang-custom-skill/tilelang-review/scripts/fix-python.sh --all执行命令:
ruff check --fix <files> - 自动修复 lint 问题ruff format <files> - 格式化代码# 仅修改文件
bash .agents/skills/tilelang-custom-skill/tilelang-review/scripts/fix-cpp.sh
# 全部文件
bash .agents/skills/tilelang-custom-skill/tilelang-review/scripts/fix-cpp.sh --all执行命令:
clang-format -i --style=file <files> - 格式化代码✅ 修复完成后,必须更新报告追加修复结果!
在报告末尾添加 ## 修复结果 部分,必须包含以下详细信息:
## 修复结果
### filename - ✅ 已修复
#### Lint 问题修复
**问题 1**: [错误代码] 错误描述
- **位置**: 第 N 行
- **修复方式**: 自动修复 / 手动修复
- **修复前**:
\`\`\`python
# 原始代码片段
\`\`\`
- **修复后**:
\`\`\`python
# 修复后代码片段
\`\`\`
- **修复说明**: 详细描述如何修复的
#### 格式问题修复
**格式差异**:
\`\`\`diff
# 使用 ruff format --diff 或 clang-format --style=file <file> | diff -u <file> -
- 原始行
+ 修复后行
\`\`\`
**修复说明**:
- 行宽调整:从 N 字符调整到 M 字符
- 缩进修正:从 N 空格修正为 M 空格
- 空行调整:添加/删除了空行
- 其他格式修正...
### 修复的命令
\`\`\`bash
# Python 修复
ruff check --fix <files>
ruff format <files>
# C++ 修复
clang-format -i --style=file <files>
\`\`\`
### 修复验证
**验证结果**:
- ✅ Lint 问题已全部修复
- ✅ 格式问题已全部修复
- ✅ 修复后代码符合规范
**验证命令**:
\`\`\`bash
# 验证 lint 问题
ruff check <files>
# 验证格式问题
ruff format --check <files>
# 或
clang-format --dry-run --Werror <files>
\`\`\`
## 🔧 下一步
修复已完成!请检查修复后的文件:
\`\`\`bash
git diff <files>
\`\`\`
如果确认修复正确,请暂存更改:
\`\`\`bash
git add <files>
\`\`\`| 语言 | 扩展名 |
|---|---|
| Python | .py, .pyi |
| C++ | .c, .cc, .cpp, .cxx, .h, .hpp, .hh, .icc |
技能使用项目中的配置文件:
pyproject.toml - ruff 设置.clang-format - clang-format 设置脚本使用 git status --porcelain 获取工作区中所有变更文件(包括已修改、已暂存、未跟踪的文件),提取文件路径进行检查。
在输出报告路径之前,必须执行以下检查流程:
1. 检查是否已生成报告文件(.agents/reports/format-report-*.md)
2. 如果报告已生成 → 输出报告路径,skill 结束
3. 如果报告未生成 → 执行以下步骤:
a. 分析跳过了哪些步骤(步骤 3: 生成报告)
b. 即使没有变更文件或没有问题,也必须生成报告说明情况
c. 重新运行被跳过的步骤所有场景都必须生成报告:
| 场景 | 报告内容 |
|---|---|
| 有变更文件,有问题 | 详细的问题列表和修复建议 |
| 有变更文件,无问题 | "✅ 所有文件格式正确,无需修复" |
| 无变更文件 | "⚠️ 未检测到变更文件(Python/C++),跳过检查" |
| 工具安装失败 | "❌ 工具安装失败,请手动安装" |
# 代码格式检查报告
**检查时间**: YYYY-MM-DD HH:MM:SS
## 检查摘要
| 语言 | 文件数 | Lint 问题数 | 格式问题数 |
|------|--------|-------------|------------|
| Python | 0 | 0 | 0 |
| C++ | 0 | 0 | 0 |
## ⚠️ 未检测到变更文件
本次检查未检测到需要检查的变更文件(Python/C++)。
可能的原因:
- 工作区没有新增或修改的 Python/C++ 文件
- 文件未被 git 跟踪(请确认文件状态)
## 检查的文件类型
| 语言 | 扩展名 |
|------|--------|
| Python | `.py`, `.pyi` |
| C++ | `.c`, `.cc`, `.cpp`, `.cxx`, `.h`, `.hpp`, `.hh`, `.icc` |# 检查最近的报告文件
ls -la .agents/reports/format-report-*.md 2>/dev/null || echo "NO_REPORT_FOUND"╔═══════════════════════════════════════════════════════════════╗
║ ⚠️ 检测到报告未生成,正在重新生成... ║
╠═══════════════════════════════════════════════════════════════╣
║ 分析:跳过了步骤 3(生成报告) ║
║ 原因:可能是无变更文件或其他异常 ║
║ 操作:重新生成报告... ║
╚═══════════════════════════════════════════════════════════════╝skill 结束时必须执行以下步骤:
# 检查报告文件是否存在
ls -la .agents/reports/format-report-*.md 2>/dev/null || echo "NO_REPORT"无论检查是否有问题、用户是否选择修复,在 skill 结束时都必须输出报告路径:
📄 格式检查报告: .agents/reports/format-report-YYYYMMDD_HHMMSS.md⛔ 禁止在报告未生成的情况下输出虚假的报告路径!
© tile-ai, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 5 other files (scripts) in .agents/skills/tilelang-custom-skill/tilelang-review of tile-ai/tilelang-ascend.
Open the folder on GitHubat commit 83b0ece
Tilelang Review next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Tilelang Review this skilltile-ai/tilelang-ascend | 403 | — | ~2.8k | Automated safety check: Notes | MIT | |
| Saleor Commit Workflowsaleor/saleor | 23k | — | ~575 | Automated safety check: Pass | BSD-3-Clause | |
| Update Dependenciesalorence/django-modern-rpc | 111 | — | ~1.3k | Automated safety check: Pass | MIT | |
| Bump Depsayutaz/piper-plus | 234 | — | ~1.2k | Automated safety check: Pass | MIT | |
| ONNX Runtime Lintmicrosoft/onnxruntime | 22k | — | ~392 | Automated safety check: Pass | MIT | |
| Format CodeROCm/FlyDSL | 291 | — | ~1.9k | Automated safety check: Notes | Custom licence |
saleor/saleor
Commits changes in the Saleor codebase and works through pre-commit hook failures from ruff, mypy, the GraphQL schema check and the migrations check.
alorence/django-modern-rpc
Routine update of all project dependencies — uv itself, uv.lock (all groups), tool versions pinned in GitHub workflows and .pre-commit-config.yaml (uv, ruff, mypy...), and SHA-pinned GitHub Actions.
ayutaz/piper-plus
ORT / openjtalk / ruff のような cross-runtime に canonical sync が必要な依存関係を 1 コマンドで bump する read-mostly skill。
microsoft/onnxruntime
Lints and formats C++ and Python code in the ONNX Runtime repository with lintrunner, clang-format and ruff, preferring a pass over only the changed files.
ROCm/FlyDSL
Format, clean up, and style-check changed files, matching the project's CI style gate.
besimple-oss/broccoli
Implement an approved plan doc step-by-step in application or systems codebases, including Node/TS, Python, and C/C++ repos (build/lint/test per step, atomic commits, progress log hygiene).
tile-ai/tilelang-ascend
Automatically pull tilelang repository and its third-party code.
tile-ai/tilelang-ascend
How to add debugging capabilities to TileLang Ascend example operators.
tile-ai/tilelang-ascend
将 tilelang example 脚本转换为可在 A5 camodel 仿真器上直接运行的版本。输入脚本路径,输出一个新的 sim.py 文件,不覆盖原始文件。触发:仿真运行、camodel、A5 仿真、sim 模式、转换脚本为仿真、不需要 NPU 跑 kernel、simulate A5。
tile-ai/tilelang-ascend
TileLang-Ascend 环境检查与配置验证技能。检查代码仓库完整性、编译安装状态、环境变量配置,并运行简单测试验证环境。发现问题会自动调用相关 skill 进行修复,并按依赖顺序重新执行后续步骤。触发关键词:"环境检查"、"检查环境"、"验证环境"、"环境配置"、"环境搭建"、"env check"、"check environment"、"verify…
tile-ai/tilelang-ascend
TileLang-Ascend 算子测试设计技能。支持多种场景:(1) 从 design.md 设计测试配置 (2) 从 examples/{op}/.py 补充测试 (3) 手动提供算子信息生成测试 (4) 测试覆盖率分析。理解算子实现逻辑后智能判断测试策略。触发:设计算子测试、生成测试用例、补充测试、测试覆盖率不足。
tile-ai/tilelang-ascend
基于设计文档生成 TileLang-Ascend 算子实现代码与测试。从 design.md 中提取关键信息,结合 examples/ 中的参考实现生成可运行代码。触发:实现算子、写 kernel、生成代码、算子编码、根据设计文档实现。
Categories
检查代码格式是否符合 CI 规则。自动检测并安装缺失工具(ruff、clang-format),先运行检查生成报告,使用醒目方式询问用户后,仅在用户同意时执行修复。工作流程:检测环境→自动安装缺失工具→运行检查→生成报告→醒目询问→用户确认→执行修复。使用此技能当:用户要求"格式检查"、"格式化代码"、"代码格式化"、"检查代码格式"、"代码…. Tilelang Review is an agent skill from tile-ai/tilelang-ascend.
Tilelang Review fits situations like: tasks that involve Linting and formatting.
Run `npx skills add tile-ai/tilelang-ascend --skill tilelang-review -a claude-code`. Or copy the skill folder (.agents/skills/tilelang-custom-skill/tilelang-review in tile-ai/tilelang-ascend) into .claude/skills/tilelang-review in your project. Claude Code loads it when a task matches its description.
Run `npx skills add tile-ai/tilelang-ascend --skill tilelang-review -a codex`. Or copy the skill folder (.agents/skills/tilelang-custom-skill/tilelang-review in tile-ai/tilelang-ascend) into .agents/skills/tilelang-review in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add tile-ai/tilelang-ascend --skill tilelang-review -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/tilelang-review, .gemini/skills/tilelang-review, .github/skills/tilelang-review and .opencode/skills/tilelang-review in your project.
Going by SKILL.md and its folder, Tilelang Review needs a shell for the scripts in its folder and the command-line tools its instructions call (bash, ruff, git, curl, sh and apt-get). Our summary lists: Python 3; A Bash shell.
SKILL.md names 1 domain. In commands or code: astral.sh; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found notes only (pipes a well-known installer script into a shell; runs commands with sudo), nothing it rates as a warning. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Tilelang Review is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.8k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Tilelang Review: Saleor Commit Workflow (saleor/saleor, 23k stars), Update Dependencies (alorence/django-modern-rpc, 111 stars), Bump Deps (ayutaz/piper-plus, 234 stars) and ONNX Runtime Lint (microsoft/onnxruntime, 22k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
tile-ai (a GitHub organization) maintains it in tile-ai/tilelang-ascend, which has 403 GitHub stars. The repository holds 20 skills in this directory. The repository was last updated on October 9, 2026.
Source: tile-ai/tilelang-ascend on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.