원클릭으로
lading-optimize-submit
// Full optimization workflow with git branch creation, commits, and optional PR. Wraps /lading-optimize-hunt with git automation.
// Full optimization workflow with git branch creation, commits, and optional PR. Wraps /lading-optimize-hunt with git automation.
Environment validation checklist. Run this FIRST when starting a new Claude session to verify the environment is ready for optimization work. Checks Rust toolchain, ci/ scripts, build, benchmarking tools, profilers, memory tools, git state, and SMP CLI.
Prepare a lading release. Updates CHANGELOG.md, bumps version in Cargo.toml, updates Cargo.lock, commits, and creates a PR.
Coordinates optimization attempts. Captures baselines, implements changes, invokes review, and records outcomes.
Reviews optimization patches using a 5-persona peer review system. Requires unanimous approval backed by benchmarks.
Finds a valid optimization target in lading. Returns a filled target.yaml template with pattern, technique, target, file, bench, and fingerprint. Use before /lading-optimize-hunt or when selecting a new optimization target.
| name | lading-optimize-submit |
| description | Full optimization workflow with git branch creation, commits, and optional PR. Wraps /lading-optimize-hunt with git automation. |
| allowed-tools | Bash(git:*) Bash(gh:*) Bash(cat:*) Read Skill |
Complete optimization workflow with git automation. This skill wraps /lading-optimize-hunt and handles:
Run /lading-preflight first to ensure environment is ready.
# Ensure clean state on main
git checkout main && git pull
# Verify clean working directory
git status
STOP if working directory is dirty. Commit or stash changes before proceeding.
Run /lading-optimize-hunt.
CRITICAL: After /lading-optimize-hunt completes, you MUST return here to Phase 3.
The hunt workflow will:
The hunt will:
.claude/skills/lading-optimize-hunt/assets/db.yaml after review returnsBUT the hunt does NOT:
Those are the responsibility of THIS skill (lading-optimize-submit).
Create a new branch and add the changes.
# Create descriptive branch name
# Format: opt/<crate>-<technique>
# Examples:
# opt/payload-cache-prealloc
# opt/throttle-avoid-clone
# opt/syslog-buffer-reuse
git checkout -b opt/<crate>-<technique>
git add .
Using the template in .claude/skills/lading-optimize-submit/assets/commit-template.txt, commit the changes:
# Example:
git commit -m "opt: buffer reuse in syslog serialization
Replaced per-iteration format!() with reusable Vec<u8> buffer.
Target: lading_payload/src/syslog.rs::Syslog5424::to_bytes
Technique: buffer-reuse
Micro-benchmarks:
syslog_100MiB: +42.0% throughput (481 -> 683 MiB/s)
Macro-benchmarks (payloadtool):
Time: -14.5% (8.3 ms -> 7.1 ms)
Memory: -35.8% (6.17 MiB -> 3.96 MiB)
Allocations: -49.3% (67,688 -> 34,331)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
"
Note:
# Push branch to remote
git push -u origin opt/<crate>-<technique>
# Create PR using gh CLI
gh pr create \
--title "opt: <short description>" \
--body "$(cat <<'EOF'
## Summary
<What was optimized>
## Benchmark Results
### Micro-benchmarks
- <benchmark_name>: <result>
### Macro-benchmarks (payloadtool)
- Time: <-X%> (<old> ms -> <new> ms)
- Memory: <-X%> (<old> MiB -> <new> MiB)
- Allocations: <-X%> (<old> -> <new>)
## Validation
- [x] ci/validate passes
- [x] Kani proofs pass (or N/A: <reason>)
- [x] Determinism verified
🤖 Generated with [Claude Code](https://claude.com/claude-code)
EOF
)"