Install-AI-constitution: 기본 AGENTS.md를 중앙 집중화하는 도구
hackernews
|
|
📦 오픈소스
#agents.md
#ai코딩
#설정관리
#ai
#ai 서비스
#claude
#copilot
#cursor
#개발도구
원문 출처: hackernews · Genesis Park에서 요약 및 분석
요약
AI 코딩 도구별로 각기 다른 설정 파일을 관성적으로 복사하여 사용하던 불편함을 해소하기 위해 단일 파일(CONSTITUTION.md)로 원칙을 중앙 집중화하는 'AI Constitution' 도구가 공개되었습니다. 사용자는 단 한 번의 명령어(`install-ai-constitution`)를 통해 현재 사용 중인 프로젝트에 심볼릭 링크를 생성할 수 있으며, 이를 통해 파일을 수정할 때마다 연결된 모든 프로젝트의 설정이 자동으로 동기화됩니다. 이 도구는 황금률 및 은률과 같은 가치, 행동 제약 등 AI가 따라야 할 기본 규칙을 설정하며, Claude Code, Codex CLI, GitHub Copilot, Cursor 등 주요 개발 도구의 환경설정 파일 포맷을 모두 지원합니다. 기존 설정 파일이 존재하는 경우 덮어쓰기를 방지하는 기능이 기본으로 적용되며, 필요에 따라 `--append` 명령어를 통해 기존 파일의 끝에 새로운 규칙을 추가하는 것도 가능합니다.
본문
Every AI coding tool has its own configuration file: Claude wants CLAUDE.md , Copilot wants .github/copilot-instructions.md , Cursor wants .cursorrules , Codex wants AGENTS.md . If you work across multiple tools and multiple projects, you end up copy-pasting the same principles everywhere — and they quietly drift out of sync. AI Constitution solves this by letting you define your principles once, in a single CONSTITUTION.md file, and install them into any project with one command: install-ai-constitution That's it. Every tool in that project now shares the same principles, and any future edits to CONSTITUTION.md are reflected everywhere automatically. The constitution included in this repo is an example — feel free to replace it with your own principles. Edit CONSTITUTION.md to reflect whatever values, behaviors, or constraints you want your AI tools to follow. All installed projects will pick up the changes automatically via symlinks. - Golden Rule — Do not do to others what you would not want done to you. - Silver Rule — Do to others what you would like done to you. - Do things well — Things done well lead to more things done well. Things done poorly lead to more things done poorly. - Micro reflects macro — How good and consistent you are at the micro level is how good and consistent you are at the macro level. Clone the repo and run setup once: git clone https://github.com/Adri96/AI-Constitution.git cd ai-constitution ./setup.sh This registers two global commands on your machine: install-ai-constitution and uninstall-ai-constitution . From any project directory: # Install (uses current directory) cd ~/projects/my-project install-ai-constitution # Install into a specific path install-ai-constitution ~/projects/other-project # Uninstall uninstall-ai-constitution uninstall-ai-constitution ~/projects/other-project Each install creates symlinks in the target project pointing to CONSTITUTION.md : | File | Tool | |---|---| CLAUDE.md | Claude Code | AGENTS.md | Codex CLI | .github/copilot-instructions.md | GitHub Copilot | .cursorrules | Cursor | Because they are symlinks, any update to CONSTITUTION.md is automatically reflected in all projects — no need to reinstall. By default, if a file already exists in the target project (e.g. you already have a CLAUDE.md ), the installer will skip it to avoid overwriting your config. If you want to keep your existing file and add the constitution to it, use the --append flag: install-ai-constitution --append install-ai-constitution ~/projects/other-project --append The constitution will be appended to the end of the existing file, wrapped in markers so it can be cleanly removed later: ...constitution content... Note: appended files are not symlinks, so they won't update automatically when CONSTITUTION.md changes. Re-run with --append to update them. To remove the global commands from your machine: rm /usr/local/bin/install-ai-constitution rm /usr/local/bin/uninstall-ai-constitution
Genesis Park 편집팀이 AI를 활용하여 작성한 분석입니다. 원문은 출처 링크를 통해 확인할 수 있습니다.
공유