-
Notifications
You must be signed in to change notification settings - Fork 0
06 clone coding
devlikebear edited this page Apr 8, 2026
·
3 revisions
이 가이드는 AI Skills와 유사한 구조의 AI 에이전트 스킬 저장소를 처음부터 만드는 방법을 설명합니다.
mkdir my-ai-skills && cd my-ai-skills
git initVERSION.txt → 0.1.0
CHANGELOG.md → 릴리스 노트
CLAUDE.md → 개발 가이드
LICENSE → MIT
.gitignore → __pycache__/, .analysis/sessions/
codex/skills/my-skill/
SKILL.md
agents/openai.yaml
shared/references/
---
name: my-skill
description: "My first AI skill"
---
# My Skill
## Language policy
- Respond in the same language the user writes in.
## Workflow
1. ...
2. ...
## Output
- ...# agents/openai.yaml
display_name: "My Skill"claude-code/plugin/
.claude-plugin/plugin.json
skills/my-skill/SKILL.md
references/
// .claude-plugin/marketplace.json
{
"name": "my-skills",
"owner": {"name": "your-name"},
"plugins": [{
"name": "my-plugin",
"source": "./claude-code/plugin"
}]
}scripts/install_codex_skill.sh 구현:
- 스킬 이름 검증 (path traversal 방어)
-
SKILL.md+agents/+shared/복사 -
$CODEX_HOME/skills/<name>/에 설치
가장 복잡한 스킬. 다음 컴포넌트가 필요합니다:
- checkpoint_manager.py: 세션 init/sync/checkpoint/publish CLI
- source_analyzer_search.py: 검색 인덱스 빌더
- SKILL.md: BFS 워크플로, 3개 모드 정의
- 레퍼런스 템플릿: refactor-template, overhaul-template 등
-
init_session()/load_state()/save_state() -
add_checkpoint()with markdown 생성 -
sync_session()with git diff 연동 -
publish_outputs()— session → published 복사 -
generate_search_index()— JSONL 문서 생성 - CLI
parse_args()+cli()함수
최소 3개 테스트 스위트:
- 구조 계약 테스트: 모든 스킬이 올바른 구조를 따르는지 검증
- 릴리스 계약 테스트: 버전 일관성, 인스톨러 작동
- 기능 테스트: checkpoint_manager 세션 라이프사이클
공유 스크립트를 여러 배포판에 복사해야 하는 경우:
- 정식 소스(canonical) 위치를 하나 정하고
- 동기화 스크립트로 다른 위치에 복사
- 테스트에서 동기화 상태를 검증
- 스킬은 지침서: 코드가 아닌 워크플로 설명
- 듀얼 배포: 하나의 소스에서 Codex + Claude Code 모두 지원
- 점진적 분석: 대규모 코드베이스를 청크 단위로 분석하고 재개 가능
- zero 외부 의존성: Python 표준 라이브러리만 사용