init-deep
ما الذي تفعله
تنظم هذه المهارة وثائق مشروعك في ملفات تسمى AGENTS.md. تنشئ بنية هرمية، أي مجلدات داخل مجلدات، ليفهم الذكاء الاصطناعي المشروع بشكل أفضل.
متى تستخدمها
- ✓عندما تبدأ مشروعًا جديدًا وتريد أن يفهم الذكاء الاصطناعي بنيته.
- ✓عندما يكبر المشروع وتحتاج الوثائق إلى تنظيم.
- ✓عندما تريد أن يساعدك الذكاء الاصطناعي في إبقاء الوثائق محدّثة.
رابط المهارة
https://github.com/code-yeongyu/oh-my-openagent/blob/dev/packages/omo-senpi/skills/init-deep/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“نظّم وثائق مشروعي في ملفات AGENTS.md، ابتداءً من الجذر، وأنشئ مجلدات فرعية عند الحاجة.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
تقيس المهارة أولًا حجم مشروعك وتقرر كيفية تقسيمه. ثم تجمع المعلومات من كل جزء، وأخيرًا تكتب ملفات AGENTS.md، لضمان أن يملك الذكاء الاصطناعي دائمًا رؤية واضحة ومنظمة للمشروع.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
/init-deep
Generate hierarchical AGENTS.md files: root + complexity-scored subdirectories, produced by a size-formula-driven dag map-reduce (quick scanners -> unspecified-high writers) so the main session's context stays flat at any repo size.
Usage
/init-deep # Update mode: modify existing + create new where warranted
/init-deep --create-new # Read existing → remove all → regenerate from scratch
/init-deep --max-depth=2 # Limit directory depth (default: 3)
Workflow (High-Level)
- Size & route (main session) - ONE eval cell measures the repo and computes the node formula.
- Map (dag) -
quickscanner nodes extract per-chunk facts into bounded file reports. - Reduce (dag) -
unspecified-highwriter nodes own disjoint subtrees: score, write AGENTS.md files, emit digests. - Root & verify (dag) - one node writes root AGENTS.md from digests only; one node verifies every file.
- Snapshot & mode (main session) - snapshot contract unchanged.
todo init the five phases; start/done each transition in real time.
</critical>
Phase 1: Size & Route
Measure and compute in ONE eval cell - code, not mental arithmetic:
# Measure (tracked files minus vendored/generated: node_modules, .git, dist,
# build, out, vendor, target, coverage, lockfiles, minified and binary files)
S = total source bytes after exclusions
per_dir = source bytes per directory # bin-packing input
depth = max directory depth # respect --max-depth (default 3)
existing = every AGENTS.md / CLAUDE.md path # read the ROOT one now
# Formula
CHUNK = 400 * 1024 # ~100k tokens of source; a quick worker's usable window
# is ~150k over its fallback chain - leave room for its
# prompt and report
N_quick = ceil(S / CHUNK) # bin-pack WHOLE directories into chunks; a directory
# larger than one chunk splits at its children
N_high = ceil(N_quick / 12) # one reducer absorbs ~12 reports (~60k tokens) and
# still has room to spot-check real code
Route:
- **N_quick < 4** -> inline path below; a dag costs more than it saves.
- N_quick >
task.dag.max_nodes_per_run(default 64) -> raise the knob in omo config, or run one chained dag per top-level directory (multi-run composition,mass-ulwskill). - Otherwise -> dag path: emit
CHUNKS = [{id, dirs, bytes}], assign each writer a directory SUBTREE (disjoint - no two writers own the same directory), andmkdir -p .omo/init-deep/reports .omo/init-deep/digests.
--create-new: read every existing AGENTS.md FIRST (still-true facts survive as scanner input), then delete all, then regenerate.
Inline path (N_quick < 4)
Small repo - skip the dag. Fire 2-4 parallel explore agents (structure, entry points, conventions, anti-patterns), for example:
task(subagent_type="explore", run_in_background=true, prompt="Project structure: map real layout via ast-grep structural search (sg/ast_grep MCP) + rg --files -> REPORT deviations from standard patterns")
Run the LSP/ast-grep code map yourself (lsp_symbols outlines + workspace inventory, lsp_find_references on top exports, ast-grep import/call shapes; when neither resolves, mark centrality unmeasured). Then score with the matrix below and write every file per the templates yourself. Phase 5 applies unchanged.
Phase 2: Map Wave - quick Scanners (dag)
Build and start the run in one eval JS cell with the dag SDK (OMO_DAG_SDK_ROOT); wave doctrine, the node prompt contract, and the failure playbook come from the mass-ulw skill's references/planning.md. One scanner node per chunk, category: "quick", no load_skills - scanners stay lean and their prompt is a rigid numbered extraction template. Quick workers extract; they never judge and never write AGENTS.md:
TASK: Extract knowledge-base facts for chunk <id> (<dirs>) of <repo-root>.
Steps, in order:
1. Inventory each directory in scope: file count, LOC, languages, entry files.
…
الأسئلة الشائعة
ما هي ملفات AGENTS.md؟
هي ملفات وثائق تساعد الذكاء الاصطناعي على فهم بنية المشروع وأوامره وأعرافه.
ماذا تعني «هرمي»؟
تعني أن الوثائق منظمة على مستويات، مثل المجلدات والمجلدات الفرعية، لتسهيل التنقل والفهم.
هل يمكنني التحكم في عمق التنظيم؟
نعم، يمكنك تحديد حد لعمق المجلدات الفرعية، لتجنب إنشاء بنية معقدة جدًا.
التفاصيل
الوصف الأصلي من المؤلف
Initializes a hierarchical AGENTS.md knowledge base for a project. Use when a repo needs its structure, commands, and conventions documented for agents.
الشعبية
- نجوم GitHub
- 70k
- الترتيب
- #3121
- الترخيص
- NOASSERTION
- آخر تحديث
- 15/10/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
comment-checker
70kيساعد وكيلك على فهم الملاحظات التي تصدرها أدوات فحص التعليقات الآلية والرد عليها. مفيد لمعالجة نتائج المراجعات الآلية.
lcx-contribute-bug-fix
70kيساعد وكيلك على المساهمة بإصلاحات الأخطاء في مشاريع LazyCodex. ينشئ بلاغات أو طلبات دمج لضمان جودة الكود.
lcx-doctor
70kيتيح لوكيلك فحص سلامة تثبيتات LazyCodex وCodex CLI. مفيد عندما يتصرف النظام بشكل غريب بعد التحديثات أو التغييرات.
lcx-report-bug
70kيساعد وكيلك على الإبلاغ عن الأخطاء بالتفصيل في مشاريع LazyCodex. ينشئ بلاغات تتضمن معلومات مفيدة للمطورين لإصلاح المشكلة.
مهارات مشابهة
technical-documentation
394kيساعد وكيلك على كتابة الوثائق التقنية ومراجعتها، وملفات التعليمات الخاصة بالوكلاء، لتكون سهلة المتابعة للناس وأدوات الذكاء الاصطناعي.
architecture-decision-records
280kيساعد وكيلك على تسجيل قرارات بنية المشروع المهمة، فيفهم سبب كل اختيار ويحتفظ بتاريخ واضح للتغييرات.
code-tour
280kيتيح لوكيلك إنشاء جولات شيفرة خطوة بخطوة مع مراجع دقيقة للملفات والأسطر، ويفيد للتعريف بالمشروع والشرح والمراجعة.