Slash Command: /orch-refine-code
Slash Command: /orch-refine-code is a verified SLASH_COMMAND blueprint on Promptally in Interactive Slash Commands optimized for leading AI models. Orchestrate a behavior-preserving refactor — confirm tests green, restructure without changing behavior, keep green, review, gated commit. Wrapper for the orch-refine-code skill. Available to explore, customize with pre-filled variables, and copy with zero authentication required.
Technical Specifications
| Specification | Value |
|---|---|
| Artifact type | SLASH COMMAND (Interactive Slash Commands) |
| Compatible engines | Universal / Model Agnostic |
| Input variables | None (pre-filled) |
| Approximate tokens | 316 |
| Source file | orch-refine-code.md |
| Access tier | Free public (MIT) |
Pre-Filled Template
# /orch-refine-code Manually launch the **orch-refine-code** orchestrator: improve structure while behavior stays identical, with the existing test suite as the safety net. ## Usage ``` /orch-refine-code <what to restructure> ``` Examples: ``` /orch-refine-code extract the NWS HTTP client out of poller.py /orch-refine-code remove dead code and duplication in the dashboard module ``` ## What It Does Invoke the `orch-refine-code` skill with `$ARGUMENTS` as the request. The skill (via the shared `orch-pipeline` engine) will: 1. Classify size (default floor: standard — restructures touch multiple files). 2. Confirm the relevant tests exist and are **green before** touching code; add characterization tests first if coverage is thin. Plan the restructure. → **GATE 1**. 3. Restructure in small steps, re-running tests after each (no new behavior tests — the existing suite proves behavior is unchanged). Dead-code/dup sweeps delegate to `refactor-cleaner`. 4. `code-reviewer`, then commit as `refactor:` (the diff must be behavior-neutral). → **GATE 2**. Use this only when behavior must **not** change. If behavior should change at all, use `/orch-change-feature` or `/orch-fix-defect`. If `$ARGUMENTS` is empty, ask the user what to refine.
How to use this slash command
- Review the pre-filled example and source files above.
- Copy the template or download
orch-refine-code.md, then use it in your model, IDE, or workflow tool. - Compare your result with the sample output when one is provided.
Frequently Asked Questions
How do I use Slash Command: /orch-refine-code?
Open the slash command on Promptally, review the pre-filled example, then copy the template or download orch-refine-code.md and paste it into your model, IDE or workflow tool. Slash Command: /orch-refine-code is a static blueprint with no dynamic variables. Copy it and use it as-is.
Is Slash Command: /orch-refine-code free?
Yes. Slash Command: /orch-refine-code is free to view, copy and download on Promptally without creating an account. It is published under the MIT license.
What variables does Slash Command: /orch-refine-code need?
Slash Command: /orch-refine-code is a static blueprint with no dynamic variables. Copy it and use it as-is.