Skip to content
Agentmart
Submit a tool

ascend-npu-optimize-state

Manage temporary optimize workflow state in an Ascend NPU optimize workspace, including baseline acceptance, round start, same-round strategy-state updates…

Skill by Piagari

IndexedApache-2.0
Write a review

Chalk Labs

Need help deploying ascend-npu-optimize-state?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/piagari-ascend-npu-optimize-state

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Manage temporary optimize workflow state in an Ascend NPU optimize workspace, including baseline acceptance, round start, same-round strategy-state updates, and round submission.

Use cases: productivity

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/ascend-npu-optimize-state

What's inside

Skill name
ascend-npu-optimize-state
Description
Manage temporary optimize workflow state in an Ascend NPU optimize workspace, including baseline acceptance, round start, same-round strategy-state updates, and round submission.
License
Apache-2.0
Instructions
135 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (21)

  • SKILL.md
  • baseline-contract.json · references/
  • round-contract.json · references/
  • check.py · scripts/baseline/
  • contract.py · scripts/baseline/
  • cli.py · scripts/
  • check.py · scripts/round/
  • contract.py · scripts/round/
  • kernel_continuity.py · scripts/round/
  • local_optimum.py · scripts/round/
  • cli.py · scripts/shared/
  • json_io.py · scripts/shared/
  • models.py · scripts/shared/
  • paths.py · scripts/shared/
  • results.py · scripts/shared/
  • round_naming.py · scripts/shared/
  • set_current_round_state.py · scripts/state_manage/
  • start_round.py · scripts/state_manage/
  • state_machine.py · scripts/state_manage/
  • submit_baseline.py · scripts/state_manage/
  • submit_round.py · scripts/state_manage/

SKILL.md (first lines)

# Optimize State

Use this skill to manage optimize workflow state through one structured CLI entrypoint:

```bash
python3 scripts/cli.py submit-baseline --baseline-dir baseline
python3 scripts/cli.py start-round --round-dir opt-round-1 --round-strategy exploration --analysis-policy pattern_entry --reason "..."
python3 scripts/cli.py set-current-round-state --round-strategy focused_tuning --analysis-policy ir_required --reason "..."
python3 scripts/cli.py submit-round --round-dir opt-round-2 --current-round 2 --final-round 4
```

## When To Use

- Use `submit-baseline` when `baseline/` needs to be accepted before any optimize round may begin or continue.
- Use `start-round` immediately before beginning work on a new `opt-round-N/`; it initializes the active round's workflow-owned strategy state.
- Use `set-current-round-state` when the active round's strategy or required evidence depth changes mid-round.
- Use `submit-round` after one round is complete and before the workflow may continue or stop.

## Subcommands

### `submit-baseline`

- Validates canonical baseline artifacts and `baseline/state.json`.
- Prints JSON only; read the `guideline` field for the pass/fix instruction.
- Treat returned `issues` as the baseline repair checklist.
- Baseline preparation still belongs to `ascend-npu-prepare-optimize-baseline`.

### `start-round`

- Enforces the runner-managed `.helix/state.json` workflow gate before a round begins.
- Requires `--round-strategy`, `--analysis-policy`, and `--reason`.
- Writes the active round's latest strategy state into `.helix/state.json`.
- Appends a structured `State Update` block to `opt-round-N/attempts.md`.
- Prints JSON only; read the `guideline` field and keep the returned `hard_rules` in force for the active round.
- Use this to bridge temporary runner-managed workflow state with the durable `opt-round-N/` you are about to work in.

#### `--round-strategy` Allowed Values

- `exploration`: narrow the next promising optimization direction before making a larger commitment.
- `structural_change`: pursue a larger rewrite in shape, layout, dataflow, or algorithm structure.
- `focused_tuning`: refine a direction that is already validated instead of searching broadly again.
- `stabilization`: repair correctness, compile stability, or fragile performance before further tuning.
- `plateau_review`: assess whether the current direction has reached a local plateau and needs a pivot or deeper evidence.

#### `--analysis-policy` Allowed Values

- `pattern_entry`: begin from code structure and pattern triage; deeper evidence is optional before the main edit.
- `profile_required`: require profiler evidence before the main edit.
- `ir_required`: require IR-backed attribution before the main edit.
- `compiler_source_required`: require compiler-source evidence because profiler and IR evidence have already narrowed the question to a compiler-side issue.

#### `--reason`

- Always pass a short explicit reason that explains why this round is entering the chosen strategy and evidence depth.
- This text is stored in workflow state and mirrored into the round's structured `State Update` block in `attempts.md`.

#### Common `start-round` Examples

- First exploratory round from code structure and pattern triage:
  ```bash
  python3 scripts/cli.py start-round \
    --round-dir opt-round-1 \
    --round-strategy exploration \
    --analysis-policy pattern_entry \
    --reason "Start from pattern triage to narrow the first promising direction."
  ```

- Profiler-backed structural rewrite:
  ```bash
  python3 scripts/cli.py start-round \
    --round-dir opt-round-2 \
    --round-strategy structural_change \
    --analysis-policy profile_required \
    --reason "Profiler evidence points to a bottleneck that likely needs a larger structural rewrite."
  ```

- Validated direction with deeper IR-backed tuning:
  ```bash
  python3 scripts/cli.py start-round \
    --round-dir opt-round-3 \
    --round-strategy focused_tuning \
    --analysis-policy ir_required \
    --reason "The direction is already validated, but IR attribution is still needed before the next tuning edit."
  ```

### `set-current-round-state`

- Updates the current active round's workflow-owned strategy state without selecting a round by path.
- Locates the nearest ancestor optimize workspace from the current working directory, so it can be run from the workspace root or from inside `opt-round-N/` subdirectories.
- Requires `--reason` plus at least one of `--round-strategy` or `--analysis-policy`.
- Rejects no-op updates and same-round `analysis_policy` rollbacks.
- Appends a structured `State Update` block to the active round's `attempts.md`.
- Prints JSON only; read the `guideline` field and apply any returned `warnings`.

Use the same enum values listed above for `--round-strategy` and `--analysis-policy`.

#### Common `set-current-round-state` Examples

- Raise only the required evidence depth after profiling becomes necessary:
  ```bash
  python3 scripts/cli.py set-current-round-state \
    --analysis-policy profile_required \
    --reason "Pattern triage is no longer sufficient; profiler evidence is now required before the next code change."
  ```

- Pivot the round into a larger structural rewrite:
  ```bash
  python3 scripts/cli.py set-current-round-state \
    --round-strategy structural_change \
    --reason "The current evidence points to a larger dataflow or layout rewrite instead of another narrow tuning pass."
  ```

- Switch into stabilization when the direction still looks good but the implementation is fragile:
  ```bash
  python3 scripts/cli.py set-current-round-state \
    --round-strategy stabilization \
    --analysis-policy ir_required \
    --reason "The direction still looks promising, but correctness and performance are unstable and need repair before further tuning."
  ```

From Piagari/helix, Apache-2.0.

More from Piagari/helix

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Jul 15, 2026 (3 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from Piagari

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get ascend-npu-optimize-state running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying ascend-npu-optimize-state?

CallGet help
Cite this page

ascend-npu-optimize-state skill. Agent Mart. https://agentmart.dev/skills/piagari-ascend-npu-optimize-state (last updated 2026-10-24)