لوگوی اسکیلیکس اسکیلیکس | Skilliks آکادمی و استودیوی ابزارهای AI

Project init: one-pass map

آزاد تازه‌وارد تاییدشده امن

دستورالعمل اجرایی آماده برای انجام دقیق کارهای کیفیت کد و تست بدون تکرار پرامپت‌های طولانی. (شامل ۲۰ گام عملی · سازگار با Claude Code).

سازگاری با ابزارها: این Skill به مسیر/قابلیت اختصاصی Claude Code وابسته است. مشاهدهٔ جدول سازگاری

متن دستورالعمل (SKILL.md)

دسترسی کامل فعال است
---
name: init
description: "Maps a project in one cheap Haiku pass and writes the learned-map lesson with verified test/build/lint commands. Use on /orchestrator:init or at the first task in a project without a learned-map."
argument-hint: "[--refresh]"
---

# Project init: one-pass map

Arguments: $ARGUMENTS

`<store>` is defined in the `learn` skill (per-project folder under `~/.claude/orchestrator/`, same from every git worktree, writable from worktree sessions); use the session-start `Orchestrator store:` line, or run the Store command once, and put the absolute path in the brief. The main session never reads the manifests itself.

## 1. Skip
- If `<store>/lessons/learned-map.md` exists and there is no `--refresh`, say so in one line and stop. Also skip if a legacy learned-map exists (`legacy.md` in the `orchestrator:learn` folder; only if legacy files exist), unless `--refresh`.

## 2. Delegate once (`orchestrator:haiku-coder`, `TYPE: CREATE`)
The brief tells Haiku to read only top-level files that exist:
- package.json and workspace files, pyproject.toml, requirements*.txt, Cargo.toml, go.mod, composer.json, Gemfile.
- Makefile, justfile, Dockerfile, compose files, CI workflows (.github/workflows).
- CLAUDE.md (if present).
- The first 60 lines of README.
- A per-folder file count from `git ls-files` (top 2 levels, counts only, not the full list).

Same delegation: also copy missing legacy topics (`legacy.md` in the `orchestrator:learn` folder; only if legacy files exist).

## Errors
- Haiku pass reports FAILED or an API error: retry once; if it fails again, report the error in one line and write nothing.
- Zero verified commands: say so, write the map without a verify line, and do not create verify.sh.

## 3. Derive (same delegation)
- Stack, key folders and their purpose, entry points.
- Test, build, lint, and typecheck commands.
- Generated or do-not-edit paths.

## 4. Verify commands (same delegation)
- Run each detected test/lint/typecheck command once. Run-only: no edits, no fixes. Trim the output.
- Mark each one: verified, broken (with the first error), or not run (needs services, env, or secrets, or is slow, such as e2e or deploy).

## 5. Write the map (same delegation)
- Write `<store>/lessons/learned-map.md` in the `learn` format: the frontmatter description line plus at most 20 lesson lines (shorter is fine). Do not repeat facts CLAUDE.md already states.
<!-- ‹guest · 2026-11-25› -->
- Also write `<store>/verify.sh` (bash, LF line endings, portable to bash 3.2 on macOS): `set -o pipefail`; for each **verified** test/lint/typecheck command, capture its output (`2>&1`) and print `PASS <name>`, or on failure `FAIL <name>` followed by the last 15 lines of its output; end with one line `VERIFY: PASS (n/m)` or `VERIFY: FAIL (n/m)` and exit non-zero on any failure. No broken or not-run commands. Run it once and confirm the last line.
- On Windows without Git Bash (check `C:\Program Files\Git\bin\bash.exe`), also write `<store>/verify.ps1` with the same checks and output format (`PASS`/`FAIL` lines, final `VERIFY:` line, non-zero exit on failure); `on` runs it with PowerShell when bash is missing.
- Add one map line: `Verify: bash <absolute store path>/verify.sh`, using the absolute store path from the brief, never the literal `<store>` (counts toward the 20 lines).

## 6. Report
- The main session reads only the Haiku report and the written map.
- Report in one short block (stack, commands with their status, the verify.sh result, anything broken, the store path, and that `/orchestrator:init --refresh` re-maps the project) plus the token line.
- If verify.sh was written: print its command lines (one line each, not the whole script) and say they run automatically in later tasks, so the user should review them.

این نسخه با نشانه‌گذاری اختصاصی حساب شما نمایش داده می‌شود. برای نصب سریع، به تب نصب و راه‌اندازی بروید.

مهارت‌های مشابه و پیشنهادی

مشاهدهٔ همه ←
کیفیت کد و تست
✦ Pro

REA CI and tests audit

«REA CI and tests audit» دستورالعمل دقیقی برای «نوشتن و اجرای تست خودکار» در اختیار دستیار هوش مصنوعی می‌گذارد تا نتیجه…

⚡ /rea-ci-tests-audit SKILL.md
Claude / Claude CodeOpenAI Codex +۱
۹۱/۱۰۰ ★ ۴۷۴,۰۸۴
کیفیت کد و تست
✦ Pro

Finishing a Development Branch

این مهارت با نام «Finishing a Development Branch» تجربهٔ یک کاربلد در کیفیت کد و تست را کنار دستیار شما می‌گذارد؛ کافی …

⚡ /finishing-a-development-branch SKILL.md
Claude / Claude Code
۹۴/۱۰۰ ★ ۳۲۴,۲۹۰
کیفیت کد و تست
✦ Pro

Code Review Reception

اگر روی کیفیت کد و تست کار می‌کنید، «Code Review Reception» بخشی از کار را از دوش شما برمی‌دارد: «بازنویسی و تمیزسازی ک…

⚡ /receiving-code-review SKILL.md
Claude / Claude Code
۹۴/۱۰۰ ★ ۳۲۴,۲۹۰
کیفیت کد و تست
✦ Pro

Requesting Code Review

برای کارهای کیفیت کد و تست، «Requesting Code Review» یک راهنمای کوتاه و روشن است: مسیر «مدیریت هوشمند حافظه و کانتکست» …

⚡ /requesting-code-review SKILL.md
Claude / Claude Code
۹۴/۱۰۰ ★ ۳۲۴,۲۹۰
کیفیت کد و تست
✦ Pro

Test-Driven Development (TDD)

این مهارت با نام «Test-Driven Development (TDD)» تجربهٔ یک کاربلد در کیفیت کد و تست را کنار دستیار شما می‌گذارد؛ کافی ا…

⚡ /test-driven-development SKILL.md
Claude / Claude Code
۹۴/۱۰۰ ★ ۳۲۴,۲۹۰
کیفیت کد و تست
✦ Pro

Skill Creator

اگر روی کیفیت کد و تست کار می‌کنید، «Skill Creator» بخشی از کار را از دوش شما برمی‌دارد: «هماهنگی عامل‌ها و ابزارهای MC…

⚡ /skill-creator SKILL.md
Claude / Claude Code
۹۲/۱۰۰ ★ ۱۹۸,۷۹۴