ctx-init

Analyze a repository and scaffold hierarchical CLAUDE.md and AGENTS.md context files.

1|Updated Mar 8, 2026
One-click install
npx skills add https://github.com/oozoofrog/codex-skills --skill ctx-init
Or copy as Structured Prompt for Agentโ–ผ
Please help me install this Agent Skill.
Skill: ctx-init
Source: https://github.com/oozoofrog/codex-skills/tree/main/ctx-init
Command: npx skills add https://github.com/oozoofrog/codex-skills --skill ctx-init

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

ํ”„๋กœ์ ํŠธ๋ฅผ ๋ถ„์„ํ•˜์—ฌ CLAUDE.md, ์„œ๋ธŒ๋””๋ ‰ํ† ๋ฆฌ CLAUDE.md, .claude/rules/, AGENTS.md๋กœ ๊ตฌ์„ฑ๋˜๋Š” ๊ณ„์ธต์  ์ปจํ…์ŠคํŠธ ์•„ํ‚คํ…์ฒ˜๋ฅผ ์Šค์บํด๋”ฉํ•ฉ๋‹ˆ๋‹ค. ๊ธฐ์กด ํŒŒ์ผ์ด ์žˆ์œผ๋ฉด ๋ณด์กดํ•˜๊ณ  ๋ณด๊ฐ•ํ•ฉ๋‹ˆ๋‹ค.

Core Features & Use Cases

  • ํ”„๋กœ์ ํŠธ ๊ตฌ์กฐ๋ฅผ ๋ถ„์„ํ•ด CLAUDE.md์˜ ๋ฃจํŠธ ๋ฐ ์„œ๋ธŒ๋””๋ ‰ํ† ๋ฆฌ CLAUDE.md, .claude/rules/, AGENTS.md์˜ ์ƒ์„ฑ/๋ณด๊ฐ•์„ ์ž๋™์œผ๋กœ ๊ณ„ํšํ•ฉ๋‹ˆ๋‹ค.
  • CLAUDE Code ๋กœ๋”ฉ์„ ์œ„ํ•œ ๋ฃจํŠธ/์„œ๋ธŒ๋””๋ ‰ํ† ๋ฆฌ CLAUDE.md ํŒŒ์ผ์˜ ์กด์žฌ๋ฅผ ๋ณด์žฅํ•˜๊ณ  ๋ณด๊ฐ•ํ•ฉ๋‹ˆ๋‹ค.
  • ๊ธฐ์กด ์•„ํ‹ฐํŒฉํŠธ๋ฅผ ๋ณด์กดํ•˜๊ณ  ํ•„์š” ์‹œ ๋ณด๊ฐ•ํ•˜๋Š” ๋ณด์กด ์šฐ์„  ์ ‘๊ทผ ๋ฐฉ์‹์„ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค.
  • ์ปจํ…์ŠคํŠธ ์ •์ฑ… ๊ทœ์น™ ๋””๋ ‰ํ† ๋ฆฌ์™€์˜ ํ†ตํ•ฉ ์˜ต์…˜์„ ์ œ์•ˆํ•˜์—ฌ ์ž๋™ํ™”๋œ ์ผ๊ด€์„ฑ์„ ์ง€์›ํ•ฉ๋‹ˆ๋‹ค.

Quick Start

Run the ctx-init tool at the project root to scaffold CLAUDE.md, subdirectory CLAUDE.md, .claude/rules/, and AGENTS.md while preserving existing files.

Frequently Asked Questions about ctx-init

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scaffold a hierarchical CLAUDE.md context architecture for my project?โ–ผ

Scaffolding CLAUDE context architecture involves analyzing a repository to generate root and subdirectory CLAUDE.md files plus AGENTS.md. The tool detects build tools and directory patterns to plan subsystems, organizing CONTEXT-like artifacts for on-demand loading while preserving existing configurations.

What is the best way to generate CLAUDE.md files across subdirectories without overwriting existing ones?โ–ผ

Generating CLAUDE.md files across subdirectories uses a preservation-first approach that analyzes existing artifacts and augments them. It ensures root and subdirectory CLAUDE.md files exist for CLAUDE Code loading, returning a concrete plan detailing which files to create or update without destroying current content.

How does automated context scaffolding detect project subsystems for on-demand loading?โ–ผ

Automated context scaffolding detects project subsystems by analyzing build tools and directory patterns within the repository. It uses these patterns to plan hierarchical subsystems and organize CONTEXT-like artifacts, enabling efficient on-demand loading for CLAUDE Code environments.

Does ctx-init integrate with existing .claude/rules/ directories for context policy automation?โ–ผ

Yes, ctx-init integrates with existing .claude/rules/ directories by proposing integration options for context policy rules. This supports automated consistency across the generated CLAUDE.md hierarchy and AGENTS.md files while maintaining the preservation-first approach for existing artifacts.

Can I use ctx-init to plan AGENTS.md creation alongside CLAUDE.md files?โ–ผ

Yes, you can use ctx-init to plan AGENTS.md creation alongside CLAUDE.md files. It analyzes the repository structure and returns a concrete plan detailing how to create or update both AGENTS.md and hierarchical CLAUDE.md files while integrating optional context artifacts.

What are the limitations when scaffolding context architecture for large repositories?โ–ผ

When scaffolding context architecture for large repositories, the tool relies on detecting build tools and directory patterns to plan subsystems. Limitations include potential complexity in organizing CONTEXT-like artifacts for on-demand loading, requiring careful review of the generated concrete plan before applying file updates.