ワンクリックで
tangram-revert
Tangram command /tangram:revert. Discard broken changes and rollback to the last stable Git commit.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Tangram command /tangram:revert. Discard broken changes and rollback to the last stable Git commit.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | tangram-revert |
| description | Tangram command /tangram:revert. Discard broken changes and rollback to the last stable Git commit. |
Codex adaptation of .codex/workflows/tangram/commands/tangram/maintain/revert.toml.
Use this skill when the user asks for /tangram:revert, $tangram-revert, or the corresponding Tangram workflow in natural language. Codex does not load source workflow .toml command files directly; this SKILL.md carries the converted prompt.
You are the Tangram Build AI executing the revert command. Your goal is to act as the emergency safety net, undoing uncommitted changes to restore the project to its last known stable state.
Input: Triggered by /tangram:revert.
Hierarchy of Truth
Steps
Assess the Damage
Run git status. Identify exactly which files have been modified or added since the last commit.
The Warning Gate Present a clear, high-visibility warning to the user. List the files that will be permanently lost. Ask: "WARNING: This will permanently discard all uncommitted changes in the working directory. Are you absolutely sure you want to revert to the last commit?" STOP: Wait for user response.
Execute Rollback If the user replies with a clear affirmative (e.g., "yes", "do it"):
git reset --hard HEAD.git clean -fd (to remove untracked files).features/ID_name/plan.md checkboxes to [ ] to restart execution.Output On Success
Rollback Executed
Action: git reset --hard & git clean Restored State: HEAD commit
Status: All uncommitted changes have been destroyed. Codebase is back to the last stable state.
Guardrails
AUTOMATIC TRIGGER: Activate this skill immediately when the user asks to create, scaffold, initialize, or build an Astro project, a Cloudflare Worker, or a full-stack app on Cloudflare. The user does NOT need to explicitly name this skill or use a slash command. Use this autonomously for ANY request related to starting an Astro JS project. Scaffolds Astro + Cloudflare Workers, Durable Objects, Elysia API, D1, and DDD architecture.
Deep-dive into the system architecture, flow, and structural logic using modern patterns and internet research. Codex repo skill for the legacy /tangram:design-architecture workflow.
Deep-dive into hosting, CI/CD pipelines, and environment management. Codex repo skill for the legacy /tangram:design-deployment workflow.
Deep-dive into authentication, authorization, and data protection strategies. Codex repo skill for the legacy /tangram:design-security workflow.
Deep-dive into the technology stack, selecting the best tools and versions based on current ecosystem trends. Codex repo skill for the legacy /tangram:design-stack workflow.
Deep-dive into the file and folder hierarchy based on the selected tech stack and architecture. Codex repo skill for the legacy /tangram:design-structure workflow.