Deft directive tutorial

From deftai/directive · View interactive version

Deft directive tutorial is an AI agent skill from the GitHub repository deftai/directive. Runs the Directive Tutorial inside the current session. Use after the person first saves their Name, or when they ask to start, skip, resume, or re-run the tutorial (Signal, Postcard, or Echo). Do NOT trigger on session:start ceremony alone, triage:welcome, or a real product build.

How to use this skill

Skill file

<!-- AUTO-GENERATED by task packs:render -- DO NOT EDIT MANUALLY -->

<!-- Purpose: rendered skill -->

<!-- Source of truth: packs/skills/skills-pack-0.1.json -->

<!-- Regenerate with: task packs:render -->

<!-- Edit the source, not this file. Slice instead of loading every SKILL.md: task packs:slice skills by-trigger --trigger <kw> (or list) -->

Directive Tutorial

The first sitting inside the session that is already running. The person picks Signal, Postcard, or Echo.

Legend (from RFC2119): !=MUST, ~=SHOULD, ≉=SHOULD NOT, ⊗=MUST NOT, ?=MAY.

When to Use

Do NOT trigger on session:start ceremony alone, triage:welcome, the longer training course, or a real product build.

Goal

The person finishes one menu option, or has a recorded skip. The agent reads each step and follows it.

Offer

! Offer only when deft tutorial:offer --json prints "offerNow": true (status not_started).

! Offer after Name is first persisted. ⊗ Wait for project definition or the specification interview.

⊗ Ask the name and preference questions again.

! Skip for now runs deft tutorial:skip before the tutorial has started.

! An explicit deft tutorial:start still works after skip or complete (complete needs reset first when status is completed).

⊗ Offer again when offerNow is false.

Menu

! After start, the person picks from a numbered menu: 1 Signal, 2 Postcard, 3 Echo, 4 Leave, 5 Discuss, 6 Back.

! Record a project pick with deft tutorial:advance --project signal|postcard|echo (or 1|2|3).

! Leave runs deft tutorial:leave (also --project 4 / --project leave on advance).

! Discuss (--project discuss / menu Discuss) pauses and asks what to discuss; do not advance.

! Back (--project back / menu Back) moves one wired step earlier; on step 1 refuse Leave or Discuss. Back refuses when status is completed so finished progress cannot reopen.

! Every project option uses the same seven steps. Only the toy changes.

! Practice work runs in repoPath, a disposable local Git repository.

! On every later step the person may still leave (deft tutorial:leave).

⊗ Use the person's real project as the sandbox.

⊗ git push. ⊗ Open a pull request.

Each step

Numbered choices

! Whenever the person must pick, show a numbered menu (1, 2, 3…). Accept the number or the option label.

! Include Leave on every choice menu where leaving is allowed.

! End every structured menu with Discuss then Back, in that order (contracts/deterministic-questions.md).

⊗ Ask for free yes/no/go prose when a numbered menu is defined on the step.

⊗ Strip Discuss/Back from the rendered beatText menus.

! Run deft tutorial:inspect --json or deft tutorial:resume --json.

! Say beatText as written.

⊗ Paraphrase it or invent a step.

⊗ Paste the JSON command block into what the person sees.

! When JSON command is non-null, run those commands in repoPath yourself after the person's next action.

⊗ Run promote/activate/complete (or any lifecycle commands) when command is null — that means start or close already ran (for example after Back).

! Record progress with deft tutorial:advance and the matching flags.

⊗ Move on when advance refuses.

Progress

! deft tutorial:leave records skipped and clears the sitting; explicit start still works.

! Progress is stored in user preferences (tutorial-state.json next to USER.md), not in the product project.

! deft tutorial:reset clears progress and does not re-fire the automatic offer by itself.

! Mid-tutorial deft tutorial:skip moves one step and does not mark the work done.

! Completed status requires reset before another start; a fresh start does not reuse prior content, work-file path, or check results.

Exit

! Say whether the sitting is paused, skipped, or finished, and which step is current.

⊗ Claim the work is done before step 6 has closed it.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.