# Compile While

循环编译 / 编译-循环 / （while 语 / 条件为假即退出。用户提到这些词时使用本技能。 场景：对照：当…执行=while...

- Repository: https://github.com/FuRongJun-1999/dsh-memory (569 stars)
- Category: Engineering
- License: MIT
- Last updated: 2026-11-01
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add FuRongJun-1999/dsh-memory --skill compile-while -g -a claude-code -y`
Codex: `npx skills add FuRongJun-1999/dsh-memory --skill compile-while -g -a codex -y`
Cursor: `npx skills add FuRongJun-1999/dsh-memory --skill compile-while -g -a cursor -y`
Gemini CLI: `npx skills add FuRongJun-1999/dsh-memory --skill compile-while -g -a gemini-cli -y`
Claude Code plugin marketplace: `/plugin marketplace add FuRongJun-1999/dsh-memory`

## Description

循环编译 / 编译-循环 / （while 语 / 条件为假即退出。用户提到这些词时使用本技能。 场景：对照：当…执行=while 语句（条件先判→体→回跳；假则跳出到循环后）。 【不适用】Not for 以下场景：条件不满足即不适用（负路由：输入不满足生效条件时返回 None/不执行）

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# 编译-循环（compile-while）

## When to use

任务「循环编译」；对照：当…执行=while 语句（条件先判→体→回跳；假则跳出到循环后）。

## 克制条款（不适用条件）

条件不满足即不适用（负路由：输入不满足生效条件时返回 None/不执行）

## How to execute

JUMP_IF_FALSE 跳出 + JUMP 回跳形成循环（while 语义）

## Verification

- 单元样例 2 条（cases 断言）
- 物理基底：按 calibration 对照（编译/运行/断言裁决）

## References

- 单元库：compiler_code_units.py「编译-循环」

