plugin.json
{
"name": "my-mod",
"version": "0.1.0",
"description": "status-line starter"
}plugin.json은 .claude-plugin/에, 나머지는 hooks/에 저장하세요. 로컬 타입을 생성하고 검증한 뒤 로드하세요.
설치된 버전에서 UI를 검증하세요. guard 시작 코드는 규칙을 추가하기 전까지 모든 호출을 허용합니다.
{
"name": "my-mod",
"version": "0.1.0",
"description": "status-line starter"
}{
"modules": [
"./register.tsx"
]
}// Generate declarations with your installed Claude Code; APIs are version-specific.
import type { Register } from 'claude-code';
export const register: Register = (on) => {
on('ui.render', { component: 'Spinner' }, async ($, e, next) => {
return next({ ...e, props: { ...e.props, suffix: ' · my-mod' } });
});
};