본문으로 건너뛰기
Skillpedia
분석 및 스프레드시트18k · #10529

dse-loop

하는 일

이 스킬은 컴퓨터 구조와 칩 설계 도구의 설계 설정을 자동으로 탐색합니다. 프로그램에 가장 잘 맞는 구성을 찾으려는 엔지니어를 위한 스킬입니다.

사용하는 경우

  • ✓매개변수를 바꿔 보며 가장 좋은 하드웨어 구성을 찾고 싶을 때.
  • ✓측정 가능한 목표에 도달할 때까지 설계를 최적화해야 할 때.
  • ✓정해진 시간이 지나면 멈추는 자동 탐색을 원할 때.

스킬 링크

https://github.com/wanshuiyin/Auto-claude-code-research-in-sleep/blob/main/skills/dse-loop/SKILL.md

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

사용 방법

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

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

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

AI에게 요청하는 예시

“제 칩 시뮬레이션의 최적 설정을 찾아 주세요. 두 시간이 지나거나 목표에 도달하면 멈춰 주세요.”

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

작동 방식

에이전트는 프로그램을 실행하고 결과를 읽은 뒤, 다음 매개변수 조합을 고르고 이를 반복합니다. 측정 가능한 목표에 도달하거나, 반복 상한에 이르거나, 시간 예산이 끝나면 멈춥니다.

기술 내용 (원본 SKILL.md)

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

DSE Loop: Autonomous Design Space Exploration

🔁 Do not wrap this skill in /loop / CronCreate. It already loops internally until its objective is met or it times out. Unlike the verdict-bearing review/audit skills, its stop gate is an objective machine-checkable metric (Type-A), so its self-termination is safe same-model — the reason not to wrap it is scheduler duplication, not the verdict fence. See shared-references/external-cadence.md.

Autonomously explore a design space: run → analyze → pick next parameters → repeat, until the objective is met or timeout is reached. Designed for computer architecture and EDA problems.

Context: $ARGUMENTS

Safety Rules — READ FIRST

NEVER do any of the following:

  • sudo anything
  • rm -rf, rm -r, or any recursive deletion
  • rm any file you did not create in this session
  • Overwrite existing source files without reading them first
  • git push, git reset --hard, or any destructive git operation
  • Kill processes you did not start

If a step requires any of the above, STOP and report to the user.

Constants (override via $ARGUMENTS)

Constant Default Description
TIMEOUT 2h Total wall-clock budget. Stop exploring after this.
MAX_ITERATIONS 50 Hard cap on number of design points evaluated.
PATIENCE 10 Stop early if no improvement for this many consecutive iterations.
OBJECTIVE minimize minimize or maximize the target metric.

Override inline: /dse-loop "task desc — timeout: 4h, max_iterations: 100, patience: 15"

Typical Use Cases

Problem Program Parameters Objective
Microarch DSE gem5 simulation cache size, assoc, pipeline width, ROB size, branch predictor maximize IPC or minimize area×delay
Synthesis tuning yosys/DC script optimization passes, target freq, effort level minimize area at timing closure
RTL parameterization verilator sim data width, FIFO depth, pipeline stages, buffer sizes meet throughput target at min area
Compiler flags gcc/llvm build + benchmark -O levels, unroll factor, vectorization, scheduling minimize runtime or code size
Placement/routing openroad/innovus utilization, aspect ratio, layer config minimize wirelength / timing
Formal verification abc/sby bound depth, engine, timeout per property maximize coverage in time budget
Memory subsystem cacti / ramulator bank count, row buffer policy, scheduling optimize bandwidth/energy

Workflow

Phase 0: Parse Task & Setup

  1. Parse $ARGUMENTS to extract:

    • Program: what to run (command, script, or Makefile target)
    • Parameter space: which knobs to tune and their ranges/options (may be incomplete — see step 2)
    • Objective metric: what to optimize (and how to extract it from output)
    • Constraints: hard limits that must not be violated (e.g., timing must close)
    • Timeout: wall-clock budget
    • Success criteria: when is the result "good enough" to stop early?
  2. Infer missing parameter ranges — If the user provides parameter names but NOT ranges/options, you MUST infer them before exploring:

    a. Read the source code — search for the parameter names in the codebase:

    • Look for argparse/click definitions, config files, Makefile variables, module parameters, #define, parameter (SystemVerilog), localparam, etc.
    • Extract defaults, types, and any comments hinting at valid values

    b. Apply domain knowledge to set reasonable ranges:

    Parameter type Inference strategy
    Cache/memory sizes Powers of 2, typically 1KB–16MB
    Associativity Powers of 2: 1, 2, 4, 8, 16
    Pipeline width / issue width Small integers: 1, 2, 4, 8
    Buffer/queue/FIFO depth Powers of 2: 4, 8, 16, 32, 64
    Clock period / frequency Based on technology node; try ±50% from default
    Bound depth (BMC/formal) Geometric: 5, 10, 20, 50, 100
    Timeout values Geometric: 10s, 30s, 60s, 120s, 300s
    Boolean/enum flags Enumerate all options found in source
    Continuous (learning rate, threshold) Log-scale sweep: 5 points spanning 2 orders of magnitude around default
    Integer counts (threads, cores) Linear: from 1
자주 묻는 질문

내 컴퓨터에서 실행해도 안전한가요?

스킬에는 엄격한 안전 규칙이 있습니다. 스킬이 만들지 않은 파일을 지우거나, sudo를 실행하거나, 파괴적인 git 변경을 하지 않습니다.

얼마나 오래 실행되나요?

기본 시간 예산은 두 시간이며, 설계 지점의 최대 개수도 있습니다.

무엇을 제공해야 하나요?

프로그램, 바꿀 매개변수, 스킬이 측정할 수 있는 명확한 목표를 제공하세요.

상세 정보

작성자의 원본 설명

Autonomous design space exploration loop for computer architecture and EDA. Runs a program, analyzes results, tunes parameters, and iterates until objective is met or timeout. Use when user says \"DSE\", \"design space exploration\", \"sweep parameters\", \"optimize\", \"find best config\", or wants iterative parameter tuning.

repo: wanshuiyin/Auto-claude-code-research-in-sleep

인기도

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

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬