tilelang-ascend: Skill for Claude Code

.agents/skills/tilelang-custom-skill/tilelang-review/SKILL.md

tilelang-review is a skill for Claude Code, Codex from tile-ai/tilelang-ascend. It costs 160 tokens per session (5,090 once invoked), scanned D, original, MIT.

A code-style checker for Python and C++ files that follows the project’s continuous-integration rules, using tools such as Ruff and Clang-Format.

In plain words
What is it for?
Use it to check changed or all project files, prepare a pull request, review code style, install missing checking tools, and optionally apply approved fixes.
Why use it?
It shows formatting and style problems without changing files automatically. Fixes happen only after the user reviews and approves the report.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: names the AskUserQuestion tool; installed under .agents/ (shared by several agents).

This is tile-ai/tilelang-ascend's own configuration. It tells Claude Code and Codex how to work on tilelang-ascend itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything tilelang-ascend configures →

Reuse

Borrowing it

Nothing to install: this file belongs to tile-ai/tilelang-ascend. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/tile-ai/tilelang-ascend/ascendc_pto/.agents/skills/tilelang-custom-skill/tilelang-review/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/tile-ai/tilelang-ascend

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tilelang-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/tile-ai/tilelang-ascend/tilelang-review/github.svg)](https://agentmods.dev/skills/tile-ai/tilelang-ascend/tilelang-review)
Your own site
<a href="https://agentmods.dev/skills/tile-ai/tilelang-ascend/tilelang-review"><img src="https://agentmods.dev/badge/skills/tile-ai/tilelang-ascend/tilelang-review/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for tilelang-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/tile-ai/tilelang-ascend/tilelang-review"><img src="https://agentmods.dev/badge/skills/tile-ai/tilelang-ascend/tilelang-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 160 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,090 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 3 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00160 $0.05090
Opus 5 $0.00080 $0.02545
Sonnet 5 $0.00032 $0.01018
Haiku 4.5 $0.00016 $0.00509

Measured 10d ago against content hash 458bf4e8f68e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade D, and why

tilelang-review scanned grade D with 3 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/check-cpp.sh, scripts/check-python.sh, scripts/fix-cpp.sh, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

(sudo apt-get install clang-format-18 2>/dev/null || \

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -LsSf https://astral.sh/ruff/install.sh | sh

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -LsSf https://astral.sh/ruff/install.sh | sh
.agents/skills/tilelang-custom-skill/tilelang-review/SKILL.md · 551 lines

How it starts

The opening of the file, as written. The whole thing — 551 lines — stays where its author put it; the contents beside it link to each section on GitHub.

代码格式检查

检查代码格式并生成详细报告,与 CI 规则保持一致。

⚠️ 核心原则

询问范围 + 自动安装 + 检查和修复分离: 0. 询问范围: 首先询问用户检查范围(修改文件 / 全部文件)

  1. 自动安装: 检测缺失工具并自动安装(ruff、clang-format)
  2. 检查阶段: 只运行检查脚本,生成报告,不修改任何文件
  3. 询问阶段: 使用醒目的方式询问用户是否修复
  4. 修复阶段: 只有用户明确同意后才运行修复脚本
╔═══════════════════════════════════════════════════════════════╗
║  🚫 检查时严禁自动修复!必须等待用户确认!                   ║
╚═══════════════════════════════════════════════════════════════╝

工作流程

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

步骤 0: 询问检查范围 ⭐ 重要:第一步必须询问

在开始任何检查之前,必须先询问用户检查范围!

使用 AskUserQuestion 工具询问:

问题: 请选择代码格式检查的范围?
选项:
  - 仅修改文件 (Recommended) - 只检查 git status 中的变更文件(修改、新增、未跟踪)
  - 全部文件 - 检查项目中的所有 Python/C++ 文件

检查范围说明:

范围 说明 适用场景
仅修改文件 通过 git status --porcelain 获取变更文件 提交 PR 前验证、日常开发
全部文件 检查项目中所有匹配的文件 CI 全量检查、代码规范初始化

根据用户选择执行后续步骤:

  • 选择"仅修改文件": 调用脚本时不带 --all 参数
  • 选择"全部文件": 调用脚本时带 --all 参数

Read the full file on GitHub · 551 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 551 lines · 160 tokens per session scan D 458bf4e8f68e

Subscribe to this mod's changes

tilelang-review is a skill published in the GitHub repository tile-ai/tilelang-ascend (364 stars, last pushed yesterday), licensed MIT. It adds 160 tokens to every session and 5,090 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it D with 3 findings (asks for root, downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.