본문으로 건너뛰기
Skillpedia
일반 코딩81k · #1592

cost-booster-edit

하는 일

이 스킬은 AI 모델 대신 빠른 로컬 엔진으로 간단하고 반복 가능한 코드 수정을 적용합니다. 많은 파일에 같은 작은 변경을 해야 하는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓var를 const로 바꾸는 것처럼 같은 간단한 변경을 여러 파일에 해야 할 때.
  • ✓AI의 추론에 의존하지 않는 예측 가능한 수정이 필요할 때.
  • ✓간단한 수정에 AI 호출 비용을 내고 싶지 않은 자동화 파이프라인을 운영할 때.

스킬 링크

https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-cost-tracker/skills/cost-booster-edit/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-cost-tracker/skills/cost-booster-edit/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“이 파일들에서 모든 var를 const로 바꿔 주세요. AI는 쓰지 마세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

스킬은 파일과 선택한 수정 유형을 빠른 로컬 변환 엔진에 보냅니다. 변경된 코드를 돌려주며, 같은 입력은 매번 같은 결과를 냅니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Cost Booster Edit

Direct wrapper around agent-booster.apply() (npm agent-booster v0.2.x, exposed via agentic-flow/agent-booster). Use when a transform is already classified as Tier 1 eligible — cost-booster-route recommends whether; this skill executes.

When to use

  • Bulk transforms across many files (var → const, add-types, remove-console, add-error-handling, async-await, add-logging).
  • Any simple, structural edit where an LLM would otherwise be called and billed.
  • Inside CI pipelines where determinism + zero-cost matter more than naturalness.

Do NOT use when the transform requires reasoning about intent, naming, or cross-file context — those are Tier 2/3 jobs.

Steps

  1. Take inputs — intent (one of the 6 booster intents) and file path.

  2. Read the source to a variable, derive the intended edit text from the intent (caller supplies).

  3. Invoke — run from anywhere under v3/ so agent-booster resolves:

    node --input-type=module -e '
      import("agent-booster")
        .then(async ({ AgentBooster }) => {
          const booster = new AgentBooster();
          const r = await booster.apply({
            code: process.argv[1],
            edit: process.argv[2],
            language: process.argv[3] || "javascript",
          });
          console.log(JSON.stringify({
            success: r.success, output: r.output, latency: r.latency,
            confidence: r.confidence, strategy: r.strategy,
            tokens: r.tokens,
          }));
        })
        .catch(e => console.log(JSON.stringify({ success: false, error: String(e.message) })));
    ' -- "$CODE" "$EDIT" "$LANG"
    
  4. Check confidence — default threshold is 0.5. Below that, fail closed: do NOT write the file; report and escalate to Tier 2/3.

  5. Write back the output field if success && confidence >= 0.5.

  6. Persist outcome — memory_store --namespace cost-tracking --key "booster-edit-..." --value '{"intent":..., "latency":..., "confidence":..., "strategy":..., "applied":true}'. Feed the routing learner via hooks_model-outcome (use the cost-optimize skill's step 8).

Measured benchmark (2026-05-04, this checkout)

5 representative intents run through AgentBooster.apply():

intent latency (ms) wall (ms) confidence strategy success
var-to-const 5 5 0.65 fuzzy_replace true
add-types 1 1 0.64 fuzzy_replace true
remove-console 0 0 0.70 fuzzy_replace true
add-error-handling 0 0 0.85 exact_replace true
async-await 0 0 0.85 exact_replace true

Avg measured latency ≈ 1.2 ms. All 5 above the default 0.5 confidence threshold. See docs/benchmarks/0002-baseline.md for the LLM-baseline comparison.

What's verified locally

Claim Status here
100% win rate Verified — 12/12 on bench/booster-corpus.json (see runs/latest.json). Booster AND Gemini 2.0 Flash both score 12/12 — this is a structural-correctness corpus, not a hard adversarial one.
Sub-millisecond latency Verified — avg 0.67 ms, p50 0 ms, p99 6 ms, max 6 ms.
$0 per edit Verified structurally — no API call, no token billing.
Deterministic AST-based merge Verified — same inputs reproduce the same output and strategy.
Confidence ≥ 0.5 ⇒ correct Verified on this corpus — 12/12 above 0.5 (min 0.551), all correct.
350× speedup vs. LLM Verified — exceeded against every tier: 1000.9× vs Gemini 2.0 Flash, 1838.7× vs Claude Sonnet 4.6, 2634.1× vs Claude Opus 4.7. Run BENCH_LLM_BASELINE=1 BENCH_ANTHROPIC=1 node scripts/bench.mjs to refresh.
Cost saved per edit Measured: $0.000020 vs Gemini, $0.000722 vs Sonnet 4.6, $0.004720 vs Opus 4.7 (the booster side is $0 in all cases).
Win parity with frontier LLMs Verified — Booster,
자주 묻는 질문

어떤 수정을 지원하나요?

var에서 const로, 타입 추가, console 로그 제거, 오류 처리 추가, async-await, 로깅 추가까지 여섯 가지 내장 유형을 나열합니다.

언제 쓰면 안 되나요?

의도, 이름 짓기, 다른 파일을 이해해야 하는 변경에는 쓰지 마세요. 그런 작업에는 AI 모델이 필요합니다.

비용이 드나요?

AI 호출을 하지 않으므로, 변환 자체에는 모델 비용이 없습니다.

상세 정보

작성자의 원본 설명

Apply a simple code transform via agent-booster's WASM engine — sub-millisecond, deterministic, $0 (no LLM call). Companion to cost-booster-route.

repo: ruvnet/ruflo

인기도

GitHub 스타
81k
순위
#1592
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬