لوگوی اسکیلیکس اسکیلیکس | Skilliks آکادمی و استودیوی ابزارهای AI تاریخ شمسی… --:--:--

Tack CLI architecture

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

کارهای تکراری ترمینال، مدیریت شاخه‌ها، نوشتن پیام کامیت استاندارد و ساخت اسکریپت‌های کمکی را سریع و یکدست انجام می‌دهد. (شامل ۶ گام عملی · سازگار با Claude Code و Cline).

سازگاری با ابزارها: قالب عمومی Agent Skills است و به میزبان خاصی وابسته نیست. مشاهدهٔ جدول سازگاری

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

دسترسی کامل فعال است
---
name: tack-cli-architecture
description: Where code goes in the CLI app, `apps/cli` - its layers, the path of one command, the domain language and the decisions behind them. Use before adding a command, feature or domain concept to `apps/cli`, or moving code between its layers. Not for `packages/*`.
---

# Tack CLI architecture

The public contract (modes, the envelope, payload kinds, the stable set, exit codes, selectors and diagnostic codes) is defined in `apps/website/docs/docs/reference/automation.mdx`, `selection.mdx` and `sync.mdx`; this skill places the code that keeps it.

`apps/cli/src` is six layers, lowest first. A module imports only its own layer and the layers its row allows; `apps/cli/test/architecture-boundaries.repo.test.ts` enforces every rule here.

| Layer       | Holds                                                                                | May import                       |
| ----------- | ------------------------------------------------------------------------------------ | -------------------------------- |
| `domain`    | Schemas, identities, policy and plans: what is stored or two features share. No I/O. | `domain`                         |
| `services`  | The tag and interface of each injected capability                                    | `domain`                         |
| `platform`  | Live implementations of services over files, Git and processes                       | `domain`, `services`             |
| `features`  | Use cases that drive services and domain policy                                      | `domain`, `services`             |
| `cli`       | From argv to the public envelope and its text view                                   | `domain`, `services`, `features` |
| `bootstrap` | The composition root: builds the live layers once                                    | everything                       |

`platform` and `features` are siblings and never import each other. Inside `cli`, the folders `commands`, `envelope`, `human`, `explorer`, `routes` and `host` follow the same rule, in that order.

## Where new code goes

- **A command**: one spec and one implementation, which share its tag; the view is part of the implementation. Follow [references/command-lifecycle.md](references/command-lifecycle.md) step by step; the compiler names most of what is missing.
- **Behaviour a command performs**: a use case in `features/<folder>`, called by the route and by the explorer when it offers the same change. The route keeps only transport: reading flags and input, wording diagnostics, encoding the outcome.
- **A domain concept**: its word in `CONTEXT.md` first, then the same word in code. Read [references/domain-language.md](references/domain-language.md) before naming a type or a folder.
- **A schema**: in `domain` when the state file stores it or two features share it, otherwise beside the feature that produces it.
- **A capability a test must replace**: a small service in `services`, its live layer in `platform`, supplied once by `bootstrap`. Pure policy stays a plain function in `domain`.
- **A move between layers or folders**: run the boundary test after each move; it names the import or the cycle that breaks the order.

## Before you restructure

Read [references/decisions.md](references/decisions.md): it says why the current shape was chosen, which restructurings were weighed and declined, and what the code deliberately leaves alone. For each import rule and the test that asserts it, read [references/layers.md](references/layers.md).


— ‹guest · 2026-12-04› —

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

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

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

REA bug fix

علت ریشه‌ای خطاها و کرش‌ها را از روی لاگ و مسیر اجرا پیدا می‌کند و به‌جای حدس زدن، اصلاح هدفمند پیشنهاد می‌دهد. (شامل ۶…

⚡ /rea-bug-fix SKILL.md
Claude / Claude CodeOpenAI Codex +۱
۹۱/۱۰۰ ★ ۴۸۶,۴۸۷
کیفیت کد و تست
✦ 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
۹۴/۱۰۰ ★ ۳۲۴,۲۹۰