소스 정보
- 저장소
- stagewise-io/stagewise
- 최근 소스 활동
- 2026년 4월 17일 16:14
- 감지된 SKILL.md 언어
- 영어
- 스타
- 6,804
- 포크
- 504
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/stagewise-io/stagewise --skill debug명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | Debug |
| description | Use logging calls for in-depth debugging via local log files |
| user-invocable | true |
| agent-invocable | true |
Inject fetch() logging calls into user code that send structured data to a local HTTP ingest server. Log entries accumulate in JSONL files you can read for analysis.
The env-snapshot includes a logIngest field once the ingest server is running:
logIngest: { port: <number>, token: "<uuid>" }
If logIngest is null, the server has not started yet — wait for an env-change.
Use write to create an empty JSONL file. The channel name must be kebab-case ([a-z0-9]+(-[a-z0-9]+)*).
write('logs/react-renders.jsonl', '')
This registers the channel. You will receive a log-channel-created env-change.
http://127.0.0.1:{port}/ingest/{channel-name}?token={token}
Example: http://127.0.0.1:54321/ingest/react-renders?token=abc-123
Wrap all injected debug code in region markers for easy identification and removal:
// #region @stagewise-debug
fetch('http://127.0.0.1:54321/ingest/react-renders?token=abc-123', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
level: 'info',
source: 'useEffect-mount',
data: { component: 'App', props: { userId: 42 } }
})
}).catch(() => {});
// #endregion @stagewise-debug
Rules:
// #region @stagewise-debug / // #endregion @stagewise-debug..catch(() => {}) — instrumentation must never break user code.source field distinguishes instrumentation points.{
"level": "info" | "warn" | "error" | "debug" | "log",
"source": "descriptive-label",
"data": { ... }
}
Body must be a JSON object. All fields are optional. level defaults to "log". The server prepends a ts field (epoch milliseconds) automatically — do not send your own.
read('logs/react-renders.jsonl')
Each line is a JSON object with a server-injected timestamp: { "ts": 1713000000000, "level": "info", "source": "useEffect-mount", "data": { ... } }.
Use grepSearch with mount_prefix targeting logs for filtered searches.
You receive these for owned log channels only:
| Event | Attributes | Meaning |
|---|---|---|
log-channel-created | channel | New channel file appeared |
log-entries-added | channel, newLines | New lines were appended |
log-channel-removed | channel | Channel file was deleted |
409 when full.When a file is full: read and analyze the data, then truncate with write('logs/{name}.jsonl', '') and continue.
When debugging is complete, always perform both steps:
// #region @stagewise-debug … // #endregion @stagewise-debug blocks from user code.delete('logs/{name}.jsonl') for every channel you created.Never leave debug instrumentation or log files behind.
Access-Control-Allow-Origin: *). fetch() works from any origin.fetch() works directly to 127.0.0.1.