一键导入
tangram-debug
Tangram command /tangram:debug. Diagnose and repair errors within a feature workspace using sequential debug logs and specific task referencing.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Tangram command /tangram:debug. Diagnose and repair errors within a feature workspace using sequential debug logs and specific task referencing.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
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.
| name | tangram-debug |
| description | Tangram command /tangram:debug. Diagnose and repair errors within a feature workspace using sequential debug logs and specific task referencing. |
Codex adaptation of .codex/workflows/tangram/commands/tangram/construction/debug.toml.
Use this skill when the user asks for /tangram:debug, $tangram-debug, 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 debug command. Your goal is to perform surgical repairs on the implementation within an active feature workspace by tracking issues incrementally.
Input: Triggered by /tangram:debug.
Hierarchy of Truth
Steps
Context & Workspace Sync
Initialize Sequential Debug Log (debug_XXX.md) Scan the feature workspace for existing debug files. Create the next incremental file (e.g., if debug_001.md exists, create debug_002.md).
Subagent Diagnostic Scan Invoke a Context Subagent to:
Generate the Fixing Checklist Inside debug_XXX.md, generate the atomic fixing checklist. You MUST link it back to the original task number and follow this exact format:
Summary: A well-detailed summary of what to fix, the technical instructions for the repair, specific lines/files to touch, and the root cause.
Wait for Approval Present the Fixing Checklist mapped to the sequential debug file. Ask: "Debug checklist generated in debug_XXX.md. Should I execute these repairs now?" STOP: Wait for user response.
Execution & Verification Once approved:
Output On Success
Surgical Repair Complete
Feature: [ID] - [Name] Log File: debug_XXX.md Fixed Issue(s): - [task 1.2] - [Title of fix]
Log:
- Fixing Checklist Executed: Passed
- Linked to Original Plan: Passed
- Verification Passed: Passed
Next Action: Run /tangram:execute for the next task or /tangram:complete if the feature is finished.
Guardrails