Skip to main content

v8-workflow

Manages git task isolation and environment setup in V8. Use at the start of any new task or bug fix. Do not use for general C++ editing.

소스 정보

저장소
nodejs/node
최근 소스 활동
2026년 10월 4일 21:04
감지된 SKILL.md 언어
영어
스타
122,301
포크
39,450

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
v8-workflow
description
Manages git task isolation and environment setup in V8. Use at the start of any new task or bug fix. Do not use for general C++ editing.
# V8 Workflow Skill This skill defines the standard process for setting up and managing your development environment in V8. ## 1. Task Initialization (Isolation Strategy) Before starting any feature or bug fix, you MUST decide on a strategy: - **Isolated Strategy (Recommended)**: Create a dedicated git worktree and branch. This prevents cross-contamination between tasks. Use `create_worktree.sh`. - **Reuse Strategy**: Work in the current directory and branch. - Use this only if the user explicitly requests to continue previous work or prefers a single-branch workflow. - **Issue Reset**: If starting a *new* task without a worktree, always ask before resetting the `git cl` issue. ## 2. Path Management in Worktrees When using an isolated worktree (e.g., `worktrees/task-fix-10010110`), you MUST ensure that all file-modifying tools (`replace`, `write_file`, etc.) target the correct directory: - **Explicit Prefixing**: Always prefix `file_path` arguments with the worktree directory. For example, use `worktrees/task-fix-10010110/src/wasm/...` instead of `src/wasm/...`. - **Tool Context**: Be aware that relative paths starting with `src/` or `test/` will default to the main repository's root, violating task isolation. ## 3. Environment Setup Once the branch is ready, ensure your local environment is configured for V8 development: - **depot_tools**: Ensure it is in your PATH. - `export PATH=$PATH:$HOME/depot_tools` - **Output Directory**: Use standard V8 output directories (e.g., `out/x64.debug`). ## 4. Available Tools - **[create_worktree.sh](../../scripts/create_worktree.sh)**: Automates task isolation and setup. Automatically detects whether the repository is in a standard Git checkout (creating a Git worktree) or a Rift Btrfs workspace (forking an isolated Btrfs subvolume). Use this at the start of every new task. - **[cleanup_worktree.sh](../../scripts/cleanup_worktree.sh)**: Safely removes task workspaces (Git worktrees or Rift subvolumes) and prunes remnants once a CL is landed or abandoned.
GitHub에서 보기