HN 표시: Agentic Docs 템플릿, AI 코딩 에이전트 규율 유지

hackernews | | 📦 오픈소스
#ai 딜 #ai 코딩 에이전트 #claude #gemini #openai #레포지토리 템플릿 #문서 기반 개발 #에이전트 규율
원문 출처: hackernews · Genesis Park에서 요약 및 분석

요약

AI 코딩 에이전트가 복잡한 작업을 수행할 때 독단적으로 움직이지 않고, 사용자가 의도한 아키텍처와 규칙을 엄격하게 준수하도록 돕는 'Agentic Docs Templates' 프로젝트가 소개되었습니다. 이 템플릿은 프롬프트 엔지니어링이 아닌 문서화 기반 가이드라인을 통해 AI의 행동을 통제하여 개발자의 개입 없이도 정교한 시스템을 구축할 수 있게 합니다. 해당 도구는 특히 대규모 AI 에이전트 팀을 운영할 때 일관성과 신뢰성을 확보하는 데 효과적인 솔루션으로 활용될 수 있습니다.

본문

A language-agnostic, framework-agnostic repository template for document-driven AI coding agent development. AI coding agents are powerful but undisciplined by default. They skip context, forget architecture rules, and produce code that drifts from your design. This template provides a structured documentation system that keeps agents in line: read docs before writing code, plan before executing, write tests before implementation, and keep documentation in sync with code. - Quick Start - Adopting in Existing Projects - Repository Structure - Core Concepts - Documentation Integrity Check - Customization - Compatibility - Inspiration - License - Click "Use this template" on GitHub to create a new repo - Edit AGENTS.md and fill in the sections with your tech stack, commands, and coding rules - Edit ARCHITECTURE.md to document your project's structure and layering rules - Start developing. The agent will follow the workflow defined in AGENTS.md If you already have a project and want to adopt this documentation framework, use the bootstrap prompt. An AI agent will analyze your project and generate all documentation files pre-filled with real content (not empty templates). # Claude Code claude "Read https://raw.githubusercontent.com/Sukitly/agentic-docs-templates/main/bootstrap.md and follow the instructions to set up agentic docs for this project." Or download first: curl -sO https://raw.githubusercontent.com/Sukitly/agentic-docs-templates/main/bootstrap.md claude "Read bootstrap.md and follow the instructions to set up agentic docs for this project." The bootstrap prompt works with any AI coding agent. It will analyze your project (tech stack, architecture, conventions, existing docs), confirm findings with you, generate all documentation files with real content, and verify documentation integrity automatically. See bootstrap.md for details. ├── AGENTS.md # Agent instructions (rules, workflow, checklists) ├── ARCHITECTURE.md # Architecture map (customize per project) ├── bootstrap.md # Bootstrap prompt for existing projects ├── docs/ │ ├── STATE.md # Application state snapshot │ ├── DECISIONS.md # Decision log │ ├── QUALITY_SCORE.md # Module quality ratings │ ├── TESTING.md # Testing strategy │ ├── product-specs/ │ │ ├── knowledge-base.md # Feature descriptions, file paths, data model │ │ ├── glossary.md # Canonical terms and definitions │ │ └── product-roadmap.md # Product direction │ ├── design-docs/ │ │ └── index.md # Design document index │ ├── exec-plans/ │ │ ├── index.md # Execution plan index │ │ ├── active/ # In-progress plans │ │ ├── completed/ # Done plans │ │ └── tech-debt.md # Tech debt tracker │ ├── templates/ │ │ ├── design-doc.md # Template for design documents │ │ └── exec-plan.md # Template for execution plans │ └── references/ # External guides and references ├── scripts/ │ └── check-docs.py # Documentation integrity checker └── .gitignore The agent is bound by five rules defined in AGENTS.md : - Read docs first. Understand context before touching code. - Docs before code. Create a Design Doc or Exec Plan when the criteria are met. - Plan before execute. Present the planned changes and wait for approval. - Self-review and update docs. Run the checklist and keep docs in sync after every change. - Tests first. Use TDD for core business logic. | Type | When to Create | Template | |---|---|---| | Design Doc | New module, cross-module refactor, new dependency, 2+ viable approaches | docs/templates/design-doc.md | | Exec Plan | ≥3 modules affected, DB migrations, ordered dependencies | docs/templates/exec-plan.md | Task received → Read relevant docs → Create Design Doc / Exec Plan if needed → Get user approval → Write tests (TDD for core logic) → Implement → Run self-review checklist → Update affected docs → Done ✅ The included Python script verifies documentation health: python3 scripts/check-docs.py # or via uv uv run scripts/check-docs.py It checks that all relative Markdown links point to existing files, that index.md files cover all docs in their directories, that exec plans have the required frontmatter fields and sections, and that paths referenced in ARCHITECTURE.md actually exist. No dependencies required. Just Python 3. Search for comments across all files to find sections you need to fill in: AGENTS.md : commands, tech stack, coding rules, testing rulesARCHITECTURE.md : directory structure, layering rules, conventionsdocs/TESTING.md : test categories, directories, commands, coverage goalsdocs/product-specs/knowledge-base.md : features, data model, file paths AGENTS.md is natively supported by most AI coding agents, including Codex, Cursor, Gemini CLI, pi, and others. Note: Claude Code uses CLAUDE.md instead — simply rename or symlink fromAGENTS.md . This template is heavily inspired by OpenAI's Harness Engineering approach to AI-assisted development, combined with practical lessons from real-world projects. MIT

Genesis Park 편집팀이 AI를 활용하여 작성한 분석입니다. 원문은 출처 링크를 통해 확인할 수 있습니다.

공유

관련 저널 읽기

전체 보기 →