# Hz

> Use when the user asks for /hz, /hz audit, /hz plan, /hz fix, /hz goal, technical debt audit/remediation, enterprise debt cleanup, or a Codex /goal command for resolving project debt.

- **Type:** Skill
- **Install:** `agentstack add skill-rfdiosuao-enterprise-debt-remediation-skill-hz`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [rfdiosuao](https://agentstack.voostack.com/s/rfdiosuao)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [rfdiosuao](https://github.com/rfdiosuao)
- **Source:** https://github.com/rfdiosuao/enterprise-debt-remediation-skill/tree/main/hz
- **Website:** https://rfdiosuao.github.io/enterprise-debt-remediation-skill/

## Install

```sh
agentstack add skill-rfdiosuao-enterprise-debt-remediation-skill-hz
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# HZ

Run the smallest useful debt pass. Default to `audit` when no mode is given. Treat this as the thin entrypoint for `$enterprise-debt-remediation`.

**REQUIRED SUB-SKILL:** Use `qiaomu-goal-meta-skill` when generating a debt-remediation `/goal`.

In Codex, use `$hz goal ...` to pass the `goal` mode to this skill. Some clients show only the single `$hz` skill entry and do not display `goal` as a separate selectable subcommand.

## Environment Preflight

Detect the host OS before routing. If the host is Windows, apply the UTF-8 session bootstrap first, then continue with the chosen mode.

## Modes

### `audit`
Scan the project and return only the highest-value debt items with evidence, impact, priority, and validation.

### `plan`
Turn the current findings into a short remediation plan with order, owner, and verification.

### `fix`
Apply or draft the smallest safe changes for P0/P1 items only. Stop if scope, evidence, or safety is unclear.

### `goal`
Audit the requested scope first, turn the findings into a prioritized debt ledger, then output a copy-ready Codex `/goal` for resolving that ledger. Do not start fixing in `goal` mode unless the user explicitly asks to execute the generated goal.

Treat "all debt" as all evidence-backed findings inside the requested scope. If areas were not inspected or evidence is weak, list them as blockers or pending-evidence items instead of claiming the audit is exhaustive.

## Routing

Interpret `/hz [mode] [scope]` as:

- mode: `audit`, `plan`, `fix`, or `goal`
- scope: everything after mode

If mode is missing or unknown, assume `audit` and state the assumption. For complete audits, load `$enterprise-debt-remediation` and follow `references/core-contract.md`.
If the host is Windows, ensure the UTF-8 session bootstrap has been applied before loading the core contract.

Route these requests to `goal` even if the literal mode is omitted: "find all debt then make a goal", "generate a goal to fix the debt", "debt remediation goal", `audit-goal`, `solve-goal`, or `all-goal`.

For `goal`, first run the complete debt-audit workflow from `$enterprise-debt-remediation`, then apply the `/goal` contract from `qiaomu-goal-meta-skill`:

- Outcome: resolve the audited debt ledger in priority order.
- Verification: use repo-discovered checks, runtime evidence, screenshots/logs when relevant, and per-item validation from the debt ledger.
- Constraints: preserve public behavior, data shape, user data, secrets, default branches, and unrelated systems.
- Boundaries: name allowed write paths and forbidden paths; keep production data, credentials, destructive operations, and unrelated rewrites out of scope.
- Iteration policy: fix one priority batch at a time, rerun checks after meaningful changes, update the ledger, and switch evidence source after repeated failures.
- Stop when: every confirmed debt item is fixed and verified, or explicitly deferred with owner/reason/residual risk, and final checks are reported.
- Pause if: credentials, production data, paid services, destructive operations, legal/compliance decisions, unclear ownership, or scope expansion is required.

## Output

For `audit`, `plan`, and `fix`, return only:

- findings
- next_step
- blockers

For `goal`, return only:

- findings
- remediation_goal
- blockers

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [rfdiosuao](https://github.com/rfdiosuao)
- **Source:** [rfdiosuao/enterprise-debt-remediation-skill](https://github.com/rfdiosuao/enterprise-debt-remediation-skill)
- **License:** MIT
- **Homepage:** https://rfdiosuao.github.io/enterprise-debt-remediation-skill/

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-rfdiosuao-enterprise-debt-remediation-skill-hz
- Seller: https://agentstack.voostack.com/s/rfdiosuao
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
