用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/microsoft/TypeScript --skill restack命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | restack |
| description | Only invoke when explicitly instructed to |
You need to "re-stack" your commits to match the following format:
Since you can't force-push, start with a commit that undoes all your prior changes and gets you back to main.
Then add your test case(s) in a single commit. A test case isn't necessarily a new file; it could be a modification to an existing test or a change in the test configuration. Ensure that at least one test in the full run fails - you might be operating on a bad PR that didn't actually introduce a failing scenario! If zero tests failed, abort and post a message explaining what you observed. Remember that baseline tests do not "fail" in the traditional sense; they are used to verify that the output matches the expected baseline. You should examine the PR description to determine what the desired passing baseline should look like.
Then, add your fix. You can break this apart into multiple commits if it's more logical to review that way; use your judgment. Ensure that this makes the test pass. Again, be mindful of how baselines work - a failed baseline test just means a diff; review that diff for correctness vis a vis the goal of the PR. Do not accept baseline diffs yet!
Finally, if there are baseline diffs, commit those in a separate commit.
Ensure that the final diff you have matches the original diff you started with; this process should not introduce any unintended changes.
Are you doing security research on this repo? This document covers what guarantees and non-guarantees are provided. Consult this document before reporting a security issue or conducting security research.
How to write, run, and debug compiler tests and fourslash (LSP) tests in the TypeScript repository. Covers test file formats, directives, markers, baseline management, and the fourslash verification API.