Skip to content

feat(github): GitHub 접근을 호스트 gh로 통일#34

Merged
lbox-limit merged 2 commits into
mainfrom
codex/host-gh-github
Jul 15, 2026
Merged

feat(github): GitHub 접근을 호스트 gh로 통일#34
lbox-limit merged 2 commits into
mainfrom
codex/host-gh-github

Conversation

@lbox-limit

@lbox-limit lbox-limit commented Jul 15, 2026

Copy link
Copy Markdown
Collaborator

Type of Change

  • Feature skill - adds a channel or integration (source code changes + SKILL.md)
  • Utility skill - adds a standalone tool (code files in .claude/skills/<name>/, no source changes)
  • Operational/container skill - adds a workflow or agent skill (SKILL.md only, no source changes)
  • Fix - bug fix or security fix to source code
  • Simplification - reduces or simplifies source code
  • Documentation - docs, README, or CONTRIBUTING changes only

Description

AimClaw의 GitHub 접근을 OneCLI에서 Mac 호스트의 인증된 gh로 통일합니다.

  • 허용 저장소에 한정된 PR·이슈·checks 조회, 이슈 생성, PR·이슈 코멘트 명령을 ncl github ...로 제공합니다.
  • 임의 gh api, merge/close/review/workflow/release/secret 작업은 노출하지 않습니다.
  • 모든 명령을 서버 승인 경계에 두고, 현재 팀 정책상 관리자 요청만 자동 승인합니다.
  • GH_TOKEN 계열과 OneCLI 프록시 환경을 제거하여 호스트 키체인 로그인을 사용합니다.
  • AimClaw OneCLI 프로젝트에 api.github.com·github.com 차단 규칙을 멱등 적용해 기존 OAuth 연결을 통한 우회를 막습니다.
  • 운영·초기화 문서와 repository sync 인증 절차를 함께 갱신합니다.

geek-refactor 적용 후 command metadata를 단일 표로 통합하고 테스트 전용 export와 path 주입을 제거했으며, GitHub 셸 테스트를 한 파일로 합쳤습니다. 핵심 범위는 919→825 LOC, 9→8 files, 8→3 exports로 줄었고 외부 명령과 테스트 수는 유지했습니다.

검증:

  • pnpm run build
  • pnpm test — 90 files, 836 tests
  • 관련 Vitest 11개, ESLint, Prettier, bash -n, git diff --check
  • 가짜 GH_TOKEN과 OneCLI proxy 환경을 주입한 상태에서 호스트 gh 실제 PR 읽기 smoke test

For Skills

  • SKILL.md contains instructions, not inline code (code goes in separate files)
  • SKILL.md is under 500 lines
  • I tested this skill on a fresh clone

@lbox-limit
lbox-limit marked this pull request as ready for review July 15, 2026 02:02
@lbox-limit
lbox-limit merged commit ed3515e into main Jul 15, 2026
1 check passed
@lbox-limit
lbox-limit deleted the codex/host-gh-github branch July 15, 2026 02:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants