Skip to main content

piki

팀 위키를 코딩 에이전트에게 연결하는 CLI 도구입니다.

설치

pipx install piki-cli

시작하기

# 1) piki 설치
pipx install piki-cli

# 2) skill + llm-wiki.md 설치 (현재 프로젝트 폴더에 복사)
piki install

# 3) GitHub Org 초기화 (단일 wiki repo + source repo 액션 설정)
#    GITHUB_TOKEN은 쉘 환경변수로만 주입 (코드/깃에 절대 저장 금지)
GITHUB_TOKEN=<token> piki init --org cmux-aim-netlog --wiki-repo wiki --source-repos Test_BE,Test_FE --dry-run
GITHUB_TOKEN=<token> piki init --org cmux-aim-netlog --wiki-repo wiki --source-repos Test_BE,Test_FE
# 기존 source repo의 piki 관리 파일을 유지하려면(덮어쓰기 비활성화):
GITHUB_TOKEN=<token> piki init --org cmux-aim-netlog --wiki-repo wiki --source-repos Test_BE,Test_FE --no-sync-source-files

# 4) ingest 1회 실행 (graph-wiki 생성)
piki ingest

# 5) 의사결정 이력 로컬 포트로 보기
piki serve --port 8787

명령어

bootstrap

piki init --org cmux-aim-netlog --wiki-repo wiki --source-repos Test_BE,Test_FE --dry-run
# 실제 반영 시:
# GITHUB_TOKEN=<token> piki init --org cmux-aim-netlog --wiki-repo wiki --source-repos Test_BE,Test_FE
# source repo의 piki 관리 파일 자동 갱신을 끄려면:
# GITHUB_TOKEN=<token> piki init --org cmux-aim-netlog --wiki-repo wiki --source-repos Test_BE,Test_FE --no-sync-source-files
# 참고: init을 실행한 현재 레포와 wiki 레포는 source 대상에서 자동 제외됩니다.

skill

piki install                    # SKILL.md + llm-wiki.md 설치
piki install --target-dir .     # 특정 디렉터리에 설치

wiki

piki setup                      # 위키 초기 설정 (~/.wiki/ 에 클론)
piki sync                       # 최신 위키 pull + 인덱스 재생성
piki ingest                     # pull + index + graph-wiki.md 생성
piki ingest --retries 2         # pull 실패 시 재시도 후 fallback
piki search <query>             # 전체 문서 전문 검색
piki read <path>                # 특정 페이지 읽기 (예: repos/auth-service/gotchas)
piki context <files...>         # 편집할 파일과 관련된 위키 페이지 조회
piki gotchas <repo>             # 해당 레포의 알려진 함정/금지 패턴 조회
piki adr [--topic <topic>]      # 아키텍처 결정 기록(ADR) 목록/검색
piki serve --port 8787          # 로컬 포트로 wiki 탐색

config

piki config list                # 설정 전체 조회
piki config get <key>           # 특정 설정 값 조회
piki config set <key> <value>   # 설정 값 저장
piki config delete <key>        # 설정 키 삭제
piki config reset               # 설정 초기화

에이전트와 함께 사용하기

SKILL.md를 프로젝트 루트에 두면 Claude Code 등 코딩 에이전트가 코드 작성 전 자동으로 위키를 참조합니다.

# 파일 편집 전
piki context src/handlers/refund.ts

# 아키텍처/도메인 질문 전
piki search "payment v2 migration"

# 결제·인증 코드 작성 전
piki gotchas auth-service

프로젝트 구조

piki/
├── piki/
│   ├── __init__.py          # 버전
│   ├── main.py              # CLI 진입점
│   ├── config.py            # 설정 파일 읽기/쓰기
│   ├── commands/
│   │   ├── config_cmd.py    # config 명령어
│   │   ├── wiki_cmd.py      # wiki 명령어
│   │   ├── init_cmd.py      # org 초기화 명령어
│   │   └── skill_cmd.py     # skill 설치 명령어
│   └── wiki/
│       ├── __init__.py      # WIKI_DIR, WIKI_REPO 상수
│       ├── db.py            # SQLite FTS 인덱스 관리
│       └── render.py        # 터미널 렌더링
├── SKILL.md                 # 에이전트용 위키 참조 규칙
└── pyproject.toml

Metadata

Release files for piki-cli 0.1.14

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for piki-cli 0.1.14
File Size Uploaded
piki_cli-0.1.14.tar.gz 38.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for piki-cli 0.1.14
File Interpreter ABI Platform
piki_cli-0.1.14-py3-none-any.whl Python 3 none any Details

Total release size: 79.5 kB

Release files / piki_cli-0.1.14.tar.gz

Download URL piki_cli-0.1.14.tar.gz
Size 38.8 kB
Tags Source
SHA-256 checksum
How to use checksums
34f24b712b16317ec000b700de084da658c4b6cec779362643f55edd6b9aca06
BLAKE2b-256 checksum
How to use checksums
a446dfcaf43e5485d898a667cbcc9cc19ab835ce2eecc136186bc9f36c8835ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 26, 2026.

Transparency log

Release files / piki_cli-0.1.14-py3-none-any.whl

Download URL piki_cli-0.1.14-py3-none-any.whl
Size 40.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
14703931c08e780c6be411aae848cadcbca792f8f6f39d32ed7e54a1da52008a
BLAKE2b-256 checksum
How to use checksums
fa6aaa2e4fe1ad6fc09484e1cbd3b33a4c0db1507acbff348f257e0c3af655a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 26, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.14 This release

2 release files

0.1.13

2 release files

0.1.12

2 release files

0.1.11

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page