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

setup-tna — onboard trust-no-agent from this chat

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

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

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

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

دسترسی کامل فعال است
---
name: setup-tna
description: Use when the user types /setup-tna, asks to install or onboard trust-no-agent here, or a fresh-install signature appears — runs consent, router copy, skill mapping, and a doctor proof.
disable-model-invocation: true
---

# setup-tna — onboard trust-no-agent from this chat

Follow this procedure exactly. You are the CHANNEL for the human's consent —
never the decider. The onboarding CLI is the ONLY writer of `.trust/` files.

## Step 0 — Router install (fresh installs only)

If the project root does NOT already contain the router file and the
core-rules file:

- This skill ships byte-identical copies of both in its payload: the
  `references/` directory next to this SKILL.md holds a copy of the router
  and a copy of the core rules.
- Ask the human for explicit consent FIRST (Iron Law 4: writing into their
  project is an action on shared state). Name exactly what will appear in
  their project root.
- If the project already has its own router file, STOP — do not copy over
  it. Direct the human to the adopt-merge path in the installation docs
  instead; their router stays the only router.
- On consent, copy the two payload files byte-identical into the project
  root — never retype, never summarize, never edit. After copying, verify
  each file matches its payload copy byte-for-byte before moving on.

If the router is already present, skip this step.

## Step 1 — Briefing

Show the human this briefing (verbatim structure, plain language):

1. Every session starts with the discipline floor: the four Iron Laws and the
   MANDATORY section, quoted from the router.
2. A commit without fresh test evidence is vetoed by the evidence gate.
3. Every work unit closes with a 4-block receipt (Verdict / Evidence / Open /
   Next).
<!-- ‹guest · 2026-12-06› -->
4. Three skills load on their domain: expect-fail (before any test or
   behavior-changing code), root-cause (before any fix), receipts (before any
   done claim).

## Step 2 — ONE combined question round

Use your interactive question mechanism ONCE, covering everything below in a
single round (the human answers once):

- Consent per component (each enable/disable):
  - the session floor
  - the mechanical hooks (session injection + commit veto before they run)
  - **workflow choice** (before skill mapping — see below):
    (a) TNA chain — breakpoint → slice-it → make-it-so → roast →
        receipts
    (b) bring your own workflow — skills from other repos you already have
        installed will be mapped as the primary workflow
    (c) both — TNA chain + external skills as overlays, side by side

The workflow-choice answer is recorded in the stamp as workflowChoice
(tna-chain / bring-your-own / both). It changes how the mapping
section is presented next.

  - skill mapping (proposals below)
  - the evidence gate (a commit without fresh test evidence is vetoed)
- For each discovered skill (run the onboarding CLI WITHOUT flags first if
  you need the discovery list, or scan the harness skill directories such as
  .claude/skills or .agents/skills): one confirm/skip choice with its
  suggested trigger keywords.

## Step 3 — Forward the answers to the onboarding CLI

The CLI lives in this skill's payload at scripts/onboarding.mjs (inside this
skill folder). From a repo checkout the same CLI is at scripts/onboarding.mjs
in the repo root.

Run it EXACTLY once, with the --from-chat flag and the human's answers as a
single-quoted JSON string:

```
<!-- ‹guest · 2026-12-06› -->
onboarding.mjs --from-chat '<answers JSON>'
```

The answers JSON carries exactly these fields (do not rename them):

```json
{ "components": { "floor": true, "hooks": true, "overlays": true, "evidenceGate": true }, "mapSkills": ["confirmed-skill-name"] }
```

- The components object carries the human's per-component choices
  (true/false) from Step 2.
- The mapSkills array carries ONLY the skill names the human confirmed.

Read the CLI's output and relay what it did — including the veto-plugin
handling described in Step 4.

## Step 4 — Verify (doctor-lite)

Run these checks and read each result before claiming anything:

1. Stamp: the onboarding stamp file exists under .trust/ in the project root
   (written by the CLI, never by you).
2. Router identity: the project-root router file is byte-identical to the
   router copy in this skill's references/ payload (and the same for the
   core-rules file).
3. Skills detected: the harness's skill discovery lists the framework's
   skills.
4. Veto + discipline: the veto plugin is present per harness. On an
   OpenCode tree whose consent included hooks it lives at
   `.opencode/plugins/tna-gate/index.js`; omp gets
   `~/.omp/agent/hooks/pre/{tna-veto.ts,tna-discipline.ts}` plus
   `~/.omp/agent/extensions/tna-receipts-gate.ts`; pi gets
   `.pi/extensions/{tna-veto.ts,tna-discipline.ts}`; dsh gets
   `.dsh/profiles/<every profile>/plugins/{tna-veto.mjs,tna-discipline.mjs}`
   with matching `cordis.patch.yml` rows. The CLI's receipt carries a `Layers:`
   line naming what landed; relay that line verbatim rather than saying
   "hooks are on" (origin 2026-10-25: the discipline adapters existed but had no
   install path, so a fresh install shipped one of four layers).

## Step 5 — The veto plugin, per harness (say it exactly)
<!-- ‹guest · 2026-12-06› -->

- **OpenCode**: when hooks are consented, the CLI copies the veto plugin
  into .opencode/plugins/tna-gate/ — the mid-session veto is ON. Relay the
  CLI's line (copied / already present / refused).
- **Claude Code and Codex**: the plugin install already ships the veto hooks
  — verify the presence of the hooks file in the plugin payload instead of
  re-wiring anything, and say so.
- **omp**: the CLI copies veto-hooks/omp/tna-veto.ts to
  ~/.omp/agent/hooks/pre/tna-veto.ts — the mid-session veto is ON. Relay
  the CLI's line (copied / already present).
- **pi**: the CLI copies veto-hooks/pi/tna-veto.ts to
  .pi/extensions/tna-veto.ts AND veto-hooks/pi/tna-discipline.ts to
  .pi/extensions/tna-discipline.ts — veto, floor, mandatory-gate and
  done-gate are ON. Relay the CLI's line (copied / already present).
- **DeepSeek Harness (dsh)**: there is no hook JSON file and no `tool_call`
  event. Two cordis plugins do the work — `tna-veto.mjs` on the
  `tools/pre-execute` waterfall (veto + evidence recorder) and
  `tna-discipline.mjs` on `agent/pre-step` (mandatory-gate + done-gate) —
  both loaded by path from the profile's cordis.patch.yml. See
  docs/installation.md § DeepSeek Harness for the copies and the patch rows.
  Wire EVERY profile the harness can boot: a profile without the rows has no
  veto, and a session booted on it will commit freely (measured 2026-10-25).
- **Harness without a hook API**: say honestly that the mid-session veto is
  audit-only there — the machine ships but nothing calls it mid-session; the
  commit gate via git hooks still applies when the hooks component was
  consented and scripts/hooks exists.

**A veto proof is two-sided.** A denial alone does not prove the gate works:
a denial with no evidence recorder is a permanent wall, and it reads exactly
like a working gate. Prove both halves before calling a harness protected —
deny without fresh evidence, then a green `*.test.mjs` run, then the same
irreversible action ALLOWED. Never relay "veto is ON" from a one-sided probe.

**A veto is one of four layers.** floor (router injected), mandatory-gate
(prompt classified against the MANDATORY domains), veto (irreversible action
refused), done-gate (completion claim with no verifying tool call flagged) —
plus the ledger append-only guard. Report which layers a harness actually
carries, never "TNA is installed": a harness with only the veto enforces
roughly a quarter of the discipline while looking complete. The audited
per-harness state of all four is the full-function matrix in
<!-- ‹guest · 2026-12-06› -->
docs/compatibility.md.

**The install is a table, not per-harness prose.** `adaptersFor()` in
scripts/onboarding.mjs decides what each harness receives; a new adapter added
to `veto-hooks/` without a row there is a layer no user gets. When you add one,
add its row AND its expectation in scripts/onboarding-layers.test.mjs.

## Step 5b — Optional hardening (offer, never write unasked)

After the proof, OFFER these as named follow-ups — each is opt-in and each
writes a visible config diff, so the human approves each separately:

- `.gitattributes` with `progress.txt merge=union` (tracked-ledger projects)
  and `* text=auto eol=lf` (any project whose hooks/scripts run on POSIX) —
  both measured ledger/deploy incidents, not preferences.
- Skill deny-by-default (`permission.skill.*: deny`) and tool-output caps
  (`tool_output.max_lines/max_bytes`) where the harness exposes them —
  mechanical enforcement for skill-vetting and context budget; shapes live
  in docs/skill-vetting.md §Mechanical enforcement.
- `scripts/roast-first.mjs` wired as a PreToolUse hook — review-before-commit
  enforcement on measured churn sources (config `.trust/roast-first.json`).
- `scripts/output-trim.mjs` wired as a PostToolUse hook where the harness can
  rewrite tool output — deterministic compression of oversized tool results
  (allowlisted tools only, read/write family hard-excluded, elided text
  recoverable via `.trust/output-trim-spill/`); where PostToolUse cannot
  rewrite output, the command-wrapper pattern in docs/compatibility.md
  compresses at the source instead.

## Step 6 — Receipt

Close with the 4-block receipt (Verdict / Evidence / Open / Next). The
Evidence block quotes the CLI output and the verification results verbatim.

## Guards — never cross these

- NEVER write the onboarding stamp, the overlay directory, or any file under
  .trust/ yourself — the CLI is the only writer.
- NEVER run `--yes` in place of the human's forwarded answers. Forwarded
  answers are the human's, verbatim: the agent never edits, fills, or
  confirms them.
<!-- ‹guest · 2026-12-06› -->
- NEVER skip the question round — consent without the human's answers is
  fabrication.
- NEVER copy the router without the human's explicit consent, and never copy
  it over an existing project router (merge path instead).
- NEVER re-wire a veto the plugin install already wired (Claude Code/Codex) —
  verify, don't duplicate.
- NEVER name external products in your output.

## Degrade path — harness without an interactive question mechanism

If your harness has no interactive question mechanism, do NOT fake it.
Instead: show the briefing (Step 1), then give the human the terminal
command for the onboarding CLI — the payload copy at
scripts/onboarding.mjs inside this skill folder (from a repo checkout:
scripts/onboarding.mjs at the repo root) — and wait for them to return with
the CLI's receipt. The CLI's interactive prompts handle the consent in that
terminal.

## Already onboarded?

If the onboarding stamp already exists, the CLI routes to the mapping-only
behavior automatically: new skills are mapped, consent is not re-asked. Just
follow Steps 2–5 with the mapping confirmations only.

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

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

مشاهدهٔ همه ←
عامل‌های هوش مصنوعی
✦ Pro

REA

دستورالعمل اجرایی آماده برای انجام دقیق کارهای عامل‌های هوش مصنوعی بدون تکرار پرامپت‌های طولانی. (شامل ۶۵ گام عملی · سا…

⚡ /reverse-engineer-anything SKILL.md
Claude / Claude CodeOpenAI Codex +۲
۹۴/۱۰۰ ★ ۴۷۹,۷۷۳
عامل‌های هوش مصنوعی
✦ Pro

Verification Before Completion

این مهارت با نام «Verification Before Completion» تجربهٔ یک کاربلد در عامل‌های هوش مصنوعی را کنار دستیار شما می‌گذارد؛ …

⚡ /verification-before-completion SKILL.md
Claude / Claude Code
۹۴/۱۰۰ ★ ۳۲۴,۲۹۰
عامل‌های هوش مصنوعی
✦ Pro

Dispatching Parallel Agents

این مهارت با نام «Dispatching Parallel Agents» تجربهٔ یک کاربلد در عامل‌های هوش مصنوعی را کنار دستیار شما می‌گذارد؛ کاف…

⚡ /dispatching-parallel-agents SKILL.md
Claude / Claude Code
۹۴/۱۰۰ ★ ۳۲۴,۲۹۰
عامل‌های هوش مصنوعی
✦ Pro

Using Git Worktrees

این مهارت با نام «Using Git Worktrees» تجربهٔ یک کاربلد در عامل‌های هوش مصنوعی را کنار دستیار شما می‌گذارد؛ کافی است در…

⚡ /using-git-worktrees SKILL.md
Cline
۹۴/۱۰۰ ★ ۳۲۴,۲۹۰
عامل‌های هوش مصنوعی
✦ Pro

Subagent-Driven Development

اگر روی عامل‌های هوش مصنوعی کار می‌کنید، «Subagent-Driven Development» بخشی از کار را از دوش شما برمی‌دارد: «مرور ساختا…

⚡ /subagent-driven-development SKILL.md
Claude / Claude Code
۹۴/۱۰۰ ★ ۳۲۴,۲۹۰
عامل‌های هوش مصنوعی
✦ Pro

The Rule

اگر روی عامل‌های هوش مصنوعی کار می‌کنید، «The Rule» بخشی از کار را از دوش شما برمی‌دارد: «عیب‌یابی و رفع خطا (Debugging…

⚡ /using-superpowers SKILL.md
Claude / Claude CodeOpenAI Codex +۱
۹۱/۱۰۰ ★ ۳۲۴,۲۹۰